...
To read out the pressure & temperature probe, the Hybrid Modbus Gateway must be configured as follows:
Parameter | Value | Comment |
---|---|---|
WAN | lorawan | For LoRaWAN OTAA usage. |
PlFmt | 5 | Sets the payload to a short format. |
MbCmd | 0 0/5 * * * *:R,9600,8N1:010300160002,010300260002 | Reads the Registers 22-23 and 34-35. The CRON Expressions can be adjusted to set time of sensor reading. |
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)
Bytes | 0 . | 1 . 2 . 3 . 4 . | 5 . 6 . 7 . 8 . |
------+--------+-----------------+-----------------+
Field | Header | Pressure | Temperature |
Field | Type | Value |
---|---|---|
Header | uint8 | 0x00 on success, 0x80 if an error occurred |
Pressure | float32 | Pressure in mH2O , ffffffff on error. |
Temperature | float32 | Temperature in |
Example
Code Block |
---|
# Example of a successful measurement '003d94ce4541b7a512' '00' -> Successful readout '3d94ce45' -> 0.073 mH2O '41b7a512' -> 22.96 °C # Example '80ffffffffffffffff' '80' -> An error occurred. 'ffffffff' -> Pressure could not be read. 'ffffffff' -> Temperature could not be read. |
...
Reading from the Lobaro Pressure Sensor using the Hybrid Gateway can be done by setting the following parameters in the configuration:
Parameter | Value | Comment |
---|---|---|
WAN | lorawan | For LoRaWAN OTAA usage. |
PlFmt | 5 | Sets the payload to a short format. |
MbCmd | 0 0/5 * * * *:R,9600,8N1:010300020003 | Reads the Registers 2 to 4. The CRON Expressions can be adjusted to set time of sensor reading. |
PowerOnDelay | 1500 | Battery variant only. Sets time (in ms) between activating sensor power and reading value (time for sensor to be ready). |
...
Bytes | 0 . | 1 . 2 . | 5 . 6 . | 7 . 8 |
------+--------+---------+-----------+----------+
Field | Header | Unit | Precision | Pressure |
Field | Type | Value |
---|---|---|
Header | uint8 | 0x00 on success, 0x80 if an error occurred |
Unit | uint16BE | 0x0007 = mH2O |
Precision | uint16BE | 0x0003 = 3 decimals |
Pressure | int16BE | Pressure in mH2O |
Example
Code Block |
---|
# Example of a successful measurement '00000700030211' '00' -> Successful readout '0007' -> 0.073 mH2O '0003' -> 22.96 °C '0211' -> 529 -> 0.529 mH2O |
...