From d875292ca0e18a027067f5c1c6bec205b3cfba31 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期五, 18 十月 2024 18:24:19 +0800 Subject: [PATCH] 低功耗优化代码控制在500UA左右,缩小每次接收超时时间为2500和帧间隔缩为600,URT端也相应改为400帧间隔,目前实现较稳定测距 --- keil/uwb_tag_.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keil/uwb_tag_.c b/keil/uwb_tag_.c index afa4e20..5dafa93 100644 --- a/keil/uwb_tag_.c +++ b/keil/uwb_tag_.c @@ -25,7 +25,7 @@ #define POLL_DELAY 100U //yuan100U /* Receive response timeout */ -#define RESP_RX_TIMEOUT_US 5000U //Yuan500 10mssuccess 300jixian +#define RESP_RX_TIMEOUT_US 2500U //Yuan500 10mssuccess 300jixian /* Field index in frame */ #define MSG_SEQ_NUM_IDX 2 @@ -33,7 +33,7 @@ #define FINAL_MSG_RESP_RX_TS_IDX 14 #define FINAL_MSG_FINAL_TX_TS_IDX 18 #define DELAY_DEFAULT 50000 -#define DELAY_BETWEEN_TWO_FRAME_UUS 1400 +#define DELAY_BETWEEN_TWO_FRAME_UUS 600 //yuan1400 #define HALF_SECOND_TIME 62400000 uint16_t CmpTagInList(uint16_t tagid); -- Gitblit v1.9.3