W5500S2E serial to Ethernet module
W5500S2E user manual
42
CONNECT (Initiating TCP connection)
Command format
Parameters
Usage
AT+CONNECT
Nil
Execute
Response
Description
OK\r\n
Upon successful completions
Response
Description
<Error Info>\r\n
Module is not in TCP client mode
Example
Command: AT+CONNECT\r\n
Response: OK\r\n
This command is valid only in TCP client mode. i.e. “C1_OP” is set as “1”. Otherwise, it will respond with
error message. After execute this command; the module will try to connect to the TCP server. If
connection cannot be established in 3s, it returns with error messages.
Note: After execute this command, TCP connection can be monitor with the “TCP_STATUS” command or
the voltage level of the “TCP_STATUS” pin. This command is supported by firmware version 2.3 and
above.
TCP_STATUS (TCP connection status)
Command format
Parameters
Usage
AT+TCP_STATUS
Nil
Read
Response
Description
[TCP_STATUS ] Value is:<value>\r\n OK\r\n
0: TCP not connected
1: TCP connected
Example
Command: AT+TCP_STATUS?\r\n
[TCP_STATUS ] Value is:1\r\n OK\r\n
This command is valid only in TCP modes.
This command and the “TCP_STATUS” pin can both be used to monitor the TCP connection status.
Note: This command is supported by firmware version 2.3 and above.
UDP (Establish UDP connection)
Command format
Parameters
Usage
AT+UDP
Nil
Execute
Response
Description
OK\r\n
Upon successful completions
Response
Description
<Error Info>\r\n
Module is not in TCP client mode
Example
Command: AT+UDP\r\n
Response: OK\r\n
This command is valid only in UDP mode i.e. “C1_OP” is set as “2”. Otherwise, it will return with error.
Note: This command is supported by firmware version 2.3 and above.