
SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
13 Packet switched data services
Page 130 of 307
13.6.4 Notes
SARA-R4 / SARA-N4
• If <cid> is not defined, the command activates or deactivates all the defined PDP contexts.
13.6.5 Examples
Examples of usage of
, +CGACT,
command:
Command sent by the DTE
DCE response
Description
AT+CMEE=2
OK
Set the verbose error result
codes
AT+COPS=0
OK
AT+COPS?
+COPS: 0,0,"vodafone IT"
OK
AT+CGDCONT=1,"IP","web.omnitel.it" OK
Define several PDP contexts
AT+CGDCONT=3,"IP","internet"
OK
AT+CGDCONT=2,"IP",
"mms.vodafone.it"
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","web.omnitel.it","0.0.0.0",0,0
+CGDCONT: 3,"IP","internet","0.0.0.0",0,0
+CGDCONT: 2,"IP","mms.vodafone.it","0.0.0.0",0,0
OK
Read PDP contexts
AT+CGACT=1,1
OK
Activate the PDP context 1
AT+CGPADDR=1
+CGPADDR: 1, "91.80.104.82"
OK
Show address of the PDP
context 1
AT+CGPADDR=2
+CGPADDR: 2, "0.0.0.0"
OK
Show the address of PDP
context 2
AT+CGPADDR=3
+CGPADDR: 3, "0.0.0.0"
OK
Show the address of PDP
context 3
AT+CGDCONT?
+CGDCONT: 1,"IP","web.omnitel.it","91.80.104.82",0,0
+CGDCONT: 3,"IP","internet","0.0.0.0",0,0
+CGDCONT: 2,"IP","mms.vodafone.it","0.0.0.0",0,0
OK
AT+CGACT=0,1
OK
Deactivate the PDP context
1
AT+CGDCONT?
+CGDCONT: 1,"IP","web.omnitel.it","0.0.0.0",0,0
+CGDCONT: 3,"IP","internet","0.0.0.0",0,0
+CGDCONT: 2,"IP","mms.vodafone.it","0.0.0.0",0,0
OK
AT+CGACT=1
OK
Activate all of defined PDP
contexts
AT+CGDCONT?
+CGDCONT: 1,"IP","web.omnitel.it","91.80.101.207",0,0
+CGDCONT: 3,"IP","internet","83.225.114.136",0,0
+CGDCONT: 2,"IP","mms.vodafone.it","10.159.135.60",
0,0
OK
AT+CGPADDR=1
+CGPADDR: 1, "91.80.101.207"
OK
Show the address of PDP
context 1
AT+CGPADDR=2
+CGPADDR: 2, "10.159.135.60"
OK
Show the address of PDP
context 2
AT+CGACT=0
OK
Deactivate all of defined
PDP contexts
AT+CGPADDR=2
+CGPADDR: 2, "0.0.0.0"
Show the address of PDP
context 2