Skip to main content
To perform A2DP source or sink functions, you must first complete the steps in the following procedure.

Prerequisites

Set up the device for A2DP functions

  1. Run the SSH in command prompt using the following command:
    Example If the IP address of the device is 10.92.160.222, run the following command:
  2. Connect to the SSH by entering the following password:
  3. Open the Bluetooth test application by running the following command:
    Sample output
  4. Go to the Transport submenu or Player submenu, as required.
    • To go to the Transport submenu, run the following command from bluetoothctl:
      Sample output
      To perform Transport submenu functions in the source, see Perform Bluetooth A2DP source functions. To perform Transport submenu functions in the sink, see Perform Bluetooth A2DP sink functions.
    • To go to the Player submenu, run the following command from bluetoothctl:
      Sample output
      To perform Player submenu functions in the sink, see Perform Bluetooth A2DP sink functions.

Next steps

Perform Bluetooth A2DP source functions

You can perform Bluetooth A2DP source functions using the bluetoothctl menu, menu transport submenu, and paplay commands. Bluetooth A2DP source functions include connecting or disconnecting to a remote device and listing available transport options. They allow you to retrieve information about codec capabilities, set the absolute volume, and play an audio file. You can also get a list of available sinks and play audio on a specific sink using the Bluetooth A2DP source functions.

Perform Bluetooth A2DP sink functions

You can perform Bluetooth A2DP sink functions using the bluetoothctl menu, menu transport submenu, and menu player submenu. Bluetooth A2DP sink functions include connecting or disconnecting to a remote device and listing available transport options for audio streams. They allow you to retrieve information about codec capabilities, set the absolute volume, and play an audio file. You can use playback controls to pause, stop, play the next or previous audio file, and fast-forward during playback.