Specifications

Chapter 11 – GPRS Commands
Multi-Tech Systems, Inc. AT Commands for EDGE (E1) Modems (S000474A) 189
11.3 AT+CGATT GPRS Attach or Detach
Description: The test command is used for requesting information on the supported GPRS service states.
The read command returns the current GPRS service state.
The write command is used to attach the MT to, or detach the MT from the GPRS service. After
the command has completed, the MT remains in V.250 command state. If the MT is already in
the requested state, the command is ignored and the OK response is returned. Any active PDP
contexts will be automatically deactivated when the attachment state changes to detached.
Syntax: Test Command: AT+CGATT=?
Response: +CGATT: (list of supported <state>s)
OK
Read Command: AT+CGATT?
Response: +CGATT: <state>
OK
Write Command: AT+CGATT=[<state>]
Response: OK
ERROR
+CME ERROR: <err>
Parameter:
<state>
Indicates the state of GPRS attachment.
0 detached. This is a powerup default which is not stored at power down.
1 attached. Default. This is the default value if the parameter is omitted (1 will be assumed).
Notes:
If the MT is in dedicated mode, write command returns “+CME ERROR: operation temporary not allowed”.
When the module is GPRS attached and a PLMN reselection occurs to a non-GPRS network or to a network
where the SIM is not subscribed to for using GPRS, the resulting GMM (GPRS mobility management) state
according to GSM 24.008 is REGISTERED/NO CELL, meaning that the read command will still show <state>=1.
Under some network conditions the GPRS attach command fails, if entered immediately after a "+CREG: 1"
URC. This can be avoided by waiting at least 1s before entering the GPRS attach command.
This command is PIN protected.
This command is not supported in airplane mode.