From ef13ded1ca160a6edabe2e32b5a37eed87b388f1 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期四, 21 十一月 2024 12:04:02 +0800 Subject: [PATCH] V2.11随机上传时间,分析网关丢包问题 --- Src/radio/Lora.h | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/Src/radio/Lora.h b/Src/radio/Lora.h index 936c369..138c340 100644 --- a/Src/radio/Lora.h +++ b/Src/radio/Lora.h @@ -7,8 +7,40 @@ void OnRxTimeout( void ); void OnRxError( void ); void T_R_Init(uint8_t kind); -void Lora_Init(void); +void Lora433rx_Init(void); void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ); void OnTxDone( void ); void LedToggle(void); +void SwitchLoraSettings(uint32_t freq,uint8_t sf,uint8_t power); +void LoraInit(void); + +//#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 +TEST_FREQ_OFFSET +#define REPORT_CHANNEL_SF 7 +#else +#define LORA_UPCHANNEL_FRQ 476 +#define LORA_UPCHANNEL_SF 7 + +#define UWB_CHANNEL_FRQ 470 +#define UWB_CHANNEL_SF 5 + +#define REPORT_MANGE_CHANNEL_FRQ 478 +#define REPORT_CHANNEL_SF 8 +#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