Tcp Client; Udp Server; Udp Client - Ebyte NB124E User Manual

Dual serial port server
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd

4.4.2 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.
To use the client, you need to configure the IP address/domain name and target port of the target
accurately.
The two channels can independently open 2-way TCP clients.

4.4.3 UDP Server

UDP Server means that the device does not verify the source IP address of the data when using
the UDP protocol to communicate. After receiving a UDP data packet, it saves the source IP address
and source port of the data packet, and sets it 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 received the data last
time.
This mode is usually used in scenarios where multiple network devices communicate with this
device, and the frequency is high, 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 UDP mode, the data sent by the network to the device should be less than 512Bit per packet, otherwise
it will cause data loss.

4.4.4 UDP Client

UDP Client is a connectionless transmission protocol that provides transaction-oriented simple
and unreliable information transmission services. There is no connection establishment and
disconnection, and data can be sent to the other party only by configuring the destination IP and
destination port. It is usually used in data transmission scenarios where there is no requirement for
the packet loss rate, the data packets are small and the sending frequency is fast, and the data is to be
transmitted to the specified IP.
In UDP Client mode, the device will only communicate with the configured (target IP and target
port) remote UDP device.
In this mode, the destination address is set to 255.255.255.255, and the sending data will be
Copyright ©2012–2023,
Chengdu Ebyte Electronic Technology Co.,Ltd
NB124E_User Manual

Advertisement

Table of Contents
loading

Table of Contents