Downlink Command
This chapter describes the downlink commands for device 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 |
|---|---|---|---|---|
| Depth Calibration | ff | f1 | 4 | Byte 1: 06 Byte 2: 00-disable, 01-enable Byte 3-4: Calibration value, INT16, Unit: cm |
- Examples:
-
- Enable depth calibration and set calibration value.
fff10601fdff Channel Type Value ff f1 06=Depth, 01=Enable fdff=>fffd=-3 cm
- Enable depth calibration and set calibration value.
Threshold Setting
| Item | Channel | Type | Byte | Description |
|---|---|---|---|---|
| Depth 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: cm Byte 4-5: Maximum threshold, UINT16, Unit: cmByte 6-9: 00000000 |
| Alarm Reporting Times | ff | f2 | 2 | UINT16 |
| Alarm Dismiss Report | ff | f5 | 1 | 00-disable, 01-enable |
- Example:
-
- Set the depth threshold as below 1m.
ff06496400000000000000
Channel Type Value ff 06 49=Below Min. threshold: 64 00=>00 64=100 cm=1m
- Set the depth threshold as below 1m.