User Manual
Your Trustworthy Industrial IoT Partner www.pusr.com
Fig. 41 Transient connection
4.3. UDP Server
4.3.1. Properties
User Datagram Protocol (UDP) is a faster and more efficient transport protocol than TCP but it is a connectionless transport protocol,
it does not guarantee the delivery of network datagram. In UDP mode, you can unicast or multicast data from the serial device to one
or multiple host computers, and the serial device can also receive data from one or multiple host computers. Please beware that even
though UDP provides better efficiency in terms of response time and resource usage, it does not guarantee data delivery. It is
recommended to utilize UDP only with cyclic polling protocols where each request is repeated and independent, such as Modbus
Protocol.
When the working mode of the device is UDP server, the remote device must also work in UDP mode. You only need to specify the
Local Port that USR-M100 should listen to. In UDP server mode, serial port data is always sent to the last peer UDP device(IP and port)
that communicates with the USR-M100, and the USR-M100 can record the IP and port number only after the peer UDP device sends
data to the USR-M100 first.
Fig.42 shows an example of configuration setting for UDP Server mode under the Uart1 socket page. You can configure other serial
ports in the same way.
Fig. 42 UDP server work mode
Please follow the following steps to configure connection settings of the operation mode for Uart1 port.
1. Click on the “Uart1” tab on the menu frame on the left side of Web UI to go to Uart1 page as shown in Fig.42.
2. For Serial Settings on the Port configuration page, please go to Section 3.1.3.
3. Click on the Socket tab in this page, select UDP Server in the working mode options.
4. Local Port specifies the local port number for UDP server mode on M100 which it will be listening to and it can be any number
between 1 and 65535. The local ports of different serial ports must be different. After receiving network data, the device determines
which serial port the data is sent to based on the local port.
5. After finishing configuring the working Mode, please scroll down to the bottom of the page and click on "Save & Apply" button to
save all the changes that you have made. All configurations take effect after a system reboot.
Serial port data is firstly sent to the preset destination IP/domain name and Destination port. After receiving a UDP packet, the system