求教linux下ppp拨号的问题
如题,菜鸟我现在希望在linux下运行脚本,通过GPRS模块来实现拨号。
但是指令发送之后无法建立连接,查找ifconfig也没有创建ppp网口。我的配置有没有错误?gprs已经联网了没有?我拨的是10086可不可行?或者什么原因呢。。
环境:Ubuntu12.04 + gprs模块
附:以下是脚本和运行log
ppp脚本:
#/etc/ppp/peers/tdscdma
#This is pppd script
/dev/ttyUSB0 --我用的是串口0
115200
crtscts
modem
debug
nodetach
usepeerdns
defaultroute
user "cmnet"
connect '/usr/sbin/chat -s -v -f /etc/ppp/tdscdma-connect-chat'
chat脚本:
#/etc/ppp/tdscdma-connect-chat
TIMEOUT 15
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
TIMEOUT 15
'' AT
OK AT+CGATT?
'' ATS0=0
OK ATE0V1
OK AT+CGDCONT=1,"IP","cmnet"
OK ATDT10086#
CONNECT ''
运行时log如下:
sc@-u:~$ sudo pppd call tdscdma
timeout set to 15 seconds
abort on (DELAYED)
abort on (BUSY)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (NO CARRIER)
timeout set to 15 seconds
send (AT^M)
expect (OK)
^MF1: 0000 0000
^MV0: 0000 0000 [0001]
^M00: 0000 0000
^MJump to BL
^M
^M^M
OK
-- got it
send (AT+CGATT?^M)
send (ATS0=0^M)
expect (OK)
^M
^M
RDY^M
^M
+CFUN: 1^M
^M
+CPIN: READY^M
^M
SM BL Ready^M
^@
^MF1: 0000 0000
^MV0: 0000 0000 [0001]
^M00: 0000 0000
^MJump to BL
^M
^M^M
OK
-- got it
send (ATE0V1^M)
expect (OK)
^M
^M
RDY^M
^M
+CFUN: 1^M
^M
+CPIN: READY^M
^M
SM BL Ready^M
^@
^MF1: 0000 0000
^MV0: 0000 0000 [0001]
^M00: 0000 0000
^MJump to BL <--------------以上几行数据代表什么意思,信号不好?
^M
^M^M
OK
-- got it
send (AT+CGDCONT=1,"IP","cmnet"^M)
expect (OK)
^M
^M
RDY^M
^M
+CFUN: 1^M
^M
+CPIN: READY^M
^M
SM BL Ready^M
^@
^MF1: 0000 0000
^MV0: 0000 0000 [0001]
^M00: 0000 0000
^MJump to BL
^M
^M^M
OK
-- got it
send (ATDT10086^M)
expect (CONNECT)
^M
^M
RDY^M
^M
+CFUN: 1^M
^M
+CPIN: READY^M
^M
SM BL Ready^M
^@
^MF1: 0000 0000
^MV0: 0000 0000 [0001]
^M00: 0000 0000
^MJump to BL
^M
^M^M
OK^M
^M
RDY^M
^M
+CFUN: 1^M
^M
+CPIN: READY^M
^M
SM BL Ready^M
^@
^MF1: 0000 0000
^MV0: 0000 0000 [0001]
^M00: 0000 0000
^MJump to BL
^M
^M^M
OK^M
alarm
Failed
Script /usr/sbin/chat -s -v -f /etc/ppp/tdscdma-connect-chat finished (pid 4290), status = 0x3
Connect script failed
sc@-u:~$
求大神帮忙下下,谢谢!!