G5/G6-Family AT Commands User Manual Page
12.2.5 +CGATT, GPRS Attach or Detach
This command attaches/detaches the ME to/from the GPRS service. When the command has completed,
the ME remains in V.25ter command state. If the ME is already in the requested state, the command is
ignored and the OK response is returned. If the requested state cannot be achieved, an ERROR or +CME
ERROR response is returned. Extended error responses are enabled by the +CMEE command. Any
active PDP contexts will be automatically deactivated when the attachment state changes to detached.
The Set command
attaches/detaches the ME to/from
the GPRS service.
The Read command returns the
current GPRS service state.
+CGATT: (list of
supported <state>s)
OK
The Test command requests
information on the supported GPRS
service states.
Note: This command has the characteristics of both the V.25ter action and parameter commands.
Therefore, it has the Read form in addition to the Execution/Set and Test forms.
The following table shows the +CGATT parameters.
Indicates the state of the GPRS attachment:
0 Detached.
1 Attached.
Example:
AT+CGATT=?
+CGATT: (0,1)
OK
AT+CGATT?
+CGATT: 0
OK
AT+CGATT=0
OK