From 8dd2c20ddb32d065b877d66394e52a73c0376838 Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期二, 13 五月 2025 09:39:54 +0800
Subject: [PATCH] 1.72,加入拉高lora的cs脚,兼容带lora的免布线基站

---
 Src/application/dw_app.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h
index d7c209a..5a7dccf 100644
--- a/Src/application/dw_app.h
+++ b/Src/application/dw_app.h
@@ -11,6 +11,7 @@
 #define MAX_ANCFREQ    20//基站频率上限
 #define NOTAG_FREQ     1// 无标签情况下,基站定位频率
 #define FREQ_LOST_TIME   30 // 标签无信号恢复频率1HZ时间。秒
+#define FREQ_LOST_RESTART_TIME   3600 // 标签无信号恢复频率1HZ时间。秒
 #define SENDANCPARA_LEN 102
 #define BASELOST_STOPMOTOR_TIME 5
 //BITSTATE
@@ -49,6 +50,7 @@
 #define MBX_RESPONSE   			            0x21
 #define MBX_FINAL   					    0x22
 #define MBX_PRAAREPLY   					0x23
+#define MBX_REG   						    0x24
 //General
 #define GROUP_ID_IDX   				0
 #define ANCHOR_ID_IDX    			1
@@ -74,6 +76,17 @@
 #define FINAL_MSG_TS_LEN 4
 //SYNC
 #define SYNC_SEQ_IDX    			5
+
+
+//REG POLL
+#define REGP_TAGSTATE_INDEX  10
+#define REGP_VERSION_INDEX  11
+#define REGP_FREQUENCY_INDEX  13
+#define REGP_POWER_INDEX  14
+#define REGP_IMUTHRES_INDEX  15
+#define REGP_NOMOVESLEEPTIME_INDEX  17
+#define REGP_HEIGHTOFFSET_INDEX 19
+
 //NEAR MSG
 #define NEARMSG_EMPTYSLOTPOS_INDEX		 1 //RESPONSE
 #define NEARBASENUM_INDEX    10

--
Gitblit v1.9.3