我启用了开发人员选项和 bt snoop hci log 来尝试解决我的应用程序和蓝牙 SPP 设备之间的连接随机断开的原因。我把错误报告通过电子邮件发送给自己,然后使用 Wireshark 打开 btsnoop_hci.log 文件。
我正在尝试查找可能在 logcat 中看到的相同事件日志,例如:W/bt_btm: btm_sec_disconnected
但相反,我在下面有看起来像原始数据包的东西。我究竟做错了什么?谢谢你。
最佳答案
The files of interest are btsnoop_hci.log and all files with the extension .cfa
These are binary files, which can be opened with Wireshark.
https://support.honeywellaidc.com/s/article/How-to-capture-Bluetooth-traffic-from-and-to-an-Android-Device
关于android - 如何使用 btsnoop_hci.log 查看 Android 蓝牙日志?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59980925/