在 android 的 altbeacon 库中找到 StickNFind 信标
Find StickNFind beacon in altbeacon library in android
我正在为 android 使用 altbeacon 库,但无法检测到任何 StickNfind 信标。
我试过的信标布局设置:
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("m:0-3=4c000215,i:4-19,i:20-21,i:22-23,p:24-24"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("s:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("s:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-20v"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("s:0-1=fed8,m:2-2=00,p:3-3:-41,i:4-21v"));
我对 Stick n' Find 设备的理解是,它们并不是真正的 信标 。它们是蓝牙 LE 外设,可宣传可连接的 GATT 服务。需要连接到 BLE GATT 服务来识别设备。
因此,它们不能用作信标,这需要在蓝牙 LE 广告中传输唯一标识符。因此,Android 信标库无法很好地检测 Stick n' Find 设备。
我正在为 android 使用 altbeacon 库,但无法检测到任何 StickNfind 信标。
我试过的信标布局设置:
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("m:0-3=4c000215,i:4-19,i:20-21,i:22-23,p:24-24"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("s:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("s:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-20v"));
beaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLayout("s:0-1=fed8,m:2-2=00,p:3-3:-41,i:4-21v"));
我对 Stick n' Find 设备的理解是,它们并不是真正的 信标 。它们是蓝牙 LE 外设,可宣传可连接的 GATT 服务。需要连接到 BLE GATT 服务来识别设备。
因此,它们不能用作信标,这需要在蓝牙 LE 广告中传输唯一标识符。因此,Android 信标库无法很好地检测 Stick n' Find 设备。