LISA-C200 & FW75-C200
AT commands examples - Application Note
CDMA-CS-12000
Preliminary
Page 17 of 41
5.4
Socket Read
First scenario
Command
Response
Description
+UUSORD: 33,5
Remote host sends the module 5 data bytes. The
module notifies via URC that there are 5 bytes of data
information stored for socket ID 33.
AT+USORD=33,5
+USORD: 33,5,"hello"
OK
Retrieves the total amount of data received.
Second scenario
Command
Response
Description
+UUSORD: 48,32
Remote host sends the module 32 data bytes. The
module notifies via URC that there are 32 bytes of
data information stored for socket ID 48.
AT+USORD=48,15
+USORD: 48,15,"u-blox AG
TCP/U"
OK
With this command, the device is retrieving only 15
out of the 32 bytes of data originally reported for
Socket ID 48.
+UUSORD: 48,17
Remote host sends another URC indicating there is
still 17 bytes of data pending to be retrieved for
Socket ID 48.
AT+USORD=48,17
+USORD: 48,17,"DP test
service"
OK
This command will retrieve the remaining 17 bytes of
data still pending in the host server.
No additional URC has been received after reading all
remaining data, therefore all data has been recovered.
Third scenario
Command
Response
Description
+UUSORD: 63,15
Remote host sends the module 15 data bytes. The
module notifies via URC that there are 15 bytes of
data information stored for socket ID 63.
AT+USORD=63,5
+USORD: 63,5,"good "
OK
This command requests to read only 5 out of the 15
bytes of data stored in host server.
+UUSORD: 63,10
Remote host sends the module the URC that there are
still 10 bytes of data pending to be read for socket ID
63.
AT+USORD=63,5
+USORD: 63,5,"morni"
OK
This command requests to read only 5 out of the 10
bytes of data stored in host server.
+UUSORD: 63,20
A new URC notifies the host server has increased the
amount of data stored for this Socket ID, from the
reamining 5 to a new size of 20 bytes of data
available.
AT+USORD=63,20
+USORD: 63,20,"ng tostill
warm an"
OK
With this command, the module is requesting the
host server to send all the 20 remaining bytes of data
to the Socket ID 63.
No additional URC has been received after reading all
remaining data, therefore all data has been recovered.