Skip to main content

MultiTemperature Add-On

Configuration Parameters

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

OneWire Multi-Temperature Sensor Reading

DescriptionKeyTypePossible ValuesDefault
Number of readouts to be uploaded together (saves energy)MTempAccNumber1-6001
List of sensor IDs or * for scanningMTempIDsString *
Include Sensor ID in upload (LoRaWAN)MTempSendIDBooltrue or falsefalse
Detailed Description

MTempIDs Parameter

The MTempIDs parameter specifies a list of sensor IDs separated by a ,. If the string it empty, all sensor readings are disabled. If a * is specified, a scan will be executed at boot and all new sensors added to the list.

Sensor ID

A complete sensor ID consists of 8 bytes:

byte    0: family code
bytes 1-6: serial number
byte 7: crc cecksum

Only the serial number is used by the device. Family code and checksum are omitted for uploads and in configuration.

MTempAcc Parameter

The MTempAcc parameter specifies the number of readouts before the data is uploaded. When set to 1 the data is uploaded immediately. The data may be uploaded earlier if not enough free memory is available to store the measurements.

MTempSendID Parameter

If MTempSendID is set to true, the Sensor-ID is included in LoRaWAN transmissions. If set to false only the temperature values are transmitted.

LoRaWAN Communication

When measuring of multi temperature sensors is enabled and sensors are detected or configured the Gateway will transmit the data on regular intervals on port 30 or 31, depending on the configuration. When the total length of data will not fit into a single message, it will be split and uploaded in multiple packets using this format.

To save space the first byte (The sensor family code, 0x28) and the last byte (CRC) are omited.

Byte | 0      | 1 .. 7       | 8 . 9  | 10 .. 16    | 17 . 18 | ... |
+--------+--------------+--------+-------------+---------+-----+
Data |Success | Sensor ID 1 | Temp 1 | Sensor ID 2 | Temp 2 | ... |
Byte | 0       | 1 . 2  | 3 . 4  | ... |
+---------+--------+--------+-----+
Data | Success | Temp 1 | Temp 2 | ... |