|
|
@ -1,7 +1,7 @@ |
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define PROTOCOL_VERSION 3
|
|
|
|
#define PROTOCOL_VERSION 4
|
|
|
|
#define HEART_OVERTIME (30 * 1000)
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
@ -46,19 +46,19 @@ typedef enum { |
|
|
|
|
|
|
|
typedef enum { |
|
|
|
kMainBoard = 0, // 主机
|
|
|
|
kBoardType_LiquidCtrl = 1, // 液路板
|
|
|
|
kBoardType_PowerControl = 2, // 电源板
|
|
|
|
kBoardType_PowerControlMiniBoard = 3, // 电源控制Mini板,用于拉杆箱箱消毒机
|
|
|
|
kBoardType_ExtBallValveCtrl = 4, // 外部球阀控制板
|
|
|
|
kBoardType_H2O2Sensor = 5, // H2O2传感器板
|
|
|
|
kBoardType_LiquidCtrl = 2, // 液路板
|
|
|
|
kBoardType_PowerControl = 3, // 电源板
|
|
|
|
kBoardType_PowerControlMiniBoard = 4, // 电源控制Mini板,用于拉杆箱箱消毒机
|
|
|
|
kBoardType_ExtBallValveCtrl = 5, // 外部球阀控制板
|
|
|
|
kBoardType_H2O2Sensor = 6, // H2O2传感器板
|
|
|
|
} BoardType_t; |
|
|
|
|
|
|
|
typedef enum { |
|
|
|
kFixBoardId_MainBoard = 0, // 主机
|
|
|
|
kFixBoardId_LiquidCtrl = 1, // 液路板
|
|
|
|
kFixBoardId_PowerControl = 2, // 电源板
|
|
|
|
kFixBoardId_PowerControlMiniBoard = 3, // 电源控制Mini板,用于拉杆箱箱消毒机
|
|
|
|
kFixBoardId_ExtBallValveCtrl = 4, // 外部球阀控制板
|
|
|
|
kFixBoardId_MainBoard = 1, // 主机
|
|
|
|
kFixBoardId_LiquidCtrl = 2, // 液路板
|
|
|
|
kFixBoardId_PowerControl = 3, // 电源板
|
|
|
|
kFixBoardId_PowerControlMiniBoard = 4, // 电源控制Mini板,用于拉杆箱箱消毒机
|
|
|
|
kFixBoardId_ExtBallValveCtrl = 5, // 外部球阀控制板
|
|
|
|
kFixBoardId_H2O2SensorStart = 100, // H2O2传感器板
|
|
|
|
} FixBoardId_t; |
|
|
|
static inline const char *BoardTypeToString(uint32_t type) { |
|
|
|