调试蓝牙问题

蓝牙抓log方式:

修改system/bt/conf/bt_stack.conf文件,将TRC_xxx 的值都改为6,编译系统,请确保文件编译进去了。

//Logcat log 
(1)"logcat -v threadtime"(open all the BlueDroid log; use logcat -v to add timestamp) 
Change "TRC_xxx" to 6 in "/etc/bluetooth/bt_stack.conf". 

//BTsnoop log 
Please refer below steps to enable the log, after issue reproduce, upload file /mnt/sdcard/btsnoop_hci.log(/data/misc/bluetooth/logs/btsnoop_hci.log or ***.cfa file) 
Setting->Developer Options(If not this item, please Click "About phone"->Click "Version" several times)->Click "Enable Bluetooth HCIsnoop log" 
Please DO NOT close BT BEFORE you get the logs!!! 

 

生成的log解析,请参考如下博客:

https://www.jianshu.com/p/05cf5a8e8453

Frontline Protocol Analysis System下载地址,工具主界面:

主界面展示

 

注意抓取log的时间要同步,在设置中把时间同步的选项关闭,修改系统时间的也还原掉吧。

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值