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 Interval ff a7 2 Unit: min
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
Example:
  1. Reboot the device.

    ff10ff

    Channel Type Value
    ff 10 ff
  2. Set reset interval as 5 minutes.
    ffa7 0500
    Channel Type Value
    ff a7 05 00=>00 05=>5 mins
  3. Set report interval as 20 minutes.
    ff8e001400
    Channel Type Value
    ff 8e 1400=>0014=20minutes

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 00: Disable, 01: Enable
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