[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial Line



agetty is a lousy choice for null modems. Use uugetty or mgetty instead.
Make sure that both sides talk at the same speed before getting into auto
baud switching. Check that your null modem cable is *not* and old PC null
modem cable. MS-DOS had a silly bug in the handshake and cables made to
work with that don't have the expected wiring. Refer to the serial-HOWTO
for some details. uugetty works both over null modem and over modem
dialin, I have used that myself. When you use mgetty with dialout you need
to tell megtty to get off the port when chat is building the connection. I
don't know how mgetty does this, but uugetty can do that. It's in its
manuals. I don't remember now. Has to do with the permissions of the port
device, and with locking. It's all there, look it up. For a null modem you
need to have at least crtscts set on that terminal, and maybe other stuff.
RTFM stty.

On Sun, 11 Jan 1998, S. Schapiro (nessy) wrote:

> Hello,
> 
> regarding my last mail: I have now a null-modem cable, but things don't
> work. I played around with cat and dd from and to ttysx and cuax, but to no
> avail. Can anyone please help me to write a script/program to copy data
> between the 2 serial ports. Also agetty doesn't work. I get a login prompt
> and enter a name, but it never gets to the password prompt. I can press
> CTRL-C though and then I return to the login prompt. Seems as if login can't
> write to the ttyS1. Also tried to run bash /dev/ttyS1 with the effect that I
> had program output on the serial line, but no bash-prompt ????
> 
> Any help appresiated.
> 
> Schlomo
> 
> 
> 
> 
>