User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
13Packet switched data services
Page 131 of 401
Parameter Type Description
<IPv6_
LeadingZeros>
Number Defines whether leading zeros are omitted or not. The setting does not apply if <IPv6_
AddressFormat>=0:
0 (default value): leading zeros omitted
1: leading zeros included
<IPv6_
CompressZeros>
Number Defines whether 1-n instances of 16-bit-zero-values are replaced by only "::". This
applies only once. The setting does not apply if <IPv6_AddressFormat>=0:
0 (default value): no zero compression
1: use zero compression
13.4PDP context definition +CGDCONT
+CGDCONT
Modules All products
Syntax PIN required Settings saved Can be aborted Response time Error referenceAttributes
partial Yes NVM / OP No - +CME Error
13.4.1Description
Defines the connection parameters for a PDP context, identified by the local context identification parameter
<cid>. If the command is used only with parameter <cid>, the corresponding PDP context becomes undefined.
Each context is permanently stored so that its definition is persistent over power cycles.
The command is used to set up the PDP context parameters for an external context, i.e. a data connection
using the external IP stack (e.g. Windows dial-up) and PPP link over the serial interface.
Usage of static i.e. user defined IP address is possible in UTRAN and GERAN but not in EUTRAN; to prevent
inconsistent addressing methods across various RATs, static IP addressing is not recommended for LTE
modules: 3GPP TS 23.060 [10] Rel.8 and later releases specify that a UE with EUTRAN/UTRAN/GERAN
capabilities shall not include a static PDP address in PDP context activation requests.
The information text response to the read command provides the configuration of all the PDP context / EPS
bearers that have already been defined. The test command returns a different row for each <PDP_type> value
supported by the module.
13.4.2Syntax
Type Syntax Response Example
IPv4 example
AT+CGDCONT=1,"IP","APN_name",
"1.2.3.4",0,0
OK
IPv4v6 example
AT+CGDCONT=1,"IPV4V6","APN","0
.0.0.0 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0
",0,0
OK
Set AT+CGDCONT=[<cid>[,<PDP_
type>[,<APN>[,<PDP_addr>[,
<d_comp>[,<h_comp>[,
<IPv4AddrAlloc>[,<emergency_
indication>[,<P-CSCF_discovery>[,
<IM_CN_Signalling_Flag_Ind>[,
<NSLPI>]]]]]]]]]]]
OK
IPv6 example
AT+CGDCONT=1,"IPV6","APN","0.0.0
.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0
OK
Read AT+CGDCONT? +CGDCONT: <cid>,<PDP_type>,
<APN>,<PDP_addr>,<d_comp>,
<h_comp>[,<IPv4AddrAlloc>,
<emergency_indication>[,<P-CSCF_
discovery>,<IM_CN_Signalling_Flag_
Ind>[,<NSLPI>]]]
[+CGDCONT: <cid>,<PDP_type>,
<APN>,<PDP_addr>,<d_comp>,
<h_comp>[,<IPv4AddrAlloc>,
+CGDCONT: 1,"IP","web.omnitel.it",
"91.80.140.199",0,0
OK