LoRa Point-to-Point Communication Issue with SF12 and BW125 on STM32WLE5CCU6, (RX Errors)
Hi,
I am working on a LoRa point-to-point communication project using the STM32WLE5CCU6 chipset, referring to the SubGHz_Phy_PingPong example code. The communication works fine with SF7, but I’m encountering issues when transmitting on SF12 with a bandwidth of 125 kHz. Rx errors occur at the receiver, and only one packet is received in 5 tries.The distance between the transmitter and receiver is less than 3 meters."
Setup Details:
- Chipset: STM32WLE5CCU6
- SDK Version: STM32Cube_FW_WL_V1.3.0
- Communication Type: Point-to-point LoRa
- Project: I started by importing the SubGHz_Phy_PingPong.ioc file and generated code with MX. I then copied the necessary lines of code for the SubghzApp_Init() function from the SubGHz_Phy_PingPong example project.
Configured LoRa parameters are given below.
/* MODEM type: one shall be 1 the other shall be 0 */
#define USE_MODEM_LORA 1
#define USE_MODEM_FSK 0
#define RF_FREQUENCY 866000000 /* Hz */
#ifndef TX_OUTPUT_POWER /* please, to change this value, redefine it in USER CODE SECTION */
#define TX_OUTPUT_POWER 14 /* dBm */
#endif /* TX_OUTPUT_POWER */
#if (( USE_MODEM_LORA == 1 ) && ( USE_MODEM_FSK == 0 ))
#define LORA_BANDWIDTH 0 /* [0: 125 kHz, 1: 250 kHz, 2: 500 kHz, 3: Reserved] */
#define LORA_SPREADING_FACTOR 12 /* [SF7..SF12] */
#define LORA_CODINGRATE 1 /* [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8] */
#define LORA_PREAMBLE_LENGTH 8 /* Same for Tx and Rx */
#define LORA_SYMBOL_TIMEOUT 5 /* Symbols */
#define LORA_FIX_LENGTH_PAYLOAD_ON false
#define LORA_IQ_INVERSION_ON false
I would appreciate any guidance or suggestions to help resolve the issue with SF12 at 125 kHz.
Thank you in advance for your support.
