From 47f192f2df5c40a0cc0f063e8dc98b813174b8d3 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期五, 18 十月 2024 18:27:10 +0800 Subject: [PATCH] 手环低功耗优化版本,手环绑定报警下15分钟内平均功耗26MA左右,修改手环range循环接收逻辑,减少帧间隔为600,通过修改震动1s停2s优化功耗,对应URT帧间隔400,能实现稳定测距 --- keil/dw_app_anchor.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/keil/dw_app_anchor.h b/keil/dw_app_anchor.h index b41187b..9b55b15 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 -- Gitblit v1.9.3