# cat zte_mf832s_wcdma 
nodetach
/dev/ttyUSB0
9600
debug
#lock
#modem
#nocrtscts
#require-pap
#usepeerdns
noipdefault
#noauth
#novj
#novjccomp
#noccp
#defaultroute
#ipcp-accept-local
#ipcp-accept-remote
#0.0.0.0:0.0.0.0
#lcp-echo-failure 5
#lcp-echo-interval 30
#persistconnect '/usr/sbin/chat -s -e -v -f /etc/ppp/peers/zte_mf832s_chat_connect'
disconnect '/usr/sbin/chat -s -v -f /etc/ppp/peers/wcdma-chat-disconnect'
*********************************************************************************
# cat zte_mf832s_chat_connect 
TIMEOUT 60
ABORT 'NO CARRIER'
ABORT 'ERROR'
ABORT 'NO DIALTONE'
ABORT 'BUSY'
ABORT 'NO ANSWER'
'' AT
#OK ATS0=0
#OK ATE0V1
#OK AT+CFUN=1
#OK AT+CREG=1OK AT+CGDCONT=1,"IP","cmnet",,0,0
OK ATDT*98*1#
CONNECT /d/c
********************************************
以上是2个拨号脚本,以下是运行结果:
# pppd call zte_mf832s_wcdma 
timeout set to 60 seconds
abort on (NO CARRIER)
abort on (ERROR)
abort on (NO DIALTONE)
abort on (BUSY)
abort on (NO ANSWER)
send (AT^M)
expect (OK)^M
OKOK
 -- got itsend (AT+CGDCONT=1,"IP","cmnet",,0,0^M)
expect (OK)^M^M
+ZICCID: 89860062176497124445
+ZICCID: 89860062176497124445^M^M
OKOK
 -- got itsend (ATDT*98*1#^M)
expect (CONNECT)^M^M
CONNECTCONNECT
 -- got itsend (/d/c^M)Serial connection established.
using channel 22
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x65e1c4fd> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
expect (BORT)
alarm
Failed
disconnect script failed
Modem hangup