LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 24 / 56
2.3.8. AT+QIRD Retrieve the Received TCP/IP Data
In buffer access mode, after receiving data, the module buffers it and reports +QIURC:
"recv",<connectID>[,<data_len>], then the data can be retrieved with AT+QIRD.
Please note that if the buffer is not empty, and the module receives data again, it does not report a new
URC until all the received data has been retrieved with AT+QIRD from the buffer.
Integer type. Total length of sent data. Unit: byte.
Integer type. Total length of acknowledged data. Unit: byte.
Integer type. Total length of unacknowledged data. Unit: byte.
AT+QIRD Retrieve the Received TCP/IP Data
Response
+QIRD: (range of supported <connectID>s),(range of
supported <read_length>s)
OK
Write Command
When <service_type> is "TCP", "UDP"
or "TCP INCOMING"
AT+QIRD=<connectID>[,<read_lengt
h>]
Response
If the specified connection has received the data:
+QIRD: <read_actual_length><CR><LF><data>
OK
If there is no data:
+QIRD: 0
OK
If the connection does not exist:
ERROR
Write Command
When <service_type> is "UDP
SERVICE"
AT+QIRD=<connectID>
Response
If the data exists:
+QIRD: <read_actual_length>,<remoteIP>,<remote_port>
<CR><LF><data>
OK
If there is no data:
+QIRD: 0
OK