I am trying to set up a VT-100 compatible terminal to connect to a g2 host on /dev/ttyS0. The terminal can be set to several different baud rates and charcter formats (8-bit and 7-bit sizes, even, none, and odd parities for each). The cable I am using is a Belkin Serial Modem ( DB25 -> DB9) cable, and I tested the pins with an ohmmeter, and they seem to be correct. I've set up agetty in /etc/inittab as:
S0:23:respawn:/sbin/agetty -hL 9600 ttyS0 vt100
I've also tried:
S0:23:respawn:/sbin/agetty -L 9600 ttyS0 vt100
S0:23:respawn:/sbin/agetty -h 9600 ttyS0 vt100
S0:23:respawn:/sbin/agetty 9600 ttyS0 vt100
and none of these worked. By worked, what I mean is nothing showed up on the screen (pressing enter or other keys does nothing) unless I turned on local echo, in which case characters appeared when I typed them, but the linux box did nothing.
I've also tried
with no effect, and
echo "Hello World" > tmp.txt
cp tmp.txt /dev/ttyS0 # nothing
cat tmp.txt > /dev/ttyS0 # nothing
and nothing showed up on the screen.
I measured voltages on the terminal, and found:
pin | voltage
I tried minicom, with still no results, but found that if I attached TxD and Rxd (transmit and recieve) on either the terminal or the host it would echo.
I have both the terminal and the host set on 9600 baud 8-N-1. Any ideas?