LISA-C200 & FW75-C200
AT commands examples - Application Note
CDMA-CS-12000
Preliminary
Page 19 of 41
6
UDP/IP AT commands
6.1
Socket write (+USOST)
6.1.1
Base syntax
Command
Response
Description
AT+CMEE=2
OK
Set verbose error messages
AT+USOCR=17
+USOCR: 18
OK
UDP socket creation. In this example Socket #18 is
created.
The response returns the new socket identifier (in this
example #18). If a new socket is created, a new
socket identifier will be returned.
AT+USOST=18,"108.217.247.74",
1500,15,”0123456789qwert”
OK
Request to write 15 bytes of data into socket #18
specifying IP address and UDP port of the remote host
UDP packet has to be sent to. It is necessary to specify
the length of data to be written and the data to be
written.
If more bytes are written with respect to the
threshold, the remaining data will be
truncated.
The interface is blocked until all data is written.
The command response is returned. This means the
data is sent to lower level of protocol stack. This is not
an acknowledgment, UDP is a connectionless
protocol.
6.1.2
Binary mode
Command
Response
Description
AT+CMEE=2
OK
Set verbose error messages
AT+USOCR=17
+USOCR: 108
OK
UDP socket creation. In this example Socket #108 is
created.
The response returns the new socket identifier (in this
example #108). If a new socket is created, a new
socket identifier will be returned.
at+usost=108,"108.217.47.74",
1500,4
@
Create the UDP connection to “108.217.247.74” on
port 1500
Prompt @ is waiting for data to be entered
LISA-C
FW75