Heartbeat

For each certain period, Neuron would send a heartbeat to the IIoT platform for aliveness. If IIoT platform can’t receive this heartbeat in certain time (e.g. 5 seconds), it may treat the Neuron as dead. In addition, heartbeat message may contain some useful information such as alarm status, running mode, communication status and data usage.

MQTT Topics for Neuron

Publish: Neuron/Heartbeat/%UUID%

MQTT Topics for IIoT platform

Subscribe: Neuron/Heartbeat/%UUID%

Heartbeat - 图1

Heartbeat - 图2

Neuron heartbeat syntax

  1. {
  2. "tstp": 1581515618,
  3. "comm": "UP",
  4. "mach": "MANU",
  5. "mode": "ACTIVE",
  6. "mqcn": "MQCONNECT",
  7. "dalm": "NON-EXIST",
  8. "galm": "UNACKNOWLEDGE",
  9. "ngal": 4,
  10. "grow": \[{
  11. "acat": "alarm",
  12. "astt": "OFF",
  13. "amod": "UNACKALARM",
  14. "atim": 1581513580,
  15. "alid": 1,
  16. "comt": "temp1@Temp (812) < low@Temp (800)"
  17. }, {
  18. "acat": "alarm",
  19. "astt": "ON",
  20. "amod": "UNACKALARM",
  21. "atim": 1581515415,
  22. "alid": 3,
  23. "comt": "temp2@Temp (791) < low@Temp (800)"
  24. }, {
  25. "acat": "critical",
  26. "astt": "ON",
  27. "amod": "UNACKALARM",
  28. "atim": 1581515415,
  29. "alid": 4,
  30. "comt": "temp3@Temp (864) > high@Temp (850)"
  31. }, {
  32. "acat": "alarm",
  33. "astt": "OFF",
  34. "amod": "UNACKALARM",
  35. "atim": 1581513592,
  36. "alid": 5,
  37. "comt": "temp3@Temp (864) < low@Temp (800)"
  38. }]
  39. }
Heartbeat
tstp TimeStamp
comm PLC or hardware communication status
UP
DOWN
mach Machine Mode
AUTO
MANU
SERV
mode Please refer to Status Mode section.
Inactive Mode
Standby Mode / Semi-Standby Mode
Active Mode / Semi-Active Mode
mqcn MQ broker connection status
MQCONNECT
MQDISCONNECT
dalm Device Alarm which specify which device has
communication problem.
ndal Number of device alarms
drow Device alarm rows
chnl Channel number of devices
addr Address of devices
galm General Alarm which user define their own alarms and
triggers
ngal Number of general alarms
grow General alarm rows
acat Alarm Category
critical
alarm
warning
event
view
astt Alarm Status
ON
OFF
amod Alarm Mode
UNACKALARM
DISABLE
atim Alarm TimeStamp
alid Alarm ID
must be copied this ID when user acknowledge function
80
comt Alarm Comments