Hi!
Thank you for the hint regarding the "demand" option. I deactivated
this option. the script do now look like this:
# File: /etc/ppp/peers/chtgprs
#
/dev/ttyACM0
115200
defaultroute
# added option to replace an eventually existing default route
noipdefault
usepeerdns
noauth
#demand
modem
debug
#kdebug 1
persist
crtscts
connect-delay 1000
logfile /var/log/ppp
lcp-echo-failure 4
lcp-echo-interval 65535
connect "/bin/chat -v -f /etc/chatscripts/chtgprs-connect"
disconnect "/bin/chat -v -f /etc/chatscripts/chtgprs-disconnect"
# File: /etc/chatscripts/chtgprs-connect
#
TIMEOUT 20
ABORT 'BUSY'
ABORT 'NO ANSWER'
ABORT 'ERROR'
"" 'ATZ'
OK 'ATE0V1'
OK 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0'
OK 'AT+CGDCONT=1,"IP","gprs.swisscom.ch"'
ABORT 'NO CARRIER'
OK 'ATD*99#'
CONNECT ''
Any connection attempt does still fail but the logfile does now show
two different failing reasons which do alternate without any
regularity:
Log of attempt one:
<150>Jun 23 23:42:35 chat[874]: timeout set to 20 seconds
<150>Jun 23 23:42:35 chat[874]: abort on (BUSY)
<150>Jun 23 23:42:35 chat[874]: abort on (NO ANSWER)
<150>Jun 23 23:42:35 chat[874]: abort on (ERROR)
<150>Jun 23 23:42:35 chat[874]: send (ATZ^M)
<150>Jun 23 23:42:35 chat[874]: expect (OK)
<150>Jun 23 23:42:35 chat[874]: ^M
<150>Jun 23 23:42:35 chat[874]: OK
<150>Jun 23 23:42:35 chat[874]: -- got it
<150>Jun 23 23:42:35 chat[874]: send (ATE0V1^M)
<150>Jun 23 23:42:35 chat[874]: expect (OK)
<150>Jun 23 23:42:35 chat[874]: ^M
<150>Jun 23 23:42:35 chat[874]: ATZ^M^M
<150>Jun 23 23:42:35 chat[874]: OK
<150>Jun 23 23:42:35 chat[874]: -- got it
<150>Jun 23 23:42:35 chat[874]: send (ATQ0 V1 E1 S0=0 &C1 &D2
+FCLASS=0^M)
<150>Jun 23 23:42:35 chat[874]: expect (OK)
<150>Jun 23 23:42:35 chat[874]: ^M
<150>Jun 23 23:42:35 chat[874]: ATE0V1^M^M
<150>Jun 23 23:42:35 chat[874]: OK
<150>Jun 23 23:42:35 chat[874]: -- got it
<150>Jun 23 23:42:35 chat[874]: send (AT
+CGDCONT=1,"IP","gprs.swisscom.ch"^M)
<150>Jun 23 23:42:36 chat[874]: abort on (NO CARRIER)
<150>Jun 23 23:42:36 chat[874]: expect (OK)
<150>Jun 23 23:42:36 chat[874]: ^M
<150>Jun 23 23:42:36 last message repeated 1 time(s)
<150>Jun 23 23:42:36 chat[874]: OK
<150>Jun 23 23:42:36 chat[874]: -- got it
<150>Jun 23 23:42:36 chat[874]: send (ATD*99#^M)
<150>Jun 23 23:42:36 chat[874]: expect (CONNECT)
<150>Jun 23 23:42:36 chat[874]: ^M
<150>Jun 23 23:42:36 chat[874]: AT
+CGDCONT=1,"IP","gprs.swisscom.ch"^M^M
<150>Jun 23 23:42:36 chat[874]: OK^M
<150>Jun 23 23:42:56 chat[874]: alarm
<150>Jun 23 23:42:56 chat[874]: Failed
<27>Jun 23 23:42:56 pppd[867]: Connect script failed
Log of attempt two:
<150>Jun 23 23:43:28 chat[875]: timeout set to 20 seconds
<150>Jun 23 23:43:28 chat[875]: abort on (BUSY)
<150>Jun 23 23:43:28 chat[875]: abort on (NO ANSWER)
<150>Jun 23 23:43:28 chat[875]: abort on (ERROR)
<150>Jun 23 23:43:28 chat[875]: send (ATZ^M)
<150>Jun 23 23:43:29 chat[875]: expect (OK)
<150>Jun 23 23:43:29 chat[875]: ATZ^M^M
<150>Jun 23 23:43:29 chat[875]: OK
<150>Jun 23 23:43:29 chat[875]: -- got it
<150>Jun 23 23:43:29 chat[875]: send (ATE0V1^M)
<150>Jun 23 23:43:29 chat[875]: expect (OK)
<150>Jun 23 23:43:29 chat[875]: ^M
<150>Jun 23 23:43:29 chat[875]: ATE0V1^M^M
<150>Jun 23 23:43:29 chat[875]: OK
<150>Jun 23 23:43:29 chat[875]: -- got it
<150>Jun 23 23:43:29 chat[875]: send (ATQ0 V1 E1 S0=0 &C1 &D2
+FCLASS=0^M)
<150>Jun 23 23:43:29 chat[875]: expect (OK)
<150>Jun 23 23:43:29 chat[875]: ^M
<150>Jun 23 23:43:29 last message repeated 1 time(s)
<150>Jun 23 23:43:29 chat[875]: OK
<150>Jun 23 23:43:29 chat[875]: -- got it
<150>Jun 23 23:43:29 chat[875]: send (AT
+CGDCONT=1,"IP","gprs.swisscom.ch"^M)
<150>Jun 23 23:43:30 chat[875]: abort on (NO CARRIER)
<150>Jun 23 23:43:30 chat[875]: expect (OK)
<150>Jun 23 23:43:30 chat[875]: ^M
<150>Jun 23 23:43:30 chat[875]: AT
+CGDCONT=1,"IP","gprs.swisscom.ch"^M^M
<150>Jun 23 23:43:30 chat[875]: OK
<150>Jun 23 23:43:30 chat[875]: -- got it
<150>Jun 23 23:43:30 chat[875]: send (ATD*99#^M)
<150>Jun 23 23:43:30 chat[875]: expect (CONNECT)
<150>Jun 23 23:43:30 chat[875]: ^M
<150>Jun 23 23:43:31 chat[875]: ATD*99#^M~^?}#@!}!}!} }4}(}"}'}"}"}
&} } } } }%}&";K}#XA~^M
<150>Jun 23 23:43:31 chat[875]: CONNECT
<150>Jun 23 23:43:31 chat[875]: -- got it
<150>Jun 23 23:43:31 chat[875]: send (^M)
<30>Jun 23 23:43:31 pppd[867]: Serial connection established.
<31>Jun 23 23:43:31 pppd[867]: using channel 7
<30>Jun 23 23:43:31 pppd[867]: Using interface ppp0
<29>Jun 23 23:43:31 pppd[867]: Connect: ppp0 <--> /dev/ttyACM0
<31>Jun 23 23:43:32 pppd[867]: sent [LCP ConfReq id=0x2 <asyncmap 0x0>
<magic 0xc9ce8f52> <pcomp> <accomp>]
<31>Jun 23 23:43:32 pppd[867]: rcvd [LCP ConfReq id=0x2 <accomp>
<pcomp> <asyncmap 0x0> <magic 0xa23bcb03>]
<31>Jun 23 23:43:32 pppd[867]: sent [LCP ConfAck id=0x2 <accomp>
<pcomp> <asyncmap 0x0> <magic 0xa23bcb03>]
<31>Jun 23 23:43:32 pppd[867]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>
<magic 0xc9ce8f52> <pcomp> <accomp>]
<31>Jun 23 23:43:32 pppd[867]: sent [LCP EchoReq id=0x0
magic=0xc9ce8f52]
<31>Jun 23 23:43:32 pppd[867]: sent [IPCP ConfReq id=0x2 <addr
0.0.0.0> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
<31>Jun 23 23:43:32 pppd[867]: sent [CCP ConfReq id=0x2 <deflate 15>
<deflate(old#) 15> <bsd v1 15>]
<31>Jun 23 23:43:32 pppd[867]: rcvd [LCP EchoRep id=0x0
magic=0xa23bcb03]
<31>Jun 23 23:43:32 pppd[867]: rcvd [LCP ProtRej id=0x1 80 fd 01 02 00
0f 1a 04 78 00 18 04 78 00 15 03 2f]
<31>Jun 23 23:43:33 pppd[867]: rcvd [LCP TermReq id=0x1]
<30>Jun 23 23:43:33 pppd[867]: LCP terminated by peer
<31>Jun 23 23:43:33 pppd[867]: sent [LCP TermAck id=0x1]
<30>Jun 23 23:43:33 pppd[867]: Hangup (SIGHUP)
<29>Jun 23 23:43:33 pppd[867]: Modem hangup
<29>Jun 23 23:43:33 pppd[867]: Connection terminated.
after a couple of fails pppd does exit. does anyone out there have an
idea of how to solve this problem?
thanks,
swake