None

"Ronald Wiplinger" (ronald@trace.com.tw)
Fri, 04 Apr 97 09:54:53 +0800


My first tries with ISDN ;-)



I take the 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:




--- Thu Apr 3 16:09:17 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed  : CONNECT 115200
Error Control Level : LAPB 
Protocol Link Speed : X.75 64000
Cause    : Normal call clearing
Cause Value   : 16
Bytes Received  : 0
Bytes Sent  : 61
HDLC FCS Error  : 0
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
--- Thu Apr 3 16:18:38 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  : 87
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
--- Thu Apr 3 16:20:36 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed  : CONNECT 115200
Error Control Level : LAPB 
Protocol Link Speed : X.75 64000
Cause    : Normal call clearing
Cause Value   : 16
Bytes Received  : 0
Bytes Sent  : 61
HDLC FCS Error  : 92
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
--- Thu Apr 3 16:36:09 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed  : CONNECT 115200
Error Control Level : 
Protocol Link Speed : PPP 64000
Cause    : Normal call clearing
Cause Value   : 16
Bytes Received  : 0
Bytes Sent  : 0
HDLC FCS Error  : 92
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
--- Thu Apr 3 16:40:41 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed  : CONNECT 115200
Error Control Level : LAPB 
Protocol Link Speed : X.75 64000
Cause    : Normal call clearing
Cause Value   : 16
Bytes Received  : 0
Bytes Sent  : 61
HDLC FCS Error  : 115
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
--- Thu Apr 3 16:47:35 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed  : CONNECT 115200
Error Control Level : 
Protocol Link Speed : PPP 64000
Cause    : Normal call clearing
Cause Value   : 16
Bytes Received  : 0
Bytes Sent  : 0
HDLC FCS Error  : 115
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK
--- Thu Apr 3 16:53:25 1997 ---
OK
ZyXEL ISDN MODEM LINK STATUS REPORT
Connect DTE Speed  : 
Error Control Level : 
Protocol Link Speed : 
Cause    : 
Cause Value   : 0
Bytes Received  : 0
Bytes Sent  : 0
HDLC FCS Error  : 0
HDLC Receive Overrun : 0
HDLC Transmit Underrun: 0
OK


As you can see, the customer tried with different protocols, but my system does not respond to him 
after his login prompt.


The log file of the mgetty shows me:

04/03 16:18:32 ##### failed dev=ttyR1, pid=28224, got signal 1, exiting
04/03 16:18:32 yR1 removing lock file
04/03 16:18:33 yR1 mgetty: experimental test release 0.99-0d
04/03 16:18:33 yR1 check for lockfiles
04/03 16:18:33 yR1 checklock: stat failed, no file
04/03 16:18:33 yR1 locking the line
04/03 16:18:33 yR1 makelock(ttyR1) called
04/03 16:18:33 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/03 16:18:33 yR1 lock made
04/03 16:18:34 yR1 lowering DTR to reset Modem
04/03 16:18:38 yR1 tss: set speed to 38400 (017)
04/03 16:18:38 yR1 tio_set_flow_control( HARD )
04/03 16:18:38 yR1 waiting for line to clear (VTIME), read: 
04/03 16:18:38 yR1 send: ATZ[0d]
04/03 16:18:38 yR1 waiting for ``OK''
04/03 16:18:38 yR1 got: [0d][0a]OK ** found **
04/03 16:18:38 yR1 send: ATS0=0S10=20S25=40E0&K3[0d]
04/03 16:18:38 yR1 waiting for ``OK''
04/03 16:18:38 yR1 got: [0d]
04/03 16:18:38 yR1 CND: OK[0a]ATS0=0S10=20S25=40E0&K3[0d]
04/03 16:18:38 yR1 CND: ATS0=0S10=20S25=40E0&K3[0d][0a]OK ** found **
04/03 16:18:38 yR1 send: AT[0d]
04/03 16:18:38 yR1 do_stat: expect 'OK' ** found **
04/03 16:18:39 yR1 send: ATI3[0d]
04/03 16:18:39 yR1 do_stat: expect 'OK' ** found **
04/03 16:18:39 yR1 waiting for line to clear (VTIME), read: [0a]
04/03 16:18:39 yR1 removing lock file
04/03 16:18:39 yR1 waiting...
04/03 16:19:49 yR1 select returned 1
04/03 16:19:49 yR1 checking lockfiles, locking the line
04/03 16:19:49 yR1 makelock(ttyR1) called
04/03 16:19:49 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/03 16:19:49 yR1 lock made
04/03 16:19:49 yR1 waiting for ``RING''
04/03 16:19:49 yR1 got: RING ** found **
04/03 16:19:49 yR1 send: ATA[0d]
04/03 16:19:49 yR1 waiting for ``CONNECT''
04/03 16:19:49 yR1 got: [0d]
04/03 16:19:49 yR1 CND: OKRING[0a]FM:281471006 (Global Call)[0d]
04/03 16:19:49 yR1 CND: FM:281471006 (Global Call)
04/03 16:19:49 yR1 CND: found: 281471006 (Global Call)[0a][0d][0a]CONNECT ** found **
04/03 16:19:53 yR1 send: 
04/03 16:19:53 yR1 waiting for ``
04/03 16:19:53 yR1 got: 115200/X.75 64000/LAPB[0d]
04/03 16:19:53 yR1 CND: CONNECT 115200/X.75 64000/LAPB
04/03 16:19:53 yR1 CND: found: 115200/X.75 64000/LAPB[0a] ** found **
04/03 16:19:53 yR1 waiting for line to clear (VTIME), read: 
04/03 16:19:53 yR1 looking for utmp entry... (my PID: 28369)
04/03 16:19:53 yR1 utmp + wtmp entry made
04/03 16:19:54 yR1 tio_set_flow_control( HARD )
04/03 16:19:54 yR1 getlogname, read:[0d]
04/03 16:20:30 yR1 input finished with '\r', setting ICRNL ONLCR
04/03 16:20:30 yR1 tio_set_flow_control( HARD )
04/03 16:20:30 yR1 getlogname, read:[0a]
04/03 16:20:30 yR1 tio_set_flow_control( HARD )
04/03 16:20:30 yR1 getlogname, read:NO CARRIER[0d]
04/03 16:20:30 ##### failed dev=ttyR1, pid=28369, got modem error 'NO CARRIER'
04/03 16:20:31 yR1 mgetty: experimental test release 0.99-0d
04/03 16:20:31 yR1 check for lockfiles
04/03 16:20:31 yR1 checklock: no active process has lock, will remove
04/03 16:20:31 yR1 locking the line
04/03 16:20:31 yR1 makelock(ttyR1) called
04/03 16:20:31 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/03 16:20:31 yR1 lock made
04/03 16:20:32 yR1 lowering DTR to reset Modem
04/03 16:20:36 yR1 tss: set speed to 38400 (017)
04/03 16:20:36 yR1 tio_set_flow_control( HARD )
04/03 16:20:36 yR1 waiting for line to clear (VTIME), read: 
04/03 16:20:36 yR1 send: ATZ[0d]
04/03 16:20:36 yR1 waiting for ``OK''
04/03 16:20:36 yR1 got: [0d][0a]OK ** found **
04/03 16:20:36 yR1 send: ATS0=0S10=20S25=40E0&K3[0d]
04/03 16:20:36 yR1 waiting for ``OK''
04/03 16:20:36 yR1 got: [0d]
04/03 16:20:36 yR1 CND: OK[0a]ATS0=0S10=20S25=40E0&K3[0d]
04/03 16:20:36 yR1 CND: ATS0=0S10=20S25=40E0&K3[0d][0a]OK ** found **
04/03 16:20:36 yR1 send: AT[0d]
04/03 16:20:36 yR1 do_stat: expect 'OK' ** found **
04/03 16:20:36 yR1 send: ATI3[0d]
04/03 16:20:36 yR1 do_stat: expect 'OK' ** found **
04/03 16:20:36 yR1 waiting for line to clear (VTIME), read: [0a]
04/03 16:20:36 yR1 removing lock file
04/03 16:20:36 yR1 waiting...
04/03 16:35:24 yR1 select returned 1
04/03 16:35:24 yR1 checking lockfiles, locking the line
04/03 16:35:24 yR1 makelock(ttyR1) called
04/03 16:35:24 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/03 16:35:24 yR1 lock made
04/03 16:35:24 yR1 waiting for ``RING''
04/03 16:35:24 yR1 got: RING ** found **
04/03 16:35:24 yR1 send: ATA[0d]
04/03 16:35:24 yR1 waiting for ``CONNECT''
04/03 16:35:24 yR1 got: [0d]
04/03 16:35:24 yR1 CND: OKRING[0a]FM:281471006 (Global Call)[0d]
04/03 16:35:24 yR1 CND: FM:281471006 (Global Call)
04/03 16:35:24 yR1 CND: found: 281471006 (Global Call)[0a][0d][0a]CONNECT ** found **
04/03 16:35:30 yR1 send: 
04/03 16:35:30 yR1 waiting for ``
04/03 16:35:30 yR1 got: 115200/PPP 64000/NONE[0d]
04/03 16:35:30 yR1 CND: CONNECT 115200/PPP 64000/NONE
04/03 16:35:30 yR1 CND: found: 115200/PPP 64000/NONE[0a] ** found **
04/03 16:35:30 yR1 waiting for line to clear (VTIME), read: 
04/03 16:35:30 yR1 looking for utmp entry... (my PID: 28390)
04/03 16:35:30 yR1 utmp + wtmp entry made
04/03 16:35:31 yR1 tio_set_flow_control( HARD )
04/03 16:35:31 yR1 getlogname, read:
04/03 16:36:03 ##### failed dev=ttyR1, pid=28390, got signal 1, exiting
04/03 16:36:03 yR1 removing lock file
04/03 16:36:03 yR1 mgetty: experimental test release 0.99-0d
04/03 16:36:03 yR1 check for lockfiles
04/03 16:36:04 yR1 checklock: stat failed, no file
04/03 16:36:04 yR1 locking the line
04/03 16:36:04 yR1 makelock(ttyR1) called
04/03 16:36:04 yR1 do_makelock: lock='/usr/spool/uucp/LCK..ttyR1'
04/03 16:36:04 yR1 lock made
04/03 16:36:05 yR1 lowering DTR to reset Modem
04/03 16:36:09 yR1 tss: set speed to 38400 (017)
04/03 16:36:09 yR1 tio_set_flow_control( HARD )
04/03 16:36:09 yR1 waiting for line to clear (VTIME), read: 
04/03 16:36:09 yR1 send: ATZ[0d]
04/03 16:36:09 yR1 waiting for ``OK''
04/03 16:36:09 yR1 got: [0d][0a]OK ** found **
04/03 16:36:09 yR1 send: ATS0=0S10=20S25=40E0&K3[0d]
04/03 16:36:09 yR1 waiting for ``OK''
04/03 16:36:09 yR1 got: [0d]
04/03 16:36:09 yR1 CND: OK[0a]ATS0=0S10=20S25=40E0&K3[0d]
04/03 16:36:09 yR1 CND: ATS0=0S10=20S25=40E0&K3[0d][0a]OK ** found **
04/03 16:36:09 yR1 send: AT[0d]
04/03 16:36:09 yR1 do_stat: expect 'OK' ** found **
04/03 16:36:09 yR1 send: ATI3[0d]
04/03 16:36:09 yR1 do_stat: expect 'OK' ** found **
04/03 16:36:09 yR1 waiting for line to clear (VTIME), read: [0a]
04/03 16:36:09 yR1 removing lock file
04/03 16:36:09 yR1 waiting...





What does it complain about the ttyR1?


Is it a setting on my customers site or on my 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] 


.