gpt4 book ai didi

linux - 使用 hcidump 获取 RSSI

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:10:56 25 4
gpt4 key购买 nike

为了读取原始 RSSI 值,我们使用一个名为 Hcidump 的实用程序来监控蓝牙 HCI 数据。使用 hcidump 命令,我们可以在收到查询响应消息时读取原始 RSSI 值。为了获取每个响应数据包的 RSSI 值,我们首先将查询模式设置为 Inquiry With RSSI。为了读取原始 RSSI 值,我们运行 hcidump 工具,然后使用适当的HCI功能启动周期查询。

我不知道如何使用 hcidump 只获取 RSSI 原始数据,或者如何开始定期查询。我看到了所有选项,但我做不到。

我让 hcidump --raw 获取原始数据,并尝试解析这些数据以获得 rssi,但我不知道 rssi 信息是十六进制。

这是我得到的

  04 2F FF 01 AC A2 65 92 88 EC 01 00 0C 02 5A 2D 1F D2 08 09 
4E 65 78 75 73 20 36 17 03 05 11 0A 11 0C 11 0E 11 12 11 15
11 16 11 1F 11 2F 11 00 12 32 11 01 05 01 07 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

现在我需要知道哪个是 RSSI 值。

最佳答案

您可以尝试使用 sudo hcidump [-a] 这将为您提供附近所有蓝牙设备的名称和 RSSI 值。您可以查看可以使用 hcidump here 做什么.

关于linux - 使用 hcidump 获取 RSSI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37073114/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com