Chengdu Ebyte Electronic Technology Co.,Ltd.
NB183S&NB183_User Manual
Copyright ©2012–2022
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
18
minutes, and the user can customize the turn-on or turn-off timeout restart period or the period of no data restart.
4.3 Hardware reset to factory
Press and hold the Reload pin of the device for 5s until the NET indicator no longer flashes, keep the NET indicator on
for 5s, and the device is restored to the factory.
4.4 Device working mode
4.4.1 TCP Server
TCP Server is the TCP server. In TCP Server mode, the device listens to the local port, accepts the client's connection
request and establishes a connection for data communication. When the Modbus gateway function is turned off, the
device sends the data received by the serial port to all client devices that establish a connection with the device.
The number of clients that can be accessed by the server is dynamically adjusted. First, ensure that each channel of the
eight channels can establish a complete communication link. In addition, the device also has 8 dynamic access
communication links. For example, if the device turns on the eight-channel server mode, each server Two client devices
can be connected, or if one server is enabled on the device, the server can connect to 9 client devices. If the number of
client devices exceeds the number of accesses, the device will refuse the connection.
4.4.2 TCP Client
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.
To use the client, you need to configure the target IP address/domain name and target port accurately.
Eight channels can independently open eight TCP clients.
4.4.3 UDP Server
UDP Server means that the device does not verify the IP address of the data source when communicating with the UDP
protocol. After each UDP data packet is received, it saves the source IP address and source port of the data packet, and
sets it as the destination 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 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 transmission 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