简体   繁体   English

在[设置]中的蓝牙设备列表上显示和配对BLE设备

[英]Display and Pairing BLE devices on Bluetooth device list in [Settings]

I'm developing a BLE peripheral device and would like to pair the device and iPhone on the Bluetooth devicelist ([Settings] -> [Bluetooth]). 我正在开发BLE外围设备,并希望在蓝牙设备列表([设置]-> [蓝牙])上将设备与iPhone配对。

I tested some Bluetooth(Classic) and BLE devices on the list and some devices were shown on the list but others weren't. 我在列表中测试了一些蓝牙(经典)和BLE设备,并且列表中显示了一些设备,而其他设备则没有。

[Tested iPhone] [经过测试的iPhone]

  • iPhone5s (OSver. 7.0.4) iPhone5s(作业系统7.0.4)
  • iPhone6 (OSver. 8.0.2) iPhone6(作业系统8.0.2)

[Tested Bluetooth devices and result] [经过测试的蓝牙设备和结果]

  • Xperia Tablet Z2 (Classic) -> Shown Xperia Tablet Z2(Classic)->显示
  • Microsoft Wedge Mobile Keyboard (Classic) -> Shown Microsoft Wedge移动键盘(经典)->显示
  • Tag LBT-VRU01(BLE) -> Not shown 标签LBT-VRU01(BLE)->未显示
  • Mouse BSMBB09DS (BLE) -> Not shown 鼠标BSMBB09DS(BLE)->未显示

Now I have two questions. 现在我有两个问题。

  1. Is there any way to show and pair BLE devices on device list in [Settings] ? 有什么方法可以在[设置]的设备列表中显示和配对BLE设备?
  2. Are there any conditions(specific profiles?) to show Bluetooth(Classic) peripheral devices on device list in [Settings]. 是否有任何条件(特定的配置文件?)可在[设置]的设备列表中显示Bluetooth(经典)外围设备。

Thank you. 谢谢。

iOS doesn't pair with BLE devices unless one of the device's characteristics specifies that encryption is required. 除非设备的特征之一指定需要加密,否则iOS不会与BLE设备配对。 Apps need to provide their own UI for the user to discover and select the BLE peripheral they want to work with (this is because the app knows what service(s) are required for the app while Bluetooth settings doesn't. 应用程序需要提供自己的UI,以便用户发现并选择他们要使用的BLE外围设备(这是因为该应用程序知道该应用程序需要哪些服务,而不需要蓝牙设置。

Even when pairing of BLE devices is performed it is still initiated through the app. 即使执行BLE设备配对,它仍然可以通过该应用程序启动。 Bluetooth settings is used to "forget" the device (remove the stored encryption keys). 蓝牙设置用于“忘记”设备(删除存储的加密密钥)。

Classic devices that offer a supported profile will appear in the Bluetooth settings screen. 提供受支持的配置文件的经典设备将出现在蓝牙设置屏幕中。 These are keyboards, hands free/headset and audio devices. 这些是键盘,免提/耳机和音频设备。 Other MFi devices may also appear if there is an installed app. 如果已安装应用程序,则其他MFi设备也可能会出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM