linux 下gprs拨号失败,请高手们给个意见
时间:2006-07-02
来源:互联网
<TABLE class=tableborder1 style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" cellSpacing=1 cellPadding=5 align=center><TBODY><TR><TD class=tablebody1 vAlign=top width=*><TABLE class=tablebody2 style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" width="90%" border=0><TBODY><TR><TD style="FONT-SIZE: 9pt; LINE-HEIGHT: 12pt" width="100%">我在linux下用mc35i 的gprs modem拨号上网,xp下可以上网,但在redhat9下却无法上网。已经弄了两个礼拜了。我感觉脚本应该没什么问题,因为网上的上网脚本很多,我都试了,可一直都不能成功。以下是我拨号时产生的信息:
[root@arm ppp]# tail -f /var/log/messages
Jul 2 16:01:12 arm pppd[2993]: pppd 2.4.1 started by root, uid 0
Jul 2 16:01:13 arm chat[2994]: timeout set to 3 seconds
Jul 2 16:01:13 arm chat[2994]: abort on (\nBUSY\r)
Jul 2 16:01:13 arm chat[2994]: abort on (\nNO ANSWER\r)
Jul 2 16:01:13 arm chat[2994]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jul 2 16:01:13 arm chat[2994]: send (AT^M)
Jul 2 16:01:13 arm chat[2994]: expect (OK)
Jul 2 16:01:13 arm chat[2994]: AT^M^M
Jul 2 16:01:13 arm chat[2994]: OK
Jul 2 16:01:13 arm chat[2994]: -- got it
Jul 2 16:01:13 arm chat[2994]: send (-+++c^M)
Jul 2 16:01:13 arm chat[2994]: expect ()
Jul 2 16:01:13 arm chat[2994]: got it
Jul 2 16:01:13 arm chat[2994]: send (ATH0^M)
Jul 2 16:01:14 arm pppd[2993]: Serial connection established.
Jul 2 16:01:14 arm pppd[2993]: Using interface ppp0
Jul 2 16:01:14 arm pppd[2993]: Connect: ppp0 <--> /dev/ttyS0
Jul 2 16:01:14 arm /etc/hotplug/net.agent: assuming ppp0 is already up
Jul 2 16:01:15 arm pppd[2993]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Jul 2 16:01:45 arm pppd[2993]: LCP: timeout sending Config-Requests
Jul 2 16:01:45 arm pppd[2993]: Connection terminated.
Jul 2 16:01:45 arm pppd[2993]: Receive serial link is not 8-bit clean:
Jul 2 16:01:45 arm pppd[2993]: Problem: all had bit 7 set to 0
Jul 2 16:01:45 arm /etc/hotplug/net.agent: NET unregister event not supported
Jul 2 16:01:46 arm pppd[2993]: Exit.
[root@arm ppp]# ./ppp-on
Press CTRL+C to close the connection at any stage
defining PDP context
Serial connection established.
using channel 17
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
可以看出我的问题应该是收不到远端LCP配置帧,正确的结果应该每发送一条LCP配置帧,就会收到一条返回的配置帧。不知是什么问题。Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0 是什么东西啊?会不会是redhat9内核本身的问题啊?恳请DX给解答一下。谢谢了!
</TD></TR></TBODY></TABLE></TD></TR><TR><TD class=tablebody1 vAlign=center align=middle width=175>[url="http://www.hyesco.com/forum/look_ip.asp?boardid=4&userid=3075&ip=*.*.*.*&action=lookip"][/url] 2006-7-2 21:19:31</TD><TD class=tablebody1 vAlign=center width=*><TABLE cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD vAlign=center align=left> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
[root@arm ppp]# tail -f /var/log/messages
Jul 2 16:01:12 arm pppd[2993]: pppd 2.4.1 started by root, uid 0
Jul 2 16:01:13 arm chat[2994]: timeout set to 3 seconds
Jul 2 16:01:13 arm chat[2994]: abort on (\nBUSY\r)
Jul 2 16:01:13 arm chat[2994]: abort on (\nNO ANSWER\r)
Jul 2 16:01:13 arm chat[2994]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jul 2 16:01:13 arm chat[2994]: send (AT^M)
Jul 2 16:01:13 arm chat[2994]: expect (OK)
Jul 2 16:01:13 arm chat[2994]: AT^M^M
Jul 2 16:01:13 arm chat[2994]: OK
Jul 2 16:01:13 arm chat[2994]: -- got it
Jul 2 16:01:13 arm chat[2994]: send (-+++c^M)
Jul 2 16:01:13 arm chat[2994]: expect ()
Jul 2 16:01:13 arm chat[2994]: got it
Jul 2 16:01:13 arm chat[2994]: send (ATH0^M)
Jul 2 16:01:14 arm pppd[2993]: Serial connection established.
Jul 2 16:01:14 arm pppd[2993]: Using interface ppp0
Jul 2 16:01:14 arm pppd[2993]: Connect: ppp0 <--> /dev/ttyS0
Jul 2 16:01:14 arm /etc/hotplug/net.agent: assuming ppp0 is already up
Jul 2 16:01:15 arm pppd[2993]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Jul 2 16:01:45 arm pppd[2993]: LCP: timeout sending Config-Requests
Jul 2 16:01:45 arm pppd[2993]: Connection terminated.
Jul 2 16:01:45 arm pppd[2993]: Receive serial link is not 8-bit clean:
Jul 2 16:01:45 arm pppd[2993]: Problem: all had bit 7 set to 0
Jul 2 16:01:45 arm /etc/hotplug/net.agent: NET unregister event not supported
Jul 2 16:01:46 arm pppd[2993]: Exit.
[root@arm ppp]# ./ppp-on
Press CTRL+C to close the connection at any stage
defining PDP context
Serial connection established.
using channel 17
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf2ba456c> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
可以看出我的问题应该是收不到远端LCP配置帧,正确的结果应该每发送一条LCP配置帧,就会收到一条返回的配置帧。不知是什么问题。Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0 是什么东西啊?会不会是redhat9内核本身的问题啊?恳请DX给解答一下。谢谢了!
</TD></TR></TBODY></TABLE></TD></TR><TR><TD class=tablebody1 vAlign=center align=middle width=175>[url="http://www.hyesco.com/forum/look_ip.asp?boardid=4&userid=3075&ip=*.*.*.*&action=lookip"][/url] 2006-7-2 21:19:31</TD><TD class=tablebody1 vAlign=center width=*><TABLE cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD vAlign=center align=left> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
作者: pengyifu 发布时间: 2006-07-02
经过仔细检查,发现是因为AT指令没有执行,试了很久之后,现在AT的其它指令都能执行,但是就是执行到 ATDT*99***1# 这一步无法再执行了,没有办法拨号,提示 Connect script failed 都弄了这么久了,还是不行,嵌入式系统的上网更无从实现,希望各位做过gprs的 大哥们过来看看,网上的贴子看了一大堆,可还是不知怎么解决,跪谢各位了!
作者: pengyifu 发布时间: 2006-07-04
版主在么?提示一下行么?在minicom下执行一些初始化命令后再拨号,有垃圾字符出现,可等一会就提示,NO CARRIER ,用脚本拨号也是执行到拨号时无法拨通,提示NO CARRIER ,脚本应该没什么问题,因为就那么几条。请问这可能会是什么问题? 强烈期待高手出现!!!!!!!!!!!!!!!
作者: pengyifu 发布时间: 2006-07-07
可以拨通了 ,是脚本格式有误,但minicom下拨不通,不知为什么?
作者: pengyifu 发布时间: 2006-07-07
这位大哥 ,你的脚本能不能提供一下啊,我也在搞这个,搞了很长时间了还没有通,和你后来说的现象一样,现是一堆字符,然后返回NO CARRIER。我的emeil:[email protected]
作者: chiqi_liu 发布时间: 2006-12-04
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28