AT Commands Reference Guide
80529ST10815A Rev.2– 2017-09-14
ReproductionforbiddenwithoutTelitCommunicationsS.p.A.writtenauthorization‐AllRightsReserved page151of233
#SGACT - Context Activation
Parameters:
<cid> - a numeric parameter which specifies a particular PDP context definition
(see
+CGDCONT command)
<stat>
0 - deactivate the context
1 - activate the context
<userId>
- string type,used only if the context requires it
<pwd>
- string type, used only if the context requires it
Execution command returns a list of IP addresses for the specified context
identifiers in the format:
If IP or IPV6 PDP context:
#SGACT: <ipAddr>
For DUAL STACK IPV4V6 PDP context:
#SGACT: [<ipAddrV4>],[<ipAddrV6>]
Where:
<ipAddr> - ip address ipv4 or ipv6
<ipAddrV4> - ip address ipv4(if v4 PDP context activated)
<ipAddrV6>
- ip address ipv6(if v6 PDP context activated)
Note:
context activation/deactivation returns ERROR if there is not any socket
associated to it (see AT#SCFG).
Note: In LTE network, default PDP context(cid 1) is activated by piggybacking on
LTE attach procedure and maintained until detached from NW. This command with
cid 1 is just binding or unbinding application to the default PDP context.
Note: If the unsolicited result code for obtaining IP address was enabled (urcmode
value) using #SGACTCFG command, on start up and
due to USB enumeration timing the unsolicited may not appear , user should
manually use +CGPADDR command to see the IP address.
AT#SGACT?
Returns the state of all the five contexts, in the format:
#SGACT: <cid1>,<Stat1><CR><LF>
…
#SGACT: <cid5>,<Stat5>
where:
<cidn> - as <cid> before
<stat
n> - context status
0 - context deactivated
1 - context activated
AT#SGACT=?
Reports the range for the parameters <cid> and <stat>