cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Channel Activity Detection (CAD) on STM32WLE5 LoRa receiver

sandeep_kumar_v
Associate II

Hi,

I'm working on Low Power mode of the LoRa on STM32WLE5. My main moto is to get the best possible low power consumption. By experimenting and documentation, Radio consumes more power. So, I wanted to make that into Standby mode and from that I wanted to set the radio into CAD mode by setting the cad Parameters. And also I have reconfigured the Radio every time the radio is being timed out.

I'm using SF7 Spreading factor and TX and RX preamble length is 6. So I set the recommended CAD parameters as per the reference manual.

 

Radio.Standby();
SUBGRF_SetCadParams(LORA_CAD_02_SYMBOL, 22, 10, LORA_CAD_RX, 0xFA00);
Radio.StartCad();

 

static void OnCadDone(bool channelActivityDetected)
{
if(channelActivityDetected == true){
APP_LOG(TS_ON, VLEVEL_L, "Woke up with CAD\n");
} else {
APP_LOG(TS_ON, VLEVEL_L, "CAD Timeout\n");

Radio.SetChannel(868000000);

Radio.SetRxConfig(MODEM_LORA, LORA_BANDWIDTH, LORA_SPREADING_FACTOR,
LORA_CODINGRATE, 0, LORA_PREAMBLE_LENGTH,
LORA_SYMBOL_TIMEOUT, LORA_FIX_LENGTH_PAYLOAD_ON,
0, true, 0, 0, LORA_IQ_INVERSION_ON, true);

Radio.SetMaxPayloadLength(MODEM_LORA, 255);

Radio.Standby();
SUBGRF_SetCadParams(LORA_CAD_02_SYMBOL, 22, 10, LORA_CAD_RX, 0xFA00);
Radio.StartCad();
}
}

 

CAD timeout = Timeout[23:0] x 15.625 μs

I have kept the Timeout[23:0] value as 0xFA00 in the function So, CAD timeout will be of 1sec. But, The timeout is of 6 ms. And also After timing out for 2 seconds, Without any data from the Transmitter, it is detecting the preamble and it's waking Up.

Is this the issue with the configuration?

Is there any alternative of doing this which consumes lesser power than this?

 

Thanks

0 REPLIES 0