nrf9160

Set command

The set command returns information for an active Packet Data Network (PDN) connection.

Syntax:

+CGCONTRDP=<cid>

Response syntax:

+CGCONTRDP: <cid>,<bearer_id>,<apn>[,<local_addr_and_subnet_mask>[,<gw_addr>[,
<DNS_prim_addr>[,<DNS_sec_addr>[,,,,,<IPv4_MTU]]]]]

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

<cid>
Integer, 0–10 (mandatory).
<bearer_id>
Integer. Not supported.
<apn>
String. A logical name for the network.
<local_addr_and_subnet_mask>
String. Not supported.
<gw_addr>
String. Not supported.
<DNS_prim_addr>, <DNS_sec_addr>
String. DNS server IP address.
IPv4_MTU
IPv4 Maximum Transmission Unit (MTU) size.
Note: If the PDN connection has dual stack capabilities, at least one pair of lines with information is returned per <cid>: First one line with the IPv4 parameters followed by one line with the IPv6 parameters.

The following command example reads dynamic parameters for an initial PDN connection:

AT+CGCONTRDP=0
+CGCONTRDP: 0,,"internet","","","10.0.0.1","10.0.0.2",,,,,1028
OK