Advanced Functions; Heartbeat Package And Registration Package; Heartbeat Packet; Registration Package - Ebyte NB183 User Manual

Eight serial port server
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
NB183S&NB183_User Manual

5. Advanced Functions

5.1 Heartbeat package and registration package

5.1.1 Heartbeat Packet

In client mode, users can choose to send heartbeat packets and set the time of heartbeat packets by themselves. The
heartbeat packet can be selected in two modes: network heartbeat packet and serial port heartbeat packet. It supports
hexadecimal and ASCII transmission. This heartbeat packet is not MQTT heartbeat. It needs to be turned off when using
MQTT client mode. MQTT heartbeat can only be set in the "MQTT parameter configuration" column. Configure
"Heartbeat Period" below. The content of the MQTT heartbeat packet is restricted by the protocol and is not open for
configuration. It is recommended not to configure less than 60s. For example, 120s is recommended in the Alibaba Cloud
manual.
Heartbeat packet sending mode:
1. The default is to turn off the heartbeat packet mode.
2. Serial port mode -> The device sends heartbeat content to the serial port bus according to the set heartbeat interval.
3. Network port mode -> The device sends heartbeat content to the network port bus according to the set heartbeat
interval.
Customize heartbeat packet content (maximum support 40 bytes (ASCII) data, 20 bytes (HEX) data)
Customize the heartbeat packet sending interval. When it is set to 0, the heartbeat packet function is turned off. If the
setting value is greater than zero, the heartbeat packet function is turned on. When it is turned on, the range can be set:
(1-65536) seconds.

5.1.2 Registration Package

In the client mode, the user can choose to send the registration package, and set the registration package time by
definition.
The registration package supports the following modes:
1. The MAC address (OLMAC) is sent when the network establishes a connection with the device.
2. The data of the custom registration package (OLCSTM) is sent when the network establishes a connection with the
device.
3. After the network and the device are connected, each packet of data sent by the device to the network is preceded by a
MAC address (EMBMAC).
4. After the connection is established between the network and the device, each packet of data sent by the device to the
network is preceded by custom registration packet data (EMBCSTM).
Custom registration package content (maximum support 40 bytes (ASCII) data, 20 bytes (HEX) data)
[Note] It is recommended not to use special characters (such as "," "\" "/", etc.) when configuring the registration package.
If you want to use it, it is recommended to use hexadecimal configuration.

5.2 Short connection

n client mode, short network connection is supported (this function is disabled by default). TCP short connection is
I
mainly used to save server resource overhead, and is generally used in multi-point (multi-client)-to-point (server)
scenarios.
Copyright ©2012–2022,Chengdu Ebyte Electronic Technology Co.,Ltd.
25

Advertisement

Table of Contents
loading

Table of Contents