-
Notifications
You must be signed in to change notification settings - Fork 846
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a README for bluetooth debugging
Fixes #426
- Loading branch information
1 parent
eca13ac
commit 20a321b
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Pico W Bluetooth Examples | ||
|
||
The source for most of the Bluetooth examples is stored in pico-sdk/lib/btstack/example. | ||
There's a standalone example in `pico-examples/pico_w/bt/standalone`. | ||
|
||
## Debugging | ||
|
||
To debug bluetooth issues you can enable btstack debug output which also enables packet logging. | ||
Define `WANT_HCI_DUMP=1` in your CMakeLists.txt file. Uncomment this line to enable debug in the btstack examples. | ||
|
||
target_compile_definitions(picow_bt_example_common INTERFACE | ||
#WANT_HCI_DUMP=1 # This enables btstack debug | ||
) | ||
|
||
## Packet logging | ||
|
||
To view packet logs, save the output from the debug port (e.g. the uart) to a file and run `pico-sdk/btstack/tools/create_packet_log.py <filename>`. | ||
This will generate a file with the same name except for a `pklg` extension. This can be opened in the Wireshark application to analyze communications activity. |