通过BeeTee应用程序连接到其他蓝牙设备

问题描述:

我需要实现自我的蓝牙应用程序与所有蓝牙设备将iPhone连接。我知道这是不可能的CoreBluetooth框架。

I need to implement a self bluetooth app to connect with all bluetooth devices to iPhone. I know it is not possible with CoreBluetooth framework.

我使用私有API和DeviceManager和BluetoothManager加入头文件私人框架,并从这里下载的BeeTee项目>

I use private API and added header files of DeviceManager and BluetoothManager to private frameworks and downloaded BeeTee Project from here

该应用程序运行,并认为所有的蓝牙设备靠近我,但是当我试图通过这个code连接到设备:

This app runs and finds all bluetooth device near me but when I have tried to connect to a device by this code:

[self.bluetoothManager connectDevice:bluetoothDevice];

[bluetoothDevice connect];

当选定一个单元格,同时具有上述codeS请求连接,但BTM返回该消息:

When a cell is selected, Both of above codes request to connect but BTM returns this message:

BeeTee [5473:60B] BTM:连接到服务0xffffffff的设备上的诺基亚500F4:XX:XX:XX:XX:XX失败,出现错误109

BeeTee[5473:60b] BTM: connection to service 0xffffffff on device "Nokia 500" F4:xx:xx:xx:xx:xx failed with error 109

什么是错误109?这将设置服务号码?

What is error 109? Which would be set service number?

我想连接之前,我要配对设备,但我怎么能做到这一点?

I guess I should pair devices before connecting but how can I do that?

我只是假设,但我认为问题是,BluetoothManager.framework是针对发外部附件苹果计划。这允许(等等)SPP蓝牙连接为认证设备。但有一个问题:你需要有一个内部有认证芯片的设备。

I am just supposing, but I think the problem is that the BluetoothManager.framework is made for the External Accessory Program by Apple. And this allows (among others) SPP Bluetooth connection to certificated devices. But there is the problem: you need to have a device with a authentication chip inside.

我不知道在哪个级别/层苹果实现的身份验证,但我担心的是用它做私人的框架下BeeTee一层。

I don't know on which level/layer Apple implemented the authentication, but I fear the did it one layer under the private framework BeeTee is using.

更新:也许这有助于您:

UPDATE: Maybe this is helpful for you:

BluetoothManager *bluetoothManager = //...
[bluetoothManager setDevicePairingEnabled:YES];
[bluetoothManager connectDevice:bluetoothDevice withServices:0x00002000];

积分