> 2.10.4 | GPRS PDP Context activation/ deactivation

> This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.

> 2.10.4.1 | Description

> This chapter describes how to activate and deactivate a specified PDP Context. If a PDP Context is already in the requested state, the state of this context remains unchanged.
> If the ME is not yet attached to the GPRS service, the attach will be done before the context activation is executed. If no <cid> is specified (e.g. AT+CGACT=1 or AT+CGACT=0), all defined contexts become activated/ deactivated.
> In many networks “AT+CGACT=1” does not work any longer (Section 2.10.4.4).
> The command “AT+CGPADDR” shows the PDP address, which was assigned to the module during the activation process. The address may be static or dynamic.

> 2.10.4.2 | Used AT commands

> Command | Explanation
> AT+CGPADDR | Show PDP address
> AT+CGACT | PDP Context activate or deactivate
> ATH | Disconnect existing connection

> For further details about the commands see [2].

> 2.10.4.3 | Flow Chart

> Figure 67: GPRS PDP context activation / deactivation

> 2.10.4.4 | Hints

> • | In many networks the GPRS context activation command does not work any longer. Many networks require user name and password for context activation. However these parameters are only handed to module during the PPP traffic and not by AT command. Since the PPP traffic only starts when entering the data mode, it is necessary to enter data mode before the actual PDP context activation request is sent to the network. Use ATD*99***<cid># to do so.

> • | If the MT is not GPRS attached when the activation form of the AT+CGACT or AT+CGDATA command is executed, it performs a GPRS attach and then attempts to activate the specified context.

> 2.10.4.5 | Example

> ***************************************
> Comment PDP context activate/deactivate
> ***************************************
> ***************************************
> Comment Request activated PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT?
> Subscr 1 Receive: AT+CGACT?
> Subscr 1 Receive: +CGACT: 1,0
> Subscr 1 Receive: +CGACT: 2,1
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Activate PDP context cid=2
> ***************************************
> Subscr 1 Send: AT+CGACT=1,2
> Subscr 1 Receive: AT+CGACT=1,2
> Subscr 1 Receive: OK
> ***************************************
> Comment Request activated PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT?
> Subscr 1 Receive: AT+CGACT?
> Subscr 1 Receive: +CGACT: 1,0
> Subscr 1 Receive: +CGACT: 2,1
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Deactivate all PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT=0
> Subscr 1 Receive: AT+CGACT=0
> Subscr 1 Receive: OK
> ***************************************
> Comment Request activated PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT?
> Subscr 1 Receive: AT+CGACT?
> Subscr 1 Receive: +CGACT: 1,0
> Subscr 1 Receive: +CGACT: 2,0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Show PDP adress
> ***************************************
> Subscr 1 Send: AT+CGPADDR=?
> Subscr 1 Receive: AT+CGPADDR=?
> Subscr 1 Receive: +CGPADDR: (1,2)
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Activate all PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT=1
> Subscr 1 Receive: AT+CGACT=1
> Subscr 1 Receive: OK
> ***************************************
> Comment Request activated PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT?
> Subscr 1 Receive: AT+CGACT?
> Subscr 1 Receive: +CGACT: 1,1
> Subscr 1 Receive: +CGACT: 2,1
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Show PDP address without <cid>
> ***************************************
> Subscr 1 Send: AT+CGPADDR=
> Subscr 1 Receive: AT+CGPADDR=
> Subscr 1 Receive: +CGPADDR: 1,"10.10.0.33"
> Subscr 1 Receive: +CGPADDR: 2,"10.10.1.33"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Deactivate PDP context cid=1
> ***************************************
> Subscr 1 Send: AT+CGACT=0,1
> Subscr 1 Receive: AT+CGACT=0,1
> Subscr 1 Receive: OK
> ***************************************
> Comment Request activated PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT?
> Subscr 1 Receive: AT+CGACT?
> Subscr 1 Receive: +CGACT: 1,0
> Subscr 1 Receive: +CGACT: 2,1
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Show PDP address cid=2
> ***************************************
> Subscr 1 Send: AT+CGPADDR=2
> Subscr 1 Receive: AT+CGPADDR=2
> Subscr 1 Receive: +CGPADDR: 2,"10.10.1.33"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Deactivate all PDP contexts
> ***************************************
> Subscr 1 Send: ATH
> Subscr 1 Receive: ATH
> Subscr 1 Receive: OK
> ***************************************
> Comment Request activated PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGACT?
> Subscr 1 Receive: AT+CGACT?
> Subscr 1 Receive: +CGACT: 1,0
> Subscr 1 Receive: +CGACT: 2,0
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment Request defined PDP contexts
> ***************************************
> Subscr 1 Send: AT+CGDCONT?
> Subscr 1 Receive: AT+CGDCONT?
> Subscr 1 Receive: +CGDCONT: 1,"IP","www.siemens.de","",0,0
> Subscr 1 Receive: +CGDCONT: 2,"IP","www.siemens.com","",0,0
> Subscr 1 Receive:
> Subscr 1 Receive: OK