Rodolfo Medina
2006-01-01 13:35:36 UTC
I'm resuming and taking on the conversation developed in the thread
`Again about gprs', more clearly I hope.
Now: I connected a Nokia 6630 cellular phone to my laptop
with a mini usb cable. Debian Sarge 3.1 is the operating system.
I edited three scripts, that I'm reporting below:
/etc/ppp/peers/nokia, /etc/chatscripts/nokia and /etc/ppp/resolv/nokia.
The problem appears *also* if I put `AT&F' or `AT&F1' in place of `ATZ'
in /etc/chatscripts/nokia; and with the kernel 2.6 and also 2.4.
Sometimes the connection goes well, and this is the /var/log/syslog:
Jan 1 13:40:18 localhost pppd[3211]: pppd 2.4.3 started by root, uid 0
Jan 1 13:40:19 localhost chat[3212]: abort on (BUSY)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO CARRIER)
Jan 1 13:40:19 localhost chat[3212]: abort on (VOICE)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO DIALTONE)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO DIAL TONE)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO ANSWER)
Jan 1 13:40:19 localhost chat[3212]: abort on (DELAYED)
Jan 1 13:40:19 localhost chat[3212]: send (ATZ^M)
Jan 1 13:40:19 localhost chat[3212]: expect (OK)
Jan 1 13:40:19 localhost chat[3212]: ATZ^M^M
Jan 1 13:40:19 localhost chat[3212]: OK
Jan 1 13:40:19 localhost chat[3212]: -- got it
Jan 1 13:40:19 localhost chat[3212]: send
(AT+CGDCONT=1,"IP","web.omnitel.it"^M)
Jan 1 13:40:20 localhost chat[3212]: expect (OK)
Jan 1 13:40:20 localhost chat[3212]: ^M
Jan 1 13:40:20 localhost chat[3212]:
AT+CGDCONT=1,"IP","web.omnitel.it"^M^M
Jan 1 13:40:20 localhost chat[3212]: OK
Jan 1 13:40:20 localhost chat[3212]: -- got it
Jan 1 13:40:20 localhost chat[3212]: send (AT+CGATT=1^M)
Jan 1 13:40:20 localhost chat[3212]: expect (OK)
Jan 1 13:40:20 localhost chat[3212]: ^M
Jan 1 13:40:24 localhost chat[3212]: AT+CGATT=1^M^M
Jan 1 13:40:24 localhost chat[3212]: OK
Jan 1 13:40:24 localhost chat[3212]: -- got it
Jan 1 13:40:24 localhost chat[3212]: send (ATD*99#^M)
Jan 1 13:40:24 localhost chat[3212]: expect (CONNECT)
Jan 1 13:40:24 localhost chat[3212]: ^M
Jan 1 13:40:24 localhost chat[3212]: ATD*99#^M^M
Jan 1 13:40:24 localhost chat[3212]: CONNECT
Jan 1 13:40:24 localhost chat[3212]: -- got it
Jan 1 13:40:24 localhost chat[3212]: send (^M)
Jan 1 13:40:24 localhost pppd[3211]: Serial connection established.
Jan 1 13:40:24 localhost pppd[3211]: using channel 4
Jan 1 13:40:24 localhost pppd[3211]: Using interface ppp0
Jan 1 13:40:24 localhost pppd[3211]: Connect: ppp0 <--> /dev/ttyACM0
Jan 1 13:40:24 localhost hal.hotplug[3216]: could not get mountpoint
for sysfs
Jan 1 13:40:25 localhost pppd[3211]: sent [LCP ConfReq id=0x1
<asyncmap 0x0> <magic 0xadd86771> <pcomp> <accomp>]
Jan 1 13:40:25 localhost pppd[3211]: rcvd [LCP ConfRej id=0x1 <magic
0xadd86771> <pcomp> <accomp>]
Jan 1 13:40:25 localhost pppd[3211]: sent [LCP ConfReq id=0x2
<asyncmap 0x0>]
Jan 1 13:40:25 localhost pppd[3211]: rcvd [LCP ConfAck id=0x2
<asyncmap 0x0>]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP ConfReq id=0x0 <auth
pap> <mru 1500> <asyncmap 0xa0000>]
Jan 1 13:40:27 localhost pppd[3211]: No auth is possible
Jan 1 13:40:27 localhost pppd[3211]: sent [LCP ConfRej id=0x0 <auth
pap>]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP ConfReq id=0x1 <mru
1500> <asyncmap 0xa0000>]
Jan 1 13:40:27 localhost pppd[3211]: sent [LCP ConfAck id=0x1 <mru
1500> <asyncmap 0xa0000>]
Jan 1 13:40:27 localhost pppd[3211]: sent [LCP EchoReq id=0x0
magic=0x0]
Jan 1 13:40:27 localhost pppd[3211]: sent [CCP ConfReq id=0x1 <deflate
15> <deflate(old#) 15> <bsd v1 15>]
Jan 1 13:40:27 localhost pppd[3211]: sent [IPCP ConfReq id=0x1
<compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP EchoRep id=0x0
magic=0x0]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [IPCP ConfReq id=0x0 <addr
10.6.6.6>]Jan 1 13:40:27 localhost pppd[3211]: sent [IPCP ConfAck
id=0x0 <addr 10.6.6.6>]Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP
ProtRej id=0x0 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Jan 1 13:40:27 localhost pppd[3211]: Protocol-Reject for 'Compression
Control Protocol' (0x80fd) received
Jan 1 13:40:28 localhost pppd[3211]: rcvd [IPCP ConfRej id=0x1
<compress VJ 0f 01>]
Jan 1 13:40:28 localhost pppd[3211]: sent [IPCP ConfReq id=0x2 <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 1 13:40:28 localhost pppd[3211]: rcvd [IPCP ConfNak id=0x2 <addr
83.225.250.85> <ms-dns1 83.224.66.134> <ms-dns3 83.224.65.134>]
Jan 1 13:40:28 localhost pppd[3211]: sent [IPCP ConfReq id=0x3 <addr
83.225.250.85> <ms-dns1 83.224.66.134> <ms-dns3 83.224.65.134>]
Jan 1 13:40:28 localhost pppd[3211]: rcvd [IPCP ConfAck id=0x3 <addr
83.225.250.85> <ms-dns1 83.224.66.134> <ms-dns3 83.224.65.134>]
Jan 1 13:40:28 localhost pppd[3211]: Cannot determine ethernet address
for proxy ARP
Jan 1 13:40:28 localhost pppd[3211]: local IP address 83.225.250.85
Jan 1 13:40:28 localhost pppd[3211]: remote IP address 10.6.6.6
Jan 1 13:40:28 localhost pppd[3211]: primary DNS address
83.224.66.134
Jan 1 13:40:28 localhost pppd[3211]: secondary DNS address
83.224.65.134
Jan 1 13:40:28 localhost pppd[3211]: Script /etc/ppp/ip-up started
(pid 3223)
Jan 1 13:40:34 localhost pppd[3211]: Script /etc/ppp/ip-up finished
(pid 3223), status = 0x0
Jan 1 13:49:51 localhost pppd[3211]: Terminating on signal 15
Jan 1 13:49:51 localhost pppd[3211]: Connect time 9.4 minutes.
Jan 1 13:49:51 localhost pppd[3211]: Sent 187962 bytes, received
1167332 bytes.Jan 1 13:49:51 localhost pppd[3211]: Script
/etc/ppp/ip-down started (pid 3284)Jan 1 13:49:51 localhost
pppd[3211]: sent [LCP TermReq id=0x3 "User request"]
Jan 1 13:49:51 localhost pppd[3211]: rcvd [LCP TermAck id=0x3]
Jan 1 13:49:51 localhost pppd[3211]: Connection terminated.
Jan 1 13:49:51 localhost pppd[3211]: Waiting for 1 child processes...
Jan 1 13:49:51 localhost pppd[3211]: script /etc/ppp/ip-down, pid
3284
Jan 1 13:49:51 localhost hal.hotplug[3291]: could not get mountpoint
for sysfs
Jan 1 13:49:51 localhost pppd[3211]: Script /etc/ppp/ip-down finished
(pid 3284), status = 0x0
Jan 1 13:49:51 localhost pppd[3211]: Exit.
. Some other time, instead, the connection doesn't start, and this is
the /var/log/syslog after waiting 1 minute and 30 seconds:
Jan 1 13:27:25 localhost pppd[2487]: pppd 2.4.3 started by root, uid 0
Jan 1 13:27:26 localhost chat[2488]: abort on (BUSY)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO CARRIER)
Jan 1 13:27:26 localhost chat[2488]: abort on (VOICE)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO DIALTONE)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO DIAL TONE)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO ANSWER)
Jan 1 13:27:26 localhost chat[2488]: abort on (DELAYED)
Jan 1 13:27:26 localhost chat[2488]: send (ATZ^M)
Jan 1 13:27:26 localhost chat[2488]: expect (OK)
Jan 1 13:28:11 localhost chat[2488]: alarm
Jan 1 13:28:11 localhost chat[2488]: send (AT^M)
Jan 1 13:28:11 localhost chat[2488]: expect (OK)
Jan 1 13:28:56 localhost chat[2488]: alarm
Jan 1 13:28:56 localhost chat[2488]: Failed
Jan 1 13:28:56 localhost pppd[2487]: Connect script failed
Jan 1 13:28:57 localhost pppd[2487]: Exit.
. Below I'm reporting the three scripts.
Any help will be highly appreciated.
Happy new year,
Rodolfo
/etc/ppp/peers/nokia:
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/nokia"
debug
-crtscts
/dev/ttyACM0
57600
defaultroute
noipdefault
remotename nokia
ipparam nokia
usepeerdns
logfile "/var/log/pppd.log"
/etc/chatscripts/nokia:
ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT DELAYED
'' ATZ
OK-AT-OK AT+CGDCONT=1,"IP","web.omnitel.it"
OK-AT-OK AT+CGATT=1 OK-AT-OK ATD*99#
CONNECT ''
/etc/ppp/resolv/nokia:
nameserver 194.185.97.134
`Again about gprs', more clearly I hope.
Now: I connected a Nokia 6630 cellular phone to my laptop
with a mini usb cable. Debian Sarge 3.1 is the operating system.
I edited three scripts, that I'm reporting below:
/etc/ppp/peers/nokia, /etc/chatscripts/nokia and /etc/ppp/resolv/nokia.
The problem appears *also* if I put `AT&F' or `AT&F1' in place of `ATZ'
in /etc/chatscripts/nokia; and with the kernel 2.6 and also 2.4.
Sometimes the connection goes well, and this is the /var/log/syslog:
Jan 1 13:40:18 localhost pppd[3211]: pppd 2.4.3 started by root, uid 0
Jan 1 13:40:19 localhost chat[3212]: abort on (BUSY)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO CARRIER)
Jan 1 13:40:19 localhost chat[3212]: abort on (VOICE)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO DIALTONE)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO DIAL TONE)
Jan 1 13:40:19 localhost chat[3212]: abort on (NO ANSWER)
Jan 1 13:40:19 localhost chat[3212]: abort on (DELAYED)
Jan 1 13:40:19 localhost chat[3212]: send (ATZ^M)
Jan 1 13:40:19 localhost chat[3212]: expect (OK)
Jan 1 13:40:19 localhost chat[3212]: ATZ^M^M
Jan 1 13:40:19 localhost chat[3212]: OK
Jan 1 13:40:19 localhost chat[3212]: -- got it
Jan 1 13:40:19 localhost chat[3212]: send
(AT+CGDCONT=1,"IP","web.omnitel.it"^M)
Jan 1 13:40:20 localhost chat[3212]: expect (OK)
Jan 1 13:40:20 localhost chat[3212]: ^M
Jan 1 13:40:20 localhost chat[3212]:
AT+CGDCONT=1,"IP","web.omnitel.it"^M^M
Jan 1 13:40:20 localhost chat[3212]: OK
Jan 1 13:40:20 localhost chat[3212]: -- got it
Jan 1 13:40:20 localhost chat[3212]: send (AT+CGATT=1^M)
Jan 1 13:40:20 localhost chat[3212]: expect (OK)
Jan 1 13:40:20 localhost chat[3212]: ^M
Jan 1 13:40:24 localhost chat[3212]: AT+CGATT=1^M^M
Jan 1 13:40:24 localhost chat[3212]: OK
Jan 1 13:40:24 localhost chat[3212]: -- got it
Jan 1 13:40:24 localhost chat[3212]: send (ATD*99#^M)
Jan 1 13:40:24 localhost chat[3212]: expect (CONNECT)
Jan 1 13:40:24 localhost chat[3212]: ^M
Jan 1 13:40:24 localhost chat[3212]: ATD*99#^M^M
Jan 1 13:40:24 localhost chat[3212]: CONNECT
Jan 1 13:40:24 localhost chat[3212]: -- got it
Jan 1 13:40:24 localhost chat[3212]: send (^M)
Jan 1 13:40:24 localhost pppd[3211]: Serial connection established.
Jan 1 13:40:24 localhost pppd[3211]: using channel 4
Jan 1 13:40:24 localhost pppd[3211]: Using interface ppp0
Jan 1 13:40:24 localhost pppd[3211]: Connect: ppp0 <--> /dev/ttyACM0
Jan 1 13:40:24 localhost hal.hotplug[3216]: could not get mountpoint
for sysfs
Jan 1 13:40:25 localhost pppd[3211]: sent [LCP ConfReq id=0x1
<asyncmap 0x0> <magic 0xadd86771> <pcomp> <accomp>]
Jan 1 13:40:25 localhost pppd[3211]: rcvd [LCP ConfRej id=0x1 <magic
0xadd86771> <pcomp> <accomp>]
Jan 1 13:40:25 localhost pppd[3211]: sent [LCP ConfReq id=0x2
<asyncmap 0x0>]
Jan 1 13:40:25 localhost pppd[3211]: rcvd [LCP ConfAck id=0x2
<asyncmap 0x0>]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP ConfReq id=0x0 <auth
pap> <mru 1500> <asyncmap 0xa0000>]
Jan 1 13:40:27 localhost pppd[3211]: No auth is possible
Jan 1 13:40:27 localhost pppd[3211]: sent [LCP ConfRej id=0x0 <auth
pap>]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP ConfReq id=0x1 <mru
1500> <asyncmap 0xa0000>]
Jan 1 13:40:27 localhost pppd[3211]: sent [LCP ConfAck id=0x1 <mru
1500> <asyncmap 0xa0000>]
Jan 1 13:40:27 localhost pppd[3211]: sent [LCP EchoReq id=0x0
magic=0x0]
Jan 1 13:40:27 localhost pppd[3211]: sent [CCP ConfReq id=0x1 <deflate
15> <deflate(old#) 15> <bsd v1 15>]
Jan 1 13:40:27 localhost pppd[3211]: sent [IPCP ConfReq id=0x1
<compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP EchoRep id=0x0
magic=0x0]
Jan 1 13:40:27 localhost pppd[3211]: rcvd [IPCP ConfReq id=0x0 <addr
10.6.6.6>]Jan 1 13:40:27 localhost pppd[3211]: sent [IPCP ConfAck
id=0x0 <addr 10.6.6.6>]Jan 1 13:40:27 localhost pppd[3211]: rcvd [LCP
ProtRej id=0x0 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Jan 1 13:40:27 localhost pppd[3211]: Protocol-Reject for 'Compression
Control Protocol' (0x80fd) received
Jan 1 13:40:28 localhost pppd[3211]: rcvd [IPCP ConfRej id=0x1
<compress VJ 0f 01>]
Jan 1 13:40:28 localhost pppd[3211]: sent [IPCP ConfReq id=0x2 <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Jan 1 13:40:28 localhost pppd[3211]: rcvd [IPCP ConfNak id=0x2 <addr
83.225.250.85> <ms-dns1 83.224.66.134> <ms-dns3 83.224.65.134>]
Jan 1 13:40:28 localhost pppd[3211]: sent [IPCP ConfReq id=0x3 <addr
83.225.250.85> <ms-dns1 83.224.66.134> <ms-dns3 83.224.65.134>]
Jan 1 13:40:28 localhost pppd[3211]: rcvd [IPCP ConfAck id=0x3 <addr
83.225.250.85> <ms-dns1 83.224.66.134> <ms-dns3 83.224.65.134>]
Jan 1 13:40:28 localhost pppd[3211]: Cannot determine ethernet address
for proxy ARP
Jan 1 13:40:28 localhost pppd[3211]: local IP address 83.225.250.85
Jan 1 13:40:28 localhost pppd[3211]: remote IP address 10.6.6.6
Jan 1 13:40:28 localhost pppd[3211]: primary DNS address
83.224.66.134
Jan 1 13:40:28 localhost pppd[3211]: secondary DNS address
83.224.65.134
Jan 1 13:40:28 localhost pppd[3211]: Script /etc/ppp/ip-up started
(pid 3223)
Jan 1 13:40:34 localhost pppd[3211]: Script /etc/ppp/ip-up finished
(pid 3223), status = 0x0
Jan 1 13:49:51 localhost pppd[3211]: Terminating on signal 15
Jan 1 13:49:51 localhost pppd[3211]: Connect time 9.4 minutes.
Jan 1 13:49:51 localhost pppd[3211]: Sent 187962 bytes, received
1167332 bytes.Jan 1 13:49:51 localhost pppd[3211]: Script
/etc/ppp/ip-down started (pid 3284)Jan 1 13:49:51 localhost
pppd[3211]: sent [LCP TermReq id=0x3 "User request"]
Jan 1 13:49:51 localhost pppd[3211]: rcvd [LCP TermAck id=0x3]
Jan 1 13:49:51 localhost pppd[3211]: Connection terminated.
Jan 1 13:49:51 localhost pppd[3211]: Waiting for 1 child processes...
Jan 1 13:49:51 localhost pppd[3211]: script /etc/ppp/ip-down, pid
3284
Jan 1 13:49:51 localhost hal.hotplug[3291]: could not get mountpoint
for sysfs
Jan 1 13:49:51 localhost pppd[3211]: Script /etc/ppp/ip-down finished
(pid 3284), status = 0x0
Jan 1 13:49:51 localhost pppd[3211]: Exit.
. Some other time, instead, the connection doesn't start, and this is
the /var/log/syslog after waiting 1 minute and 30 seconds:
Jan 1 13:27:25 localhost pppd[2487]: pppd 2.4.3 started by root, uid 0
Jan 1 13:27:26 localhost chat[2488]: abort on (BUSY)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO CARRIER)
Jan 1 13:27:26 localhost chat[2488]: abort on (VOICE)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO DIALTONE)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO DIAL TONE)
Jan 1 13:27:26 localhost chat[2488]: abort on (NO ANSWER)
Jan 1 13:27:26 localhost chat[2488]: abort on (DELAYED)
Jan 1 13:27:26 localhost chat[2488]: send (ATZ^M)
Jan 1 13:27:26 localhost chat[2488]: expect (OK)
Jan 1 13:28:11 localhost chat[2488]: alarm
Jan 1 13:28:11 localhost chat[2488]: send (AT^M)
Jan 1 13:28:11 localhost chat[2488]: expect (OK)
Jan 1 13:28:56 localhost chat[2488]: alarm
Jan 1 13:28:56 localhost chat[2488]: Failed
Jan 1 13:28:56 localhost pppd[2487]: Connect script failed
Jan 1 13:28:57 localhost pppd[2487]: Exit.
. Below I'm reporting the three scripts.
Any help will be highly appreciated.
Happy new year,
Rodolfo
/etc/ppp/peers/nokia:
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/nokia"
debug
-crtscts
/dev/ttyACM0
57600
defaultroute
noipdefault
remotename nokia
ipparam nokia
usepeerdns
logfile "/var/log/pppd.log"
/etc/chatscripts/nokia:
ABORT BUSY
ABORT 'NO CARRIER'
ABORT VOICE
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT DELAYED
'' ATZ
OK-AT-OK AT+CGDCONT=1,"IP","web.omnitel.it"
OK-AT-OK AT+CGATT=1 OK-AT-OK ATD*99#
CONNECT ''
/etc/ppp/resolv/nokia:
nameserver 194.185.97.134