User manual
Confidential, the whole present document is the sole property of Maestro Wireless Solution Ltd.
8
3.2. Activating GPRS Connection
For using AT command driven TCP/UDP connection (described in Chapter 5), you need to first activate the MSP GPRS
connection. There are two AT commands:
- AT+CGATT
- AT+IPCONNECT
3.2.1. AT+CGATT command
This standard AT command is to make the modem to attach to or detach GPRS network. For details please read AT
command document.
Command Syntax
AT+CGATT=<state>
Response Syntax
+CGATT: <state>
Command
Possible responses:
AT+ CGATT?
+CGATT: 0
OK
Note: display current status
AT+ CGATT=1
OK
Note: GPRS attach success
AT+ CGATT =0
OK
Note: GPRS detach success
Defined Values:
<state>
1: attach GPRS
0: detach GPRS.
3.2.2. AT+IPCONNECT command
This MSP AT commands is to make the modem to activate or deactivate GPRS connection. Once IPCONNECT is
success you can perform TCP/UDP connection as described on other chapters. Please read note below on using this
command.
Command Syntax
AT+IPCONNECT = <Bearer>,<Connect>
Response Syntax
+IPCONNECT: <Bearer>,<Connect>
Command
Possible responses:
AT+ IPCONNECT=?
+IPCONNECT: (0-1) , (0-1)
OK
Note: display possible values
AT+ IPCONNECT?
+IPCONNECT: 1,0
OK
Note: display current status
AT+IPCONNECT=1,1
OK
OK
OK
Note: Activate GPRS connection success