Chengdu Ebyte Electronic Technology Co., Ltd.
NB144 User Manual
Copyright ©2012
,
Chengdu Ebyte Electronic Technology Co., Ltd.
25
5 Advanced Features
5.1 Heartbeat package and registration package
5.1.1 heartbeat packet
In client mode, users can choose to send heartbeat packets and customize the heartbeat packet
time. The heartbeat packet can choose network heartbeat packet and serial port heartbeat packet. It
supports hexadecimal and ASCII code sending. This heartbeat packet is not MQTT heartbeat. It
needs to be closed when using MQTT client mode. MQTT heartbeat can only be set in the "MQTT
parameter configuration" column. Configure "Heartbeat Period" in the next step. The content of the
MQTT heartbeat packet is restricted by the protocol and cannot be configured. It is recommended
not to configure it for less than 60s. For example, the Alibaba Cloud manual recommends using
120s.
Heartbeat packet sending mode:
1. The default is to turn off the heartbeat packet mode.
2. Serial mode -> The device sends heartbeat content to the serial bus according to the set
heartbeat time interval.
3. Network port mode -> The device sends heartbeat content to the network port bus according
to the set heartbeat time interval.
Customize the content of the heartbeat packet (support up to 40 bytes (ASCII) data, 20 bytes
(HEX) data)
Customize the heartbeat packet sending time interval. When it is set to 0, the heartbeat packet
function is turned off. When the value is greater than 0, the heartbeat packet function is turned on.
When it is turned on, the range can be set: (1-65536) seconds, and the default value is 0.
5.1.2 registration package
In the client mode, the user can choose to send the registration package and customize the
registration package time.
The registration package supports the following modes:
1. The MAC address (OLMAC) is sent when the network establishes a connection with the
device.