简体   繁体   English

在收听其他iBeacons时,iOS设备可以充当iBeacon吗?

[英]Can an iOS device act as an iBeacon while listening for other iBeacons?

I was wondering if an an iOS device can act as an iBeacon while listening for other iBeacons. 我想知道一个iOS设备是否可以在收听其他iBeacons时充当iBeacon。 Based on my reading, it seems as though the answer should be "no" but I would very much appreciate a definitive answer. 根据我的阅读,似乎答案应该是“不”,但我非常欣赏一个明确的答案。 I would test it out myself but I have yet to purchase an additional iOS device. 我会自己测试一下,但我还没有购买额外的iOS设备。 Please let me know. 请告诉我。 Thanks! 谢谢!

EDIT: 编辑:

Found an additional phone to test it out and it worked as confirmed below. 找到一个额外的手机来测试它,它的工作原理如下所示。

Yes, this works! 是的,这有效! I had actually never tried it myself until a few minutes ago. 直到几分钟前我才真正尝试过。 The only caveat is that when a device is both transmitting as an iBeacon and scanning for iBeacons, it does not detect its own transmissions. 唯一需要注意的是,当设备作为iBeacon进行传输并扫描iBeacons时,它不会检测到自己的传输。

Here is my test setup: 这是我的测试设置:

  1. Locate for iBeacon v1.1 installed on an iPhone 4S (See NOTE), configured to transmit as an iBeacon with UUID 5AFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF, major 0, minor 0, power -59. 找到安装在iPhone 4S上的iBeacon v1.1(参见注释),配置为以UUID 5AFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF作为iBeacon进行传输,主要0,次要0,电源-59。 Also configured to locate visible iBeacons (using ranging). 还配置为定位可见的iBeacons(使用范围)。

  2. MacBeacon installed on a MacBook Pro, transmitting UUID 2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6, major 1, minor 1, power -59 MacBeacon安装在MacBook Pro上,传输UUID 2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6,主要1,次要1,电源-59

  3. ScanBeacon installed on the same Macbook Pro, scanning for all iBeacons. ScanBeacon安装在同一Macbook Pro上,扫描所有iBeacons。

The result was that the iPhone detected the 2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6 iBeacon coming from the MacBook and the MacBook detected the 5AFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF iBeacon coming from the iPhone. 结果是iPhone检测到来自MacBook的2F234454-CF6D-4A0F-ADF2-F4911BA9FFA6 iBeacon,MacBook检测到来自iPhone的5AFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF iBeacon。 This proves an iPhone can transmit and range simultaneously. 这证明了iPhone可以同时传输和传输。

NOTE: Version 1.1 of Locate for iBeacon, which allows simultaneous iBeacon transmission and iBeacon locating, is not yet available in the AppStore. 注意:AppStore中尚未提供1.1版Loca for iBeacon,它允许同时进行iBeacon传输和iBeacon定位。 I am the author and am in the process of adding that feature to the next release. 我是作者,我正在将该功能添加到下一个版本中。

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

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