What is the iBeacon Bluetooth Profile

前端 未结 6 2025
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 10:14

I\'d like to create my own iBeacon with some Bluetooth Low Energy dev kits. Apple has yet to release a specification for iBeacons, however, a few hardware developers have re

6条回答
  •  青春惊慌失措
    2020-11-22 10:42

    Just to reconcile the difference between sandeepmistry's answer and davidgyoung's answer:

    02 01 1a 1a ff 4C 00
    

    Is part of the advertising data format specification [1]

      02 # length of following AD structure
      01 # <> AD Structure [2]
      1a # read as b00011010. 
         # In this case, LE General Discoverable,
         # and simultaneous BR/EDR but this may vary by device!
    
      1a # length of following AD structure
      FF # Manufacturer specific data [3]
    4C00 # Apple Inc [4]
    0215 # ?? some 2-byte header
    

    Missing from the AD is a Service [5] definition. I think the iBeacon protocol itself has no relationship to the GATT and standard service discovery. If you download RedBearLab's iBeacon program, you'll see that they happen to use the GATT for configuring the advertisement parameters, but this seems to be specific to their implementation, and not part of the spec. The AirLocate program doesn't seem to use the GATT for configuration, for instance, according to LightBlue and or other similar programs I tried.

    References:

    1. Core Bluetooth Spec v4, Vol 3, Part C, 11
    2. Vol 3, Part C, 18.1
    3. Vol 3, Part C, 18.11
    4. https://www.bluetooth.org/en-us/specification/assigned-numbers/company-identifiers
    5. Vol 3, Part C, 18.2

提交回复
热议问题