iBeacon显示/蓝牙低功耗(BLE装置) - 信标最大数量 [英] iBeacon / Bluetooth Low Energy (BLE devices) - maximum number of beacons

查看:401
本文介绍了iBeacon显示/蓝牙低功耗(BLE装置) - 信标最大数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一次50-100米半径范围内通过iPhone应用跟踪大量的信标(〜500)(5秒)。我有一个看规格和网上,我无法看到是否有上标则可以使用BLE跟踪一次的数的限制。有谁知道是否有对信标数量限制,你可以跟踪,或如果一个iPhone 5S将达到跟踪的任务,许多信标?

I would like to track a large number of beacons (~500) at once within a 50-100 m radius via an app on an iPhone (5s). I've had a look at the spec and online and I can't see if there is any limit on the number of beacons you can track at once using BLE. Does anyone know if there is limitation on the number of beacons you can track exists or if an iPhone 5s would be up to the task of tracking that many beacons?

推荐答案

您用这个词轨道,但iOS的有两种不同的方法:监控和测距

You used the word track, but iOS has two different methods: monitoring and ranging.

您可以设置最多20个地区进行监控。 (发现在为startMonitoringForRegion文档:方法。)区域范围大多开始发挥作用,如果你的应用程序是在后台。当你进入操作系统将提醒您的应用程序或者离开,你监控(给予或采取几分钟)的区域。操作系统甚至会启动应用程序只是为了让它知道发生了什么(虽然只有很短的时间)。

You can set a maximum of 20 regions to monitor. (Found in documentation for the startMonitoringForRegion: method.) Region limits mostly come into play if your app is in the background. The OS will alert your app when you enter or leave a region that you're monitoring (give or take a few minutes). The OS will even launch your app just to let it know what happened (although only for a short time).

另一种方法是测距,这是为了找到该设备(通常约100英尺给予或采取)的蓝牙范围内的所有的信标。如果您的信标有s $ P $垫了超过100英里,那么你可能不会在这里遇到任何实际的限制。我还没有发现这方面的任何文件,而我只有四个信号灯是我与测试,以及四个一次的作品。

The other method is ranging, which is to find all the beacons within the Bluetooth range of the device (typically around 100 feet give or take). If your beacons are spread out over 100 miles, then you probably won't run into any practical limit here. I have not found any documentation for this, and I have only four beacons that I'm testing with, and four at a time works.

下面是处理你的情况的一种方式。让你的所有的信标500使用相同的UUID,并使用initWithProximityUUID灯塔地区:标识符:方法。 (标识是只为你 - 它不会影响任何东西)。启动该灯塔地区的监测。这样一来,只要您的500信标中的一个发现你的应用程序将被通知(给予或需要几分钟)。一旦接到通知,你可以用startRangingBeaconsInRegion:找到所有的信标周围的区域,然后使用主要和次要的值来找出哪些信标用户接近

Here's one way to handle your situation. Make all your 500 beacons use the same UUID, and make a beacon region using initWithProximityUUID:identifier: method. (Identifier is just for you -- it doesn't affect anything). Starting monitoring for that beacon region. That way, your app will be notified whenever one of your 500 beacons are found (give or take a few minutes). Once notified, you can use startRangingBeaconsInRegion: to find all the beacons around that area, then use the major and minor values to figure out which beacons the user is near.

这篇关于iBeacon显示/蓝牙低功耗(BLE装置) - 信标最大数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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