Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add WAN config parm

...

To read out the pressure & temperature probe, the Hybrid Modbus Gateway must be configured as follows:

ParameterValueComment
WANlorawanFor LoRaWAN OTAA usage.
PlFmt5Sets the payload to a short format.
MbCmd0 0/5 * * * *:R,9600,8N1:010300160002,010300260002Reads the Registers 22-23 and 34-35. The CRON Expressions can be adjusted to set time of sensor reading.
PowerOnDelay1500Battery 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 |
FieldTypeValue
Headeruint80x00 on success, 0x80 if an error occurred
Pressurefloat32Pressure in mH2O, ffffffff on error.
Temperaturefloat32

Temperature in °C, ffffffff on error.

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:

ParameterValueComment
WANlorawanFor LoRaWAN OTAA usage.
PlFmt5Sets the payload to a short format.
MbCmd0 0/5 * * * *:R,9600,8N1:010300020003Reads the Registers 2 to 4. The CRON Expressions can be adjusted to set time of sensor reading.
PowerOnDelay1500Battery 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 |
FieldTypeValue
Headeruint80x00 on success, 0x80 if an error occurred
Unituint16BE0x0007 = mH2O
Precisionuint16BE0x0003 = 3 decimals
Pressureint16BE

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

...