Downlink Command

This device supports downlink commands for configuration and control.

Important: The device can only receive downlink commands within the 10s after sending uplink packets.

General Settings

Item Channel Type Byte Description
Reboot ff 10 1 ff
Collect Interval ff 02 2 UINT32, Unit: s
Report Interval ff 03 4 UINT32, Unit: s

Installation Height

ff 13 1

00 = Disable; 01 = Enable

Tilt & Distance Switch ff 3e 1 00 = Disable; 01 = Enable

Distance Measurement

ff 56 1 00 = Disable; 01 = Enable

Value of Installation Height

ff 77 2 Unit: mm
Device Mode ff 71 1

00 = Standard Mode; 01 = Bin Mode

Position Setting

ff a0 1 00 = Disable; 01 = Enable

Duration of Motion and Stationary

ff 58 5

Byte 1: duration of motion, unit: s

Byte 2-5: duration of stationary, unit: s

Motion Report Interval

ff 8e 5

Byte 1: 00 = Disable; 01 = Enable

Byte 2-5: report interval, unit: s

Cumulative Numbers

ff 9e 2

Byte 1: 00 = Disable; 01 = Enable

Byte 2: Cumulative numbers

Example:
  1. Reboot.
    ff10ff
  2. Set report interval as 20 minutes.

    ff03b0040000

    Channel Type Value
    ff 03

    b0 04 00 00 => 00 00 04 b0 = 1200s = 20 minutes

  3. Set the device as standard mode.
    ff7100
    Channel Type Value
    ff 71 00 = Standard Mode
  4. Enable “Tilt & Distance Switch” feature.

    ff3e01
    Channel Type Description
    ff 3e 01 = Enable
  5. Set duration of motion to 50s and duration of stationary to 180s.

    ff5832b4000000

    Channel Type Value
    ff 58

    Duration of motion: 32=50s

    Duration of stationary: b4 00 00 00=00 00 00 b4=180s

Threshold Alarm Setting

Channel Type Byte Description
ff 06 9

CTRL(1B)+Min(2B)+Max(2B)+00000000(4B)

CTRL:

Bit2~Bit0:

  • 000-disable
  • 001-below
  • 010-above
  • 011-within
  • 100-below or above

Bit5~Bit3:

  • 001-Standard Mode
  • 010-Bin Mode

Bit6=0

Bit7:

  • 0 - disable threshold dismiss report
  • 1 - enable threshold dismiss report
Example:
When the distance is below 20cm or above 80cm, the sensor will send threshold alarm.

ff068c c800 2003 00000000

Channel Type Value
ff 06

CTRL: 8c=10 001 100

100=below or above

001=standard mode

10=enable threshold dismiss report

Min: c8 00 => 00 c8 = 200 mm = 20cm

Max: 2003 => 03 20 = 800 mm = 80cm

ACK Setting

Channel Type Byte Description
ff 9f 1 00 = Disable; 01 = Enable
Example:
Enable ACK feature.

ff9f01

Channel Type Value
ff 9f 01 = Enable