Downlink Command

This device supports downlink commands for configuration and control. The downlink application port is 85 by default.

General Setting

Item Channel Type Byte Description
Reboot ff 10 1 ff
Report Interval ff 8e 3 Byte 1: 00

Byte 2-3: UINT16, Unit: minute

Reset Accumulated Value ff a6 1 00: disable, 01: enable
Reset Accumulated Value Time ff ed 3 Byte 1: Reset date
00: Everyday;

01: Every Sunday;

02: Every Monday;

03: Every Tuesday ;

04: Every Wednesday;

05: Every Thursday;

06: Every Friday;

07: Every Saturday

Byte 2: Reset hour

Byte 3: Reset minute

Reset Accumulated Value ff a8 1 01: reset accumulate in value

02: reset accumulate out value

Data Storage ff 68 1 00: Disable, 01: Enable
Data Retransmission ff 69 1 00: Disable, 01: Enable
Data Retransmission Interval ff 6a 3 Byte 1: 00

Byte 2-3: UINT16, Unit: s, Range: 30~1200, Default: 600

Report Accumulated Value ff a9 1 00: disable, 01: enable
Report Temperature ff aa 1 00: disable, 01: enable
Flip Detection Direction ff ec 1 01: enable, 00: disable
Installation Height ff 77 2 Unit:mm
Hibernate Period ff 75 6 Byte 1: 01-enable, 00-disable

Byte 2-3: Start Time, unit: min

Byte 4-5: End Time, unit: min

Byte 6: Set Hibernate Period,
Bit0: 1

Bit7~Bit1: Sunday~Monday

Note: if start time equals end time, it means all day.
Example:
  1. Reboot the device.
    ff10ff
  2. Set report interval as 20 minutes.
    ff8e001400
    Channel Type Value
    ff 8e 1400=>0014=20minutes
  3. Set Reset Accumulated Value Time as Every Sunday 12: 20.
    ffed 01 0c 14
    Channel Type Value
    ff ed 01=>Every Sunday

    Reset hour: 0c => 12

    Reset minute: 14=> 20

  4. Set up Hibernate Mode.
    ff75 01 e001 ec04 ff
    Channel Type Value
    ff 75 01: Enable Hibernate mode

    e0 01 => 01 e0 = 480 minutes = 8 hours = 8:00

    ec 04 => 04 ec = 1260minutes =21 hours = 21:00

    ff: Hibernate period is from Sunday to Monday

Alarm Setting

Item Channel Type Byte Description
Threshold Alarm ff 06 9 Byte 1:
Bit0~Bit2:
000-disable

001-below (minimum threshold)

010-above (maximum threshold)

011-within

100-below or above
Bit3~Bit5:
001-in/out threshold

010-accumulated in/out threshold

011-temperature threshold

Bit6~Bit7:
11
Byte 2-3: Min. value

Byte 4-5: Max. value

Byte 6-9: 00000000

Example:
Set temperature threshold alarm.
ff06 dc 9600 2c01 00000000
Channel Type Value
ff 06 dc=>11 011 100:100=below or above, 011=temperature threshold

Min. value: 96 00=>00 96=15°C

Max value: 2c 01=>01 2c=30°C

Calibration Setting

Item Channel Type Byte Description
Temperature Calibration ff ab 3 Byte 1: 00-disable, 01-enable

Byte 2-3: calibration value*0.1, Unit: °C

Example:
Enable temperature and set calibration value.
ffab 01 fdff
Channel Type Value
ff ab 01=Enable

fdff=>fffd=-3*0.1=-0.3 °C

Milesight D2D Setting

Item Channel Type Byte Description
D2D Feature ff 84 1 01: enable; 00: disable
D2D Key ff 35 8 The first 16 digits of D2D key, and the last 16 digits are fixed as 0.
D2D Settings ff 96 8 Byte 1:
01-Someone Entered

02-Someone Left

03-People Counting Threshold Triggered

Byte 2: 01-enable, 00-disable
Byte 3:
01-enable LoRa Uplink,

00-disable LoRa Uplink

Byte 4-5: D2D control command

Byte 6-7: control time, unit: min

Byte 8:

00-disable control time,

01-enable control time

Example:
  1. Set D2D Key as 12345678123456780000000000000000.
    ff35 1234567812345678
    Channel Type Value
    ff 35 1234567812345678
  2. Set D2D settings.
    ff96 03 01 01 04e0 0500 01
    Channel Type Value
    ff 96 03=> People counting threshold triggered;

    01=>Enable;

    01=>Enable LoRa Uplink;

    04 e0=>e0 04, Control Command is e0 04;

    05 00=>00 05, Control time is 5 mins;

    01=>Enable Control Time