Merge branch 'feat/support_bt_hci_debug_tool' into 'master'

feat(bt): Add support for converting BT HCI logs to btsnoop format

Closes BLERP-1261

See merge request espressif/esp-idf!35048
This commit is contained in:
Zhang Hai Peng
2024-11-21 19:45:13 +08:00
4 changed files with 270 additions and 0 deletions
@@ -516,4 +516,23 @@ void app_main(void)
ESP_LOGE(GATTC_TAG, "set local MTU failed, error code = %x", local_mtu_ret);
}
/*
* This code is intended for debugging and prints all HCI data.
* To enable it, turn on the "BT_HCI_LOG_DEBUG_EN" configuration option.
* The output HCI data can be parsed using the script:
* esp-idf/tools/bt/bt_hci_to_btsnoop.py.
* For detailed instructions, refer to esp-idf/tools/bt/README.md.
*/
/*
while (1) {
extern void bt_hci_log_hci_data_show(void);
extern void bt_hci_log_hci_adv_show(void);
bt_hci_log_hci_data_show();
bt_hci_log_hci_adv_show();
vTaskDelay(1000 / portNUM_PROCESSORS);
}
*/
}