GSM/GPRS Module
M35 AT Commands Manual
M35_AT_Commands_Manual Confidential / Released
149
/
186
11.31. AT+QIRD Retrieve the Received TCP/IP Data
Parameter
AT+QIRD<id>
A numeric points out which context the connection for the received
data is based on. Please refer to the parameter
<id>
in the command
AT+QIFGCNT
. The range is 0-1
<sc>
A numeric points out the role of M35 in the connection for the received data.
1
The module serves as the client of the connection
2
The module serves as the server of the connection
<sid>
A numeric indicates the index of the connection for the received data. The range is 0-5
When QIMUX was set as 0 by the command
AT+QIMUX=0
, this parameter will be always
0.
AT+QIRD Retrieve the Received TCP/IP Data
Test Command
AT+QIRD=?
Response
+QIRD:
(list of supported
<id>
s),(list of supported
<sc>
s),(list
of supported
<sid>
s),(list of supported
<len>
s)
OK
Write Command
AT+QIRD=<id>,<sc>,<sid>,<len>
Response
[+QIRD:
<ipAddr>:<port>,<type>,<length><CR><LF><data>]
OK
ERROR
Reference
<id>
A numeric points out which context the connection for the received data is based on.
Please refer to the parameter
<id>
in the command
AT+QIFGCNT
. The range is 0-1
<sc>
A numeric points out the role of M35 in the connection for the received data
1
The module serves as the client of the connection
2
The module serves as the server of the connection
<sid>
A numeric indicates the index of the connection for the received data. The range is 0-5.
When QIMUX was set as 0 by the command
AT+QIMUX=0
, this parameter will be always
0
<len>
The maximum length of data to be retrieved. The range is 1-1500
<ipAddr>
The address of the remote end. It is a dotted-decimal IP
<port>
The port of the remote end
<type>
An alpha string without quotation marks indicates the transport protocol type
TCP
the transport protocol is TCP