EVK-R4 - User guide
UBX-16029216 - R07
Appendix
Page 25 of 31
C1-Public
C.3
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-R4 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+CEREG? returns 0,0).
AT+COPS?
+COPS: 0,0,"Verizon
Wireless",7
OK
Read the operator name and radio access technology
(RAT).
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,"TestNumberOne"
OK
Reading the message from the server.
AT+USOCL=0
OK
Closing the socket.