User guide
Developers guidelines | AT commands
194 June 2010
AT+CGATT Packet service attach or detach
AT+CGACT PDP context activate or deactivate
Description: Attaches the ME to, or detaches the ME from, the GPRS/Packet Domain
service. After 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.
Any active PDP contexts will be automatically deactivated when the
attachment state changes to detached.
Note: This command has the characteristics of both the V.25ter action and
parameter commands. Hence it has the read form in addition to the execu-
tion/set and test forms.
Set command: AT+CGATT=[<state>]
Read command: AT+CGATT? Displays the current <state> settings
Test command: AT+CGATT=? Shows if the command is supported.
Test command
response: +CGATT: (list of supported <state>s)
Parameter:
<state>:
<state> Description
0 Detached
1 Attached
Description: Activates or deactivates the specific PDP context(s).
After the command has completed, the ME remains in V.25ter command
state. If any PDP context is already in the requested state, the state for that
context remains unchanged. If the requested state for any specified con-
text cannot be achieved, an ERROR or +CME ERROR response is
returned. If the ME is not GPRS/Packet Domain attached when the activa-
tion form of the command is executed, the ME first performs a GPRS/
Packet Domain attach and then attempts to activate the specified con-
texts. If the attach fails then the ME responds with ERROR or, if extended
error responses are enabled, with the appropriate failure-to-attach error
message.
If no <cid>s are specified the activation/deactivation form of the command
activates/deactivates all defined contexts.
Note: This command has the characteristics of both the V.25ter action and
parameter commands. Hence it has the read form in addition to the execu-
tion/set and test forms.
Set command: AT+CGACT=[<state>[,<cid>[,<cid>[,...]]]]
Read command: AT+CGACT? Displays the current <cid> and <state> settings.
Read command
response: +CGACT: <cid>,<state><CR><LF>
[+CGACT: <cid>,<state><CR><LF>
[...]]
Test command: AT+CGACT=? Shows if the command is supported.










