Chinaunix首页 | 论坛 | 博客
  • 博客访问: 237557
  • 博文数量: 27
  • 博客积分: 358
  • 博客等级: 一等列兵
  • 技术积分: 291
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 17:35
文章分类

全部博文(27)

文章存档

2015年(1)

2014年(4)

2013年(6)

2012年(4)

2011年(12)

分类: LINUX

2014-08-08 09:36:14

原文地址:3G 脚本 作者:ImmenseeT

一:中国联通 华为 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 ""
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'
阅读(1931) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~