华为等 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
###############################################