简体   繁体   English

使用蓝牙低功耗连接iPhone 4s和iPad3

[英]Connecting an iPhone 4s with an iPad3 using Bluetooth Low Energy

Can anyone point me to an example of connecting an iPhone 4S to an iPad 3 using BLE? 有人能指出我使用BLE将iPhone 4S连接到iPad 3的示例吗?

I have written a sample App and when I use CBCentralManager like this: 我写了一个示例应用程序,当我像这样使用CBCentralManager时:

[centralManager scanForPeripheralsWithServices:uuidArray options:options];

To scan for devices the iPhone and iPad do not seem to see each other. 要扫描设备,iPhone和iPad似乎没有看到对方。

Thanks for the help 谢谢您的帮助

The iPad is not a Bluetooth Low Energy device. iPad不是蓝牙低功耗设备。 A BLE device is typically a wristwatch, heart-rate monitor etc. BLE装置通常是手表,心率监测器等。

This is why you can't see the iPad using CoreBluetooth. 这就是你无法使用CoreBluetooth看到iPad的原因。

Consider using GameKit for iPhone-iPad bluetooth communication? 考虑使用GameKit进行iPhone-iPad蓝牙通信?

The new iPad (3rd Gen) does have Bluetooth 4.0, but you cannot use BT4.0 to communicate between two iOS devices. 新的iPad(第3代)确实有蓝牙4.0,但你不能使用BT4.0在两个iOS设备之间进行通信。

You can only communicate with external sensors. 您只能与外部传感器通信。

In addition to the other answers, the bluetooth specification states that dual mode blend devices will use the classic bt radio and not the ble radio. 除了其他答案之外,蓝牙规范还指出双模混合设备将使用经典的bt无线电而不是无线电。 You can only use the ble radio with single mode ble devices. 您只能将ble收音机与单模式设备配合使用。

如果你想在蓝牙低功耗的两个iDevices之间进行通信,你必须等待iOS 6,这将支持BLE上的服务器功能。

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

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