> 11.1 | AT+CGACT PDP context activate or deactivate

> Syntax

> Test Command AT+CGACT=?
> Response(s)
> +CGACT: (list of supported <state>s)
> OK

> Read Command AT+CGACT?
> Response(s)
> +CGACT: <cid>, <state>
> [+CGACT: <cid>, <state>]
> ...
> OK

> Write Command AT+CGACT=[<state>[, <cid>[, <cid>]]]
> Response(s)
> OK
> ERROR
> +CME ERROR

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> GSM 07.07 |  | + |  | + | + | + | + | + | + |  |  | - | - | -

> Command 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.
> Parameter Description

> <state>(num)

> Indicates the state of PDP context activation.
> 0
> deactivated
> [1]
> activated

> <cid>(num)

> 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.