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. {
  12. "acat": "alarm",
  13. "astt": "OFF",
  14. "amod": "UNACKALARM",
  15. "atim": 1581513580,
  16. "alid": 1,
  17. "comt": "temp1@Temp (812) < low@Temp (800)"
  18. },
  19. {
  20. "acat": "alarm",
  21. "astt": "ON",
  22. "amod": "UNACKALARM",
  23. "atim": 1581515415,
  24. "alid": 3,
  25. "comt": "temp2@Temp (791) < low@Temp (800)"
  26. },
  27. {
  28. "acat": "critical",
  29. "astt": "ON",
  30. "amod": "UNACKALARM",
  31. "atim": 1581515415,
  32. "alid": 4,
  33. "comt": "temp3@Temp (864) > high@Temp (850)"
  34. },
  35. {
  36. "acat": "alarm",
  37. "astt": "OFF",
  38. "amod": "UNACKALARM",
  39. "atim": 1581513592,
  40. "alid": 5,
  41. "comt": "temp3@Temp (864) < low@Temp (800)"
  42. }
  43. ]
  44. }
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