bt-avdtp-tool sends AVDTP commands to a peer that is connected using the fuchsia.bluetooth.avdtp.test.PeerManager protocol.
The primary use of this tool is to provide user prompted commands to a Fuchsia device under test for passing PTS certification tests.
Include the A2DP profile and tool in your build. For example, if using fx set, add:
--with //src/connectivity/bluetooth/profiles/bt-a2dp --with //src/connectivity/bluetooth/tools/bt-avdtp-tool
Look at the bt-a2dp README for any additional dependencies that may be needed.
$ bt-cli and make sure the controller is discoverable using discoverable.$ bt-avdtp-tool.bt-cli tool.help in the CLI.help _CommandName_ in the CLI.initiator_delay to 0.This tool is not meant to be used in a production environment; it is sending out-of-band AVDTP commands to the A2DP component. This can cause A2DP to get into a bad or irrecoverable state. It is recommended to restart your device regularly to avoid errors.