dialling out with vgetty

Wolfram Gloger (wmglo@dent.med.uni-muenchen.de)
02 Jul 1999 1915:08:27 +0200


Christian Wagner <ch.wagner@gmx.net> writes:

> then diald requests the device (tries to dialout):
> 
> so in /var/log/vgetty.ttyS1 following line "appears" which I think to be
> the correct behaviour:
> 
> 	06/30 21:11:07 yS1  lock not made: lock file exists (pid=4673)

Yes this looks fine.

> meanwhile in /var/log/messages I can see diald is doing something
> 
> 	Jun 30 21:11:07 papa diald[4673]: Running connect (pid = 4821).
> 	Jun 30 21:11:09 papa chat[4821]: Failed 
> 	Jun 30 21:11:09 papa diald[4673]: Connect script failed.

Ah, more debug info please.  Please let diald start chat with the `-v'
option, i.e. put sth like

connect "/usr/sbin/chat -v -f /etc/chatscripts/your_script"

into diald.conf.  If your chat script uses something like "+++ATZ" to
initialize the modem, please insert a delay after the last +,
"+++\dATZ", some modems (including mine) don't like the sequence
otherwise.

> Well, sometimes it works, sometimes not.

OK, now it looks like a timing problem with the modem commands to me.
Should be easily fixable by inserting delays and/or adjusting the init
sequence in your chat script.

Regards,
Wolfram.