WCMDA PPP拨号IPCP阶段失败

用华为EM770模块,在TI DM365上需要拨上一个专有3G网络,在IPCP阶段获取IP地址失败,日志信息如下:

Mar 10 11:32:07 notice pppd[3485]: pppd 2.4.4 started by root, uid 0
Mar 10 11:32:09 info chat[3487]: timeout set to 25 seconds
Mar 10 11:32:09 info chat[3487]: abort on (\nBUSY\r)
Mar 10 11:32:09 info chat[3487]: abort on (\nNO ANSWER\r)
Mar 10 11:32:09 info chat[3487]: abort on (\nNO CARRIER\r)
Mar 10 11:32:09 info chat[3487]: abort on (\nRINGING\r\n\r\nRINGING\r)
Mar 10 11:32:09 info chat[3487]: abort on (\nUsername/Password Incorrect\r)
Mar 10 11:32:09 info chat[3487]: send (AT^M)
Mar 10 11:32:09 info chat[3487]: send (ATH0^M)
Mar 10 11:32:09 info chat[3487]: timeout set to 3 seconds
Mar 10 11:32:09 info chat[3487]: expect (OK)
Mar 10 11:32:09 info chat[3487]: ^M
Mar 10 11:32:09 info chat[3487]: OK
Mar 10 11:32:09 info chat[3487]: -- got it 
Mar 10 11:32:09 info chat[3487]: send (AT+CGDCONT=1,'IP','TJWJZD.SPJK.TJAPN'^M)
Mar 10 11:32:09 info chat[3487]: timeout set to 3 seconds
Mar 10 11:32:09 info chat[3487]: expect (OK)
Mar 10 11:32:09 info chat[3487]: ^M
Mar 10 11:32:09 info chat[3487]: ^M
Mar 10 11:32:09 info chat[3487]: OK
Mar 10 11:32:09 info chat[3487]: -- got it 
Mar 10 11:32:09 info chat[3487]: send (ATD*99#^M)
Mar 10 11:32:09 info chat[3487]: expect (CONNECT)
Mar 10 11:32:09 info chat[3487]: ^M
Mar 10 11:32:09 info chat[3487]: ^M
Mar 10 11:32:09 info chat[3487]: ERROR^M
Mar 10 11:32:10 info chat[3487]: ^M
Mar 10 11:32:10 info chat[3487]: CONNECT
Mar 10 11:32:10 info chat[3487]: -- got it 
Mar 10 11:32:10 info chat[3487]: send (c^M)
Mar 10 11:32:10 info pppd[3485]: Serial connection established.
Mar 10 11:32:10 debug pppd[3485]: using channel 74
Mar 10 11:32:10 info pppd[3485]: Using interface ppp0
Mar 10 11:32:10 notice pppd[3485]: Connect: ppp0 <--> /dev/ttyUSB0
Mar 10 11:32:11 debug pppd[3485]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xde6c9e5c> <pcomp> <accomp>]
Mar 10 11:32:11 debug pppd[3485]: rcvd [LCP ConfReq id=0xdb <asyncmap 0x0> <auth chap MD5> <magic 0x115c506> <pcomp> <accomp>]
Mar 10 11:32:11 debug pppd[3485]: sent [LCP ConfAck id=0xdb <asyncmap 0x0> <auth chap MD5> <magic 0x115c506> <pcomp> <accomp>]
Mar 10 11:32:11 debug pppd[3485]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xde6c9e5c> <pcomp> <accomp>]
Mar 10 11:32:11 debug pppd[3485]: rcvd [LCP DiscReq id=0xdc magic=0x115c506]
Mar 10 11:32:11 debug pppd[3485]: rcvd [CHAP Challenge id=0x1 <b81741efbeab7c9a2e96ef6ee8de6c33>, name = "UMTS_CHAP_SRVR"]
Mar 10 11:32:11 debug pppd[3485]: sent [CHAP Response id=0x1 <fa35918d527f79ff3b248208dd3f569e>, name = "wjzd"]
Mar 10 11:32:11 debug pppd[3485]: rcvd [CHAP Success id=0x1 ""]
Mar 10 11:32:11 info pppd[3485]: CHAP authentication succeeded
Mar 10 11:32:11 notice pppd[3485]: CHAP authentication succeeded
Mar 10 11:32:11 debug pppd[3485]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 10 11:32:11 debug pppd[3485]: 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>]
Mar 10 11:32:11 debug pppd[3485]: rcvd [LCP ProtRej id=0xdd 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Mar 10 11:32:11 debug pppd[3485]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Mar 10 11:32:12 debug pppd[3485]: rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Mar 10 11:32:12 debug pppd[3485]: sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]
Mar 10 11:32:12 notice pppd[3485]: Modem hangup
Mar 10 11:32:12 notice pppd[3485]: Connection terminated.
Mar 10 11:32:13 info pppd[3485]: Exit.

脚本配置
ppp-on脚本:
/usr/sbin/pppd debug lock nodetach crtscts modem $DEVICE 115200 $USEPEERDNS noauth \
  noipdefault defaultroute name "$ACCOUNT" password "$PASSWORD" connect $DIALER_SCRIPT

ppp-on-dialer脚本:

/etc/ppp/chat -v \
  TIMEOUT 25 \
  ABORT '\nBUSY\r' \
  ABORT '\nNO ANSWER\r' \
  ABORT '\nNO CARRIER\r' \
  ABORT '\nRINGING\r\n\r\nRINGING\r' \
  ABORT '\nUsername/Password Incorrect\r' \
  SAY "Beginning...\n" \
  '' AT \
  '' ATH0 \
  TIMEOUT 3 \
  OK "AT+CGDCONT=1,'IP','TJWJZD.SPJK.TJAPN'"\
  TIMEOUT 3 \
  SAY "Dialing up...$TELEPHONE\n" \
  OK ATD*99# \
  CONNECT \c \
  SAY "Logging...\n" \

在同样的网络环境下,我使用一个华为的3G路由器就可以拨上专有的3G网络,我想应该是配置的问题,但是很奇怪,我的设备放在深圳就可以拨上,在南京就不可以,而且在南京这边拨一般的3G网络3gnet也可以。
有哪位对于PPP比较熟悉的,麻烦帮我看一下,万分感谢!

作者: codebee11   发布时间: 2011-03-10

遇到了同样的问题!!!太纳闷了,请问楼主最后解决了没???

作者: gavin_xia   发布时间: 2011-03-30