Skip to main content
User2501
Associate II
October 10, 2024
Solved

Merge library SubGHz and LoRaWAN on stm32wl5

  • October 10, 2024
  • 1 reply
  • 1166 views

Hello, 
I have a question regarding having both library (from the example files) SubGHz and LoRaWAN on the same microcontroller STM32WL5MOC at the same time and my idea is to use a switch to choose which on i would like to use depending in the case of use.

Best answer by STTwo-32

Do you mean that you want to have an application that include both LoRaWAN and SUBGHZ. Then on your application you can switch between a P2P application using SUBGHZ and LoRaWAN application based on the LoRaWAN. This is possible but not throw CubeMX since it does not allow that. But you can do it on your own (a project not based on CubeMX as on this video for both SIGFOX and LoRaWAN).

Best Regards.

STTwo-32

1 reply

Andrew Neil
Super User
October 10, 2024

Are you looking to be able to switch "on-the-fly" as the code is running - effectively having both "live" simultaneously - or do you just want to select one or  the other at startup?

 

Maybe this thread helps:

https://community.st.com/t5/stm32-mcus-wireless/stm32wl55-lorawan-end-node-and-subghz-phy-comunication/m-p/615471

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
User2501
User2501Author
Associate II
October 10, 2024

The idea is to choose one or the other using the switch at the start up. Is it Possible this way? or can it be change on the fly too ?

Andrew Neil
Super User
October 10, 2024

The linked thread is about doing both "simultaneously"

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.