
EVK-R5 - User guide
UBX-19042592 - R06
Appendix
Page 19 of 23
C1-Public
Command sent by DTE (user)
DCE response (module)
Description
AT+USOCR=6
+USOCR: 0
OK
Create a TCP socket.
AT+USOCO=0,"195.34.89.241",7
OK
Connect to the server.
+UUSORD: 0,32
Greeting message.
AT+USORD=0,32
+USORD: 0,32,"u-blox AG TCP/UDP
test service"
OK
Retrieving the message.
AT+USOCL=0
OK
Closing the socket.
C.4
Opening a UDP 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.
AT+USOCR=17
+USOCR: 0
OK
Create a UDP socket.
AT+USOST=0,"195.34.89.241",7,13,"
TestNumberOne"
+USOST: 0,13
OK
Connecting and storing text on the
server.
+UUSORF: 0,13
Echo server returning the message.
AT+USORF=0,13
+USORF: 0,"195.34.89.241",7,13,"T
estNumberOne"
OK
Reading the message from the server.
AT+USOCL=0
OK
Closing the socket.