简体   繁体   English

iOS 上的蓝牙与低功耗蓝牙

[英]Bluetooth vs Bluetooth low energy on iOS

I'm trying to get the name (only the name) of all bluetooth devices near me (classic bluetooth and BLE).我正在尝试获取我附近所有蓝牙设备的名称(仅名称)(经典蓝牙和 BLE)。 to be more specific i need to know when the user is near his car kit device bluetooth.更具体地说,我需要知道用户何时靠近他的车载套件设备蓝牙。

I tried using CoreBluetoothFramework but it can only create connection with BLE devices.我尝试使用 CoreBluetoothFramework,但它只能与 BLE 设备建立连接。

I'm not sure that all the car kits uses "Apple's MFi license" so i'm not sure i can use External Accessory.我不确定所有车载套件都使用“Apple 的 MFi 许可证”,所以我不确定我是否可以使用外部附件。

Use IOBluetooth for Bluetooth classic.使用 IOBluetooth 进行蓝牙经典。 See for example IOBluetoothDevice and IOBluetoothDeviceInquiry classes.参见例如 IOBluetoothDevice 和 IOBluetoothDeviceInquiry 类。 If you want to see any device you need to use both IOBluetooth and Core Bluetooth.如果您想查看任何需要同时使用 IOBluetooth 和 Core Bluetooth 的设备。 The MFi is needed for developing new profiles under Bluetooth classic, you shouldn't need it for an application that just detects devices.在蓝牙经典下开发新配置文件需要 MFi,对于仅检测设备的应用程序,您不应该需要它。

For iOS you can try the ExternalAccessories framework for Bluetooth classic (IOBluetooth is not supported).对于 iOS,您可以尝试蓝牙经典的 ExternalAccessories 框架(不支持 IOBluetooth)。 See this question for relevant details: How to use bluetooth classic instead of le有关详细信息,请参阅此问题: How to use bluetooth classic instead of le

1. Bluetooth Classic and Bluetooth Low Energy both different.
2. BT classic is old version of BT(BT 2.0).
3. BLE 4.0 and later version control by core bluetooth library.
4. Cant communicate with BT classic via core bluetooth library.
5. Latest version of BLE 5.
6. BLE 5 available only on iPhone 8, 8+ and X(10).
7. Cant find/show BLE in iOS bluetooth settings.
6. Only BT classic find/show in iOS bluetooth settings.

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

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