Skip to content

OTAA and data works to TTN, but stopped after reboot #949

Answered by StevenCellist
jkarjanl asked this question in Q&A
Discussion options

You must be logged in to vote

Ahh, "there comes the monkey out of the sleeve" - we say in Dutch.
The main takeaway here is that RadioLib implements LoRaWAN v1.1 which requires persistent sessions, or at the very least a persistent DevNonce/JoinNonce counter. And since LoRaWAN is mostly battery-powered, it's best to save/restore the whole session anyway.

And (hopefully) I'm not completely stupid and know about the limited lifetime of flash storage (10k per spec, usually lasts fine up to 100k), so there is quite a bit of logic to make sure that flash lifetime is prolonged as much as possible under normal expected behaviour! E.g. there are 50 bytes available for the lowest byte of the FCntUp, meaning that instead of (>)1…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
14 replies
@jkarjanl
Comment options

@StevenCellist
Comment options

@jkarjanl
Comment options

@StevenCellist
Comment options

Answer selected by jkarjanl
@jkarjanl
Comment options

@StevenCellist
Comment options

@jkarjanl
Comment options

@StevenCellist
Comment options

Comment options

You must be logged in to vote
1 reply
@StevenCellist
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants