0x00 Instant data
Description
The 0x00 Instant data FORMAT represents the state of counting inputs at the moment of transmission. The FLAGS field defines the presence and size of the Counter fields, as well as which channels are active. Each bit in the FLAGS field specifies whether a channel is used and whether its counter value is 24-bit or 32-bit. The Timestamp field provides the time of data capture, while the Counter fields contain the values of the counters for the active channels, determined by the FLAGS. Unused counters are omitted from the payload.
FLAGS Timestamp Counter 1 Counter 2 Counter 3
1B 4B Depends on FLAGS Depends on FLAGS Depends on FLAGS
| Field | Size, bytes | Value |
|---|---|---|
| FLAGS | 1 | Contain Counter field parameters like presence and size. |
| Counter 1 | 0 or 3 or 4 | Value of counter 1 (32-bit or 24-bit depending on FLAGS). |
| Counter 2 | 0 or 3 or 4 | Value of counter 1 (32-bit or 24-bit depending on FLAGS). |
| Counter 3 | 0 or 3 or 4 | Value of counter 1 (32-bit or 24-bit depending on FLAGS). |
FLAGS
| Bit | Flag Meaning | Notes |
|---|---|---|
| 0 | Using channel 1 | |
| 1 | Using channel 2 | |
| 2 | Using channel 3 | |
| 3 | Channel 1, 32 Bit (24, if 0) | |
| 4 | Channel 2, 32 Bit (24, if 0) | |
| 5 | Channel 3, 32 Bit (24, if 0) | |
| 6 | RFU | |
| 7 | Initialization. | This flag is set once after a special sequence is triggered via the Hall sensor(e.g., after installing a new counter) and is used to initialize initial values on the server. |
Example
78C82000030529552C7413015E1C00
78 - PID
C8 - SEQ
20 - FLAGS
00 - Instant data
03 - Flags
05 29 55 2C - Timestamp
74 13 01 - Counter 1 (70516)
5E 1C 00 - Counter 2 (7262)
Playground
Output will appear here...