How do I encode a Configuration Downlink For Water Leak Sensor?

How do I encode a Configuration Downlink For Water Leak Sensor?

NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary.

 Configuration Message: 0x08 
      Byte            Description
      0                  Downlink Message Type (0x08 = Water Leak Sensor)
      1                  Enable events for Water Leak Sensor
      2                  Threshold of relative resistance between probes (scale 0-255)
      3                  Restoral Margin in units of relative resistance between probes (scale 0-255)

The downlink configuration message for the sensor contains the resistance threshold for detecting the presence of a liquid.
The payload from the event message can be used to find the relative resistance of a given liquid.

The bit definitions for the disable events field are defined below.
     
Enable Event Bit Definitions (Byte #1)
      Bits            Description
      7:2             Unused
      1                To Enable water present message set to:  0 = yes, 1= no   
      0                To Enable water not present message set to: 0 = yes, 1= no

An alert is sent when the relative measurement increases above the defined threshold. The restoral margin requires that the measurement reduces by a certain amount below the threshold before another alert is triggered. Both the threshold and restoral margin are in units of relative resistance measurements on a scale of 0-255.

Water Leak Sensor Configuration Example:
      08 00 C8 0A 00 00 00 00
      08   Downlink Message Type (Water Leak Sensor = 0x08)
      00   Enable events for Water Leak Sensor
            0x00:
                  Water present message event = yes
                  Water not present event = yes
      50   Threshold of relative resistance between probes (0x50 = 80 = default)
      28   Restoral Margin in units of relative resistance between probes (0x28 = 40 = default)
      00    Not Used
      00    Not Used
      00    Not Used
      00    Not Used
                
If the configuration is successful the sensor will respond with a Downlink Acknowledge message:
            1 0 FF 02
            1                   Protocol Version (currently always 0x1)
            0                   Packet Counter, increments by 1 each message and wraps from 0xF to 0x0
            FF                 Message Type (Downlink ACK = 0xFF)
            02                 Downlink Message Valid (Invalid/Undefined = 0x01, Valid = 0x02)

    • Related Articles

    • How do I encode a downlink for a water rope sensor?

      NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary. Water Rope Sensor Configuration Example:       08 02 50 28 00 00 00 00       08         Downlink Message Type ( 0x08 = Water Rope Sensor )       02  ...
    • How do I decode a Water Leak Sensor event?

      The Water Leak Sensor will generate events when water (or another liquid) is present, and then give a value representing the relative measurement of the resistance between the probes of the sensor. The Water Leak Sensor uses that resistance to ...
    • How do I encode a configuration downlink for a 4-20mA Current Loop Sensor?

      NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary. See User Manual at https://www.multitech.com/brands/reveal-wireless-industrial-sensors for more information. 4-20mA Current Loop Sensor Threshold ...
    • How do I encode a configuration downlink for a Voltage Sensor?

      NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary. For more information see the the user manual at https://www.multitech.com/brands/reveal-wireless-industrial-sensors Voltage Sensor Threshold ...
    • How do I encode a Configuration Downlink for a Door/Window Sensor?

      NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary. See User Manual at https://www.multitech.com/models/RB90000005LF for more information. Door Window Sensor Configuration Message: 0x03       Byte      ...