Downlink Commands
The device supports downlink commands to configure the device. Application port is 85 by default.
General Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Reboot | f9 | 10 | 1 | ff |
| LED | ff | 2f | 1 | 01-enable, 00-disable |
| Buzzer | ff | 3e | 1 | 01-enable, 00-disable |
| Release All Alarm | ff | 64 | 1 | ff |
| Single Alarm Handle | f9 | b4 | 3 | Byte 1-2: the alarm ID Byte 3: 02-Resolved; 03-Ignore |
| Reporting Interval | ff | 8e | 3 | Byte 1: 00 Byte 2-3: interval time, unit: min |
| WLAN | ff | 42 | 1 | 01: Enable, 00: Disable |
| Hide Wi-Fi SSID | f9 | 4d | 1 | 01: Enable, 00: Disable |
| Manual system time setting | ff | 11 | 4 | Unix timestamp, Unit:s |
| Synchronize Time | f9 | 91 | 5 | Byte 1: 00-Synchronize With Gateway Time, 01-Manual Byte 2-5: Timestamp, If gateway synchronization is enabled, this value is 00000000 |
| DO level signal | f9 | 4e | 1 | 01: High, 00: Low |
| DO | f9 | b5 | 6 | Byte 1: 01: Enable, 00: Disable Byte 2: Fall Alarm Enable; Fall Alarm Disable Byte 3: Lying Alarm Enable; Lying Alarm Disable Byte 4: Out of Bed Alarm Enable; Out of Bed Alarm Disable Byte 5: Dwell Alarm Enable; Dwell Alarm Disable Byte 6: Motionless Alarm Enable; Motionless Alarm Disable |
- Example:
-
- Reboot the device.
ff10ff - Set report interval as 20 minutes.
ff8e 00 1400 Channel Type Value ff 8e 1400=>0014=20 minutes
- Reboot the device.
Detection
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Room Settings | f9 | 4f | 12 |
Byte 1-2: xMin, UINT16, Unit: mm Byte 3-4: xMax, UINT16, Unit: mm Byte 5-6: yMin, UINT16, Unit: mm Byte 7-8: yMax, UINT16, Unit: mm Byte 9-10: zMax, UINT16, Unit: mm Byte 11-12: Installation Height, UINT16, Unit: mm |
| Sensitivity | f9 | 50 | 2 | Byte 1: 00 Byte 2: 00-Low; 01-High; 02-Midium; 03-Custom |
| Fall Detection | f9 | 51 | 6 | Byte 1-2: Fall Confirmation Time, UINT16, Unit: s, Range: 0~300 Byte 3-4: Fall Delay Reporting Time, UINT16, Unit: s, Range: 0~300 Byte 5-6: Fall Alarm Duration, UINT16, Unit: s, Range: 0~1800 |
| Dwell Time Detection | f9 | 52 | 3 | Byte 1: 01-enable, 00-disable Byte 2-3: Dwell Time Threshold, Unit: min |
| Motionless Detection | f9 | 53 | 3 | Byte 1: 01-enable, 00-disable Byte 2: 00 Byte 3: Motionless Time Threshold, Unit: min |
| Sleep Detection | f9 | b1 | 7 | Byte 1: 01-enable, 00-disable Byte 2-3: Start Time, Unit: min Byte 4-5: End Time, Unit: min Byte 6: 01-Enable Out of Bed Alarm; 00-Disable Out of Bed Alarm Byte 7: Out of Bed Time Threshold, Unit: min |
| Respiratory Detection | f9 | b2 | 3 | Byte 1: 01-enable, 00-disable Byte 2: Min. Respiratory Value Byte 3: Max. Respiratory Value |
| AI Fall Alarm Filtering | f9 | b3 | 1 | 01-enable, 00-disable |
- Example:
-
- Set room size.
f9 4f e803 d007 30f8 3cf6 0807 c409 Channel Type Value ff 4f e803=>03e8=1000=> xMin
d007=>07d0=2000=> xMax,
30f8=>f820=-2000=> yMin
3cf6=>f63c=-2500=> yMax
0807=>0708=1800=> zMax
c409=>09c4=2500=> Installation Height is 2.5m
- Fall Detection.
f9 51 3700 2d00 2300 Channel Type Value f9 51 Fall Confirmation Time, 3700=>0037=55s Fall Delay Reporting Time, 2d00=>002d=45s
Fall Alarm Duration, 2300=>0023=35s
- Set room size.
Sub Region
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Sub Region Size | f9 | 49 | 9 |
Byte 1: Sub Region number, Range 0~3 Byte 2-3: xMin, UINT16, Unit: mm Byte 4-5: xMax, UINT16, Unit: mm Byte 6-7: yMin, UINT16, Unit: mm Byte 8-9: yMax, UINT16, Unit: mm |
| Delete Sub Region | f9 | 48 | 1 | Sub Region number, Range 0~3 |
| Sub Region Detection | f9 | 4a | 5 |
Byte 1: Sub Region number, Range 0~5 Byte 2: Fall Detection, 01-enable, 00-disable Byte 3: Dwell Detection, 01-enable, 00-disable Byte 4: Motionless Detection, 01-enable, 00-disable Byte 5: Type, 00-Custom, 01-Bed, 02-Door, 03-Ignore |
| In-bed Detection (Firmware V373.1.0.1 Only) |
f9 | 4b | 9 |
Byte 1: Sub Region number, Range 0~3 Byte 2: In-bed Detection, 01-enable, 00-disable Byte 3-4: Start time, Unix timestamp, Unit: s Byte 5-6: End time, Unix timestamp, Unit: s Byte 7-8: Bed Height, Unit: mm Byte 9: Out of Bed Time Threshold, Unit: min |
- Example:
- Set Door Sub Region Detection.
f94a 01 01 01 02 Channel Type Value f9 4a 01=> Sub Region number 01=> Enable Fall Detection
01=>Enable Occupancy Detection
01=>Motion Detection
02=>Type is Door
Advance Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Targets Detection | f9 | 56 | 2 | Byte 1: Presence Confirmation Time, Unit: s, Range: 0~60 Byte 2: Absence Confirmation Time, Unit: s, Range: 0~60 |
- Example:
- Set target presence confirmation time as 3s and absence confirmation time as 5s.
f9 56 03 05 Channel Type Description f9 56 Presence Confirmation Time, 03=3s Absence Confirmation Time, 05=5s
LoRaWAN® Setting
Modifying the following parameters triggers the device to rejoin the network.
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| LoRa Confirm Mode | ff | 04 | 1 | 01: Enable, 00: Disable |
| ADR Mode | ff | 40 | 1 | 01: Enable, 00: Disable |
| LoRa Rejoin Mode | f9 | 85 | 2 |
Byte 1: 01-Enable; 00-Disable Byte 2: The Number of Detection, Range: 4~32 |
| Spreading Factor | f9 | 86 | 1 | 00-SF12, 01-SF11, 02-SF10, 03-SF9, 04-SF8, 05-SF7 |
| TXPower | f9 | 87 | 1 | Range: 0~14 |
Data Retransmission
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| 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 report interval as 20 minutes.
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 (controller) | 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: 00-disable control time, 01-enable control time |
| D2D Settings (agent) | f9 | 4c | 5 |
Byte 1: ID, Range: 0~3 Byte 2-3: D2D control command Byte 4: Action Object, 01 - Multi-function button, 00-Delete this action Byte 5: Action Event, 00-Release Alarm, 01-Enable Wi-Fi, 02-Disable Wi-Fi |
- Example:
-
- Set Milesight D2D Key as 12345678123456780000000000000000.
ff35 1234567812345678 Channel Type Value ff 35 1234567812345678 - Set Milesight D2D controller settings.
ff96 03 01 01 04e0 0500 01 Channel Type Value ff 96 03=> Out of bed alarm;
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 Milesight D2D Key as 12345678123456780000000000000000.