
W7500S2E serial to Ethernet module
W7500S2E user manual
39
This command reads the data in the network receiving buffer (with length in bytes).
Note: This command is supported by firmware version 2.2 and above.
RCV (Receive data)
Command format
Parameters
Usage
AT+RCV=<parameter>
Range: 0 ~ 2048, Default: 0 (Whatever length)
。
Set and execute
Response
[RCV] Value is:<value>\r\nOK\r\n
Example
Length of data in buffer to be received: abcdef
Command: AT+RCV=0\r\n
Response: [RCV] Value is:0\r\nOK\r\n
Response: abcdef
①
If module is in TCP modes, Receiving rules: If the module is in TCP modes, it is need to check the
TCP connection status before using this command. Reference to “TCP_STATUS” for details.
②
If this command executed successfully, the serial port will send out the data from the network
receiving buffer. Then, the module will be gone back to AT command mode.
③
If the data in the network buffer has length equal to 2,048bytes, module will not receive further
data.
④
If the data in the network buffer is less than the received length here, data will not be received and
it should respond value 0.
Note: This command is supported by firmware version 2.2 and above.
CLEAR (Clear the network receiving buffer)
Command format
Parameters
Usage
AT+CLEAR
Nil
Execute
Response
OK\r\n
Example
Command: AT+CLEAR\r\n
Response: OK\r\n
This command clears the data in the network receiving buffer.
Note: This command is supported by firmware version 2.2 and above.
DISCON (Disconnect)
Command format
Parameters
Usage
AT+DISCON
Nil
Execute
Response
OK\r\n
Example
Command: AT+DISCON\r\n
Response: OK\r\n
This command closes the socket opened in TCP server, TCP client and UDP modes.
Note: This command is supported by firmware version 2.2 and above.