Help with mgetty!
root (antonio@colpos.colpos.mx)
Tue, 09 Nov 1999 19:23:26 -0600
Gert,
I am new at this of dialing to my red hat 6 linux machine using mgetty.
I have been trying
but it seems I cannot make it run. I will appreciate a lot if you have
the patience
to read this mail and help me. I am using a rockwell chip modem. The
modem even dials a
telephone number if I use minicom.
I have this line in my inittab
S0:2345:respawn:/sbin/mgetty /dev/ttyS0
however I cannot see the mgetty running when I do ps -ax (is that
normal??).
I know you have said 1000 times that mgetty should not be run from the
command line. However
I did
/sbin/mgetty -x 9 -r /dev/ttyS0
then I can see mgetty using ps -ax . If I do it, I can see in the
mgetty.log.ttyS0 that, the
login.config line
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login kdebug 7 debug
starts up pppd but the process dies. I attribute this to the fact that
my telephone rings only four times
then automatically hangs up because the modem never answers tha call
(could it be that the modem
does not answer due to the -r option used above? Is there any option to
have the modem answering
as soon as it gets the first ring?
Thanks in advance
Antonio Martinez
NOTE
It says in the help files that the option -r should be used in direct
lines, however i can get
pppd started using it that way. I don get ppd started if i do not use -r
. The end of the mgetty.log.ttyS0
looks like
11/09 17:02:50 yS0 check for lockfiles
11/09 17:02:50 yS0 checklock: stat failed, no file
11/09 17:02:50 yS0 locking the line
11/09 17:02:50 yS0 makelock(ttyS0) called
11/09 17:02:50 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
11/09 17:02:50 yS0 lock made
11/09 17:02:51 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR
11/09 17:02:51 yS0 lowering DTR to reset Modem
11/09 17:02:51 yS0 tss: set speed to 57600 (10001)
11/09 17:02:51 yS0 tio_set_flow_control( HARD )
11/09 17:02:51 yS0 waiting for line to clear (VTIME), read:
11/09 17:02:51 yS0 send: \dATQ0V1H0[0d]
11/09 17:02:52 yS0 waiting for ``OK''
11/09 17:02:52 yS0 got: ATQ0V1H0[0d]
11/09 17:03:11 yS0 CND: ATQ0V1H0[0d][0a]OK ** found **
11/09 17:03:11 yS0 send: ATS0=0Q0&D3&C1[0d]
11/09 17:03:11 yS0 waiting for ``OK''
11/09 17:03:11 yS0 got: [0d]
11/09 17:03:11 yS0 CND: OK[0a]A[00]TS0=0Q0&D3&C1[0d]
11/09 17:03:31 yS0 CND: A[0d]
11/09 17:03:31 yS0 timeout in chat script, waiting for `OK'
11/09 17:03:31 yS0 init chat timed out, trying force-init-chat
11/09 17:03:31 yS0 send: \d[10][03]\d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d]
11/09 17:03:35 yS0 waiting for ``OK''
11/09 17:03:35 yS0 got: [10][03]+++[0d]
11/09 17:03:51 yS0 CND: __+++ATQ0V1H0-
11/09 17:03:55 yS0 timeout in chat script, waiting for `OK'
11/09 17:03:55 yS0 init chat failed, exiting...: Interrupted system
call
11/09 17:03:55 ##### failed in mg_init_data, dev=ttyS0, pid=978
11/09 17:03:55 yS0 removing lock file