在android中的altbeacon库中找到StickNFind信标

时间:2016-04-27 06:53:19

标签: android bluetooth altbeacon beacon

我正在使用altbeacon库用于android,但无法检测到任何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"));

1 个答案:

答案 0 :(得分:1)

我对Stick n'的理解查找设备是因为它们不是 beacons 。它们是蓝牙LE外围设备,宣传可连接的GATT服务。必须连接到BLE GATT服务以识别设备。

因此,它们不能用作信标,要求在蓝牙LE广告中传输唯一标识符。出于这个原因,Android Beacon Library不适用于检测Stick n'查找设备。