Avatar

sdg.marinusvz
2017-03-30 16:04

(transcribed from support call)

How would the logic change if I change a Kamstrup meter from 16 seconds to 96 seconds?

Avatar

sdg.marinusvz
2017-03-30 16:16

No change.

On OpenHAB, we show the newest reading that has come through. (we look at compact and non-compact packets)

If 5 minutes passes on a meter without a packet coming through, we switch on the comms alarm on that meter.

The datalog looks at the current value every minute.

It logs the maximum value looked at every half hour. (for alarms, not in alarm is taken as 0, and in alarm taken as 1, so it only needs to be in alarm once in a half hour to log the half hour value as 'in alarm'. Except for comms alarm, which looks at the minimum value every half hour, so if the value was fine for any part of the half hour, it logs it as 'not in alarm')

that is the whole logic.

We use the rrd4j logger, with some custom algorithms in conf/services/rrd4j.cfg

Namely:

rrd4j:reading30min.def=GAUGE,1800,0,U,10

rrd4j:reading30min.archives=MAX,0.5,180,4464
rrd4j:reading30min.items=

rrd4j:alarm30min.def=GAUGE,1800,0,1,10

rrd4j:alarm30min.archives=MAX,0.05,180,4464

rrd4j:alarm30min.items=

rrd4j:alarm30min2.def=GAUGE,1800,0,1,10

rrd4j:alarm30min2.archives=MIN,0.05,180,4464

rrd4j:alarm30min2.items=


Avatar

sdg.marinusvz
2017-03-30 16:17

rrd4j uses a round robin logger, which mean all the datalog files are allocated right in the beginning when the meter is detected. The datalog for the full 3 months for the one value is one wraparound file.

Avatar

sdg.marinusvz
2017-03-30 16:22

We generally ship the concentrator in the state where it automatically add meter Things when they are detected.

There is a setting in a configuration file where you can change that.

We generally use the Paper UI to configure the Things, and even for Control. For that we had to enable the Control tab from the standard OpenHAB2 build which was switched off by default.

To be able to read datalogs through the rest interface, we had to also install the Habmin module, with its dependencies.

When the thing is first added, it might not have Items by default. We try to fix that once every so often (give it an hour). We do not, however, add the Meter things into a Group, you can do that elsewhere in the Paper UI manually. We do not need to have that for PNPSCADA, but it might help you while you're installing the site.

Sometimes the Timestamp updates more quickly than the Reading. The Reading and all other values we only send a value through OpenHAB if it has changed, or if 240 seconds has elapsed, so that we don't flood the system with too many changes.

Avatar

sdg.marinusvz
2017-03-30 16:23

Currently we ship in mode C. We do plan to have Mode T soon, but that would probably be a once off setting on the WMBus USB stick.


Please log in to post a comment