W5500S2E serial to Ethernet module
W5500S2E user manual
15
4
Data transfer mode
W5500S2E series serial-to-Ethernet module has two mode of data transfer mode to
choose from. It includes “Data pass-through mode” & “AT data transfer command mode”.
Whereas “AT data transfer command mode” is supported by firmware version 2.3 and
above
4.1
Data pass-through mode
Data pass-through mode of W5500S2E has the following characteristics
1.
To configure W5500S2E to transmit data, parameters need to be configured in AT
command before switching into “data pass-through mode”
2.
Module will enter the preset mode and parameter after module entered into “data
pass-through mode”
①
In TCP server mode, it will listen on a local port and wait for a TCP client
connection
②
In TCP client mode, it will connect to the preset remote TCP server until
connection establish
③
In UDP mode, no connection is needed. Module will wait for the data
3.
After establish TCP connection or entered UDP mode, data will be pass-through
between the serial and Ethernet ports according to the preset settings
4.
If the TCP connection is closed, module will act as below
①
In TCP server mode, it will listen on a local port again and wait for a TCP client
connection
②
In TCP client mode, it will reconnect to the preset remote TCP server
5.
If the MCU would like to change the parameters. It is need to exit the “data
pass-through mode” and enter into AT command mode for configure the parameters
4.2
AT data transfer command mode
AT data transfer command mode of W5500S2E has the following characteristics
1.
To configure W5500S2E to transmit data, parameters can be configured in AT
command mode. Sending data in “AT data transfer command mode” does not
require switching mode
2.
After configure the parameter, data can be send directly in AT command mode for
TCP or UDP communication
①
In TCP server mode, it will listen on a local port and wait for a TCP client
connection
②
In TCP client mode, it will connect to the preset remote TCP server. If
connection cannot be establish within 3s. It is need to resend command to
reconnect.
③
In UDP mode, no connection is needed. Module will wait for the data
3.
After establish TCP connection or entered UDP mode, data can be sent or received
for single packet at a time only