lofence icon indicating copy to clipboard operation
lofence copied to clipboard

"round" counter really necessary

Open jpmeijers opened this issue 3 years ago • 4 comments

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.

jpmeijers avatar Oct 18 '21 14:10 jpmeijers

I wanted to detect resets, not received uplinks and # of rounds per battery charge using the rounds mechanism.

kiu avatar Oct 18 '21 14:10 kiu

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.

jpmeijers avatar Oct 18 '21 14:10 jpmeijers

image

kiu avatar Oct 18 '21 15:10 kiu

image

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

jpmeijers avatar Oct 18 '21 15:10 jpmeijers