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 |
|---|---|---|---|---|
| Reporting Mode | f9 | 10 | 1 | 00-Form now on, 01-On the dot |
| Detection Mode | f9 | 6b | 1 | 00-Auto, 01-Always |
| Immediate Detection | f9 | 6c | 1 | ff |
| Reset | f9 | 6e | 1 | ff |
| Reboot | ff | 10 | 1 | ff |
| Reporting Interval | ff | 8e | 3 |
Byte 1: 00 Byte 2-3: Interval, [2~1440], Unit: min |
| Detection Interval | ff | 02 | 2 | UNIT 16, [2~60], Unit: min |
| Illuminance Collection | ff | 06 | 9 |
Byte1: 1c Byte2-3: Dark State, UINT16, Unit: lux, Byte4-5: Light State, UINT16, Unit: lux Byte6-9: 00000000 |
| 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 |
- Example:
-
- Set report interval as 20 minutes.
ff8e001400 Channel Type Value ff 8e 1400=>0014=20minutes - Set Detection Interval as 2 min.
ff02 0200 Channel Type Value ff 02 0200=> 0002=2min - Set Over 800 lux as Light Status and Below 200 lux as Dark Status.
ff06 1c 0002 2003 00000000 Channel Type Value ff 06 Dark Status: c800=> 00c8=200
Light Status: 2003=>0320=> 800 lux
- Enable data storage feature.
ff6801 Channel Type Value ff 68 01=Enable
- Set report interval as 20 minutes.
Threshold Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Threshold setting | ff | 06 | 9 |
Byte1:
Byte2-3: Min. Value
Byte4-5: Max. Value
Byte6-9: 00000000 |
- Example:
- Set Temperature Threshold as below 5°C or over 37°C.
ff06 0c 3200 7201 00000000 Channel Type Value ff 06 0c=>00001100=Temperature, below or over
3200=> 0032 => 50*0.1=5°C
72 01=> 01 72 => 370*0.1=37°C
LoRaWAN® Setting
Modifying the following parameters triggers the device to rejoin the network.
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| ADR Mode | ff | 40 | 1 | 01-Enable, 00-Disable |
| Application Port | ff | 65 | 1 | [1-223], Default:85 |
- Example:
- Set Application Port as 85.
ff65 55 Channel Type Value ff 65 55=> 85
Milesight D2D Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Milesight D2D Feature | ff | 84 | 1 | 01-enable, 00-disable |
| Milesight D2D Key | ff | 35 | 8 | First 16 digits, last 16 digits are fixed as 0 |
| Milesight D2D Settings | ff | 96 | 8 |
Byte 1:
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: 01-enable control time, 00-disable control time |
- Example:
- Set Milesight D2D settings.
ff96 03 01 01 04e0 0500 01 Channel Type Value ff 96 03=> Dim;
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