Multi-Tech Systems GPRS (MTMMC-G) User Manual

Page of 203
Chapter 15 – GPRS Commands  
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 
155 
 
GPRS Attach or Detach   +CGATT 
Description: 
The execution command is used to attach the modem to, or detach the modem from, the GPRS service. 
After the command has completed, the modem remains in V.25ter command state. If the modem is 
already in the requested state, the command is ignored and the OK response is returned. If the 
requested state cannot be achieved, an ERROR or +CME ERROR response is returned. Extended 
error responses are enabled by the +CMEE command.  
 
Any active PDP contexts will be automatically deactivated when the attachment state changes to 
detached.  
 
The read command returns the current GPRS service state.  
 
The test command is used for requesting information on the supported GPRS service states. 
Values: <state> 
 
Indicates the state of GPRS attachment
 
0     Detached 
1     Attached 
Combined detach (GPRS and GSM detach in the same network request) 
Other values are reserved and will result in an ERROR response to the execution command. 
Syntax: 
Command Syntax: AT+CGATT 
Command 
Possible Responses
AT+CGATT= [<state>] 
OK
ERROR 
AT+CGATT? +CGATT: 
<state>
OK 
AT+CGATT=? 
+CGATT: (list of supported 
<state>s) 
OK 
AT+CGATT=1 OK