当前位置: 技术问答>linux和unix
linux下TD-SCDMA拨号上网脚本问题!
来源: 互联网 发布时间:2016-10-22
本文导语: 我在网上找了一个TD的脚本,并保存在/etc/ppp/chat/下的td2的文件,代码是如下编程:ABORT BUSY ABORT 'NO CARRIER' ABORT 'ERROR' ABORT '+CME ERROR: 100' '' AT+CFUN=5 OK AT+CFUN=1 OK AT+COPS=0 OK AT+CGDCONT=1,"IP","CMNET","",0,0 OK AT+CGEQREQ=1,2,128,128,...
我在网上找了一个TD的脚本,并保存在/etc/ppp/chat/下的td2的文件,代码是如下编程:ABORT BUSY
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT '+CME ERROR: 100'
''
AT+CFUN=5
OK
AT+CFUN=1
OK
AT+COPS=0
OK
AT+CGDCONT=1,"IP","CMNET","",0,0
OK
AT+CGEQREQ=1,2,128,128,64,64,0,0,"0E0","0E0",,0,0
OK
ATD*98*1#
TIMEOUT 20
CONNECT
同样的我在/etc/ppp/peers下保存了一个unicom_ttyUSB0文件,代码是:modem
ttyUSB0
115200
nocrtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat/td2'
mru 1154
mtu 1154
debug
noauth
nodetach
noipdefault
defaultroute
当然我的ttyUSB0的驱动的节点这些,肯定是创建好了的,当然我拨号的时候,打印出的信息如下:root@DevKit8000:/etc/ppp/chat# pppd call unicom_ttyUSB&
pppd: Can't open options file /etc/ppp/peers/unicom_ttyUSB: No such file or dire
ctory
root@DevKit8000:/etc/ppp/chat# pppd call unicom_ttyUSB0
(modify by lhs)serial_open
in main
in chat main
init end
do_file chat_file=/etc/ppp/chat/td2
do_file1
sp=ABORT BUSY
sp2=BUSY
sp2=
hat_send s=BUSY
sp=ABORT 'NO CARRIER'
sp2='NO CARRIER'
sp2=
chat_send s=NO CARRIER
sp2=
Script /usr/sbin/chat -v -f /etc/ppp/chat/td2 finished (pid 1432), status = 0x3
Connect script failed
[1] + Done(2) pppd call unicom_ttyUSB
求助那个大侠做过TD的拨上上网脚本,请问一下,我的情况到底是哪里出错了呢?求解答!!!!!
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT '+CME ERROR: 100'
''
AT+CFUN=5
OK
AT+CFUN=1
OK
AT+COPS=0
OK
AT+CGDCONT=1,"IP","CMNET","",0,0
OK
AT+CGEQREQ=1,2,128,128,64,64,0,0,"0E0","0E0",,0,0
OK
ATD*98*1#
TIMEOUT 20
CONNECT
同样的我在/etc/ppp/peers下保存了一个unicom_ttyUSB0文件,代码是:modem
ttyUSB0
115200
nocrtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat/td2'
mru 1154
mtu 1154
debug
noauth
nodetach
noipdefault
defaultroute
当然我的ttyUSB0的驱动的节点这些,肯定是创建好了的,当然我拨号的时候,打印出的信息如下:root@DevKit8000:/etc/ppp/chat# pppd call unicom_ttyUSB&
pppd: Can't open options file /etc/ppp/peers/unicom_ttyUSB: No such file or dire
ctory
root@DevKit8000:/etc/ppp/chat# pppd call unicom_ttyUSB0
(modify by lhs)serial_open
in main
in chat main
init end
do_file chat_file=/etc/ppp/chat/td2
do_file1
sp=ABORT BUSY
sp2=BUSY
sp2=
hat_send s=BUSY
sp=ABORT 'NO CARRIER'
sp2='NO CARRIER'
sp2=
chat_send s=NO CARRIER
sp2=
Script /usr/sbin/chat -v -f /etc/ppp/chat/td2 finished (pid 1432), status = 0x3
Connect script failed
[1] + Done(2) pppd call unicom_ttyUSB
求助那个大侠做过TD的拨上上网脚本,请问一下,我的情况到底是哪里出错了呢?求解答!!!!!
|
脚本问题,先用minicom把你的at指令手工确认一遍 没问题了再测试。