> 2.10.2 | GPRS attach / detach

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

> This chapter describes the AT+CGATT command that enables the ME to attach or to detach from the GPRS service. If the ME is already in the requested state, the command is ignored and OK response is returned.
> Any active PDP Contexts will automatically be deactivated, if the ME detaches from the GPRS service.

> 2.10.2.2 | Used AT commands

> Command | Explanation
> AT+CGATT | GPRS attach and detach

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

> 2.10.2.3 | Flow chart

> Figure 64: GPRS attach
> Figure 65: GPRS detach

> 2.10.2.4 | Hints

> • | If the ME is not able to attach for more than 5 minutes or to detach for more than 1 minute, the command returns „ERROR“ or „+CME ERROR: unknown”, but the ME is still trying to attach/ detach.

> 2.10.2.5 | Example

> ***************************************
> Comment: GPRS attach/ detach
> ***************************************
> ***************************************
> Comment: Attach to GPRS service
> ***************************************
> Subscr 1 Send: AT+CGATT=1
> Subscr 1 Receive: AT+CGATT=1
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Request attached state
> ***************************************
> Subscr 1 Send: AT+CGATT?
> Subscr 1 Receive: AT+CGATT?
> Subscr 1 Receive: +CGATT: 1
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Detach from GPRS service
> ***************************************
> Subscr 1 Send: AT+CGATT=0
> Subscr 1 Receive: AT+CGATT=0
> Subscr 1 Receive:
> Subscr 1 Receive: OK