Bluetooth lowenergy btsnooz错误bugreport.txt到btsnoop.log
我正在调试一个蓝牙低能设备。因此,我在智能手机的开发者设置中激活了“蓝牙HCI窥探日志” 该设备是华为mate 10 lite,不会创建日志文件。这就是为什么我必须下载带有错误报告的日志 ---开始:BTSNOOP_日志_摘要(262100字节)--- ---结束:BTSNOOP_日志_摘要--- 要从bugreport获取日志,我必须运行btsnooz.py,但是btsnooz中有一个错误Bluetooth lowenergy btsnooz错误bugreport.txt到btsnoop.log,bluetooth-lowenergy,android-bluetooth,hci,Bluetooth Lowenergy,Android Bluetooth,Hci,我正在调试一个蓝牙低能设备。因此,我在智能手机的开发者设置中激活了“蓝牙HCI窥探日志” 该设备是华为mate 10 lite,不会创建日志文件。这就是为什么我必须下载带有错误报告的日志 ---开始:BTSNOOP_日志_摘要(262100字节)--- ---结束:BTSNOOP_日志_摘要--- 要从bugreport获取日志,我必须运行btsnooz.py,但是btsnooz中有一个错误 def type_to_hci(type): """ Return
def type_to_hci(type):
"""
Returns the HCI type of a packet given its btsnooz type.
"""
if type == TYPE_OUT_CMD:
return '\x01'
if type == TYPE_IN_ACL or type == TYPE_OUT_ACL:
return '\x02'
if type == TYPE_IN_SCO or type == TYPE_OUT_SCO:
return '\x03'
if type == TYPE_IN_EVT:
return '\x04'
这会导致日志文件损坏/损坏:
(btsnoop:文件包含167772160字节的数据包,大于最大值
262144)
将默认返回值添加到类型\u到\u hci没有帮助,有人知道如何解决这个问题吗