Specifications
Chapter 11 – GPRS Commands
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371B) 143
Chapter 11. GPRS Commands
This chapter describes AT Commands that a TE (Terminal Equipment) may use to control the Multi-Tech wireless
modem acting as GPRS Mobile Termination (MT). Please use “Using GPRS AT commands (Examples)” as a first
guidance.
11.1 AT+CGACT PDP Context Activate or Deactivate
Description: The test command is used for requesting information on the supported PDP context activation
states.
The read command returns the current activation states for all the defined PDP contexts.
The write command is used to activate or deactivate the specified PDP context(s). After the
command has completed, the MT remains in V.250 command state. If any PDP context is
already in the requested state, the state for that context remains unchanged. If the MT is not
GPRS attached when the activation form of the command is executed, the MT first performs a
GPRS attach and then attempts to activate the specified contexts. If no <cid>s are specified the
activation/deactivation form of the command activates/deactivates all defined contexts.
Test Command Syntax: AT+CGACT=?
Response: +CGACT: (list of supported <state>s)
OK
Read Command Syntax: AT+CGACT?
Response: +CGACT: <cid>, <state>
[+CGACT: <cid>, <state>]
...
OK
Write Command Syntax: AT+CGACT=[<state>[, <cid>[, <cid>]]]
Response: OK
ERROR
+CME ERROR
Parameter Descriptions:
<state>
Indicates the state of PDP context activation.
0 deactivated
1 activated. Default.
<cid>
PDP Context Identifier is a numeric parameter which specifies a particular PDP context definition. The parameter
is local to the TE-MT interface and is used in other PDP context related commands.
1...2
Notes:
• ATH will deactivate any PDP context.
• If the MT is in dedicated mode, the write command returns “+CME ERROR: operation temporary not allowed”.
• A maximum of 2 contexts can be activated at the same time, no matter on which interface. Trying to activate
more than 2 contexts will cause “+CME ERROR: operation temporary not allowed”. Note that, depending on the
provider, the number of activated contexts may be further restricted.
Remember that contexts may be activated implicitly by using the ATD*98# or ATD*99# GPRS compatibility
commands without specifying a <cid>.
• If an activated context will be deactivated without using the command AT+CGACT, then the result code “NO
CARRIER” will be issued to indicate the context deactivation. This happens for example if the context
deactivation is forced by the network or if deactivation results from a network deregistration with AT+COPS=2.