关于mc39i模块的GPRS上网问题?

kit   2008-8-25 21:05 楼主
运行ppp-on脚本后,可以连上gprs网络
通过命令cat /var/log/messages查看信息如下:
Aug 25 20:30:28 localhost pppd[18563]: pppd 2.4.1 started by root, uid 0
Aug 25 20:30:29 localhost chat[18564]: timeout set to 3 seconds
Aug 25 20:30:29 localhost chat[18564]: abort on (\nBUSY\r)
Aug 25 20:30:29 localhost chat[18564]: abort on (\nNO ANSWER\r)
Aug 25 20:30:29 localhost chat[18564]: abort on (\nRINGING\r\n\r\nRINGING\r)
Aug 25 20:30:29 localhost chat[18564]: send (rAT^M)
Aug 25 20:30:29 localhost chat[18564]: expect (OK)
Aug 25 20:30:29 localhost chat[18564]: AT^M^M
Aug 25 20:30:29 localhost chat[18564]: OK
Aug 25 20:30:29 localhost chat[18564]:  -- got it
Aug 25 20:30:29 localhost chat[18564]: send (ATH0^M)
Aug 25 20:30:30 localhost chat[18564]: timeout set to 30 seconds
Aug 25 20:30:30 localhost chat[18564]: expect (OK)
Aug 25 20:30:30 localhost chat[18564]: ^M
Aug 25 20:30:30 localhost chat[18564]: ATH0^M^M
Aug 25 20:30:30 localhost chat[18564]: OK
Aug 25 20:30:30 localhost chat[18564]:  -- got it
Aug 25 20:30:30 localhost chat[18564]: send (AT+IPR=38400^M)
Aug 25 20:30:30 localhost chat[18564]: expect (OK)
Aug 25 20:30:30 localhost chat[18564]: ^M
Aug 25 20:30:30 localhost chat[18564]: AT+IPR=38400^M^M
Aug 25 20:30:30 localhost chat[18564]: OK
Aug 25 20:30:30 localhost chat[18564]:  -- got it
Aug 25 20:30:30 localhost chat[18564]: send (AT+CGDCONT=1,IP,CMNET^M)
Aug 25 20:30:30 localhost chat[18564]: expect (OK)
Aug 25 20:30:30 localhost chat[18564]: ^M
Aug 25 20:30:30 localhost chat[18564]: AT+CGDCONT=1,IP,CMNET^M^M
Aug 25 20:30:30 localhost chat[18564]: OK
Aug 25 20:30:30 localhost chat[18564]:  -- got it
Aug 25 20:30:30 localhost chat[18564]: send (AT+CGACT=1,1^M)
Aug 25 20:30:31 localhost chat[18564]: expect (OK)
Aug 25 20:30:31 localhost chat[18564]: ^M
Aug 25 20:30:31 localhost chat[18564]: AT+CGACT=1,1^M^M
Aug 25 20:30:31 localhost chat[18564]: OK
Aug 25 20:30:31 localhost chat[18564]:  -- got it
Aug 25 20:30:31 localhost chat[18564]: send (ATDT*99***1#^M)
Aug 25 20:30:32 localhost chat[18564]: expect (CONNECT)
Aug 25 20:30:32 localhost chat[18564]: ^M
Aug 25 20:30:33 localhost chat[18564]: ATDT*99***1#^M^M
Aug 25 20:30:33 localhost chat[18564]: CONNECT
Aug 25 20:30:33 localhost chat[18564]:  -- got it
Aug 25 20:30:33 localhost chat[18564]: send (^M)
Aug 25 20:30:33 localhost pppd[18563]: Serial connection established.
Aug 25 20:30:33 localhost pppd[18563]: Using interface ppp0
Aug 25 20:30:33 localhost pppd[18563]: Connect: ppp0 <--> /dev/ttyS0
Aug 25 20:30:35 localhost modprobe: modprobe: Can't locate module ppp-compress-21
Aug 25 20:30:35 localhost modprobe: modprobe: Can't locate module ppp-compress-21
Aug 25 20:30:36 localhost pppd[18563]: not replacing existing default route to eth0 [192.168.73.1]
Aug 25 20:30:36 localhost pppd[18563]: local  IP address 10.127.189.237
Aug 25 20:30:36 localhost pppd[18563]: remote IP address 192.168.254.254
最后两行是不是说明已经连上GPRS网络了,192.168.254.254是不是网关,为什么ping 192.168.254.254 ping不通


请大家不吝赐教,小弟不胜感激!!!!!!

回复评论 (6)

怎么没人啊。。
ping外网ping不通啊。。帮忙解决下。。。。
点赞  2008-8-26 09:09
这个问题和当地网络有关。
有的地方可以,有的地方不行,无法给出你答案。。
点赞  2008-9-9 11:53
端口号要置吧!
点赞  2008-9-14 22:13
     
     要ping公网IP
点赞  2008-10-10 08:37
     
     要ping公网IP
点赞  2008-10-10 08:37
楼主你用MC39i,通讯协议是自己开发的么?据说这个模块没有内嵌通讯协议啊
点赞  2008-10-13 09:17
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复