From 17acf589e4cb214a636813e60cdd3247b4cfabe3 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期二, 08 四月 2025 10:42:22 +0800 Subject: [PATCH] V1.57 1.修复UWB唤醒读取ID的bug,会导致UWB出错的时候,卡死。充电的时候UWB有时会出现读取错误,但是去掉充电器之后,会自动恢复。 --- Src/radio/Lora.h | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Src/radio/Lora.h b/Src/radio/Lora.h index 44f4820..d80c6ed 100644 --- a/Src/radio/Lora.h +++ b/Src/radio/Lora.h @@ -13,19 +13,38 @@ void LedToggle(void); void SwitchLoraSettings(uint32_t freq,uint8_t sf,uint8_t power); void LoraInit(void); -#define TEST_FREQ -#ifdef TEST_FREQ +//#define TEST_FREQ +#ifdef TEST_FREQ +#define LORA_UPCHANNEL_FRQ 456 +#define LORA_UPCHANNEL_SF 7 + +#define TEST_FREQ_OFFSET 0 #define UWB_CHANNEL_FRQ 450 #define UWB_CHANNEL_SF 5 -#define REPORT_MANGE_CHANNEL_FRQ 458 +#define REPORT_MANGE_CHANNEL_FRQ 458 +TEST_FREQ_OFFSET #define REPORT_CHANNEL_SF 7 #else +#define LORA_UPCHANNEL_FRQ 476 +#define LORA_UPCHANNEL_SF 8 + #define UWB_CHANNEL_FRQ 470 #define UWB_CHANNEL_SF 5 -#define REPORT_MANGE_CHANNEL_FRQ 478 +#define START_FREQ 480 +#define END_FREQ 483 //LR 远距离通道 + +//#define REPORT_MANGE_CHANNEL_FRQ 500 #define REPORT_CHANNEL_SF 7 +#define LR_CHANNEL_SF 9 #endif +#define APP2_ADRESS 0X8012800 +#define APP1_ADRESS 0X8005000 + +#define APP_SIZE 0XAB00 + +#define APP_1OR2_ADRESS 0x8004B38 + #endif +void LoraUp_Poll(); \ No newline at end of file -- Gitblit v1.9.3