##### failed dev=ttyR1 ???
"Ronald Wiplinger" (ronald@trace.com.tw)
Sat, 05 Apr 97 11:06:33 +0800
My first tries with ISDN ;-)
I use the ZyXEL TA128 and connect it to the ttyR1 port, set in mgetty.conf:
port ttyR1
debug 8
init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0 OK
statistics-chat "" AT OK ATI3 OK
statistics-file /var/log/stat.ttyR1
and in the file /etc/ppp/options:
modem
crtscts
lock
in the file /etc/ppp/options.ttyR1
203.67.189.1:203.67.189.101
and finally in the inittab
s1:345:respawn:/usr/local/sbin/mgetty ttyR1 -D
telinit q
That is it!
Will it work? or have I forgotten something?
No, it did not!
The customer used the adapter and dialed up with different settings, he gets the login prompt, he typed in
blind the login name, but nothing happens. There is no syslog, messages or debug entry only the
stats.ttyR1:
--- Sat Apr 5 10:15:16 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed : CONNECT 115200
Error Control Level : LAPB
Protocol Link Speed : X.75 64000
Cause : Destination out of order
Cause Value : 27
Bytes Received : 0
Bytes Sent : 61
HDLC FCS Error : 0
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
--- Sat Apr 5 10:16:21 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed : CONNECT 115200
Error Control Level : LAPD
Protocol Link Speed : V120 64000
Cause : Normal call clearing
Cause Value : 16
Bytes Received : 0
Bytes Sent : 61
HDLC FCS Error : 24
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
log_mg.ttyR1:
04/05 10:10:16 yR1 select returned 0
04/05 10:10:16 yR1 checking if modem is still alive
04/05 10:10:16 yR1 makelock(ttyR1) called
04/05 10:10:16 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/05 10:10:16 yR1 lock made
04/05 10:10:16 yR1 mdm_send: 'AT'
04/05 10:10:16 yR1 got:[0a][0d][0a]OK[0d]
04/05 10:10:16 yR1 mdm_command: string 'OK' -> OK
04/05 10:10:16 yR1 waiting for line to clear (VTIME), read:
04/05 10:10:17 yR1 removing lock file
04/05 10:10:17 yR1 waiting...
04/05 10:12:34 yR1 select returned 1
04/05 10:12:34 yR1 checking lockfiles, locking the line
04/05 10:12:34 yR1 makelock(ttyR1) called
04/05 10:12:34 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/05 10:12:34 yR1 lock made
04/05 10:12:34 yR1 waiting for ``RING''
04/05 10:12:34 yR1 got: RING ** found **
04/05 10:12:34 yR1 send: ATA[0d]
04/05 10:12:34 yR1 waiting for ``CONNECT''
04/05 10:12:34 yR1 got: [0d]
04/05 10:12:34 yR1 CND: OKRING[0a]FM:281471006 (Global Call)[0d]
04/05 10:12:34 yR1 CND: FM:281471006 (Global Call)
04/05 10:12:34 yR1 CND: found: 281471006 (Global Call)[0a][0d][0a]CONNECT ** found **
04/05 10:12:41 yR1 send:
04/05 10:12:41 yR1 waiting for ``
04/05 10:12:41 yR1 got: 115200/X.75 64000/LAPB[0d]
04/05 10:12:41 yR1 CND: CONNECT 115200/X.75 64000/LAPB
04/05 10:12:41 yR1 CND: found: 115200/X.75 64000/LAPB[0a] ** found **
04/05 10:12:41 yR1 waiting for line to clear (VTIME), read:
04/05 10:12:41 yR1 looking for utmp entry... (my PID: 168)
04/05 10:12:41 yR1 utmp + wtmp entry made
04/05 10:12:42 yR1 tio_set_flow_control( HARD )
04/05 10:12:42 yR1 getlogname, read:
04/05 10:15:11 ##### failed dev=ttyR1, pid=168, got signal 1, exiting
04/05 10:15:11 yR1 removing lock file
04/05 10:15:11 yR1 mgetty: experimental test release 1.1.2-Feb20
04/05 10:15:12 yR1 check for lockfiles
04/05 10:15:12 yR1 checklock: stat failed, no file
04/05 10:15:12 yR1 locking the line
04/05 10:15:12 yR1 makelock(ttyR1) called
04/05 10:15:12 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/05 10:15:12 yR1 lock made
04/05 10:15:12 yR1 tio_get_rs232_lines: status: RTS CTS DSR DTR
04/05 10:15:12 yR1 lowering DTR to reset Modem
04/05 10:15:16 yR1 tss: set speed to 38400 (017)
04/05 10:15:16 yR1 tio_set_flow_control( HARD )
04/05 10:15:16 yR1 waiting for line to clear (VTIME), read:
04/05 10:15:16 yR1 send: ATZ[0d]
04/05 10:15:16 yR1 waiting for ``OK''
04/05 10:15:16 yR1 got: [0d][0a]OK ** found **
04/05 10:15:16 yR1 send: ATS0=0S10=20S25=40E0&K3[0d]
04/05 10:15:16 yR1 waiting for ``OK''
04/05 10:15:16 yR1 got: [0d]
04/05 10:15:16 yR1 CND: OK[0a]ATS0=0S10=20S25=40E0&K3[0d]
04/05 10:15:16 yR1 CND: ATS0=0S10=20S25=40E0&K3[0d][0a]OK ** found **
04/05 10:15:16 yR1 send: AT[0d]
04/05 10:15:16 yR1 do_stat: expect 'OK' ** found **
04/05 10:15:16 yR1 send: ATI3[0d]
04/05 10:15:16 yR1 do_stat: expect 'OK' ** found **
04/05 10:15:17 yR1 waiting for line to clear (VTIME), read: [0a]
04/05 10:15:17 yR1 removing lock file
04/05 10:15:17 yR1 waiting...
04/05 10:15:49 yR1 select returned 1
04/05 10:15:49 yR1 checking lockfiles, locking the line
04/05 10:15:49 yR1 makelock(ttyR1) called
04/05 10:15:49 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/05 10:15:49 yR1 lock made
04/05 10:15:49 yR1 waiting for ``RING''
04/05 10:15:49 yR1 got: RING ** found **
04/05 10:15:49 yR1 send: ATA[0d]
04/05 10:15:49 yR1 waiting for ``CONNECT''
04/05 10:15:49 yR1 got: [0d]
04/05 10:15:49 yR1 CND: OKRING[0a]FM:281471006 (Global Call)[0d]
04/05 10:15:49 yR1 CND: FM:281471006 (Global Call)
04/05 10:15:49 yR1 CND: found: 281471006 (Global Call)[0a][0d][0a]CONNECT ** found **
04/05 10:15:50 yR1 send:
04/05 10:15:50 yR1 waiting for ``
04/05 10:15:50 yR1 got: 115200/V120 64000/LAPD[0d]
04/05 10:15:50 yR1 CND: CONNECT 115200/V120 64000/LAPD
04/05 10:15:50 yR1 CND: found: 115200/V120 64000/LAPD[0a] ** found **
04/05 10:15:50 yR1 waiting for line to clear (VTIME), read:
04/05 10:15:51 yR1 looking for utmp entry... (my PID: 4103)
04/05 10:15:51 yR1 utmp + wtmp entry made
04/05 10:15:51 yR1 tio_set_flow_control( HARD )
04/05 10:15:51 yR1 getlogname (AUTO_PPP), read:
04/05 10:16:15 ##### failed dev=ttyR1, pid=4103, got signal 1, exiting
04/05 10:16:15 yR1 removing lock file
04/05 10:16:17 yR1 mgetty: experimental test release 1.1.2-Feb20
04/05 10:16:17 yR1 check for lockfiles
04/05 10:16:17 yR1 checklock: stat failed, no file
04/05 10:16:17 yR1 locking the line
04/05 10:16:17 yR1 makelock(ttyR1) called
04/05 10:16:17 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/05 10:16:17 yR1 lock made
04/05 10:16:17 yR1 tio_get_rs232_lines: status: RTS CTS DSR DTR
04/05 10:16:17 yR1 lowering DTR to reset Modem
04/05 10:16:21 yR1 tss: set speed to 38400 (017)
04/05 10:16:21 yR1 tio_set_flow_control( HARD )
04/05 10:16:21 yR1 waiting for line to clear (VTIME), read:
04/05 10:16:21 yR1 send: ATZ[0d]
04/05 10:16:21 yR1 waiting for ``OK''
04/05 10:16:21 yR1 got: [0d][0a]OK ** found **
04/05 10:16:21 yR1 send: ATS0=0S10=20S25=40E0&K3[0d]
04/05 10:16:21 yR1 waiting for ``OK''
04/05 10:16:21 yR1 got: [0d]
04/05 10:16:21 yR1 CND: OK[0a]ATS0=0S10=20S25=40E0&K3[0d]
04/05 10:16:21 yR1 CND: ATS0=0S10=20S25=40E0&K3[0d][0a]OK ** found **
04/05 10:16:22 yR1 send: AT[0d]
04/05 10:16:22 yR1 do_stat: expect 'OK' ** found **
04/05 10:16:22 yR1 send: ATI3[0d]
04/05 10:16:22 yR1 do_stat: expect 'OK' ** found **
04/05 10:16:22 yR1 waiting for line to clear (VTIME), read: [0a]
04/05 10:16:22 yR1 removing lock file
04/05 10:16:22 yR1 waiting...
What does it complain about the ttyR1?
When I use dip, I can dialout, so I asume that the cabeling and the RS232 adapter is ok.
Is it a setting on my (Linux) or on the remote caller (Win95) site that is missing?
.... for more information use:
* http://www.trace.com.tw * gopher://gopher.trace.com.tw
* ftp://ftp.trace.com.tw * telnet://bbs.trace.com.tw
* sticky: Ronald gate.trace.com.tw (the very fast way to reach me)
* for talk, InterCom (picture phone) ronald@gate.trace.com.tw
* Tel: +886 2 609-0652, Fax: +886 2 600-0132, NET: +886 2 600-2318
Ronald Wiplinger [Taipei, 24h online]
.