From 631a90c1116fa33382a88a747c89bf761bc0fa9b Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期五, 01 十一月 2024 16:32:38 +0800 Subject: [PATCH] 成功移植安邦手环升级UART1的BOOTV1.0,测试升级成功,可用稳定版本 --- dualboots_Gai_youhua/keil/secondboot/include/components/app/src/ranging_ss_twr_task.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dualboots_Gai_youhua_anbang_tag/keil/customboot/include/components/app/src/ranging_ss_twr_task.c b/dualboots_Gai_youhua/keil/secondboot/include/components/app/src/ranging_ss_twr_task.c similarity index 98% copy from dualboots_Gai_youhua_anbang_tag/keil/customboot/include/components/app/src/ranging_ss_twr_task.c copy to dualboots_Gai_youhua/keil/secondboot/include/components/app/src/ranging_ss_twr_task.c index 1ca8edc..1f2e0e9 100644 --- a/dualboots_Gai_youhua_anbang_tag/keil/customboot/include/components/app/src/ranging_ss_twr_task.c +++ b/dualboots_Gai_youhua/keil/secondboot/include/components/app/src/ranging_ss_twr_task.c @@ -122,6 +122,7 @@ double tof_f; int64_t Tround; int64_t Treply; + int error; void ranging_handler(wsfEventMask_t event, const void *param) { const wsfMsgHdr_t *msg = (const wsfMsgHdr_t *)param; @@ -153,7 +154,7 @@ uint16_t seq_num = READ_SHORT(&ind->tx_data[2]); LOG_INFO(TRACE_MODULE_APP | TRACE_NO_OPTION, "\r\n"); - LOG_INFO(TRACE_MODULE_APP, "SS-TWR Initiator SEQ NUM %u\r\n", seq_num); + LOG_INFO(TRACE_MODULE_APP, "SS-TWR Initiator SEQ NUM %u and error is %d\r\n", seq_num,error); LOG_INFO(TRACE_MODULE_APP, "[TX][%u] Poll\r\n", ind->tx_len); } else if (ind->ranging_stage == RANGING_RESPONSE) @@ -366,7 +367,9 @@ } else { - LOG_INFO(TRACE_MODULE_APP, "UWB RX fail 0x%04x\r\n", ind->status); + error++; + //LOG_INFO(TRACE_MODULE_APP, "UWB RX fail 0x%04x\r\n", ind->status);yuan + LOG_INFO(TRACE_MODULE_APP, "UWB RX fail num is %d \r\n", error); } } break; -- Gitblit v1.9.3