W5500S2E serial to Ethernet module
W5500S2E user manual
43
SEND (Send byte of data)
Command format
Parameters
Usage
AT+SEND=<parameter>
Range: 0~2048 (bytes), Default: 0 (any length)
Set
Response
Description
[SEND] Value is:<value>\r\nOK\r\n
Set the length of data to be sent
Example
Assume module is in TCP mode and TCP connection is connected
Command: AT+TCP_STATUS?\r\n
[TCP_STATUS ] Value is:1\r\n OK\r\n
Command: AT+SEND=5\r\n
Response: [SEND] Value is:5\r\nOK\r\n
Then send data via serial: 12345
Response: 5
Example
Assume module is in TCP mode and TCP connection is not connected
Command: AT+TCP_STATUS?\r\n
[TCP_STATUS ] Value is:0\r\n OK\r\n
Command: AT+SEND=5\r\n
Response: [SEND] Value is:5\r\nOK\r\n
Then send data via serial: 12345
Response: 0
①
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 execute successfully, the serial port will get the response value. The next input
send to the serial port will be regarded as data and send out. Then, the module will be gone back
to AT command mode.
③
If the set value is zero, input from the serial port will be packaged by 50ms frame interval. After
the first byte sent from the serial port, the data will be sent whenever there is idle time longer than
50ms. Any extra data after 2,048byte will be discarded.
④
If the set value is non-zero, the module will wait for receiving data with length of the set value. Any
extra data will be discarded.
⑤
If data sent successfully, the module will respond with the sent data length.
Note: This command is supported by firmware version 2.3 and above.
RLEN (Receive buffer data Length)
Command format
Parameters
Usage
AT+RLEN?
Nil
Read
Response
Description
[RLEN] Value is:<value>\r\nOK\r\n
Range: 0 ~ 2048
。
Example
Data in buffer to be received: abcdef
Command: AT+RLEN?\r\n
Response: [RLEN] Value is:6\r\nOK\r\n