如何从iBeacon/BLE检索广告有效载荷 [英] How to retrieve advertising payload from iBeacon / BLE

查看:98
本文介绍了如何从iBeacon/BLE检索广告有效载荷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do you retrieve the advertising payload for a Bluetooth LE emitter in linux?

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

Specifically, I've configured arduino's and R-PI's using hcitool to act as iBeacons.

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

What I'm looking for is a command to print out what the current advertising payload is for the device.

推荐答案

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

At Radius Networks, we put together a set of scripts that parse the iBeacon identifiers out of BLE advertisement detected on Linux. You can find a description of this here.

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

If you simply want to see the raw advertisement bytes, you can start scanning on Linux with:

sudo hcitool lescan --duplicates &

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

And then see the results with:

sudo hcidump --raw 

更多详细信息位于上面链接的答案中.

More details are in the answer linked above.

这篇关于如何从iBeacon/BLE检索广告有效载荷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆