使用CoreBluetooth与iBeacons [英] Using CoreBluetooth with iBeacons

查看:205
本文介绍了使用CoreBluetooth与iBeacons的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做关于iOS设备iBeacons和CoreBluetooth相当多的研究。您的文章和研究已经很大。我已经学到了很多。不幸的是,我正在走入了死胡同,因为它涉及到什么其实我想做的事情。

I've been doing quite a bit of research on iBeacons and CoreBluetooth on iOS devices. Your posts and research have been great. I've learned quite a bit. Unfortunately, i'm running into a dead end as it pertains to what I actually want to do.

我读这篇文章:的http://developer.radiusnetworks.com/2013/10/21/corebluetooth-doesnt-let-you-see-ibeacons.html....

I was reading this post: http://developer.radiusnetworks.com/2013/10/21/corebluetooth-doesnt-let-you-see-ibeacons.html....

...它指出,你不能真正做与不proximityUUID CoreBluetooth。这就是说,如果我实际上做有吗?

...and it points out that you can't really do much with CoreBluetooth without the proximityUUID. That said, what if I actually DO have it?

我想要做的是围绕一个给定的位置处iBeacons。我将使用 didEnterRegion CLLocationManager委托方法知道什么时候,我们已经进入的区域。我想用它来触​​发信标有的CoreBluetooth监控,因此它可以在后台完成。我只需要RSSI和一个唯一的标识符(我可以做没有主要和次要现在),我已经能够在前台得到的,但不能在后台运行。

What i want to do is place iBeacons around a given location. I'll use the didEnterRegion CLLocationManager delegate method to know when we've entered the region. I want to use that to trigger some CoreBluetooth monitoring of the beacons so it can be done in the background. I only need the RSSI and a unique identifier (I can do without the Major and Minor for now), which i've been able to get in the foreground, but not in the background.

我是IM pression,我仍然应该能够在后台得到这个基本的数据,如果我的应用程序有蓝牙核心(现在的应用程序通信使用CoreBluetooth)下集。

I was under the impression that I should still be able to get this basic data in the background if my app had 'bluetooth-central' (now "App Communicates using CoreBluetooth") set.

你能阐明什么,我试图做任何光线?在present,它似乎并不像其他人一样已经尝试这样做,我很想得到它去分享它,因为它似乎是一个可行的解决方法,如果我能突破这个障碍。

Can you shed any light on what I'm trying to do? At present, it doesn't seem like anyone else has tried this and I'd love to get it going and share it, as it seems like a viable work-around if I can get past this barrier.

思考?

推荐答案

由于在博客中提到的那样,你不能得到任何iBeacon显示识别出CoreBluetooth的API,因为iOS不提供访问它封装了原始广告数据这些标识符。

As mentioned in the blog post, you cannot get any of the iBeacon identifiers out of the CoreBluetooth APIs because iOS does not provide access to the raw advertising data that encapsulates these identifiers.

您可能能够做的相关性。如果只有一个BluetoothLE设备是可见的,而你只是看到了使用CoreLocation API的一个iBeacon显示,您可以继续追踪CoreBluetooth信标,读RSSI你的建议。

You may be able to do correlations. If only one BluetoothLE device is visible, and you just saw an iBeacon using CoreLocation APIs, you can continue to track the beacon with CoreBluetooth, reading the RSSI as you suggest.

麻烦来当多个BluetoothLE设备是可见的。如果无法访问在CoreBluetooth的iBeacon显示标识,你怎么会知道你在CoreBluetooth线与该iBeacons的你CoreLocation看到看到哪些设备?不幸的是,我不认为有什么办法,以配合他们。

The trouble comes when multiple BluetoothLE devices are visible. Without access to the iBeacon identifiers in CoreBluetooth, how will you know which device you are seeing in CoreBluetooth lines up with which of the iBeacons you see with CoreLocation? Unfortunately, I do not think there is any way to match them up.

这篇关于使用CoreBluetooth与iBeacons的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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