mgetty answers but no more.....
Darren Ward (dward@pla.net.au)
Fri, 03 Sep 1999 21:16:03 +1000
Hi all,
I'm after some assistance getting mgetty to do autoppp on my Linux
2.2.10 box at home for a few friends to dial into.
I've tried without autobaud and with autobaus as the following two log
sessions will show.
I've dialed in with just a terminal client and get a few gibberish
characters but it's not the auto_ppp string so the 'issue' getting sent
looks garbled completely.
I';ve locked baud to 115K on the USR Sportster and use the -D parameter
to avoid the fax problems but can't get it to work at all :-(
I've also replaced the modem cable just in case.
I'm in a real fix and need help :-(
Here's the parameters as shown by -x9 in the logfile:
09/03 20:43:52 yS1 mgetty.c compiled at Sep 3 1999, 19:50:11
09/03 20:43:52 yS1 user id: 0, parent pid: 1
09/03 20:43:52 yS1 reading configuration data for port 'ttyS1'
09/03 20:43:52 yS1 reading
/usr/local/etc/mgetty+sendfax/mgetty.config...
09/03 20:43:52 yS1 conf lib: read: 'debug 9'
09/03 20:43:52 yS1 conf lib: read: 'fax-id 49 115 xxxxxxxx'
09/03 20:43:52 yS1 conf lib: read: 'speed 115200'
09/03 20:43:52 yS1 conf lib: read: 'port-owner uucp'
09/03 20:43:52 yS1 conf lib: read: 'port-group uucp'
09/03 20:43:52 yS1 conf lib: read: 'port-mode 0664'
09/03 20:43:52 yS1 key: 'speed', type=0, flags=2, data=115200
09/03 20:43:52 yS1 key: 'switchbd', type=0, flags=1, data=0
09/03 20:43:52 yS1 key: 'direct', type=3, flags=1, data=FALSE
09/03 20:43:52 yS1 key: 'blocking', type=3, flags=1, data=FALSE
09/03 20:43:52 yS1 key: 'port-owner', type=1, flags=3, data=uucp
09/03 20:43:52 yS1 key: 'port-group', type=1, flags=3, data=uucp
09/03 20:43:52 yS1 key: 'port-mode', type=0, flags=3, data=436
09/03 20:43:52 yS1 key: 'toggle-dtr', type=3, flags=1, data=TRUE
09/03 20:43:52 yS1 key: 'toggle-dtr-waittime', type=0, flags=1,
data=500
09/03 20:43:52 yS1 key: 'need-dsr', type=3, flags=1, data=FALSE
09/03 20:43:52 yS1 key: 'data-only', type=3, flags=2, data=TRUE
09/03 20:43:52 yS1 key: 'fax-only', type=3, flags=1, data=FALSE
09/03 20:43:52 yS1 key: 'modem-type', type=1, flags=1, data=auto
09/03 20:43:52 yS1 key: 'modem-quirks', type=0, flags=0, data=(empty)
09/03 20:43:52 yS1 key: 'init-chat', type=2, flags=2, data=
AT&F1&B2&C1H0M0S10=10S25=10 OK
09/03 20:43:52 yS1 key: 'force-init-chat', type=2, flags=1, data=
\d^P^C\d\d\d+++\d\d\d^M\dATQ0V1H0 OK
09/03 20:43:52 yS1 key: 'post-init-chat', type=2, flags=0,
data=(empty)
09/03 20:43:52 yS1 key: 'data-flow', type=4, flags=1, data=1
09/03 20:43:52 yS1 key: 'fax-send-flow', type=4, flags=1, data=7
09/03 20:43:52 yS1 key: 'fax-rec-flow', type=4, flags=1, data=7
09/03 20:43:52 yS1 key: 'modem-check-time', type=0, flags=1, data=3600
09/03 20:43:52 yS1 key: 'rings', type=0, flags=1, data=1
09/03 20:43:52 yS1 key: 'msn-list', type=2, flags=0, data=(empty)
09/03 20:43:52 yS1 key: 'get-cnd-chat', type=2, flags=0, data=(empty)
09/03 20:43:52 yS1 key: 'cnd-program', type=1, flags=0, data=(empty)
09/03 20:43:52 yS1 key: 'answer-chat', type=2, flags=1, data= ATA
CONNECT \c
09/03 20:43:52 yS1 key: 'answer-chat-timeout', type=0, flags=1,
data=80
09/03 20:43:52 yS1 key: 'autobauding', type=3, flags=1, data=FALSE
09/03 20:43:52 yS1 key: 'ringback', type=3, flags=1, data=FALSE
09/03 20:43:52 yS1 key: 'ringback-time', type=0, flags=1, data=30
09/03 20:43:52 yS1 key: 'ignore-carrier', type=3, flags=1, data=FALSE
09/03 20:43:52 yS1 key: 'issue-file', type=1, flags=1, data=/etc/issue
09/03 20:43:52 yS1 key: 'prompt-waittime', type=0, flags=1, data=500
09/03 20:43:52 yS1 key: 'login-prompt', type=1, flags=1, data=@!login:
09/03 20:43:52 yS1 key: 'login-time', type=0, flags=1, data=240
09/03 20:43:52 yS1 key: 'fido-send-emsi', type=3, flags=1, data=TRUE
09/03 20:43:52 yS1 key: 'login-conf-file', type=1, flags=1,
data=login.config
09/03 20:43:52 yS1 key: 'fax-id', type=1, flags=3, data=49 115
xxxxxxxx
09/03 20:43:52 yS1 key: 'fax-min-speed', type=0, flags=1, data=0
09/03 20:43:52 yS1 key: 'fax-max-speed', type=0, flags=1, data=14400
09/03 20:43:52 yS1 key: 'fax-server-file', type=1, flags=0,
data=(empty)
09/03 20:43:52 yS1 key: 'diskspace', type=0, flags=1, data=1024
09/03 20:43:52 yS1 key: 'notify', type=1, flags=1, data=faxadmin
09/03 20:43:52 yS1 key: 'fax-owner', type=1, flags=1, data=uucp
09/03 20:43:52 yS1 key: 'fax-group', type=1, flags=0, data=(empty)
09/03 20:43:52 yS1 key: 'fax-mode', type=0, flags=1, data=432
09/03 20:43:52 yS1 key: 'debug', type=0, flags=2, data=9
09/03 20:43:52 yS1 key: 'statistics-chat', type=2, flags=0,
data=(empty)
09/03 20:43:52 yS1 key: 'statistics-file', type=1, flags=0,
data=(empty)
09/03 20:43:52 yS1 key: 'gettydefs', type=1, flags=1, data=n
09/03 20:43:52 yS1 key: 'term', type=1, flags=0, data=(empty)
09/03 20:43:52 yS1 check for lockfiles
09/03 20:43:52 yS1 checklock: stat failed, no file
09/03 20:43:52 yS1 locking the line
09/03 20:43:52 yS1 makelock(ttyS1) called
09/03 20:43:52 yS1 do_makelock: lock='/var/lock/LCK..ttyS1'
09/03 20:43:52 yS1 lock made
09/03 20:43:53 yS1 tio_get_rs232_lines: status: RTS CTS DSR DTR
9/03 20:43:53 yS1 lowering DTR to reset Modem
09/03 20:43:53 yS1 tss: set speed to 115200 (10002)
09/03 20:43:53 yS1 tio_set_flow_control( HARD )
09/03 20:43:53 yS1 waiting for line to clear (VTIME), read:
09/03 20:43:53 yS1 send: AT&F1&B2&C1H0M0S10=10S25=10[0d]
09/03 20:43:53 yS1 waiting for ``OK''
09/03 20:43:53 yS1 got: AT&F1&B2&C1H0M0S10=10S25=10[0d]
09/03 20:43:53 yS1 CND: AT&F1&B2&C1H0M0S10=10S25=10[0d][0a]OK **
found **
09/03 20:43:54 yS1 send: [0d]
09/03 20:43:54 yS1 waiting for line to clear (VTIME), read:
[0d][0a][0d]
09/03 20:43:54 yS1 removing lock file
09/03 20:43:54 yS1 waiting...
The error logs are as follows:
09/03 20:42:42 yS1 wfr: waiting for ``RING''
09/03 20:42:42 yS1 got: [0d][0a]RING[0d]
09/03 20:42:42 yS1 CND: RING
09/03 20:42:42 yS1 wfr: rc=0, drn=0
09/03 20:42:42 yS1 send: ATA[0d]
09/03 20:42:42 yS1 waiting for ``CONNECT''
09/03 20:42:42 yS1 got: ATA[0d]
09/03 20:42:42 yS1 CND: OKATA[0d][0a]CONNECT ** found **
09/03 20:43:02 yS1 send:
09/03 20:43:02 yS1 waiting for ``_''
09/03 20:43:02 yS1 got: 31200/V34/NONE[0d]
09/03 20:43:02 yS1 CND: CONNECT 31200/V34/NONE
09/03 20:43:02 yS1 CND: found: 31200/V34/NONE[0a] ** found **
09/03 20:43:02 yS1 waiting for line to clear (VTIME), read:
09/03 20:43:02 yS1 looking for utmp entry... (my PID: 157)
09/03 20:43:02 yS1 utmp + wtmp entry made
09/03 20:43:03 yS1 tio_set_flow_control( HARD )
09/03 20:43:03 yS1 print welcome banner (/etc/issue)
09/03 20:43:03 yS1 getlogname (AUTO_PPP),
read:[00][e0][e0][e0][e0][e0][e0][00][00][00][e0][00][00][e0][e0][e0][e0][00][00][e0][e0
][e0][e0][00][00][e0][e0][e0][00][00][e0][e0][e0][e0][e0][00][e0][e0][e0][00][00][00][e0][e0][e0][00][00][00][e0][e0][e0][00][00][e0
][e0][e0][00][e0][e0][00][e0][e0][e0][00][00][e0][e0][e0][00][00][e0][e0][e0][e0][e0][00][00][e0][e0][e0][00][00][00][e0][e0][e0][00
][00][00][00][e0][e0][e0][00][e0][00][e0][e0][00][00][e0]
09/03 20:43:52 ##### failed dev=ttyS1, pid=157, got signal 1, exiting
09/03 20:43:52 yS1 removing lock file
--
and with autobaud:
09/03 18:56:28 yS1 waiting for ``CONNECT''
09/03 18:56:28 yS1 got: ATA[0d]
09/03 18:56:28 yS1 CND: OKATA[0d][0a]CONNECT ** found **
09/03 18:56:48 yS1 send:
09/03 18:56:48 yS1 waiting for ``_''
09/03 18:56:48 yS1 got: 31200/V34/NONE[0d]
09/03 18:56:48 yS1 CND: CONNECT 31200/V34/NONE
09/03 18:56:48 yS1 CND: found: 31200/V34/NONE[0a] ** found **
09/03 18:56:48 yS1 autobauding: switch to 31200 bps
09/03 18:56:48 yS1 speed 31200 not found in table
09/03 18:56:48 yS1 autobauding: cannot parse 'CONNECT 31200/V34/NONE':
Operation not permitted
09/03 18:56:48 yS1 waiting for line to clear (VTIME), read:
09/03 18:56:48 yS1 looking for utmp entry... (my PID: 109)
09/03 18:56:48 yS1 utmp + wtmp entry made
09/03 18:56:49 yS1 tio_set_flow_control( HARD )
09/03 18:56:49 yS1 print welcome banner (/etc/issue)
09/03 18:56:49 yS1 getlogname (AUTO_PPP),
read:[00][e0][e0][e0][e0][e0][e0][00][00][00][e0][00][00][e0][e0][e0][e0][00][00][e0][e0
][e0][00][00][00][e0][e0][e0][00][00][e0][e0][e0][e0][e0][00][e0][e0][e0][00][00][00][e0][e0][e0][00][00][00][e0][e0][e0][00][00][e0
][e0][e0][00][e0][e0][00][e0][e0][e0][00][00][e0][e0][e0][00][00][e0][e0][e0][e0][e0][00][00][e0][e0][e0][00][00][00][e0][e0][e0][00
][00][e0][e0][e0][e0][00][e0][00][00][e0][e0][00][e0][e0][e0][e0][e0][00][00][e0][e0][e0][00][00][00][e0][e0][e0][00][e0][00][e0][e0
][e0][00][00][00][e0][e0][e0][e0][e0][e0][00][e0][e0][e0][e0][00][00][e0][e0][e0][00][00][00][e0][e0][00][00][e0][00][00][e0][00][e0
][00][e0][e0][e0][00][00][e0][00][e0]
09/03 18:57:22 ##### failed dev=ttyS1, pid=109, got signal 1, exiting
09/03 18:57:22 yS1 removing lock file
--