android - Estimote 和 Gimbal 信标的正确 BeaconLayout 是什么

标签 android ibeacon-android altbeacon

我希望 Android 信标库的 2.0 版本能够正确检测旧式 Estimote 信标(不支持 iBeacon 技术的 2013 年之前的型号)和 Gimbal 信标。我知道 Gimbal 信标具有加密标识符,因此无法直接读取这些标识符。但我至少想分享可以检测到它的代码。

这是我的:

检测 Gimbal 信标的代码(不读取加密标识符):

BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this);
BeaconManager.getBeaconParsers().add(new BeaconParser().
       setBeaconLayout("m:0-3=ad7700c6"));
beaconManager.bind(this);

检测 2013 年年中 Estimote 信标的代码(没有读取标识符,因为我不知道如何读取):

BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this);
BeaconManager.getBeaconParsers().add(new BeaconParser().
       setBeaconLayout(""m:0-3=2d24bf16""));
beaconManager.bind(this);

是否有人(尤其是来自 Estimote 或 Gimbal 的人)有任何关于上述字节偏移量的额外信息,这些信息将允许从传输中解码尽可能多的信息?在每种情况下,我相信我们都需要关闭蓝牙服务 UUID,它可能用比我在上面的示例中更多的字节来正确表示。我很想知道完整的服务 UUID 以及广告中发送的任何其他可读字段。

最佳答案

用于估算

beaconManager.getBeaconParsers().
      add(new BeaconParser().
      setBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"));

关于android - Estimote 和 Gimbal 信标的正确 BeaconLayout 是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25044046/

相关文章:

android - 如何在 Android 上使用室内信标实时映射

android - Alt Beacon Android 不稳定

android - 即使蓝牙已关闭,也能检测附近的信标

java - 根据步行速度在 2 个 GPS 位置之间进行插值

android - 无法使用 rootBundle 在 flutter 测试中加载 Assets

android - 前台服务在 didExitRegion 上重新启动

android - 更改 Material You 底部导航栏中 Activity 和非 Activity 状态下的图标

android - 在 Android 中同时启动两个(或更多)功能

android - 监听AltBeacon的灵敏度