蓝牙配对 - HFP配置文件和经典蓝牙/ BLE [英] Bluetooth Pairing - HFP profile and Classic Bluetooth/BLE

查看:1343
本文介绍了蓝牙配对 - HFP配置文件和经典蓝牙/ BLE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我进行蓝牙配对和通信

Can any one help me on bluetooth pairing and communicating

1.是否可以在应用程序中查看所有试图通过蓝牙连接的设备,不要进入设置页面。

1.Is it possible to view all the device trying to connect via Bluetooth in the application, not by going to settings page.

2 我们是否可以从使用HFP,A2DP等标准配置文件的设备访问数据而不使用MFi。蓝牙,而不是BLE)它是如何完成的以及哪个框架?

请提前帮助并提前致谢

3.(已编辑)是否可以使用Corebluetooth查看应用程序中使用BLE(仅标准配置文件HFP,A2DP)的所有设备???

3.(Edited) Is it possible to view all devices that uses BLE (standard profiles only HFP, A2DP )in the application by using Corebluetooth???

推荐答案


  1. 您可能希望通过蓝牙连接三种类型的设备,A)蓝牙低功耗(BLE)设备B)参与MFi计划的经典蓝牙配件C)一些通用的经典蓝牙设备,如免提耳机。

使用BLE设备,您几乎可以随心所欲地做任何事情。您可以在应用程序中获取它们的列表,很好地呈现它并让用户选择要连接的设备(或透明地连接)。

With BLE devices you can do almost whatever you want. You can get a list of them inside your app, present it nicely and let the user choose a device to connect (or connect transparently).

您可以在Settings.app或附件选择器弹出窗口中看到的MFi设备(请参阅 ExternalAccessory.framework reference 了解更多详情)。但是,您无法控制附件选取器。但是在用户选择了设备之后,您可以通过编程方式将其视为已连接。

MFi devices you can either see in Settings.app or in Accessory Picker popup (see ExternalAccessory.framework reference for more details). However, you don't have control over the Accessory Picker. But after the user has selected the device there, you can see it programmatically as connected.

使用标准的经典蓝牙设备,如免提,您的唯一配对选项是去那里的Settings.app和配对。故事结束。

With standard Classic Bluetooth devices, like hands-frees, your one and only pairing option is to go to the Settings.app and pair from there. End of story.

所以不,没有这样一个神奇的地方,你可以看到周围的所有设备。您应事先知道需要与哪种类型的设备进行通信并作出相应的反应。

So no, there's no such magic place where you can see all the devices around you. You should know in advance with which type of devices you need to communicate and react accordingly.


  1. 没有处理标准Classic BT设备的标准框架,不同的Apple框架负责它们。一般来说,你做不了多少,大多数沟通都是由系统内部完成的。例如。对于免提设备,您只能检测到此类设备已连接/断开连接(请参阅更多这里)。

HFP和A2DP是与BLE无关的经典蓝牙配置文件。您无法使用CoreBluetooth.framework查看此类设备的列表。

HFP and A2DP are Classic Bluetooth profiles that have nothing to do with BLE. You can't see a list of such devices around using CoreBluetooth.framework.

这篇关于蓝牙配对 - HFP配置文件和经典蓝牙/ BLE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆