From 2793d57d7d94a044240958a8084b345369c1ef7a Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 8 Aug 2024 15:17:34 +0800 Subject: [PATCH] add pressure sensor scan cmd --- transmit_disfection_protocol.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/transmit_disfection_protocol.hpp b/transmit_disfection_protocol.hpp index 9f1cb03..122a672 100644 --- a/transmit_disfection_protocol.hpp +++ b/transmit_disfection_protocol.hpp @@ -142,9 +142,10 @@ typedef enum { /*********************************************************************************************************************** * 压力传感器数据上报 * ***********************************************************************************************************************/ - kfn_pressure_sensor_bus_read_data = 400, // cmd:subid ack:pressure(0.1pa) - kfn_pressure_sensor_bus_set_report_period_ms = 401, // cmd:period - kreport_pressure_data = 450, // report:subid pressure(0.1pa) + kfn_psbus_read_data = 400, // cmd:subid ack:pressure(0.1pa) + kfn_psbus_set_report_period_ms = 401, // cmd:period + kfn_psbus_scan = 402, // + kreport_pressure_data = 450, // report:subid pressure(0.1pa) /*********************************************************************************************************************** * MINI_PWM风机控制 * @@ -288,6 +289,11 @@ typedef struct { uint16_t sysHasRun; } ack_sysinfo_t; +typedef struct { + uint8_t numOnlineId; + uint8_t onlineId[10]; +} ack_psbus_scan_t; + /*********************************************************************************************************************** * Report * ***********************************************************************************************************************/