Author Topic: FXTerm - VT100 terminal emulator for Casio fx cg  (Read 40077 times)

0 Members and 1 Guest are viewing this topic.

Offline christop

  • LV3 Member (Next: 100)
  • ***
  • Posts: 87
  • Rating: +20/-0
    • View Profile
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #30 on: March 09, 2012, 10:15:25 am »
Yep, I'm referring to Punix. I don't mention much about the VT100 emulator, but here's the Punix thread: http://ourl.ca/9392
Christopher Williams

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #31 on: April 18, 2012, 10:20:05 am »
If you try fxterm with Casio serial cable, you may find, that stream PC->fxterm goes OK, but fxterm->PC doesn't. The problem is in DTR signal on COM port, which must be set ON. The cable (probably) uses it to get power.
I used following (and very dirty workaround):
Linux is running in vmware (which run on windows), it has serial port, which is configured as named pipe (\\.\pipe\seriak), vmware end is server,other end is an application.
On windows run proxy - attached application, which forwards data between pipe and real COM1 port. The proxy ensures, that DTR signal is ON, so it works.

This is very dirty solution, proxy is very dirty software, but at least it works for testing:-)
I hope there is a way to configure Linux to set DTR signal ON, I did a very quick research, but found nothing:-(
Martin

Can you connect with the USB cable?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #32 on: April 18, 2012, 10:32:49 am »
Can you connect with the USB cable?
No.
1. I do not know how to communicate on USB (do we know such syscalls ?)
2. The device (calculator) must emulate usb->serial convertor so linux machine will make console for it. This would probably require low level programming of USB controller on the calculator. Do you know how ? I do not :-(

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #33 on: April 18, 2012, 10:38:34 am »
I do not know how, unfortunately.

So, I have to have a way to connect to my computer with the COMM cable?



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #34 on: April 18, 2012, 11:51:37 am »
So, I have to have a way to connect to my computer with the COMM cable?
Yes.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #35 on: April 18, 2012, 02:41:45 pm »
I think I have this cable, because it came with my FX-9850G, but when I tried to connect my 9850G a few years ago, it was not detected.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #36 on: April 18, 2012, 05:19:02 pm »
this cables work



Oh, wow never saw one of those before.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #37 on: August 27, 2012, 05:40:04 am »
I released new version at my page http://martin.poupe.org/casio/
News: 4 embedded fonts, menu for communication parameters.
Source code included.
The simulator variant uses windows pipe instead of COM port - I used it to communicate with Linux running in VMWare
« Last Edit: August 27, 2012, 05:42:27 am by MPoupe »

Offline christop

  • LV3 Member (Next: 100)
  • ***
  • Posts: 87
  • Rating: +20/-0
    • View Profile
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #38 on: August 27, 2012, 05:29:47 pm »
Nice state machine! I've been thinking about adding character tables as you did for a few different states (ground, ESC, CSI, etc), but I worried about how much space those will take. Mine currently tests each character (eg, ch == 0x18 || ch == 0x1a || ...). But now I'm thinking the size of character tables shouldn't matter that much; it'll add probably a couple kilobytes or so in ROM but should execute a little faster (which I think matters more than ROM usage).

I'm amused at the way you defined your fonts in source code with defines like _X_X_X (I defined my fonts in the binary PBM image format and automatically convert them to C source code when the software is built).

I'm still jealous of the hardware UART and the higher resolution color screen on the Casio. All I've got is a proprietary serial protocol (TI D-BUS) and a crappy low-resolution monochrome screen. :/
Christopher Williams

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #39 on: August 28, 2012, 07:06:26 am »
Nice see a update :)

Unfortunately, I will not be able to test this new update, I have no cable. I tested the initial version with a cable borrowed.

is possibel to make a homemade cable? Official cables are expensive and rare, they cost 37€ + taxes.

Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #40 on: August 28, 2012, 08:57:04 am »
Unfortunately, I will not be able to test this new update, I have no cable. I tested the initial version with a cable borrowed.
is possibel to make a homemade cable? Official cables are expensive and rare, they cost 37€ + taxes.
You can test it partially without nay cable. Run fxTerm on any COMM settings and select local echo. You will be able to write letters on the screen.
BTW: I never tried it ;-)
Cable: do you have USB->RS232 convertor? I think it contains USB->uart (TTL) converter and TTL->RS232 (max232) converter. If you remove the second convertor and replace connector by 2.5 mm jack, it should work.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #41 on: August 28, 2012, 10:14:04 am »
Glad to see this software updated. Also I wish TI cables worked with Casio calcs, because there are some tutorials on Google (or ticalc.org) on how to build $5 link cables.
« Last Edit: August 28, 2012, 10:15:54 am by DJ_O »

Offline helder7

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 185
  • Rating: +33/-1
    • View Profile
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #42 on: August 28, 2012, 10:33:04 am »
this ti cables 2,5 mm to usb works?


Offline MPoupe

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +30/-1
  • The coder of yesterday
    • View Profile
    • My web site about Casio calculator
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #43 on: August 28, 2012, 10:54:20 am »
this ti cables 2,5 mm to usb works?
I do not know the schematics, but I think no. I mean this: http://pinouts.ru/Converters/usb_serial_adapter_pinout.shtml
Imagine you remove MAX213 and wire signals (TXD and RXD) from FT232AM to the calculator.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: FXTerm - VT100 terminal emulator for Casio fx cg
« Reply #44 on: August 28, 2012, 10:59:45 am »
I think an Arduino would work, it have a build-in USB-to-TTL converter, so you would plug the 2.5mm jack to pins 0 and 1 and it would work. I didn't tested it though, as I don't have any cable to cut in half.

EDIT: It's doable, you don't even have to load a program in the Arduino, I would need to know whether the tip or the ring is TX or RX. The sleeve is most likely the ground.
« Last Edit: August 28, 2012, 11:31:15 am by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.