From 40bbf9d0543ea590085134160fb98aef8190eb59 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期三, 01 二月 2023 16:26:00 +0800 Subject: [PATCH] 测试标签远程读取参数功能正常,写入参数还不行 --- Src/application/dw_app.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Src/application/dw_app.h b/Src/application/dw_app.h index 153240b..172647f 100644 --- a/Src/application/dw_app.h +++ b/Src/application/dw_app.h @@ -8,6 +8,7 @@ #include "ADC.h" #include "TrackingDiff.h" +#define SENDANCPARA_LEN 102 #define BASELOST_STOPMOTOR_TIME 5 //BITSTATE #define GOINGSLEEPBIT 1 @@ -39,11 +40,13 @@ #define NEAR_POLL 0x06 #define NEAR_RESPONSE 0x07 #define NEAR_FINAL 0x08 +#define NEAR_PRAAREPLY 0x20 //General #define GROUP_ID_IDX 0 #define ANCHOR_ID_IDX 1 #define TAG_ID_IDX 5 #define MESSAGE_TYPE_IDX 9 +#define MESSAGE_PARAREPLY_IDX 10 //Poll #define TAGSTATE 7 #define ANC_TYPE_IDX 14 @@ -53,7 +56,7 @@ #define ANCTIMEUS 16 #define TAGSLOTPOS 7 #define MOTORSTATE_INDEX 19 -#define REMOTEPARA_INDEX 20 +#define REMOTEPARA_INDEX 22 //Final #define TAGCONFIGSUCCESS_INDEX 7 #define FINAL_MSG_POLL_TX_TS_IDX 10 -- Gitblit v1.9.3