How do I encode a Configuration Downlink for a MAXBOTIX Ultrasonic Level Sensor?

How do I encode a Configuration Downlink for a MAXBOTIX Ultrasonic Level Sensor?

NOTE:  All downlinks must contain a total of (8) bytes, padded with zeros at the end when necessary.
Also note that if the configuration settings exceed the maximum ratings on the sensor, the sensor may not report an event.

See User Manual at https://www.multitech.com/brands/reveal-wireless-ultrasonic-sensors for more detailed information.

Ultrasonic Level Sensor Threshold Configuration Example:
             10 00 B3 0D 0B B8 1D 4C
             10                   Downlink Message Type ( 0x10 = Ultrasonic Level Sensor)
             00                   Configuration Mode (0x00 = Threshold Mode)
             B3                  Periodic reporting (0xB3 = 51 minutes, see note on time below)
             0D                  Hold time (0x0D = 13 minutes, see note on time below)
            0BB8               Lower distance threshold in mm (0x0BB8 = 3000  mm)     
            1D4C              Upper distance threshold in mm (0x1D4C = 7500 mm)


Ultrasonic Level Sensor Report On Change Configuration Example:
            10 01 30 87 00 0E 00 12
            10                   Downlink Message Type ( 0x10 = Ultrasonic Level Sensor)
            01                   Configuration Mode 0x01 (Report on Change mode)
            30                  Periodic reporting (0x30 =  48 hours, see note on time below)
            87                  Hold time (0x87 = 7 seconds, see note on time below)
            000E              Distance increase in mm (0x000E = 14mm)     
            0012              Distance decrease in mm (0x0012 = 18 mm)

The ultrasonic sensor can measure distances between 500mm to 10m and the sensor must be mounted such that the required distances are within that range. Distances outside of that range will result in incorrect measurements. This includes distances that are too close (less than 500mm) as well as too far (greater than 10m).
The sensor must also be mounted such that it is perpendicular to a flat surface. Mounting the sensor at an angle to the surface or using a surface that is not flat may result in incorrect measurements. Flat surfaces also include the surface of a liquid.

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 decode an Ultrasonic Level Sensor Event?

      The Ultrasonic Level Sensor will generate events if the measured distance rises above or falls below the configured thresholds.   Byte 0: 7-4 Byte 0: 3-0 Byte 1 Byte 2    Byte 3 and 4 Protocol version (4 bits) Counter (4 bits) Message Type Code 0x10 ...
    • 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      ...
    • 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    ...