User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
13Packet switched data services
Page 140 of 401
Type Syntax Response Example
Read AT+CGATT? +CGATT: <state>
OK
+CGATT: 1
OK
Test AT+CGATT=? +CGATT: (list of supported
<state>s)
OK
+CGATT: (0-1)
OK
13.6.3Defined values
Parameter Type Description
<state> Number Indicates the state of GPRS attachment:
0: detached
1 (default value): attached
13.7PDP context activate or deactivate +CGACT
+CGACT
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
full Yes No Yes Up to 40-150 s
(see below)
+CME Error
13.7.1Description
Activates or deactivates the specified PDP context. After the command, the MT remains in AT command mode.
If any context is already in the requested state, the state for the context remains unchanged. If the required
action cannot succeed, an error result code is returned. If the MT is not GPRS attached when the activation of
a PDP context is required, the MT first performs a GPRS attach and then attempts to activate the specified
context.
The maximum expected response time is different whenever the activation or the deactivation of a PDP context
is performed (150 s and 40 s respectively).
The deactivation action is carried out even if the command is aborted.
13.7.2Syntax
Type Syntax Response Example
Set AT+CGACT=[<status>[,<cid>[,...]]] OK AT+CGACT=1,1
OK
Read AT+CGACT? [+CGACT: <cid>,<status>
[+CGACT: <cid>,<status>
[...]]]
OK
+CGACT: 1,1
OK
Test AT+CGACT=? +CGACT: (list of supported
<status>s)
OK
+CGACT: (0-1)
OK
13.7.3Defined values
Parameter Type Description
<status> Number Indicates the state of PDP context activation:
0: deactivated
1: activated
<cid> Number See <cid>.
13.7.4Notes
SARA-R4 / SARA-N4
If <cid> is not defined, the command activates or deactivates all the defined PDP contexts.