EVK-R6 and EVK-L6 - User guide
UBX-21035387 - R03
Appendix
Page 22 of 27
C1-Public
C
Examples of AT commands
For the complete description and syntax of the AT commands supported by LARA-R6 / LARA-L6
series modules, see the u-blox AT commands manual
C.1
Define the initial default bearer for connectivity
To change the PDN settings for the initial default EPS bearer established during LTE attach, edit the
<cid>=1 PDN by means of the +CGDCONT AT command.
Command sent by DTE (user)
DCE response (module)
Description
AT+COPS?
+COPS: 2
OK
The module is not registered.
AT+CEREG=2;+CGEREP=1,1
OK
Enable a set of registration URCs.
AT+CGDCONT?
+CGDCONT: 1,"IPV4V6","","0.0.0.0
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",
0,0,0,2,0,0,0,0,0,0
OK
Read IP type and APN for EPS attach
bearer.
AT+CGDCONT=1,"IPV4V6","broadband" OK
Set the APN name ("broadband" for
example) and the PDP type ("IPV4V6"
for example) for EPS attach bearer.
AT+COPS=0
OK
+CEREG: 1,"0001","01a2d001",7
+CGEV: ME PDN ACT 1
Trigger a network registration and wait
for attach complete.
The same procedure can also be applied for the PDP context associated with <cid>=1 in 2G and 3G
RAT. During the LTE attach, the initial default EPS bearer is automatically activated by the network,
while in 2G and 3G RAT, it is necessary to manually activate the PDP context by means of +CGACT AT
command.
Command sent by DTE (user)
DCE response (module)
Description
AT+CGACT=1,1
OK
Activate the PDP context associated
with <cid>=1.
It is possible to verify the status of the initial default EPS bearer or a PDP context by the means of the
+CGDCONT and +CGCONTRDP AT commands.
Command sent by DTE (user)
DCE response (module)
Description
AT+CGDCONT?
+CGDCONT: 1,"IP","default.mnc321.
mcc654.gprs","192.168.20.6",0,0,0
,2,0,0,0,0,0,0
OK
Read IP type and APN for EPS attach
bearer.
Context <cid>=1 has IP type "IP" and
APN "default.mnc321.mcc654.gprs".
AT+CGCONTRDP=1
+CGCONTRDP: 1,5,"default.mnc321.m
cc654.gprs","192.168.20.6.255.255
.255.0","192.168.20.1","185.215.1
95.114","","","",0,0,1500,0,0
OK
Read context <cid>=1 dynamic
parameters.
<cid>=1 is currently active with IPv4
address 192.168.20.6/24, gateway
192.168.20.1 and DNS server
185.215.195.114.
C.2
Data connection using internal TCP/IP stack
The internal TCP/IP stack is automatically mapped, configured, and activated to the initial default
EPS bearer established during LTE attach or to the first activated PDP context in 2G or 3G RAT.
Consequently the +UPSD and +UPSDA commands are no longer required to perform these tasks
manually.