inmbolmie / 5250_usb_converter

Converter to plug an IBM 5251 terminal to a Linux PC via USB emulating a VT52 terminal
GNU General Public License v3.0
34 stars 6 forks source link

IBM 3197 #7

Open blackbit42 opened 3 years ago

blackbit42 commented 3 years ago

Hi @inmbolmie!

A 3197 recently landed in my hands. This is a color, two-session terminal. There is a twinax T-piece connected to the terminal, to that a normal twinax cable, that is plugged into the USB box. I've made sure an unmodified firmware is flashed on the Teensy. The controller is at /dev/ttyACM0. Terminal addresses are 0 and 1. The commandline I run is: python3 5250_terminal.py -t /dev/ttyACM0 -i -c 0:5250_DE:1 1:5250_DE:1 When I switch the terminal on, I just get a blinking cursor in the upper right corner, nothing else. Here is the debug log file, read.log and write.log are empty. debug.log What else can I check?

inmbolmie commented 3 years ago

Hi, that debug log is very strange, it is like the communication over the USB port is simply echoing back the characters sent to the Teensy. I don't think the stuff is even reaching the Teensy because it would at least answer back with a [EOTX] to signal it has aknowledged the command and sent it over the wire. Without the [EOTX] it simply sits there forever waiting for it.

You can test it with the Arduino serial monitor, anything you send to the converter, even with the Twinax disconnected will need to be answered with a [EOTX] line.

imagen

Maybe you can check it programming the Teensy with any other simpler Arduino example program like ReadASCIIString to check for a proper connection.

imagen

blackbit42 commented 3 years ago

I started from scratch today, just to make sure everything is clean. Now I get this, which I believe indicates that the Teensy is responding as expected. Though, still no reaction from the terminal.

debug.log shows a long repetition of this, nothing further:

[EOTX]
WRITING POLL:PD
[EOTX]
WRITING POLL:P@
[EOTX]
WRITING POLL:PD
[EOTX]
WRITING POLL:P@
[EOTX]
WRITING POLL:PD
[EOTX]

The terminal itself has a blinking cursor in the upper right corner. That's it.

inmbolmie commented 3 years ago

Hi, at least the Teensy seems OK because that output is expected when it is searching for a terminal in address 0 (P@) and address 1 (PD). But no responses are received.

The usual advice about checking termination resistances at both sides, etc. applies.

Have you tried to configure the 3197? I recently got a 3488 that did't work out of the box but worked right after configuring settings (holding setup or spacebar at startup).

If that doesn't work we could try to find a way to debug the signals carefully in the wire.

inmbolmie commented 3 years ago

If you are unsure of configured addresses you can easily fire to all of them, just in case because this is easy to test:

python3 5250_terminal.py -t /dev/ttyACM0 0 1 2 3 4 5 6

But it is true that most times the used addresses are just 0 and 1

blackbit42 commented 3 years ago

If you are unsure of configured addresses you can easily fire to all of them, just in case because this is easy to test:

python3 5250_terminal.py -t /dev/ttyACM0 0 1 2 3 4 5 6

But it is true that most times the used addresses are just 0 and 1

I've tried that, just to be sure. No change. Also confirmed that the terminal is set to '0' and '1'.