相关疑难解决方法(0)

什么是iBeacon蓝牙配置文件

我想用一些蓝牙低能量开发套件创建我自己的iBeacon.Apple还没有发布iBeacons规范,但是一些硬件开发商已经反向使用AirLocate示例代码设计iBeacon并开始销售iBeacon开发套件.

那么iBeacon蓝牙配置文件是什么?

Bluetooth Low Energy使用GATT进行LE配置文件服务发现.所以我认为我们需要知道属性句柄,属性类型,属性值,以及iBeacon属性的属性权限.那么,对于UUID为E2C56DB5-DFFB-48D2-B060-D0F5A71096E0的iBeacon,主要值为1,次要值为1,蓝牙GATT配置文件服务是什么?

这是我在Apple论坛和文档讨论中做出的一些假设.

  1. 您只需要查看蓝牙外围设备的配置文件服务(GATT)即可知道它是iBeacon.

  2. Major和Minor键在此配置文件服务中的某处编码

有些公司使用iBeacon Dev Kits似乎已经有了这个数字:

希望我们能及时在Bluetooth.org上发布这样的个人资料:https://www.bluetooth.org/en-us/specification/adopted-specifications

reverse-engineering bluetooth ios bluetooth-lowenergy ibeacon

149
推荐指数
4
解决办法
11万
查看次数

CoreBluetooth中不允许使用广告密钥"Manufacturer Data"

我正在使用核心蓝牙框架.我正在尝试使用此框架创建外围设备.我的外围设备使用以下方

manager=[[CBPeripheralManager alloc]initWithDelegate:self queue:nil];
[manager startAdvertising:dictionary];
Run Code Online (Sandbox Code Playgroud)

这里我传给广告的字典是:

NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:
                                    @"name", CBAdvertisementDataLocalNameKey,@"some other data",CBAdvertisementDataManufacturerDataKey,nil];
Run Code Online (Sandbox Code Playgroud)

当我运行应用程序时,我收到警告:CoreBluetooth中不允许使用广告密钥"Manufacturer Data"

而且我没有得到我CBAdvertisementDataManufacturerDataKey在中心侧使用密钥发送的"其他数据" .我得到了中心的名字.那么如何将一些其他数据与广告数据一起发送?

iphone objective-c ios core-bluetooth

10
推荐指数
1
解决办法
6646
查看次数