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) 
156 
 
PDP Context Activate or Deactivate   +CGACT 
Description: 
The execution command activates or deactivates the specified PDP context (s). After the command has 
completed, the modem remains in V.25ter command state. If any PDP context is already in the 
requested state, the state for that context remains unchanged.  
 
If the requested state for any specified context cannot be achieved, an ERROR or +CME ERROR 
response is returned. Extended error responses are enabled by the +CMEE command. 
 
If the modem is not GPRS attached when the activation form of the command is executed, the modem 
first performs a GPRS attach and them attempts to activate the specified contexts. If the attach fails 
then the modem responds with ERROR or, if extended error responses are enabled, with the 
appropriate failure-to-attach error message. 
 
If no <cid>s are specified the activation form of the command activates the first activable defined 
contexts. If no <cid>s are specified the deactivation form of the command deactivates all active 
contexts. 
 
One PDP context can be activated at the same time.  
 
The read command returns the current activation states for all the defined PDP contexts.  
 
The test command is used for requesting information on the supported PDP context activation states. 
Note: See “Full GPRS AT Command Examples” later in this chapter. 
Values: 
<state>  Indicates the state of PDP context activation 
0    Deactivated 
1    Activated 
Other values are reserved and will result in an ERROR response to the execution command. 
<cid>  A numeric parameter which specifies a particular PDP context. 
 
Before a context can be activated, the modem must be attached to the GPRS network by 
performing an automatic GPRS attach. 
Note:   If a GPRS PPP session is already running, the setting of a CSD (GSM data call) is not 
supported. 
Syntax: 
Command Syntax: AT+CGACT
 
Command 
Possible Response(s)
AT+CGACT=[<state> 
[,<cid>[,<cid>[,…]]]] 
OK
ERROR 
AT+CGACT? 
+CGACT: <cid>, <state>
[<CR><LF>+CGACT: <cid>, <state> 
[...]] 
OK 
AT+CGACT=? 
+CGACT: (list of supported <state>s)
OK 
AT+CGACT=1,1 OK
AT+CGACT? +CGACT: 
1,1
OK 
AT+CGACT=? +CGACT: 
(0-1)
OK