Chengdu Ebyte Electronic Technology Co.,Ltd.
E18-DTU(Z27-ETH) User Manual
Copyright ©2023
,成都亿佰特电子科技有限公司
3.4.3 UDP server mode
UDP Server means that the device does not verify the source IP address of the data when communicating with the UDP protocol, and
after each UDP packet is received, the source IP address and source port of the packet are saved, and they are set as the destination IP and port,
so the data sent by the device only sends packets to the source IP address and port where the last time the device received data
。
This mode is usually used in scenarios where multiple network devices communicate with this device at a high frequency and TCP Server
cannot meet the conditions。
Using UDP Server requires the remote UDP device to send data first, otherwise it cannot send data normally
。
Note: In UDP mode, the network should send data to devices less than 512 bits per packet, otherwise data loss will result。
3.4.4 UDP client mode
UDP Client A connectionless transport protocol that provides simple, transaction-oriented unreliable messaging services, with no
connection established and disconnected, and only the destination IP and destination port need to be configured to send data to each other. It is
usually used in data transmission scenarios where there is no requirement for packet loss, packets are small and sent frequently, and data is to
be transmitted to a specified IP.