Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device crashes when uplink send after switching to class B. #89

Open
ankit-thealchemist opened this issue Jul 24, 2024 · 2 comments
Open
Assignees
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

Comments

@ankit-thealchemist
Copy link

Describe the set-up

  • The board is NUCLEO-WL55JC1
  • STM32 CubeIDE v1.15.1
  • STM32 CubeMx v6.10

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)

  1. 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.

  2. How we can reproduce the problem

  • Use the Lorawan AT example
  • Send the command, AT+JOIN=1
  • After join, issue command AT+CLASS = B
  • wait for the device , switch to class B
  • issue command AT+SEND=43:1:112233

Additional context

Device should not look for the multicast Class B pingslot until and unless multicast session has been setup.

Screenshots

image
image
image

@ankit-thealchemist ankit-thealchemist changed the title Device crashes when uplink send after switch to class B. Device crashes when uplink send after switching to class B. Jul 24, 2024
@RJMSTM RJMSTM added the lorawan Long Range Wide Area Network label Jul 25, 2024
@RJMSTM RJMSTM self-assigned this Jul 25, 2024
@RJMSTM
Copy link
Contributor

RJMSTM commented Jul 25, 2024

ST Internal Reference: 187438

@RJMSTM RJMSTM added the internal bug tracker Issue confirmed and logged into the internal bug tracking system label Jul 25, 2024
@ALABSTM ALABSTM added the bug Something isn't working label Aug 8, 2024
@ALABSTM ALABSTM modified the milestone: v1.3.1 Aug 8, 2024
@pd-vt
Copy link

pd-vt commented Aug 13, 2024

We are able to fix this issue as workaround with commenting an If condition as attached image in LoRaMacClassB.c file and LoRaMacClassBProcess() function.

image

We know this is not proper solution but since we didn't had need of Multicast Class-B feature we could bypass this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Development

No branches or pull requests

4 participants