Expand description
KKM KBeacon frames, as KKM’s own MIT-licensed SDK reads them
(https://github.com/kkmhogen/android_kbeaconlib2, KBAdvPackage).
| Frame | Carried in | First byte |
|---|---|---|
| Sensor v1: a 16-bit mask, then the readings it names | Eddystone service data (0xFEAA) | 0x21 |
| Sensor v1, encrypted | manufacturer data 0x0A53 | 0x06 |
| Sensor v2: a model byte, battery, then length-type-value records | manufacturer data 0x0A53 | 0x24 |
| Sensor v2, encrypted | manufacturer data 0x0A53 | 0x07 |
| System: model, battery %, MAC, firmware | Eddystone service data | 0x22 |
Encrypted frames carry 16 bytes of AES-128-ECB ciphertext and a 4-byte UTC second count; the key is MD5(password padded to 16 bytes || MAC as printed || UTC seconds).
Structs§
- Kkm
- A KKM frame.
Constants§
- COMPANY_
ID - KKM’s company identifier.
Functions§
- decode_
manufacturer - Decodes a frame in KKM’s manufacturer data (types 0x06, 0x07 and 0x24).
Encrypted frames are decrypted when
ctxhas the advertiser’s address and a password for it. - decode_
service_ data - Decodes a frame in Eddystone service data (types 0x21 and 0x22).