LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 21 / 52
Parameter
"UDP" or "TCP INCOMING"
AT+QIRD=<connectID>[,<read_length
>]
+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
If the connection does not exist:
ERROR
Write Command
When <read_length> is 0, query the
retrieved data length
AT+QIRD=<connectID>,0
Response
If the specified connection exists:
+QIRD: <total_receive_length>,<have_read_length>,<unre
ad_length>
OK
If there is any error:
ERROR
120 s, determined by network.
<connectID> Integer type. Socket service index. Range: 0ā11.
<read_length> Integer type. Maximum length of the data to be retrieved. Range: 0-1500.