C Examples Of At Commands; Define The Initial Default Bearer For Connectivity; Data Connection Using Internal Tcp/Ip Stack - u-blox EVK-R6 User Manual

Lara-r6 and lara-l6 series cellular evaluation kits
Table of Contents

Advertisement

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 [1].
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)
AT+COPS?
AT+CEREG=2;+CGEREP=1,1
AT+CGDCONT?
AT+CGDCONT=1,"IPV4V6","broadband"
AT+COPS=0
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)
AT+CGACT=1,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)
AT+CGDCONT?
AT+CGCONTRDP=1
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.
UBX-21035387 - R03
C1-Public
DCE response (module)
+COPS: 2
OK
OK
+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
OK
OK
+CEREG: 1,"0001","01a2d001",7
+CGEV: ME PDN ACT 1
DCE response (module)
OK
DCE response (module)
+CGDCONT: 1,"IP","default.mnc321.
mcc654.gprs","192.168.20.6",0,0,0
,2,0,0,0,0,0,0
OK
+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
Appendix
EVK-R6 and EVK-L6 - User guide
Description
The module is not registered.
Enable a set of registration URCs.
Read IP type and APN for EPS attach
bearer.
Set the APN name ("broadband" for
example) and the PDP type ("IPV4V6"
for example) for EPS attach bearer.
Trigger a network registration and wait
for attach complete.
Description
Activate the PDP context associated
with <cid>=1.
Description
Read IP type and APN for EPS attach
bearer.
Context <cid>=1 has IP type "IP" and
APN "default.mnc321.mcc654.gprs".
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.
Page 22 of 27

Advertisement

Table of Contents
loading

Table of Contents