From 348a24633d4acbd85f4707726aa837c5270b13fd Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期六, 28 六月 2025 18:07:21 +0800 Subject: [PATCH] 增加串口蓝牙协议,删除部分绑定标签删除不了未解决memmove函数参数错误 --- keil/uwb_app.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/keil/uwb_app.c b/keil/uwb_app.c index 6cc31ff..207421c 100644 --- a/keil/uwb_app.c +++ b/keil/uwb_app.c @@ -464,6 +464,8 @@ // anchordata_num=j; //} uint8_t find_flag; +uint16_t bind_distance,button_determinate_distance,change_by_frequency_distance; +uint8_t tag_near_frequency; extern uint32_t tag_id_authorization_list_num; void TagListUpdate(void) { @@ -516,6 +518,7 @@ resp_msg_set_ts(&send_buffer[RESP_MSG_POLL_RX_TS_IDX], poll_rx_ts_i64); resp_msg_set_ts(&send_buffer[RESP_MSG_RESP_TX_TS_IDX], resp_tx_ts_i64);//此处时间戳int64直接转换为uint64不知道会不会有错误 memcpy(&send_buffer[RESP_MSG_ANC_DISTOFFSET],&disoffset,2);//差个修正offset,修正有符号但是这个com表为无符号的,传过去直接赋给Int16_t相当于还原了 + send_buffer[RESP_MSG_TAG_FREQUENCY]=tag_near_frequency;//新加入改变标签测距hz temp_resp_i64=resp_tx_ts_i64; temp_count3= phy_timer_count_get(); flag_temp2=uwb_tx(send_buffer, 40,1 ,resp_tx_en_start_u32);//立即发送测试size大小 @@ -807,7 +810,7 @@ anchordata_bat[taglist_pos] = battary;//保存该基站电量 if(tag_authorized_List[taglist_pos]==1) { - if(tagdist_list[taglist_pos]<100) + if(tagdist_list[taglist_pos]<bind_distance) { gpio_pin_set(BUTTON_PIN); }else{ -- Gitblit v1.9.3