Neo_M660 AT Command Set
Copyright © Neoway Technology Co., Ltd
98
A.4 Flowchart of AT Commands to Establish TCP Link
Figure A-3
Flowchart of using AT commands to establish TCP link
Send
AT+CSQ\r
Send
AT+CREG?\r
Send
AT+XIIC=1\r
Send
AT+XIIC?\r
Start the module
Query the signal quality.
+CSQ: 99, 99
indicates no signal.
+CSQ: 21,
99
indicates that the RSSI is 21.
Query the network registration status.
The module returns
+CREG: 0,1
or
+CREG:
0,5
, indicating that it registered the network.
Set up a PPP link.
Query the PPP link status.
+XIIC: 1,10.232.165.29
indicates that the
link is set up successfully.
+XIIC: 0,0.0.0.0
indicates the PPP link has
not been set up.
A PPP link is set up
successfully
Startup code
Send
AT\r
ERROR
Send
AT+CCID\r
Return ICCID
ERROR
No signal
Test AT commands
Query the ICCID of the SIM card.
ERROR indicates no SIM card.
If the module returns an ICCID, there is a SIM
card.
Send
AT+CGDCONT=1,"IP","cmnet"\r
Set APN.
APN setting varies with carriers.
CMNET is the APN of China Mobile.
OK
OK
+CREG: 0,1
+CREG: 0,5
Not
registered
ERROR
ERROR
Failed to obtain the IP
address
Valid IP