bt-snoop-cli uses the
fuchsia.bluetooth.snoop.Snoop capability to monitor packets sent to & received from the local controller.
bt-snoop-cli package in your build. For example, if using
fx set, add:
fuchsia.bluetooth.snoop.Snoop which is provided by the
bt-snoop component. Make sure it is also included in your build.
The tool can be started several ways:
fx shell bt-snoop-cli
From the sdk:
It is sometimes useful to view snoop logs in a structured protocol viewier like Wireshark. To forward snoop packets to Wireshark in real time, run:
fx shell bt-snoop-cli --format pcap | wireshark -k -i -