Downlink Command
The device supports downlink commands to configure the device. Application port is 85 by default.
General Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Reboot | ff | 10 | 1 | ff |
| Current device information | ff | 28 | 1 | ff, including number of people, master device and node device electrical power consumption. |
| Reporting Mode | f9 | 10 | 1 | 00: From Now On, 01: On the Dot |
| Report Interval | ff | 8e | 3 | Byte 1: 00 Byte 2-3: UINT16, Unit: minute |
| Reset Accumulated Value | ff | a6 | 1 | 01: enable, 00: disable |
| Reset Accumulated Time | ff | ed | 3 | Byte 1: Reset date
Byte 3: Reset minute |
| Accumulated Counter Clearing | ff | a8 | 1 | 01: clear accumulate In counter 02: clear accumulate Out counter |
| 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 | 01-enable, 00-disable |
| 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,
Note: if start time equals end time, it means all
day. |
| Screen Power Switch | ff | fd | 1 | 01: enable, 00: disable |
| Counting Mode | ff | fc | 1 | 02: Suitable for scenarios with high foot
traffic, 03: Suitable for scenarios with low foot traffic. |
- Examples:
-
- Reboot the device.
ff10ff
Channel Type Value ff 10 ff - Set Reset Accumulated Counter 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
- Set report interval as 20 minutes.
ff8e001400
Channel Type Value ff 8e 1400=>0014=20minutes - Set Counting Mode as High foot traffic.
fffc 02 Channel Type Value ff fc 02=> High foot traffic - Set a hibernate period from 10:00 PM to 7:00 AM, Monday to Friday.
ff75 01 2805 a401 3f Channel Type Value ff 75 01=> Enable Start Time: 2805=0528=1320 min=>10:00 PM
End Time: a401=01a4=420 min=>7:00 AM
Period: 3f=00111111=> Monday to Friday
- Reboot the device.
Alarm Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Threshold Alarm | ff | 06 | 9 | Byte 1:
Byte 2-3: Min. value Byte 4-5: Max. value Byte 6-9: 00000000 |
- Example:
- Set people counting threshold alarm.
ff06 d4 9600 2c01 00000000 Channel Type Value ff 06 d4=>11 010 100: 100=below or over, 010=Accumulated Counter threshold Min. value: 96 00=>00 96=15
Max. value: 2c 01=>01 2c=30
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:
Byte 3:
Byte 4-5: D2D control command Byte 6-7: control time, unit: min Byte 8:
|
- Example:
-
- Set D2D Key as 12345678123456780000000000000000.
ff35 1234567812345678 Channel Type Value ff 35 1234567812345678 - 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
- Set D2D Key as 12345678123456780000000000000000.