Downlink Commands for Query
This section describes the downlink commands for querying the device data.
Query Current Data
Command description:
| Channel | Type | Byte | Value | Example |
|---|---|---|---|---|
| ff | 28 | 1 |
00: Schedule Content and Time |
Query periodic report: ff2801 |
Query Historical Data
Prerequisites: Data Storage was enabled and device time is synced.
Command description:
| Item | Channel | Type | Byte | Value | Example |
|---|---|---|---|---|---|
| Query a Time Point | fd | 6b | 4 | Timestamp, Unit: s | / |
| Query a Time Range | fd | 6c | 8 | Byte 1-4: Start
timestamp, unit:
s Byte 5-8: End timestamp, unit: s |
Query data from 1697445000s to 1697445600s: fd6c88f42c65e0f62c65 |
| Stop Query | fd | 6d | 1 | ff | / |
| Query Report Interval | ff | 6a | 3 | Byte 1:
01 Byte 2-3: Interval, unit: s, range: 30-1200, default: 60 |
Report interval is 1200s: ff6a01b004 |
Reply description: Query Result + Historical Data
Packet
| Item | Channel | Type | Byte | Value | Example |
|---|---|---|---|---|---|
| Query Result | fc | 6b/6c | 1 | 00=Success, 01=Time invalid, 02=No data in this time or time range | Query a time range success: fc6c00 |