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 |
| Collect Interval | ff | 02 | 2 | UINT16, Unit: s |
| Re-collect Setting | ff | 1c | 2 | Byte 1: re-collect
times Byte 2-3: re-collect interval |
| Report Interval | ff | 03 | 2 | UINT16, Unit: s |
| 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 |
| UTC Time Zone | ff | 17 | 2 | INT16/10 |
| Device Time | ff | 11 | 4 | Unix timestamp, Unit: s |
| Sync with with LNS | ff | 4a | 1 | ff |
- Example:
-
- Reboot the device.
ff10ff - Set collect interval as 20 minutes.
ff02b004 Channel Type Value ff 02 b004=>04b0=1200s=20 minutes - Set report interval as 20 minutes.
ff03b004 Channel Type Value ff 03 b004=>04b0=1200s=20 minutes - Set time zone as UTC-2.
ff17ecff Channel Type Value ff 17 ecff=>ff ec=-20/10=-2
- Reboot the device.
Calibration Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Distance Calibration | ff | f1 | 4 | Byte 1: 02 Byte 2: 00-disable, 01-enable Byte 3-4: Calibration value, INT16, Unit: mm |
- Examples:
-
- Enable distance calibration and set calibration value.
fff10201fdff Channel Type Value ff f1 02=Distance, 01=Enable fdff=>fffd=-3 mm
- Enable distance calibration and set calibration value.
Threshold Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Distance Threshold Alarm | ff | 06 | 9 | Byte 1: 08=Disable,
49=Below (min. threshold), 4a=Over (max. threshold), 4b=Within,
4c=Below or over Byte 2-3: Minimum threshold, UINT16, Unit: mm Byte 4-5: Maximum threshold, UINT16, Unit: mmByte 6-9: 00000000 |
| Distance Shifts Alarm | ff | 06 | 9 | Byte 1: 15=Disable,
55=Enable Byte 2-3: 0000 Byte 4-5: Mutation threshold, UINT16, Unit: mmByte 6-9: 00000000 |
| Alarm Reporting Times | ff | f2 | 2 | UINT16 |
| Alarm Dismiss Report | ff | f5 | 1 | 00-disable, 01-enable |
- Example:
-
- Set the distance threshold as below 1m.
ff0649e803000000000000 Channel Type Value ff 06 49=Below Min. threshold: e8 03=>03 e8=1000mm=1m
- Set the distance threshold as below 1m.
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 Setting | ff | 96 | 8 | Byte 1: 01-Distance Threshold Triggered 02-Distance Threshold Released 03-Distance Shift ThresholdByte 2: 00-disable, 01-enable Byte 3: 00-Disable LoRa Uplink, 01-Enable LoRa Uplink Byte 4-5: D2D Command Byte 6-8: 000000 |
- Example:
-
- Set D2D Key as 12345678123456780000000000000000.
ff35 1234567812345678 Channel Type Value ff 35 1234567812345678 - When the value reaches the threshold, send D2D command 0110.
ff960101001001000000 Channel Type Value ff 96 01=Threshold Triggered 01=Enable, 00=Disable LoRa uplink
D2D Command: 10 01=>0110
- Set D2D Key as 12345678123456780000000000000000.