|
@ -1,7 +1,7 @@ |
|
|
#pragma once
|
|
|
#pragma once
|
|
|
#include <stdint.h>
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
#define PROTOCOL_VERSION 2
|
|
|
|
|
|
|
|
|
#define PROTOCOL_VERSION 3
|
|
|
#define HEART_OVERTIME (30 * 1000)
|
|
|
#define HEART_OVERTIME (30 * 1000)
|
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
#pragma pack(1)
|
|
@ -87,7 +87,6 @@ typedef enum { |
|
|
kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机
|
|
|
kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机
|
|
|
} ProjectID_t; |
|
|
} ProjectID_t; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline const char *ProjectIDToString(uint32_t id) { |
|
|
static inline const char *ProjectIDToString(uint32_t id) { |
|
|
switch (id) { |
|
|
switch (id) { |
|
|
case klarge_space_disinfection_machine: |
|
|
case klarge_space_disinfection_machine: |
|
@ -115,6 +114,7 @@ typedef enum { |
|
|
kerr_motor_subdevice_offline = 101, |
|
|
kerr_motor_subdevice_offline = 101, |
|
|
kerr_motor_driver_error = 102, |
|
|
kerr_motor_driver_error = 102, |
|
|
kerr_motor_undervoltage_error = 103, |
|
|
kerr_motor_undervoltage_error = 103, |
|
|
|
|
|
kerr_motor_unkown_error = 104, |
|
|
|
|
|
|
|
|
kerr_AirBlowerError = 200, // 空压机异常
|
|
|
kerr_AirBlowerError = 200, // 空压机异常
|
|
|
kerr_HeaterError = 201, // 加热片异常
|
|
|
kerr_HeaterError = 201, // 加热片异常
|
|
|