← Wireless iBeacon Receiver Main Page

iBeacon Scan Mode

The transport protocol is MQTT. Here's a sample data.

{

"id":"ABCDEF123456",

"raw_beacons_data":"F4B85ED84CB7123456781234123412341234123412347DAD33B1C6FF41;0117C538C0CF23A01AF0232A45189C0E323FB773F5EF00100020B3FFB2;"

}

It's a json data. The key "id" is the MAC address for the receiver. The key named "raw_beacons_data" contains the beacon datas. The iBeacon datas are splitted by semicolon. The sample data

F4B85ED84CB7123456781234123412341234123412347DAD33B1C6FF41

BytesDescriptionExample
1 - 12 bytesMac address for beaconF4B85ED84CB7
13 - 44 bytesiBeacon's UUID,32 bytes12345678123412341234123412341234
45 - 48 bytemajor7DAD
49 - 52 byteminor33B1
53, 54 bytemeasured power,minus 255 for real valueC6
55, 56 byteBattery level in percent, there will be FF if battery level unknownFF
57, 58 byteRSSI,minus 255 for real value41

Lite Scan Mode

RAW Scan Mode

Example response hex data for raw data

12 3b 6a 1a 64 cf aa 03 1e 02 01 06 1a ff 4c 00 02 15 b5 b1 82 c7 ea b1 49 88 aa 99 b5 c1 51 70 08 d9 00 01 cf 64 c5

BytesDescriptionExample
1 - 6 bytesmac address for BLE device12 3b 6a 1a 64 cf
7 byteRSSI,minus 255 for real valueaa
8 byteAdvertising Type03, see the table below
9 byteData length for advertisement data1e
10 byte -Advertisement data, see the 9th byte for length02 01 06 1a ff 4c 00 02 15 b5 b1 82 c7 ea b1 49 88 aa 99 b5 c1 51 70 08 d9 00 01 cf 64 c5

Advertising Type Code

CodeDescription
0Connectable undirected advertisement
1Connectable directed advertisement
2Scannable undirected advertisement
3Non-Connectable undirected advertisement
4Scan Response
Last Updated:
Contributors: yanc