...
"AdvData" field structure (max 31 octets/bytes):
Length | length of the payload | 1 octet (15) |
ManufacturerData | company identifier | 4 2 octets (15FF4F09 4F09 ) |
Version | the version of this advertisement structure | 1 octet (uint) |
UserData | user-configured part of the payload | 1 octet (uint) |
Secret | optionally encrypted (AES-ECB) part of the payload |
|
Info |
---|
Please note that all multi-byte values are in little-endian. Meaning, that if, for example, you want to get the temperature value and #14 and #15 octets indicate the temperature as "a1 19" ("plus" temperature) → the real temperature value is going to be (0x19a1)/256 = 25.6 C. |
...
MikroTik PDU Payload structure
0 | 15 | ManufacturerData | Length | length of the payloadcompany identifier |
1 | FF | ManufacturerData | Type | manufacturer specific datacompany identifier |
2 | 4F | ManufacturerDataCompany identifiercompany identifier | MikroTik | |
3 | 09 | ManufacturerDataCompany identifiercompany identifier | MikroTik | |
4 | 01 | Version | the version of this advertisement structure | |
5 | 00 | UserData | user-configured part of the payload | |
6 | xx* | Secret | secret: salt | |
7 | xx* | Secret | secret: salt | |
8 | xx* | Secret | secret: acceleration on the X-axis | |
9 | xx* | Secret | secret: acceleration on the X-axis | |
10 | xx* | Secret | secret: acceleration on the Y-axis | |
11 | xx* | Secret | secret: acceleration on the Y-axis | |
12 | xx* | Secret | secret: acceleration on the Z-axis | |
13 | xx* | Secret | secret: acceleration on the Z-axis | |
14 | xx* | Secret | secret: temperature | |
15 | xx* | Secret | secret: temperature | |
16 | xx* | Secret | secret: uptime | |
17 | xx* | Secret | secret: uptime | |
18 | xx* | Secret | secret: uptime | |
19 | xx* | Secret | secret: uptime | |
20 | 00 | Secret | secret: flags | |
2164 | xx* | Secret | secret: batteryPercentage |
...
15ff4f09 (first 4 octets) → ManufacturerData. Is the same (constant data) for every MikroTik format's payloadLength (0x15 hex-to-dec is 21). Type (0xff). Company identifier (0x4f09).
01 (4th octet) → Current version of the payload's structure. Should be the same for every payload (constant data).
...