Opening A Tcp Socket; Opening A Udp Socket - u-blox EVK-R6 User Manual

Lara-r6 and lara-l6 series cellular evaluation kits
Table of Contents

Advertisement

C.3 Opening a TCP socket
Command sent by DTE (user)
AT+CMEE=2
AT+CGATT?
AT+CEREG?
AT+COPS=0
AT+COPS?
AT+USOCR=6
AT+USOCO=0,"echo.u-blox.com",7
AT+USORD=0,32
AT+USOCL=0
C.4 Opening a UDP socket
Command sent by DTE (user)
AT+CMEE=2
AT+CGATT?
AT+CEREG?
AT+COPS=0
AT+COPS?
AT+USOCR=17
AT+USOST=0,"echo.u-blox.com
",7,13,"TestNumberOne"
AT+USORF=0,13
AT+USOCL=0
UBX-21035387 - R03
C1-Public
DCE response (module)
OK
+CGATT: 1
OK
+CEREG: 0,1
OK
OK
+COPS: 0,0,"Verizon Wireless",7
OK
+USOCR: 0
OK
OK
+UUSORD: 0,32
+USORD: 0,32,"u-blox AG TCP/UDP
test service"
OK
OK
DCE response (module)
OK
+CGATT: 1
OK
+CEREG: 0,1
OK
OK
+COPS: 0,0,"Verizon Wireless",7
OK
+USOCR: 0
OK
+USOST: 0,13
OK
+UUSORF: 0,13
+USORF: 0,"185.215.195.137",7,13,
"TestNumberOne"
OK
OK
Appendix
EVK-R6 and EVK-L6 - User guide
Description
Enables the cellular module to report
verbose error result codes.
Verifies the module is attached to the
network.
Verify the network registration status.
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).
Read the operator name and radio
access technology (RAT).
Create a TCP socket.
Connect to the server.
Greeting message.
Retrieving the message.
Closing the socket.
Description
Enables the cellular module to report
verbose error result codes.
Verifies the module is attached to the
network.
Verify the network registration status.
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).
Read the operator name and radio
access technology (RAT).
Create a UDP socket.
Connecting and storing text on the
server.
Echo server returning the message.
Reading the message from the server.
Closing the socket.
Page 23 of 27

Advertisement

Table of Contents
loading

Table of Contents