Application hangs because MBMUXIF_LoraSendCmd() command stuck #80
Labels
bug
Something isn't working
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
lorawan
LoraWAN-related issue or pull-request.
projects
Projects-related (demos, applications, examples) issue or pull-request.
Projects
Setup
Application hangs because MBMUXIF_LoraSendCmd() command stuck on Sem_MbLoRaRespRcv sometimes
I have an application built around LoRaWAN_End_Node_DualCoreFreeRTOS example provided in the firmware. My application on CM4 sends telemetry roughly every 4-5 minutes. It will run well for a few days and suddenly the MBMUXIF_LoraSendCmd() gets stuck waiting on Sem_MbLoRaRespRcv. Reading more on how dual-core system works I figured that if a response is not received through the IPCC channels, the semaphore is never released. This is a potential pitfall for me because my application requires telemetry to be sent continuously at the 4/5 minute rate.
I cannot think of reasons why a Resp might not have been received by the CM4 core for any telemetry send Cmd.
How to reproduce the bug
At this time, I cannot pinpoint how to reproduce this bug. In my view it happens randomly at different times. Sometimes the system runs for a few days and the bug occurs or sometimes it happens right away.
Additional context
I have set up an rtos queue to not bombard the send API with messages. However, my queue gets full when this issue and no messages are sent.
** Code Snippet **
** Additional Info/questions **
I think by design this system waits forever on this semaphore. If at all a response is not heard back, can we have some retry mechanism or show it as a communication error callback/ retry mechanism of some kind?
The text was updated successfully, but these errors were encountered: