Hi! I am having problems with my autologin script for dip since I
upgraded to the latest ZyXEL 6.12 ROM. The dip autologin script works
fine with my old 6.00 ROM.
I am using dip-3.3.7-uri (18 Apr 94), Linux 1.1.11, a ZyXEL U-1496E
modem.
As I understand it, in dip-3.3.7, setting the speed to 57600 means
that the port speed is set to 38400 and then a flag (spd_hi) is set in
the serial driver to use 57600 when 38400 is requested. Basically
elminating the need to run "setserial /dev/cua1 spd_hi" before
starting dip.
I issue the following in the test mode of dip:
<1> port cua1 # set the port
<2> speed 57600 # set the speed
<3> send at\r # sent at\r to the line
<4> wait OK 2 # wait for the string "OK" from the
# line for 2 secconds
Step <4> returns with an error message like "getc: I/O error". After I
exited dip, and use kermit to look at the line /dev/cua1, I find that
it is in a strange state. i.e. typing AT\r does not give me an OK, the
cursor jumps to the beginning of the line and that's it. "+++", "ATZ"
does not help. The only sure way to get out of this state is to power
down and power up the modem.
The occasion when the above with "speed 57600" works is when the
machine is rebooted, and dip is run during bootup.
If I replace step <2> with "speed 38400", everything is fine.
I am lost as to what is causing the problem. Could be the new ROM,
could be a bug in dip which only shows up with the new ROM, or a bug
in the serial driver in Linux. I suspect it's dip's fault, because the
following seems to work.
<1> I run "setserial /dev/cua1 spd_normal", which means when 38400 is
selected it means 38400.
<2> I run kermit asking for speed 38400, and connect to the line.
<3> Type AT\r and then AT&V\r to see the S20 register, which tells me
what DTE speed my modem has detected. It's 38400.
<4> In another window I run "setserial /dev/cua1 spd_hi", which means
when 38400 is selected it means 57600.
<5> Type AT\r and then AT&V\r to see the S20 register. It tells me it
has detected 57600.
I repeat the above with alternating spd_hi and spd_normal, and the
modem always detect the right DTE speed. Therefore, I suspect there is
something strange with the way dip switches the DTE speed that
confuses the modem.
Anybody out there having a similar problem? Any Linuxers that uses dip
and have a ZyXEL modem with the latest ROM?
Thanks in advance!
Delman.
--
______________________________________________________________________
Delman Lee Tel.: +1-215-662-6780
Medical Image Processing Group, Fax.: +1-215-898-9145
University of Pennsylvania,
4/F Blockley Hall, 418 Service Drive,
Philadelphia, PA 19104-6021,
______________________________________________________________________