简体   繁体   English

BLE广告切换间隔和广告间隔

[英]BLE Advertisement switch interval & advertising interval

I want to be able to switch between two advertising data using one bluetooth adapter, what is the optimal advertising switch interval and the advertising interval for it to be recognized immediately without much delay by iOS? 我希望能够使用一个蓝牙适配器在两个广告数据之间进行切换,最佳广告切换间隔和广告间隔是什么,以便iOS能够立即识别出该广告间隔? (I want to switch between iBeacon and GATT Service advertisement). (我想在iBeacon和GATT服务广告之间切换)。 Right now I am using 1.5s switch interval with advertising interval of 200ms. 现在,我使用1.5秒的切换间隔,广告间隔为200毫秒。 I am wondering if 200 ms is too much. 我想知道200毫秒是否太多。

Thanks 谢谢

The fastest I have been able to reliably switch between two BLE advertisements on iOS is 1 second. 我能够在iOS上的两个BLE广告之间可靠切换的最快速度是1秒。 See my answer and sample code here . 在这里查看我的答案和示例代码。

The standard iOS iBeacon advertising frequency is 30 Hz, but in my experience, you only need to transmit an iBeacon advertisement every 900ms for fastest detection. iOS的标准iBeacon广告频率为30 Hz,但是根据我的经验,您只需每900毫秒就发送一次iBeacon广告,以实现最快的检测速度。 More frequent advertisements are still useful for more accurate distance measurements, as iOS uses samples of RSSI from the iBeacon advertisements to make this estimate every second when ranging. 频率更高的广告仍可用于更精确的距离测量,因为iOS使用iBeacon广告中的RSSI样本在进行测距时每秒进行一次估算。

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

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