5 Check/Set data service
When registration is completed you can activate data services and set up the internal IP stack
with the AT#SGACT command:
AT#SGACT=<cid>,<stat>[,<userId>[,<pwd>]]
E.g. if we want to activate context 1, issue AT#SGACT=1,1; in case we want to use the <cid>
3 (e.g. Verizon in US) issue AT#SGACT=3,1.
The command returns IP address provided by the network:
AT#SGACT=1,1
#SGACT: xxx.xxx.xxx.xxx
You can get useful information about the active context using AT+CGCONTRDP command.
AT+CGCONTRDP=[<cid>]
The execution command returns the relevant information on a PDP Context – EPS Bearer
established by the network with the context identifier <cid>. If the parameter <cid> is omitted,
the information for all established contexts is returned. The response message has the
following format.
+CGCONTRDP:<cid>,<bearerId>,<apn>[,<ip&subnet>[,<gw_addr>[,<DNS_prim>
[,<DNS_sec>[, <P_CSCF_prim>[,<P_CSCF_sec>]]]]]][<CR><LF>