[4190] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Problems with chat over 115'200 Bps serial

daemon@ATHENA.MIT.EDU (Vincenzo Romano)
Mon Aug 26 06:22:46 1996

Date: 	Mon, 26 Aug 1996 12:10:32 +0100 (GMT+0100)
From: Vincenzo Romano <enzo@scuba.peoples.it>
To: Linux ISP mailing list <linuxisp@lightning.com>,
        Linux Net mailing list <linux-net@vger.rutgers.edu>,
        Linux Serial mailing list <linux-serial@vger.rutgers.edu>

Hi all!
I've this strange problem. :-)
I've written a shell script to set up a dialup line.
I don't want to use DIP because I need to do someting that DIP cannot.
The modem is attached to one of the system serial device initialized by
setserial with the spd_vhi flag because I want to use the slattach at
115200 bps. The UART is a perfectly working 16550A.
In the script I need to use the chat tool to initialize the modem.
The problem is that sometimes the chat tool complains me (through the syslogd
facility) with one of these messages:

Can't set terminal parameters: Invalid argument
Can't restore terminal parameters: Invalid argument
Can't get terminal parameters: I/O error [this one being the most common one]

The only way (by now) to fix this problem is to run minicom over that device,
initialize the serial line to 115200-8-N-1 and then quit.
After this, the script gets working fine.
If I use a null-modem cable and comment the chat calls out, everything works
fine: slattach just establishes a 115200 bps CSLIP link over the serial line.
I think that the chat program is not able to properly get control of the
serial line, while minicom can.

Does anyone of you give me some help?
Thanks in advance.

--
Vincenzo Romano


home help back first fref pref prev next nref lref last post