测试iBeacon延迟 [英] Ranging an iBeacon latency

查看:145
本文介绍了测试iBeacon延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在玩iOS 7中的新iBeacons。我有一个设备设置作为信标,另一个设备可以检测我何时接近,远,立即等。我想知道非常我跨越这些范围时很快。有没有办法调整延迟?我发现我必须非常缓慢地移动我的设备,否则当我越过这些阈值时我就不知道了。

I have been playing around with the new iBeacons in iOS 7. I have one device setup as a beacon, and the other device ranging to detect when I am near, far, immediate, etc. I'd like to know very quickly when I cross between these ranges. Is there any way to adjust the latency? I find that I have to move my device around very slowly or I will not know when I cross these thresholds.

推荐答案

不,你将无法调整信标延迟。正如Apple在区域监控指南

No, you would not be able to adjust the beacon latency. As Apple says in Region Monitoring Guide:


为防止虚假通知,iOS不提供区域
通知,直到满足某些阈值条件。
具体来说,用户的位置必须越过区域边界并且
离开该边界最小距离并且在通知为$ b $之前保持在
最小距离至少20秒b报道。

To prevent spurious notifications, iOS does not deliver region notifications until certain threshold conditions are met. Specifically, the user’s location must cross the region boundary and move away from that boundary by a minimum distance and remain at that minimum distance for at least 20 seconds before the notifications are reported.

Apple没有定义延迟是什么,似乎它对你的应用来说还不够快。

Apple does not define what the latency is, it seems it's not fast enough for your application.

您可以进行权衡 - 使用Core Bluetooth实现信标范围,并在使用RSSI扫描和范围时收听CBPeripheral广告事件:

You can have a tradeoff - to implement beacon ranging yourself using Core Bluetooth and listen to the CBPeripheral advertisement events while scanning and range using RSSI:


centralManager:didDiscoverPeripheral:advertisementData:RSSI:

如果您使用的是自定义信标,例如 RadiusNetworks VirtualiBeacon VM映像您可以调整广告的频率。即使你的应用程序没有运行,你的应用程序的反面也必须在与CoreLocation相对的前台运行,即使你的应用程序没有运行也是如此。

If you are using a custom beacon, such as the RadiusNetworks VirtualiBeacon VM image you can adjust the frequency of the advertisements. The flip side your app must run in the foreground opposed to CoreLocation delivering beacon events even when your app is not running.

这篇关于测试iBeacon延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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