Heartbeat Packet Function Configuration - Ebyte EA01-S User Manual

Nb-iot module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd
<on-off>: It means opening or closing socket 0, 1 means open, 0 means closed.
Note: When power-off saving is required, input AT+NRB command will save the parameters to the flash, and the
automatic restart will take effect.

3.11 Heartbeat packet function configuration

3.11.1 Configure TCP/UDP heartbeat packet content
AT command
AT+HEARTINFO=<type>,<data>\r\n
AT+HEARTINFO \r\n
<type>: 0 indicates that the heartbeat packet type is in HEX format, and 1 indicates that the heartbeat type is in ASCII
code (string) format.
<data>: The data content of the heartbeat packet, the maximum length is less than 40, and the default value is "Ebyte
nbiot heart rate data".
Note: When power-off saving is required, input AT+NRB command will save the parameters to the flash, and the
automatic restart will take effect.
3.11.2 Send heartbeat packet command
AT command
AT+SENDHEART=<send>\r\n
(1) Input AT command AT+SENDHEART=1, then the heartbeat packet can be sent.
(2) If <pdu_type> is selected as TCP/UDP, the TCP/UDP heartbeat packet will be sent, if it is MQTT, the MQTT
heartbeat packet will be sent ("PINGRESP" will be printed on the serial port after successful transmission), and if it is
Ebyte Cloud, the Ebyte Cloud heartbeat packet will be sent.
3.11.3 Heartbeat packet mode and heartbeat cycle configuration
AT command
AT+HEARTMOD=<mode>,<period>\r\n
(1) This command is used to realize the function of sending heartbeat packets periodically. The function of sending
heartbeat periodically is mainly used in DTU function scenarios (no low power consumption requird). To set the
periodic heartbeat function, you first need to set AT+DTUUSER=1 and AT+NRB to save after power-off, that is, the
Copyright ©2012–2020,Chengdu Ebyte Electronic Technology Co., Ltd
.
Response
OK
<data>
OK
Response
OK
Response
OK
EA01-S User Manual
11

Advertisement

Table of Contents
loading

Table of Contents