From 8aa343c68337975234072baae5eda592487c4271 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期六, 16 八月 2025 18:29:41 +0800 Subject: [PATCH] 防丢手环V1.0demo版本实现一对多测距和发送震动信息 --- keil/dw_app_anchor.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/keil/dw_app_anchor.h b/keil/dw_app_anchor.h index b41187b..a124a81 100644 --- a/keil/dw_app_anchor.h +++ b/keil/dw_app_anchor.h @@ -3,6 +3,11 @@ #include "stdint.h" void SetANCTimestap(uint8_t i,uint8_t* pollrx,uint8_t* resptx,uint32_t resprx,uint8_t* distoffset,int32_t anc_clockoffset); void CalculateDists(int64_t poll_tx_ts); +typedef enum +{ UN_BIND=0, + LINK_SUCCESS, + SEARCH_DEV, +} Operation_step; #define MBX_RESPONSE 0x21 #define MBX_POLL 0x20 #define MBX_RESPONSE 0x21 @@ -28,6 +33,8 @@ #define RESP_MSG_RESP_TX_TS_IDX 30 #define RESP_MSG_ANC_DISTOFFSET 34 +#define RESP_MSG_TAG_FREQUENCY 36//修改标签频率 +#define RESP_MSG_TAG_MOTOR 37 //震动时间 #define TAG_KEEPTIMES 30 //标签存活时间 #define MAX_TAG_LIST_NUM 200 //同时通讯标签最大数量 -- Gitblit v1.9.3