I have a problem with two computers connected via a null modem serial cable.
Both are running Linux 2.6.21.7. I have tried to test the connection sending text directly to /dev/ttyS0 and running `cat /dev/ttyS0' on the other computer. When `echo 'A' >/dev/ttyS0' is run on the first computer, the second shows `A' as expected, but when `cat >/dev/ttyS0' is run and `A' is typed as input, the output consists of several `A's interspersed with a whole lot of newlines. I fooled with the stty configuration, and managed to get different output, but have not been able to produce correct output. Running getty and picocom seems to suffer from this same problem. My current stty config is as follows:
Code:
speed 38400 baud; rows 24; columns 80;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ^J;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
-echoctl echoke
Anyone know a configuration that corrects this?
If it helps, I have attached the output associated with `cat >/dev/ttyS0' with `A<nl>' as input.