mgetty 0.98
Gert Doering (gert@greenie.muc.de)
Wed, 13 Dec 1995 09:06:39 +0100
Hi,
Jon Lewis wrote:
> > My proposal would be to initialize with AT&F (to get a known state) and
> > just set those things that are different from the factory defaults. On a
> > reasonable modem, this isn't very much anyway.
>
> The part that worries me is this:
> 12/12 23:24:59 yRL lowering DTR to reset Modem
> 12/12 23:25:00 yRL send: AT&F1[0d]
> 12/12 23:25:00 yRL waiting for ``OK'' ** found **
> 12/12 23:25:00 yRL send: ATS2=42S13=1S19=45[0d]
> 12/12 23:25:00 yRL waiting for ``OK'' ** found **
>
> When mgetty says "lowering DTR to reset Modem", does it really mean
> reset, or just hang up.
Depends on the setting of AT&D. If my memory doesn't fail, &D0 is "ignore
DTR", &D1 is "go to command mode", &D2 is "hang up" and &D3 is "reset" (on
the ZyXEL, but most other modems will do this as well).
> According to USR factory defaults, the modem
> will hang up on DTR loss...but not reset. You hvae to set S13=1 for it
> to reset on DTR loss. Setting S13=1 was crucial under getty_ps...made it
> _almost_ always work properly. With S13=1 not in the power-on config, am I
> likely to have the trouble under mgetty that I had with getty_ps?
Hmmm, I'd say, it won't harm to set S13=1, but I don't think that it's
crucial. As long as the modem returns to command mode on DTR drop, it
should work.
> I may just experiment on the modem bank next time I'll be around it for a
> while and see what happens.
Fine, let me know.
As for your original proposal: I don't see yet how you'd do the check "is
the setup still unchanged" -- do you want to compare the full output of
AT&V (ATi4 on the USR, I think) with a "desired" one?
gert
--
//www.muc.de/~gert
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-3545980 <---new!!! gert.doering@physik.tu-muenchen.de