EVK-R6 - User guide
UBX-21035387 - R02
Appendix
Page 19 of 23
C1-Public
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 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+USOCR=6
+USOCR: 0
OK
Create a TCP socket.
AT+USOCO=0,"echo.u-blox.com",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 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+USOCR=17
+USOCR: 0
OK
Create a UDP socket.
AT+USOST=0,"echo.u-blox.com
",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,"185.215.195.137",7,13,
"TestNumberOne"
OK
Reading the message from the server.
AT+USOCL=0
OK
Closing the socket.