华为4G模块调试配置文件

来源:互联网 发布:卧龙灵宝进阶数据 编辑:程序博客网 时间:2024/05/02 01:17

华为等 3G、4G模块拨号上网过程分析

http://blog.csdn.net/qq_15079039/article/details/53667360

Linux下pppd拨号脚本配置

http://www.cnblogs.com/doctorqbw/archive/2012/06/19/2555063.html


###############################################

以下为配置文件

###############################################

文件:wcdma_he910:

#/etc/ppp/peers/gprs
# This is pppd script for China Mobile, used Huawei GTM900-B GPRS Module
# Usage:   root>pppd call gprs
/dev/ttyO3
115200
nocrtscts
modem
#noauth
debug
nodetach
#hide-password
usepeerdns
noipdefault
defaultroute
user "CMNET"
0.0.0.0:0.0.0.0
record /tmp/pppdlog
#ipcp-accept-local
#ipcp-accept-remote
#lcp-echo-failure  12
#lcp-echo-interval 3
#noccp
#novj
#novjccomp
#persist
connect '/mnt/platform/sbin/chat -s -v -f /etc/ppp/wcdma-connect-chat'
disconnect '/mnt/platform/sbin/chat -v -f /etc/ppp/wcdma-disconnect-chat'


文件:wcdma-connect-chat:

#/etc/ppp/gprs-connect-chat
# chat script for China Mobile, used HuaWei GTM900-B GPRS module.
TIMEOUT         15
ABORT           "DELAYED"
ABORT           "BUSY"
ABORT           "ERROR"
ABORT           "NO DIALTONE"
ABORT           "NO CARRIER"
TIMEOUT        40
''             \rAT
OK               AT+CGDCONT=1,"IP",""
OK              ATDT*99***1#
CONNECT        ''


文件:wcdma-disconnect-chat:

ABORT "ERROR"
ABORT "NODIALTONE"
SAY "\nSending break to the modem\n"
'' "\K"
'' "+++ATH"
SAY "\nGoodbay\n"


文件:resolv.conf

nameserver 210.21.4.130
nameserver 221.5.88.88

###############################################


1 0
原创粉丝点击