3G 脚本



一:中国联通 华为 EM770W模块,wcdma拨号脚本
1.
#/etc/ppp/wcdma-connect-chat
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
'' AT
'OK-+++\c-OK' ATH0
TIMEOUT 5  
''     \rAT
#OK    at%SYSCFG=14,2,3FFFFFFF,1,2
#OK    AT+CGMM
#OK    AT+CLVL=?
#OK    %SPN=?
OK    AT+CGDCONT=1,"IP","3gnet",,0,0
#OK    ATDT*99***1#
OK    ATDT*99#
CONNECT ''
 
2.
#/etc/ppp/peers/wcdma
#This is pppd script, used Huawei EM770W(Union)
/dev/ttyUSB0
115200
crtscts
modem
debug
nodetach
usepeerdns
defaultroute
user "3gnet"
 
二、中国电信 华为模块 EM660 cdma2000拨号脚本
1.
#/etc/ppp/cdma2000-connect-chat
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
''   AT
'OK-+++\c-OK' ATH0
TIMEOUT 40
'' AT
OK ATDT#777
CONNECT ''
 
2.
#/etc/ppp/peers/cdma2000
#This is pppd script, used Huawei EM660
/dev/ttyUSB0
115200
crtscts
modem
debug
nodetach
usepeerdns
defaultroute
user " ctnet@mycdma.cn"
password "vnet.mobi"
#user "card"
#password "card"
0.0.0.0:0.0.0.0
connect '/usr/sbin/chat -s -v -f /etc/ppp/cdma2000-connect-chat'
 
三、中国移动 中兴模块 MU301 tdscdma拨号脚本
1.
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
TIMEOUT 10
"" "ATZ"
"" "ATH0"
"" "AT+CFUN=1"
"" 'AT+CGDCONT=1,"IP","CMNET"'
"" "ATDT*99***1#"
CONNECT ''
 
2.
user cmnet
password any
/dev/ttyUSB0
115200
nodetach
crtscts
show-password
debug
defaultroute
usepeerdns
ipcp-accept-local
ipcp-accept-remote
noccp
connect '/usr/sbin/chat -s -v -f /etc/ppp/tdscdma-connect-chat'
一:中国联通 华为 EM770W模块,wcdma拨号脚本
1.
#/etc/ppp/wcdma-connect-chat
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
'' AT
'OK-+++\c-OK' ATH0
TIMEOUT 5  
''     \rAT
#OK    at%SYSCFG=14,2,3FFFFFFF,1,2
#OK    AT+CGMM
#OK    AT+CLVL=?
#OK    %SPN=?
OK    AT+CGDCONT=1,"IP","3gnet",,0,0
#OK    ATDT*99***1#
OK    ATDT*99#
CONNECT ''
 
2.
#/etc/ppp/peers/wcdma
#This is pppd script, used Huawei EM770W(Union)
/dev/ttyUSB0
115200
crtscts
modem
debug
nodetach
usepeerdns
defaultroute
user "3gnet"
 
二、中国电信 华为模块 EM660 cdma2000拨号脚本
1.
#/etc/ppp/cdma2000-connect-chat
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
''   AT
'OK-+++\c-OK' ATH0
TIMEOUT 40
'' AT
OK ATDT#777
CONNECT ''
 
2.
#/etc/ppp/peers/cdma2000
#This is pppd script, used Huawei EM660
/dev/ttyUSB0
115200
crtscts
modem
debug
nodetach
usepeerdns
defaultroute
user " ctnet@mycdma.cn"
password "vnet.mobi"
#user "card"
#password "card"
0.0.0.0:0.0.0.0
connect '/usr/sbin/chat -s -v -f /etc/ppp/cdma2000-connect-chat'
 
三、中国移动 中兴模块 MU301 tdscdma拨号脚本
1.
TIMEOUT 5
ABORT "DELAYED"
ABORT "BUSY"
ABORT "ERROR"
ABORT "NO DIALTONE"
ABORT "NO CARRIER"
TIMEOUT 10
"" "ATZ"
"" "ATH0"
"" "AT+CFUN=1"
"" 'AT+CGDCONT=1,"IP","CMNET"'
"" "ATDT*99***1#"
CONNECT ''
 
2.
user cmnet
password any
/dev/ttyUSB0
115200
nodetach
crtscts
show-password
debug
defaultroute
usepeerdns
ipcp-accept-local
ipcp-accept-remote
noccp
connect '/usr/sbin/chat -s -v -f /etc/ppp/tdscdma-connect-chat'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值