爲了讀取原始RSSI值,我們使用了一個名爲Hcidump的實用程序來監視藍牙HCI數據。使用hcidump命令,我們可以在收到查詢響應消息時讀取原始RSSI值。爲了獲得每個響應數據包的RSSI值,我們首先將查詢模式設置爲使用RSSI查詢。爲了讀取原始RSSI值,我們運行hcidump工具,然後使用相應的HCI函數開始定期查詢。使用hcidump獲取RSSI
我不知道如何使用hcidump僅包含RSSI原始數據或者如何啓動定期查詢。我看到所有的觀點,但我無能爲力。
我讓hcidump --raw獲取原始數據,並試圖解析這個數據來獲取rssi,但我不知道這個是什麼hex是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值。