Confirmed users
192
edits
Shawn huang (talk | contribs) (→Links) |
Shawn huang (talk | contribs) |
||
| Line 169: | Line 169: | ||
** It will be easier to debug A2DP/AVRCP profiles using snoop format log. | ** It will be easier to debug A2DP/AVRCP profiles using snoop format log. | ||
*** To enable it, please enter <b> adb shell hcidump -R -w/data/whatever.cfa </b>, this will dump log into /data/whatever.cfa | *** To enable it, please enter <b> adb shell hcidump -R -w/data/whatever.cfa </b>, this will dump log into /data/whatever.cfa | ||
* Logs for Firefox OS v1.4 | |||
<nowiki>In /system/etc/bluetooth/bt_stack.conf defined logging level and logger output.</nowiki><br> | |||
---- | |||
#Enable BtSnoop logging function | |||
#valid value : true, false | |||
BtSnoopLogOutput=true | |||
#BtSnoop log output file | |||
BtSnoopFileName=/sdcard/btsnoop_hci.log | |||
In /system/etc/bluetooth/bt_stack.conf defined <br> | |||
logging level, this effected what we saw in logcat <br> | |||
You can use Wireshark or frontline viewer to open it. | |||
---- | |||
** Log level | |||
#Trace level configuration | |||
#BT_TRACE_LEVEL_NONE 0 ( No trace messages to be generated ) | |||
#BT_TRACE_LEVEL_ERROR 1 ( Error condition trace messages ) | |||
#BT_TRACE_LEVEL_WARNING 2 ( Warning condition trace messages ) | |||
#BT_TRACE_LEVEL_API 3 ( API traces ) | |||
#BT_TRACE_LEVEL_EVENT 4 ( Debug messages for events ) | |||
#BT_TRACE_LEVEL_DEBUG 5 ( Full debug messages ) | |||
TRC_HCI=2 | |||
TRC_L2CAP=2 | |||
TRC_RFCOMM=2 | |||
Grab offline tool from [https://github.com/eric30/bluedroid-log-tool] | |||
togglelog.sh: Enable/Disable bluedroid log | |||
openlog.sh: Download bluedroid log and use wireshark to check | |||
* To build b2g-desktop | * To build b2g-desktop | ||
**Steps | **Steps | ||