STM32CubeWL icon indicating copy to clipboard operation
STM32CubeWL copied to clipboard

Dead Lock during Retransmissions

Open J0hanss0n opened this issue 3 years ago • 2 comments

Set-up LSM100A based Evaluation Kit (STM32WL55JC) STM32CubeIDE Version: 1.10.1 https://github.com/SeongJiIoT/LSM100A_SDK

Description Function RegionCommonUpdateBandTimeOff (RegionCommon.c) can lead to a Dead Lock (at least during retransmissions), if bands[i].TimeCredits == creditCosts because the band[i].ReadyForTransmission is then set to false but a minTimeToWait = 0 is returned.

In ScheduleTx (LoraMac.c) the MacCtx.DutyCycleWaitTime is checked for != 0 and the timer is then not started.

Pull Request (just a proposal) #44 As an alternative the timer could be started with a minimal waiting time when MacCtx.DutyCycleWaitTime == 0

J0hanss0n avatar Aug 29 '22 13:08 J0hanss0n

ST Internal Reference: 134011

ASELSTM avatar Sep 02 '22 14:09 ASELSTM

Hi @J0hanss0n,

The issue you have raised out is confirmed. Indeed, this may cause a deadlock. The proposed fix will be made available in the frame of a future release. Thank you again for you report.

With regards

ASELSTM avatar Sep 05 '22 15:09 ASELSTM