Downlink Commands
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 |
| Reporting Interval | ff | 8e | 3 |
Byte 1: 01 Byte 2-3: Interval, [1~1440], Unit: min |
| Occupancy Trigger Sensitivity | f9 | 3e | 1 | 00: Low, 01: Middle, 02: High |
| Occupancy Maintaining Sensitivity | f9 | 3f | 1 | 00: Low, 01: Middle, 02: High |
| Report Vacancy Time | f9 | 40 | 1 | UINT8, Unit: min |
| Illuminance | f9 | 41 | 1 | Byte 1: 01-enable, 00-disable Byte 2-3: Bright Status Illuminance, UINT 16, unit: lux, Default: 700 Byte 4-5: Dim Status Illuminance, UINT 16, unit: lux, Default: 300 |
| Hibernate Period | f9 | 44 | 6 | Byte 1: 01-Period 1, 00-Period 2 Byte 2: 01-enable; 00-disable Byte 3-4: Start Time, unit: min Byte 5-6 End Time, unit: min |
| UTC Time Zone | ff | bd | 2 | INT16/60 |
| Daylight Saving Time | ff | ba | 10 | Byte1: 01-Enable; 00-Disable Byte2: DST Bias, INT8, Unit: min Byte3: Start Month Byte4:
Byte7: End Month Byte8:
Byte9-10: End Time, UINT 16, Unit: min |
| Time Synchronization | ff | 4a | 1 | ff |
| Bluetooth | ff | 8f | 1 | 01: enable; 00: disable |
- Examples:
-
- Reboot the device.
ff10ff - Set report interval as 20 minutes.
ff8e011400 Channel Type Value ff 8e 14 00=>00 14= 20 minutes - Set up Hibernate Mode.
f944 00 01 fe01 ec04 Channel Type Value ff 44 00: Period 1 01: Enable Hibernate mode
fe 01 => 01 fe = 510 minutes = 8 hours +30mins = 8:30
ec 04 => 04 ec = 1260minutes =21 hours = 21:00
- Set time zone as UTC-4.
ffbd10ff Channel Type Value ff bd 10 ff => ff 10 = -240/60=-4 - Set Daylight Saving Time from Mar. /2nd /Sun. 14:00 to Nov. /1st /Mon 14:00 and
Bias as 60min.
ffba 01 3c 03 27 4803 0b 11 4803 Channel Type Value ff ba 01=enable Bias: 3c=60min
Start Month: 03=March
27=>0010 0111
Start Week: 0010=2= 2nd
Start Day: 0111=7=Sunday
Start Time: 48 03=> 03 48=>840min=14:00
End Month: 0b=11=Nov.
11=>0001 0001
End Week: 0001=1=1st
End Day: 0001=1=Monday
End Time: 48 03=> 03 48=>840min=14:00
- Enable Illuminance collection and set bright/dim status threshold values.
f941 012003 9001 Channel Type Value f9 41 01=>Enable;
Max Illuminance: 20 03=>03 20=>800 lux
Min Illuminance: 90 01=>01 90=>400 lux
- Reboot the device.
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:
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: 01-enable control time, 00-disable control time |
- Example:
-
- Set D2D Key as 12345678123456780000000000000000.
ff35 1234567812345678 Channel Type Value ff 35 1234567812345678 - Set D2D settings.
ff96 04 01 01 04e0 0500 01 Channel Type Value ff 96 04=> Occupied/Bright;
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.