分类:
2012-12-05 17:20:42
原文地址:3G 拨号脚本 作者:UP-NETARM2410
//////////////////////////////////////////////////
AC100 测试OK
1.td-cdma:
debug
lock
/dev/ttyUSB0
115200
user "card"
password "card"
crtscts
show-password
usepeerdns
noauth
noipdefault
novj
novjccomp
noccp
defaultroute
ipcp-accept-local
ipcp-accept-remote
connect '/usr/sbin/chat -v -t3 -f /etc/ppp/peers/td-connect-chat'
disconnect '/usr/sbin/chat -s -v -f /etc/ppp/peers/td-disconnect-chat'
2.td-connect-chat:
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' \rATZ
OK-AT-OK ATD#777
CONNECT \d\c
3.td-disconnect-chat:
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
SAY "\nSending break to the modem\n"
'' "\K"
'' "+++ATH"
SAY "\nGoodbay\n"
//////////////////////////////////////////////////
测试OK
UNA--WCDMA
1.wcdma
debug
nodetach
lock
/dev/ttyACM0
115200
user "3gnet"
crtscts
show-password
usepeerdns
noauth
noipdefault
novj
novjccomp
noccp
defaultroute
ipcp-accept-local
ipcp-accept-remote
connect '/usr/sbin/chat -s -v -f chat-wcdma-connect'
disconnect '/usr/sbin/chat -s -v -f chat-wcdma-disconnect'
2.chat-wcdma-connect
TIMEOUT 5
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' AT
OK ATZ
OK AT+CGDCONT=1,"IP","3gnet",,0,0
OK AT+CFUN=1
OK ATDT*99#
CONNECT \d\c
3.chat-wcdma-disconnect
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
SAY "\nSending break to the modem\n"
'' "\K"
'' "+++ATH"
SAY "\nGoodbay\n"
//////////////////////////////////////////////////////////////////////