nrf9160

Set command

The set command configures connection parameters.

Syntax:

+CGDCONT=<cid> [,<PDP_type> [,<APN> [,<PDP_addr> [,<d_comp> [,<h_comp> [,<IPv4AddrAlloc> [,<request_type> [,<P-CSCF_discovery> [,<IM_CN_Signalling_Flag_Ind> [,<NSLPI> [,<securePCO>]]]]]]]]]]]
Note: +CGDCONT=<cid> causes the values for context number <cid> to become undefined.

A maximum of four contexts can be defined. In some network configurations, the maximum can be less than four.

The set command parameters and their defined values are the following:

<cid>
Integer, 0–10 (mandatory). Specifies a particular Packet Data Protocol (PDP) Context definition. The parameter is local to the device and is used in other PDP context-related commands.
<PDP_type>
String
IP – Internet Protocol
IPV6 – Internet Protocol version 6
IPV4V6 – Virtual type of dual IP stack
Non-IP – Transfer of non-IP data to external packet data network (see 3GPP TS 23.401 [82])
<APN>
String. Access Point Name (APN).
<PDP_addr>
Ignored
<d_comp>
Ignored
<h_comp>
Ignored
<IPv4AdrAlloc>
0 – IPv4 address via Non-access Stratum (NAS) signaling (default)
1 – IPv4 address via Dynamic Host Configuration Protocol (DHCP)
<request_type>
Ignored
<P-CSCF_discovery>
Ignored
<IM_CN_SignallingFlag>
Ignored
<NSLPI>
0 – Non-access Stratum (NAS) Signalling Low Priority Indication (NSLPI) value from configuration is used (default)
1 – Value "Not configured" for NAS signaling low priority
<securePCO>
0 – Protected transmission of Protocol Configuration Options (PCO) is not requested (default)
1 – Protected transmission of PCO is requested

The following command example configures CID 1 to use IPv4 and access point "IOT_apn":

AT+CGDCONT=1,"IP","IOT_apn"
OK