From 5f2e06850028e286bd95cfd003dd0682af267be3 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期日, 29 三月 2020 11:29:07 +0800 Subject: [PATCH] 增加组ID模式 --- 源码/核心板/Src/application/global_param.h | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/global_param.h" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/global_param.h" index 00e7832..2981d1b 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/global_param.h" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/global_param.h" @@ -12,7 +12,7 @@ #define DEV_ID 0x2 //设备的Id #define COM_INTERVAL 0x3 //通讯间隔 #define MAX_REPORT_ANC_NUM 0x4 //单次通讯基站上限 -#define MIN_REPORT_ANC_NUM 0x5 //单次通讯基站下限 +#define GROUP_ID 0x5 //单次通讯基站下限 #define DIST_OFFSET 0x6 #define DEV_ROLE 0x7 //该设备是anchor还是tag #define ANC_POLL 0x8 //基站主动测距 @@ -23,6 +23,19 @@ #define ALARM_DISTANCE3 0xC //小于多少距离报警 #define PAIR_ID 0xD //小于多少距离报警 #define HEARTBEAT 0xE +#define MODBUS_MODE 0xF + +#define NEARBASE_NUM 0x10 +#define NEARBASE_ID1 0x11 +#define NEARBASE_ID2 0x12 +#define NEARBASE_ID3 0x13 +#define NEARBASE_ID4 0x14 +#define NEARBASE_ID5 0x15 +#define NEARBASE_ID6 0x16 +#define NEARBASE_ID7 0x17 +#define NEARBASE_ID8 0x18 +#define NEARBASE_ID9 0x19 +#define NEARBASE_ID10 0x1a #define CNT_RESTART 0x30 #define CNT_REBOOT 0x31 @@ -36,6 +49,6 @@ extern uint32_t save_com_map_to_flash(void); extern void parameter_init(void); - +extern u8 group_id; #endif -- Gitblit v1.9.3