Linux3.0.1内核+BGS2-E的GPRS模块,PPP拨号上网一直有问题

maryplum 2012-04-17 05:51:02
采用脚本拨号的方法。
脚本是我从网上搜的。现在拨号拨不上去。。。网上关于BGS2-E的资料也很少
[root@maryplum]# /usr/sbin/pppd call gprs
timeout set to 5 seconds
abort on (\nBUSY\r)
abort on (\nERROR\r)
abort on (\nNO ANSWER\r)
abort on (\nNO CARRIER\r)
abort on (\nNO DIALTONE\r)
abort on (\nRINGING\r\n\r\nRINGING\r)
timeout set to 5 seconds
send (^MAT^M)
expect (OK)

^M
OKOK
-- got it

send (ATE0^M)
timeout set to 60 seconds
Press CTRL-C to break the connection process.
expect (OK)

^M

^M
OKOK
-- got it

send (AT+CGREG=1^M)
expect (OK)

^M

^M
OKOK
-- got it

send (AT+CGATT=1^M)
expect (OK)

^M

^M
OKOK
-- got it

send (AT+CGDCONT=1,"IP","CMNET"^M)
expect (OK)

^M

^M
OKOK
-- got it

send (AT+CGQMIN=1,0,0,0,0,31^M)
expect (OK)

^M

^M
OKOK
-- got it

send (AT+CGACT=1,1^M)
expect (OK)

^M

^M
OKOK
-- got it

send (ATDT*99***1#^M)
timeout set to 60 seconds
Waiting for connect...
WAITING...
expect (CONNECT'')

^M

^M
CONNECT
CONNECT^M
~^?}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&^R^W^_C}#}%B#}%_U~~^?}#@!}!}#} }9}"}&} }*
} } }~^?}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&^R^W^_C}#}%B#}%_U~~^?}#@!}!}#} }9}"}
&} }*} } }
'}"}(}"}%}&^R^W^_C}#}%B#}%_U~~^?}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&^R^W^_C}#}%B
#}%_U~~'}"}(}"}%}&^R^W^_C}#}%B#}%_U~~^?}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&^R^W^
。。。。
。。。。
...全文
115 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
maryplum 2012-05-17
  • 打赏
  • 举报
回复
解决的办法 是脚本里面的 CONNECT 上面要加 双引号。
看到的资料里面没有要加的。
但是我的不加拨号到最后显示的就是乱码。
也算是找到解决方法了

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧