EVK-R5 - User guide
UBX-19042592 - R09
Appendix
Page 18 of 24
C1-Public
On SARA-R5 products the default protocol type for external contexts is IPV4V6, while for internal PSD
profiles is IP(v4).
Command sent by DTE (user)
DCE response (module)
Description
Map a context with protocol type “IP”
AT+CGDCONT=1,"IP","default"
OK
Set context <
cid>=1 with “IP” protocol type and
APN string “default”.
<wait for context <cid>=1 activation>
AT+UPSD=0,100,1
OK
Map external context <cid>=1 to internal
context <profile_id>=0.
AT+UPSD=0,0,0
OK
Set protocol type for internal context
<profile_id>=0 to IPv4.
AT+UPSDA=0,3
OK
Activate internal context <profile_id>=0.
Map a context with protocol type “IPV6”
AT+CGDCONT=1,"IPV6","default"
OK
Set context <cid>=1 with “IPV6” protocol type
and APN string “default”.
<wait for context <cid>=1 activation>
AT+UPSD=0,100,1
OK
Map external context <cid>=1 to internal
context <profile_id>=0.
AT+UPSD=0,0,1
OK
Set protocol type for internal context
<profile_id>=0 to IPv6.
AT+UPSDA=0,3
OK
Activate internal context <profile_id>=0.
Map a context with protocol type “IPV4V6”
AT+CGDCONT=1,"IPV4V6","default"
OK
Set context <cid>=1 with “IPV4V6” protocol
type and APN string “default”.
<wait for context <cid>=1 activation>
AT+UPSD=0,100,1
OK
Map external context <cid>=1 to internal
context <profile_id>=0.
AT+UPSD=0,0,2
OK
Set protocol type for internal context
<profile_id>=0 to IPv4v6 with IPv4 preferred.
Alternatively, AT+UPSD=0,0,3 can be used.
AT+UPSDA=0,3
OK
Activate internal context <profile_id>=0.
C.3
Opening a TCP socket
Command sent by DTE (user)
DCE response (module)
Description
AT+CMEE=2
OK
Enables the cellular module to report
verbose error result codes.
AT+CGATT?
+CGATT: 1
OK
Verifies the SARA-R5 module is attached
to the network.
AT+CEREG?
+CEREG: 0,1
OK
Verify the network registration status.
AT+COPS=0
OK
Register the module on the network.
The cellular module automatically
registers itself on the cellular network.
This command is necessary only if the
automatic registration failed (AT+CREG?
returns 0,0).
AT+COPS?
+COPS: 0,0,"Verizon Wireless",7
OK
Read the operator name and radio
access technology (RAT).
AT+UPSND=0,8
+UPSND: 0,8,1
OK
Check internal context <profile_id>=0
status.
The PSD profile is active.