Cat Commands Examples; Define The Initial Default Bearer For Connectivity; Data Connection Using Internal Tcp/Ip Stack - Ublox SARA-R5 Series User Manual

Cellular evaluation kits
Hide thumbs Also See for SARA-R5 Series:
Table of Contents

Advertisement

C AT commands examples
For the complete description and syntax of the AT commands supported by SARA-R5 series modules,
see the SARA-R5 series AT commands manual [1].
For detailed AT commands examples for network registration and configuration, context activation,
data connection management, SIM management, module interfaces configurations and other
settings, see the u-blox SARA-R5 application development guide [4].
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
C.2 Data connection using internal TCP/IP stack
Activate an internal context to use the internal TCP/UDP stack.
If an external "IP" context is active, just map the external context to an internal one.
Command sent by DTE (user)
AT+CGDCONT?
AT+CGCONTRDP=1
AT+UPSD=0,100,1
AT+UPSDA=0,3
When an external context is mapped to an internal PSD profile, make sure that the same protocol type
(IP/IPV6/IPV4V6) is set both for the context and the profile, before the PSD profile is activated.
UBX-19042592 - R06
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)
+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
OK
OK
+UUPSDA: 0,"192.168.20.6"
Appendix
EVK-R5 - 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
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.
Map external context <cid>=1 to internal
context <profile_id>=0.
Activate internal context <profile_id>=0.
A URC is received indicating activation
complete and IPv4 address for the
internal context.
Page 17 of 23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Evk-r5Evk-r5 seriesEvk-r500sEvk-r510sEvk-r510m8s

Table of Contents