
Chengdu Ebyte Electronic Technology Co., Ltd.
NB1A1User Manual
Copyright ©2012–2023
,
Chengdu Ebyte Electronic Technology Co., Ltd.
23
Chapter 5 Advanced functions
5.1 Heartbeat packet and registration packet
5.1.1 Heartbeat packet
In the client mode, you can send heartbeat packets and set the heartbeat packet time. The
heartbeat packet can be sent in hexadecimal and ASCII codes. This heartbeat packet is not MQTT
heartbeat, and the MQTT client mode needs to be disabled. The MQTT heartbeat packet can only be
configured with "Heartbeat Period" in the column of "MQTT Parameter Configuration". It is
recommended that the value be less than 60 seconds, for example, the recommended value is 120s in
the Alibaba Cloud manual.
Heartbeat packet sending mode:
1. The heartbeat packet mode is disabled by default.
2. Serial port Mode -> The device sends heartbeat messages to the serial port bus at the
specified heartbeat interval.
3. Network Port Mode -> The device sends heartbeat messages to the network port bus at the
specified heartbeat interval.
User-defined heartbeat packet content (maximum 128 bytes (ASCII) data, 64 bytes (HEX) data)
If the interval for sending heartbeat packets is set to 0, the heartbeat packet function is disabled.
If the interval is greater than 0, the heartbeat packet function is enabled. When enabled, the interval
can be set to (1 to 65536) seconds.
5.1.2 registration packet
1. In client mode, the user can send the registration package and set the registration package
time.
2. The registration package supports the following modes:
3. 1. Send the MAC address (OLMAC) when the network is connected to the device.
4. 2. Send the data of the customized registration package (OLCSTM) when the network is
connected to the device.
5. 3. After the network is connected to the device, each packet sent by the device to the
network is preceded by an EMBMAC address.