Device crashes when uplink send after switching to class B. #89
Labels
bug
Something isn't working
internal bug tracker
Issue confirmed and logged into the internal bug tracking system
lorawan
Long Range Wide Area Network
Describe the set-up
Describe the bug (skip if none)
I am running the Lorawan AT Slave example(although it appears on lorawan end node example also). I configure the lorawan version 1.0.4 with lorawan package 2.0.0(other details in the screenshot). After switiching to class B, when ever I do the uplink, the device crashes.
How to reproduce the bug (skip if none)
List the modules that you suspect to be the cause of the problem LoraMacClassB. After swtiching to the class B device tries to calculate the multicast ping slot offset. Since the multicast setup have not been setup, the default value of the ping period is 0. In the first state, ie PINGSLOT_STATE_CALC_PING_OFFSET, the device try to calculate the ping offset, since the ping period is 0, the divide by 0 fault crashes the device.
How we can reproduce the problem
Additional context
Device should not look for the multicast Class B pingslot until and unless multicast session has been setup.
Screenshots
The text was updated successfully, but these errors were encountered: