...
Starting from v0.10.2 we support a command for LoRaWAN only!
Parameter | Value | Comment |
---|---|---|
Cmd | 0 * * * * *:pressure(port=20) | Special command to upload in same format but calculating a more stable pressure value |
Modbus Register Mapping
The probe is a Modbus slave with the following registers:
...
Field | Type | Value |
---|---|---|
Header | uint8 | 0x00 on success, 0x80 if an error occurred |
Pressure | float32 | Pressure in Bar , ffffffff on error. |
Temperature | float32 | Temperature in |
Voltage | uint16 | Voltage in mV, ffff on error |
Keller PR46X
Configuration
Connected pressure sensor probe from Keller Druckmesstechnik PR46X series.
Parameter | Value | Comment |
---|---|---|
WAN | lorawan | For LoRaWAN OTAA usage. |
PlFmt | 5 | Sets the payload to a short format. |
MbCmd | 0 0 * * * *:R,9600,8N1:010300020002,010300060002,FA0400050001 | Reads four Registers: 2 + 3 (Float, Pressure in Bar) and 6 + 7 (Float, Probe Temperature) + Device battery voltage |
PowerOnDelay | 1500 | Battery variant only. Sets time (in ms) between activating sensor power and reading value (time for sensor to be ready). |
Data Uplink (Port 20)
Code Block |
---|
Bytes | 0 . | 1 . 2 . 3 . 4 . | 5 . 6 . 7 . 8 . | 9 . 10 . |
------+--------+-----------------+-----------------+----------+
Field | Header | Pressure | Temperature | Voltage | |
All values are encoded big-endian
Field | Type | Value |
---|---|---|
Header | uint8 | 0x00 on success, 0x80 if an error occurred |
Pressure | float32 | Pressure in Bar , ffffffff on error. |
Temperature | float32 | Temperature in |
Voltage | uint16 | Voltage in mV, ffff on error |
LoRaWAN JavaScript Reference Parser (All probe variants)
...