2Tcp Client Mode; 3Udp Server Mode - Ebyte NE2-S1 Manual

Serial-ethernet smd module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.
client connection requests and establishes connections for data communication. It is usually used for
communication with TCP clients in the LAN. When in server mode, the device supports 5 client
connections, such as two If all Sockets start server mode at the same time, it can support 10 client
connections.
the Modbus gateway function is turned off , the device will send the data received by the serial
port to all client devices that are connected to the device. It supports up to 5 client connections. After
the Modbus gateway function is enabled, non -Modbus data will be cleared and will not be
forwarded. .

4.2.2TCP client mode

TCP Client is the TCP client. When the device is working, it will actively initiate a connection
request to the server and establish a connection to realize the interaction between serial port data and
server data.
Using the client requires configuring the target IP address /domain name and target port
accurately .
Note: The local port in client mode is recommended to be 0 (dynamic port).

4.2.3UDP server mode

UDP Server means that the device does not verify the data source IP address when
communicating using the UDP protocol. After each UDP packet is received, the source IP address
and source port of the packet are saved, and set as the target IP and port. , so the data sent by the
device only sends data packets to the source IP address and port where the device last received data .
This mode is usually used in scenarios where multiple network devices communicate with the
device with high frequency and the TCP Server cannot meet the conditions.
Using UDP Server requires the remote UDP device to send data first, otherwise the data cannot
be sent normally.
[Note] In U DP mode, the data sent by the network to the device should be less than 1024 bytes per
packet, and the excess data will be lost .
Copyright © 2012–2024 , Chengdu Ebyte Electronic Technology Co., Ltd.
NE2-S1/NE2-S1-TB User Manual
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ne2-s1-tbNe2-t1Ne2-t1b

Table of Contents