Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

"AdvData" field structure (max 31 octets/bytes):

Lengthlength of the payload1 octet (15)
Typemanufacturer specific data1 octet (ff)
ManufacturerDatacompany identifier
4
2 octets (
15FF4F09
4F09)
Versionthe version of this advertisement structure1 octet (uint)
UserDatauser-configured part of the payload

1 octet (uint)

Secretoptionally encrypted (AES-ECB) part of the payload
  • secret: salt (for encryption) = 2 octets (uint)
  • secret: acceleration (acceleration in signed 8.8 fixed point format - acceleration of all 3 axis (0=x, 1=y, 2=z)) = 6 octets (uint)
  • secret: temperature (ambient temperature in Celsius in signed 8.8 fixed point format) = 2 octet (int)
  • secret: uptime (uptime in seconds) = 4 octets (uint)
  • secret: flags (bit-mask of flags) = 1 octet (uint)
  • secret: batteryPercentage (battery level in percent) = 1 octet (uint)


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

015ManufacturerDataLengthlength of the payloadcompany identifier
1FFManufacturerDataTypemanufacturer specific datacompany identifier
24FManufacturerDataCompany identifiercompany identifierMikroTik
309ManufacturerDataCompany identifiercompany identifierMikroTik
401Versionthe version of this advertisement structure
500UserDatauser-configured part of the payload
6xx*Secretsecret: salt
7xx*Secretsecret: salt
8xx*Secretsecret: acceleration on the X-axis
9xx*Secretsecret: acceleration on the X-axis
10xx*Secretsecret: acceleration on the Y-axis
11xx*Secretsecret: acceleration on the Y-axis
12xx*Secretsecret: acceleration on the Z-axis
13xx*Secretsecret: acceleration on the Z-axis
14xx*Secretsecret: temperature
15xx*Secretsecret: temperature
16xx*Secretsecret: uptime
17xx*Secretsecret: uptime
18xx*Secretsecret: uptime
19xx*Secretsecret: uptime
2000Secretsecret: flags
2164xx*Secretsecret: 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).

...

01aManufacturerDatacompany identifier
1ffManufacturerDatacompany identifier
24cManufacturerDatacompany identifier
300ManufacturerDatacompany identifier
402BeaconTypea secondary identifier
51521RemainingDataLengthdefines the remaining length for the payload in bytes
6b2xx*UserDataProximity UUID
7b9xx*UserDataProximity UUID
88dxx*UserDataProximity UUID
9e4xx*UserDataProximity UUID
10c8xx*UserDataProximity UUID
111cxx*UserDataProximity UUID
1247xx*UserDataProximity UUID
13c2xx*UserDataProximity UUID
14b1xx*UserDataProximity UUID
154exx*UserDataProximity UUID
1679xx*UserDataProximity UUID
171bxx*UserDataProximity UUID
183exx*UserDataProximity UUID
1955xx*UserDataProximity UUID
2087xx*UserDataProximity UUID
21ecxx*UserDataProximity UUID
22xx*UserDataMajor Number
23xx*UserDataMajor Number
24xx*UserDataMinor Number
25xx*UserDataMinor Number
26xx*TxPowerindicates the signal strength at one meter from the device

...

003CommonPayloadCompleteUUID
103CommonPayloadCompleteUUID
2aaCommonPayloadCompleteUUID
3feCommonPayloadCompleteUUID
417CommonPayloadServiceData
516CommonPayloadServiceData
6aaCommonPayloadServiceData
7feCommonPayloadServiceData
800CommonPayloadFrameType
9xx*UidPayloadRanging Data
10b2xx*UidPayloadNspace
11b9xx*UidPayloadNspace
128dxx*UidPayloadNspace
13e4xx*UidPayloadNspace
14c8xx*UidPayloadNspace
151cxx*UidPayloadNspace
1647xx*UidPayloadNspace
17c2xx*UidPayloadNspace
18b1xx*UidPayloadNspace
194exx*UidPayloadNspace
20xx*UidPayloadInstance
21xx*UidPayloadInstance
22xx*UidPayloadInstance
23xx*UidPayloadInstance
24xx*UidPayloadInstance
25xx*UidPayloadInstance
2600UidPayloadRFU1
2700UidPayloadRFU2

...