Is Rx Gain set?

Hi,

I am using RAK3172 and the P2P mode and loving it!

I’m trying to read the code to figure out if rx gain is set or not, and if not if there is a way to do that… I’m talking about the SUBGHZ_RXGAINCR register. ( see https://www.st.com/resource/en/reference_manual/rm0453-stm32wl5x-advanced-armbased-32bit-mcus-with-subghz-radio-solution-stmicroelectronics.pdf )

There seem to be a SUBGRF_SetRxBoosted function in radio_driver.c but I can’t find that is is used. The default value for the register appear to be that rx gain is off.

Would I need to modify RAK-STM32-RUI BSP to enable rx gain?

Hi @henla464 ,

RX gain control is not accessible in RUI3 functions/api. Even if you can directly modify it, you have to check first with STMicroelectronics team if this parameter can be controlled if you use STM32WL for LoRa/LoRaWAN. I am thinking that this parameter is only available on standard SubGHZ RF applications of STM32WL, not for LoRa (specially LoRaWAN).

Thank you!

It looks to me that changing the function “service_lora_p2p_recv” (and “OnTxDone”) in STM32WLE/component/service/lora/service_lora_p2p.c to call Radio.RxBoosted instead of Radio.Rx should set the register.

Haven’t done any test though and maybe I am missing something.