kiu / lofence

LoFence is a LoRaWAN capable IoT electric fence monitoring system running on the The Things Network.

Home Page:https://www.schoar.de/tinkering/lofence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"round" counter really necessary

jpmeijers opened this issue · 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.

commented

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.

commented

image

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