19.07.2019, 12:05
(19.07.2019, 11:51)Erwin van der Zwart Wrote: Hi,But still you need a storage for the counter. Do you store it on SD card?
Writing to storage is not direct to SD so could not hurt the SD.
What i do in this case is use a KNX interface of Schneider MTN670802 and set it to impuls counter, it then counts the impulses internally and you can write the counted values over x period to the bus on a set interval.
In the controller i get random values like 30, 40, 35 depending on the number of counted pulses in the set period and i sum them to the old value, this way you don't need to process every puls on the controller but you do it in batches.
BR,
Erwin
Because both options are wrong in sobe way
GO - backup and restore is impossible
SD - changing of SD is complicated
Some mix of both? I mean compare GO and SD and higher number wins seems to be a good choice.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259