Skip to main content

Potentiometer Add-On

Configuration Parameters

In addition to the GW4 configuration parameters the add-on has the following specific parameters:

Analog Channel Parameters

DescriptionKeyTypePossible ValuesDefault
Enabled Channel 1ch1EnableBooleantrue or falsetrue
Enabled Channel 2ch2EnableBooleantrue or falsetrue
Enabled Channel 3ch3EnableBooleantrue or falsetrue
Cron in case of alarmalarmCronStringAny cron``
Number of ms to wait before readingch1PreReadTOInteger0..6000010
Number of ms to wait before readingch2PreReadTOInteger0..6000010
Number of ms to wait before readingch3PreReadTOInteger0..6000010
Number of samples to take in one measurementch1SamplesInteger1..200200
Number of samples to take in one measurementch2SamplesInteger1..200200
Number of samples to take in one measurementch3SamplesInteger1..200200
Calibration Factorch1FactorString[not set]
Calibration Factorch2FactorString[not set]
Calibration Factorch3FactorString[not set]
Calibration Offsetch1OffsetString[not set]
Calibration Offsetch2OffsetString[not set]
Calibration Offsetch3OffsetString[not set]
Alarm threshold highch1AlarmHighString[not set]
Alarm threshold highch2AlarmHighString[not set]
Alarm threshold highch3AlarmHighString[not set]
Alarm threshold lowch1AlarmLowString[not set]
Alarm threshold lowch2AlarmLowString[not set]
Alarm threshold lowch3AlarmLowString[not set]
Detailed Description

chXFactor and chXOffset Parameters

The measured raw value is multiplied by chXFactor and then chXOffset is added. All further calculations and alarm checks are done with this derived value.

chXAlarmLow and chXAlarmHigh Parameters

If the calculated measurement value is above chXAlarmHigh or below chXAlarmLow, a alarm is triggered. The number of triggered alarms and the time in the alarm state is measured and transmitted.

alarmCron Parameter

In case of an active alarm, this cron is used instead of the regular cron. If empty, the regular sensor cron will be used.

LoRaWAN Communication

Potentiometer and Analog Values (Port 8)

The gateway will transmit the raw and converted values together with alarm data for all enabled channels.

Byte | 0 .. 5     | 6           | 7 ...       |
+------------+-------------+-------------+
Data | Timestamp | Temperature | Channeldata |

For every enabled channel a block with its data is transmitted:

Byte | 0 .. 4    | 5 .. 8  |      9       | 10 .. 11  |      12     |  13..14  |
+-----------+---------+--------------+-----------+-------------+----------+
Data | Raw value | Voltage | High Counter | High Time | Low Counter | Low Time |