-
Notifications
You must be signed in to change notification settings - Fork 60
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
Save and restore frame counters #29
Comments
Datasheet for reference: http://ww1.microchip.com/downloads/en/DeviceDoc/40001784E.pdf We do need to keep backwards compatibility for modules with older firmware versions. |
I know this is rather old but IMHO this could be closed. |
Performing a |
Yeah well maybe we should keep track of that in the MCU and so need methods to read and set so in a case where you have to reset the module, without powering down the whole system the MCU can publish its know value to the module again. |
That's why I suggest to add N to the counter value when in doubt. |
Hmmmm but how big should N be? |
Ahhh sorry you outlined it already, got confused, maybe we stick to this issue to discuss and not the PR... |
That's why I suggest to use "N-1" to add to the counter. Thus the regular steps for sending are:
Now the boot-up scenario: Check counter
This way you don't need to keep track of the counter on the MCU as you can be sure it will never send out messages with the same counter. Another problem is when your setup crashes between |
Never firmware versions of the RN2483 has the following commands:
We need to check if the firmware is newer than 1.0.0, OR check if these get commands return a valid value.
In the case where we can get the counters:
This should only be necessary when doing an ABP join.
The text was updated successfully, but these errors were encountered: