Wiznet W5500S2E User Manual page 45

Ethernet module
Table of Contents

Advertisement

CONNECT (Initiating TCP connection)
Command format
AT+CONNECT
Response
OK\r\n
Description
Upon successful completions
Response
<Error Info>\r\n
Description
Module is not in TCP client mode
Command: AT+CONNECT\r\n
Example
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
AT+TCP_STATUS
Response
[TCP_STATUS ] Value is:<value>\r\n OK\r\n
Description
0: TCP not connected
1: TCP connected
Command: AT+TCP_STATUS?\r\n
Example
[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
AT+UDP
Response
OK\r\n
Description
Upon successful completions
Response
<Error Info>\r\n
Description
Module is not in TCP client mode
Command: AT+UDP\r\n
Example
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.
W5500S2E user manual
W5500S2E serial to Ethernet module
Parameters
Nil
Parameters
Nil
Parameters
Nil
42
Usage
Execute
Usage
Read
Usage
Execute

Advertisement

Table of Contents
loading

This manual is also suitable for:

W5500s2e seriesW5500s2e-s1W5500s2e-z1W5500s2e-r1

Table of Contents