question with pppd dial gprs model :
ppp option :
Code:
# Usage: root>pppd call gprs
/dev/tty.PL2303-0000105D
115200
nocrtscts
modem
#noauth
novj
novjccomp
debug
nodetach
show-password
usepeerdns
noipdefault
defaultroute
user cmnet
0.0.0.0:0.0.0.0
#ipcp-accept-local
#ipcp-accept-remote
connect '/usr/sbin/chat -s -v -f /etc/ppp/gprs-connect-chat'
and the log is:
Code:
abort on (DELAYED)
abort on (BUSY)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (NO CARRIER)
send (^MAT^M)
expect (OK)
^M
OK
-- got it
send (ATS0=0^M)
expect (OK)
^M
^M
OK
-- got it
send (ATE0V1^M)
expect (OK)
^M
^M
OK
-- got it
send (AT+CGDCONT=1,"IP","cmnet"^M)
expect (OK)
^M
^M
OK
-- got it
send (ATD*99#^M)
expect (CONNECT)
^M
^M
CONNECT
-- got it
send (^M)
Sun Nov 21 15:24:38 2010 : Serial connection established.
Sun Nov 21 15:24:38 2010 : using link 0
Sun Nov 21 15:24:38 2010 : Using interface ppp0
Sun Nov 21 15:24:38 2010 : Connect: ppp0 <--> /dev/tty.PL2303-0000105D
Sun Nov 21 15:24:39 2010 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x6cd9bfe9> <pcomp> <accomp>]
Sun Nov 21 15:24:39 2010 : rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x6cd9bfe9> <pcomp> <accomp>]
Sun Nov 21 15:24:41 2010 : rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <pcomp> <accomp>]
Sun Nov 21 15:24:41 2010 : lcp_reqci: returning CONFACK.
Sun Nov 21 15:24:41 2010 : sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <pcomp> <accomp>]
Sun Nov 21 15:24:41 2010 : sent [PAP AuthReq id=0x1 user="cmnet" password="cmnet"]
Sun Nov 21 15:24:41 2010 : rcvd [PAP AuthAck id=0x1 ""]
Sun Nov 21 15:24:41 2010 : PAP authentication succeeded
Sun Nov 21 15:24:41 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:24:41 2010 : sent [ACSCP ConfReq id=0x1 <ms-dns1 0.0.0.1> <ms-dns1 0.0.0.1>]
Sun Nov 21 15:24:41 2010 : rcvd [IPCP ConfReq id=0x0]
Sun Nov 21 15:24:41 2010 : ipcp: returning Configure-NAK
Sun Nov 21 15:24:41 2010 : sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>]
Sun Nov 21 15:24:41 2010 : rcvd [LCP ProtRej id=0x0 82 35 01 01 00 10 01 06 00 00 00 01 02 06 00 00 00 01]
Sun Nov 21 15:24:41 2010 : rcvd [IPCP ConfReq id=0x0 <addr 0.0.0.0>]
Sun Nov 21 15:24:41 2010 : ipcp: returning Configure-REJ
Sun Nov 21 15:24:41 2010 : sent [IPCP ConfRej id=0x0 <addr 0.0.0.0>]
Sun Nov 21 15:24:41 2010 : rcvd [IPCP ConfReq id=0x0]
Sun Nov 21 15:24:41 2010 : ipcp: returning Configure-ACK
Sun Nov 21 15:24:41 2010 : sent [IPCP ConfAck id=0x0]
Sun Nov 21 15:24:44 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:24:47 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:24:50 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:24:53 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:24:56 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:24:59 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:25:02 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:25:05 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:25:08 2010 : sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Sun Nov 21 15:25:11 2010 : IPCP: timeout sending Config-Requests
Sun Nov 21 15:25:11 2010 : sent [LCP TermReq id=0x2 "No network protocols running"]
Sun Nov 21 15:25:11 2010 : Connection terminated.
how to resolve this?