GPRS / pppd
From: 132.a.dabei (123.a.dabei_at_gmx.at)
Date: 07/17/05
- Next message: Timothy Murphy: "Re: strange ipv6 messages after disablling in kernel"
- Previous message: Michael Badt: "Help: Mandriva drops DHCP IP address nor can't ping to local host"
- Next in thread: Dan: "Re: GPRS / pppd"
- Reply: Dan: "Re: GPRS / pppd"
- Reply: Clifford Kite: "Re: GPRS / pppd"
- Maybe reply: news_at_absamail.co.za: "Re: GPRS / pppd"
- Maybe reply: news_at_absamail.co.za: "Re: GPRS / pppd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Jul 2005 10:25:09 -0700
Hello World,
I've got a few problems / questions about dialing into a gprs network.
Here are my files:
1. /etc/ppp/options.gprs:
/dev/modem
debug
115200
defaultroute
ipcp-accept-local
ipcp-accept-remote
noauth
novj
connect 'chat -v -f chat.gprs'
user GPRS@A1plus.at
usepeerdns
mru 1500
mtu 1500
2. /etc/ppp/chat.gprs:
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 12
OK ATE1
OK 'AT+CPIN=3509'
OK 'AT+cgdcont=1,"IP","A1.net"'
OK ATD*99***1#
CONNECT '\d\c'
3. /etc/ppp/chap-secrets:
"GPRS@A1plus.at" * "test"
When trying to dial-in with the scripts above the peer rejects me with
the follwing error:
linux:/etc/ppp # pppd file /etc/ppp/options.gprs
AT
OK
ATE1
OK
AT+cgdcont=1,"IP","A1.net"
OK
Serial connection established.
using channel 21
Using interface ppp0
Connect: ppp0 <--> /dev/modem
rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>
<auth pap>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xea8db58a> <pcomp>
<accomp>]
sent [LCP ConfNak id=0x1 <auth eap>]
rcvd [LCP ConfRej id=0x1 <magic 0xea8db58a>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>
<auth pap>]
sent [LCP ConfNak id=0x2 <auth eap>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>
<auth pap>]
sent [LCP ConfNak id=0x3 <auth eap>]
rcvd [LCP ConfReq id=0x4 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>
<auth pap>]
sent [LCP ConfNak id=0x4 <auth eap>]
rcvd [LCP ConfReq id=0x5 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>
<auth pap>]
sent [LCP ConfNak id=0x5 <auth eap>]
rcvd [LCP ConfReq id=0x6 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>
<auth pap>]
sent [LCP ConfRej id=0x6 <auth pap>]
rcvd [LCP ConfReq id=0x7 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfAck id=0x7 <mru 1500> <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x0]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3
0.0.0.0>]
rcvd [LCP TermReq id=0x8]
LCP terminated by peer
sent [LCP TermAck id=0x8]
rcvd [LCP EchoRep id=0x0 magic=0x0]
Modem hangup
Connection terminated.
I am not sure what that really means and I am irritated, because this
rejection only happens with one of my two modems:
It happens with my WaveCom Wismo Quik Q2501B (on baudrate 115200) but
not with my Falcom Twist (on baudrate 19200). I used exactly the same
scripts (except for the baudrate in "options.gprs").
Another question is:
How to submit a pin-code within the script?
If I re-submit the pin-code, the script fails:
linux:/etc/ppp # pppd file /etc/ppp/options.gprs
AT
OK
ATE1
OK
AT+CPIN=3509
ERROR
Connect script failed
I know that "at+cpin?" tells me if the pincode was alread submitted,
but I don't know how to build that into my scripts.
I would appreciate if someone was able to help me
yours
Herwig
- Next message: Timothy Murphy: "Re: strange ipv6 messages after disablling in kernel"
- Previous message: Michael Badt: "Help: Mandriva drops DHCP IP address nor can't ping to local host"
- Next in thread: Dan: "Re: GPRS / pppd"
- Reply: Dan: "Re: GPRS / pppd"
- Reply: Clifford Kite: "Re: GPRS / pppd"
- Maybe reply: news_at_absamail.co.za: "Re: GPRS / pppd"
- Maybe reply: news_at_absamail.co.za: "Re: GPRS / pppd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]