lofence
lofence copied to clipboard
"round" counter really necessary
LoRaWAN has a frame counter that also increments every transmission. Does the "round" counter really add any extra usefulinformation?
Currently this project uses ABP and the frame counter will not reset during a power cycle. One will therefore not see a restart in the frame counter, and this "round" counter might be useful.
I'm however of the opinion one should switch to OTAA. I'll file a PR for OTAA in the coming days.
I wanted to detect resets, not received uplinks and # of rounds per battery charge using the rounds mechanism.
Yes makes sense. If we switch to OTAA and do an OTAA join at startup, you can do all that with the LoRaWAN FCnt. That will save 2 bytes of payload.
And then you can do a difference()
on the FCnt value to get this graph on which you can set an alert if the value is <0.