1. AT Commands For Open/Close Network
No | Command | Description |
L1804 | AT+CNETSTART | Open network |
L1805 | AT+CNETSTOP | Close network |
L1806 | AT+CNETIPADDR | Inquire PDP address |
L1804 AT+CNETSTART Open Network
R) AT+CNETSTART? |
+CNETSTART: <net_stat> OK or ERROR |
E) AT+CNETSTART |
OK +CNETSTART: <err> or +CNETSTART: <err> OK or +CNETSTART: <err> ERROR or ERROR |
<net_state> |
a numeric parameter that indicates the state of PDP context activation: 0 network close (deactivated) 1 network is opening 2 network open(activated) 3 network is closing |
<err> | The result of operation, 0 is success, other value is failure. |
Example |
AT+CNETSTART? +CNETSTART: 0 OK AT+CNETSTART OK +CNETSTART: 0 |
L1805 AT+CNETSTOP Close Network
E) AT+CNETSOP |
OK +CNETSTOP: <err> or +CNETSTOP: <err> OK or +CNETSTOP: <err> ERROR or ERROR |
<err> | The result of operation, 0 is success, other value is failure. |
Example |
AT+CNETSTOP +CNETSTOP: 0 OK |
L1806 AT+CNETIPADDR Inquire PDP Address
R) AT+CNETIPADDR? |
+CNETIPADDR: <ip_address> OK or +CNETIPADDR: <err_info> ERROR or ERROR |
<ip_address> | A string parameter that identifies the IP address of current active socket PDP. |
<err_info> | A string parameter that displays the cause of occurring error. |
Example |
AT+CNETIPADDR? +CNETIPADDR: 10.71.155.118 OK |
2. Unsolicited Open/Close Network Command <err> Codes
Code of <err> | Description |
0 | Operation succeeded |
1 | Unknown error |
2 | Open network failed |
3 | Close network failed |
4 | Network not opened |
5 | Operation not support |
6 | Busy |
7 | Network has been opened |
8 | Network is also in use |