AT Commands Modem Terminated
199
AT+CGATT
GPRS Attach or Detach
AT+CGACT
PDP Context Activate or Deactivate
Description:
Attaches the MT to, or detaches the MT from, the GPRS service. After the command
has completed, the phone stays in V.250 command state. If the MT is already in the
requested state, the command is ignored and
OK
is returned. If the requested state
cannot be achieved,
ERROR
or
+CME: ERROR
is returned.
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 from GPRS service
1
Attached to GPRS service
Description:
Activates or deactivates the specific PDP context(s). After the command has
completed, the phone stays in V.250 command state. If the MT is already in the
requested state, the command is ignored and
OK
is returned. If the requested state
cannot be achieved,
ERROR
or
+CME: ERROR
is returned. If the MT is not attached
to the GPRS service when the activation form of the command is executed, the MT
first performs a GPRS attach and then attempts to activate the specific contexts.
If no <cid>s are specified, the activation form of the command activates all defined
contexts.
If no <cid>s are specified, the deactivation form of the command deactivates all
defined contexts.
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.
Test command
response:
+CGACT: (list of supported <state>s)
Parameters:
<state>:
<state>
Description
0
PDP context activation deactivated
1
PDP context activation activated
<cid>:
Integer; specifies the particular PDP context definition.