如何从iBeacon / BLE检索广告有效载荷

Sam*_*ung 5 linux bluetooth-lowenergy bluez ibeacon

如何在Linux中检索Bluetooth LE发射器的广告有效载荷?

具体来说,我已经使用hcitool将arduino和R-PI配置为iBeacons。

我正在寻找的命令是打印出该设备当前的广告有效负载。

dav*_*ung 5

在Radius Networks,我们整理了一组脚本,这些脚本从Linux上检测到的BLE广告中解析出iBeacon标识符。您可以在此处找到对此的描述

如果您只想查看原始广告字节,则可以使用以下命令在Linux上开始扫描:

sudo hcitool lescan --duplicates &
Run Code Online (Sandbox Code Playgroud)

然后使用以下命令查看结果:

sudo hcidump --raw 
Run Code Online (Sandbox Code Playgroud)

更多细节在上面链接的答案中。