From 797fccdda3b17dda578a5e15e59958cd67dd180b Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期一, 13 二月 2023 10:35:36 +0800 Subject: [PATCH] V1.45 V2.12 免布线标签必须搭配免布线基站1.44使用 1.通过4G可以下发标签可以读取和修改免布线基站参数,(看文档$readpara_anchor $writepara_anchor). 2.增加基站频率动态修改功能(基站默认频率1HZ,如果周围标签,则按照频率最高的标签测距,没有标签后30秒变回1hz) 3.修改升级和恢复出厂设置逻辑,只能串口通讯才能触发。 --- Src/application/dw_app.h | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index 172647f..97dfaf0 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -8,6 +8,9 @@ #include "ADC.h" #include "TrackingDiff.h" +#define MAX_ANCFREQ 20//基站频率上限 +#define NOTAG_FREQ 1// 无标签情况下,基站定位频率 +#define FREQ_LOST_TIME 30 // 标签无信号恢复频率1HZ时间。秒 #define SENDANCPARA_LEN 102 #define BASELOST_STOPMOTOR_TIME 5 //BITSTATE @@ -36,11 +39,16 @@ #define RESPONSE 0x02 #define FINAL 0x03 #define SYNC 0x04 -#define NEAR_MSG 0x05 -#define NEAR_POLL 0x06 -#define NEAR_RESPONSE 0x07 -#define NEAR_FINAL 0x08 -#define NEAR_PRAAREPLY 0x20 + +//#define NEAR_POLL 0x06 +//#define NEAR_RESPONSE 0x07 +//#define NEAR_FINAL 0x08 +//#define NEAR_PRAAREPLY 0x20 + +#define MBX_POLL 0x20 +#define MBX_RESPONSE 0x21 +#define MBX_FINAL 0x22 +#define MBX_PRAAREPLY 0x23 //General #define GROUP_ID_IDX 0 #define ANCHOR_ID_IDX 1 @@ -54,7 +62,7 @@ #define DIST_IDX 10 #define ANCTIMEMS 14 #define ANCTIMEUS 16 -#define TAGSLOTPOS 7 +#define TAGFREQ_IDX 7 #define MOTORSTATE_INDEX 19 #define REMOTEPARA_INDEX 22 //Final -- Gitblit v1.9.3