2022-01-14 5:12 AM
I am a bit confused with the multicast on STM32WL. I want to send downlink messages from an Application Server to 1 (or 2) STM32WL by using multicast. To do so, I tried to use the project (LoRaWAN_End_Node or LoRaWAN_AT_Slave) proposed in the STM32WL package from ST. However, I can't figure out how to configure the STM32WL to enable the multicast. Is there any configuration I am forgetting to do in the files of the project ?
Really appreciate your attention, thank you !
2024-03-14 12:59 PM - edited 2024-03-14 1:00 PM
In our application, we had to define(user-defined) the MCDevAddress, McNwkSKey and McAppSKey in a source file(lmhandler_mbwrapper.c). Ended up doing next steps within Process_Lora_Cmd (CM0Plus runs the LoRa Stack). After processing the LMHANDLER_CONFIGURE_ID command from CM4 in LoRaWAN_Init step, I created a MC channel by defining McChannelParams_t. Then performed LoRaMacMcChannelSetup to create an MC channel to finish the configuration.
You must make sure the MC device on your gateway has the same MCDevAddress, McNwkSKey and McAppSKey.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.