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

Avoiding failure after many failed requests for US915 join #197

Closed

Conversation

utkarshshah007
Copy link

This PR provides a solution for #193

Currently, if there are more than 132 failed Join requests, the datarate (an 8-bit signed int) will overflow, and the "override to SF10" behavior will fail. This eventually leads to a execution failure and cpu halt.

This change allows everything to function as intended, until the txCnt increases past 255, at which point it will simply start again from 0 without a failure.

@utkarshshah007
Copy link
Author

@matthijskooijman Would love your thoughts :)

@matthijskooijman
Copy link
Owner

TBH, I haven't had nearly enough time for LMIC in the last months (or even years), so I haven't been able to look at this. Since it looks like a well-defined change, I'll try to have a closer look, but no promises...

@utkarshshah007
Copy link
Author

Fair enough!

Do you know of any other Arduino LoRaWAN libraries that are in active development?

@matthijskooijman
Copy link
Owner

I believe there are a few forks of this library, though I'm not sure which is most active. IIRC @frankleonrose has been working with/on the US band as well, perhaps he has some recommendation?

ngraziano pushed a commit to ngraziano/arduino-lmic that referenced this pull request Nov 27, 2018
…e-opmode-flag-modif

The reset of flag is not correct for the OP_NEXTCHNL part while processing a join-accept
@matthijskooijman
Copy link
Owner

This repository is now deprecated, see #297 for some more background. I'm grateful for your contribution, but it will no longer be merged. I'm recommending people to use the MCCI version of LMIC instead. If this PR addresses an issue that also exists in that version, I would encourage you to resubmit your contribution there, so it might benefit other users. I'm sorry for the inconvenience...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants