cancel
Showing results for 
Search instead for 
Did you mean: 

LoRaWAN region

alefarri
Associate

I am developing an application from LoRaWAN End Node example in STM32WLE MCU that has to work in different countries. To select easily the LoRaWAN region from hardware I have dedicated three pins as GPIO Inputs. The idea behind is that by reading the combination of those will determine the region of operation and so, perform the corresponding modifications in firmware for correct configuration. At the end, the idea is to have only one firmware per application independently of the region.

I have found that the region is set in LmHandlerParams.ActiveRegion strcture parameter in LmHandlerConfigure() function, but i cannot find where it is assigned in the code to properly modify it. Can anyone help, please?

 

Thanks in advance.

1 REPLY 1
STTwo-32
ST Employee

Hello @alefarri 

Referring to the LoRaWAN_End_Node example, the LmHandlerParams.ActiveRegion will receive the ACTIVE_REGION Macro (on the file lora_app.c). This macro on the lora_app.h file define the region that you want to use. So, you can use the combination of GPIOs to modify this file. 

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.