~ # quectel-pppd.sh
quectel-pppd options in effect:
devname /dev/ttyUSB3 # (default)
apn 3gnet # (default)
user user # (default)
password passwd # (default)
~ # pppd options in effect:
debug # (from command line)
nodetach # (from command line)
dump # (from command line)
noauth # (from command line)
user user # (from command line)
password ?????? # (from command line)
/dev/ttyUSB3 # (from command line)
115200 # (from command line)
lock # (from command line)
connect ''chat -s -v ABORT BUSY ABORT \"NO CARRIER\" ABORT \"NO DIALTONE\" ABORT ERROR ABORT \"NO ANSWER\" TIMEOUT 30 \"\" AT OK ATE0 OK ATI\\;+CSUB\\;+CSQ\\;+CPIN?\\;+COPS?\\;+CGREG?\\;\\&D2 OK AT+CGDCONT=1,\\\"IP\\\",\\\"3gnet\\\",,0,0 OK ATD*99# CONNEC
# (from command line)
disconnect chat -s -v ABORT ERROR ABORT \"NO DIALTONE\" SAY \"\\nSending break to the modem\\n\" \"\" +++ \"\" +++ \"\" +++ SAY \"\\nGood bay\\n\" # (from command line)
nocrtscts # (from command line)
modem # (from command line)
novj # (from command line)
novjccomp # (from command line)
ipcp-accept-local # (from command line)
ipcp-accept-remote # (from command line)
noipdefault # (from command line)
ipcp-max-configure 30 # (from command line)
defaultroute # (from command line)
usepeerdns # (from command line)
noccp # (from command line)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
-- got it
send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
-- got it
send (ATI;+CSUB;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EC20F^M
Revision: EC20CEFDR02A07M4G^M
^M
SubEdition: V03^M
^M
+CSQ: 25,99^M
^M
+CPIN: READY^M
^M
+COPS: 0,0,"CHN-UNICOM",7^M
^M
+CGREG: 0,1^M
^M
OK
-- got it
send (AT+CGDCONT=1,"IP","3gnet",,0,0^M)
expect (OK)
^M
^M
OK
-- got it
send (ATD*99#^M)
expect (CONNECT)
^M
^M
CONNECT
-- got it
Script ''chat -s -v ABORT BUSY ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT ERROR ABORT "NO ANSWER" TIMEOUT 30 "" AT OK ATE0 OK ATI\;+CSUB\;+CSQ\;+CPIN?\;+COPS?\;+CGREG?\;\&D2 OK AT+CGDCONT=1,\"IP\",\"3gnet\",,0,0 OK ATD*99# CONNECT'' finished (pid 1058), status = 0x0
Serial connection established.
using channel 6
Using inteRFace ppp0
Connect: ppp0 /dev/ttyUSB3
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfReq id=0x0 ]
sent [LCP ConfAck id=0x0 ]
rcvd [LCP ConfAck id=0x1 ]
rcvd [LCP DiscReq id=0x1 magic=0xd1e91b1f]
rcvd [CHAP Challenge id=0x1 <7ae6e17cc3ca65a0bf9f18bf471bce06>, name = "UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <97e1fb1b7301b472a6cc317ab1eeccb4>, name = "user"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 ]
rcvd [IPCP ConfReq id=0x0]
sent [IPCP ConfNak id=0x0 ]
rcvd [IPCP ConfNak id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
rcvd [IPCP ConfReq id=0x1]
sent [IPCP ConfAck id=0x1]
rcvd [IPCP ConfAck id=0x2 ]
Could not determine remote IP address: defaulting to 10.64.64.64
local IP address 10.107.55.175
remote IP address 10.64.64.64
primary DNS address 113.106.88.4
secondary DNS address 112.95.235.4
Script /etc/ppp/ip-up started (pid 1062)
Script /etc/ppp/ip-up finished (pid 1062), status = 0x0