a2dp_sink

Overview

Application demonstrating how to use the a2dp sink feature.

Prepare the Demo

  1. Open example’s project and build it.

  2. Connect a USB cable between the PC host and the OpenSDA USB port on the target board.

  3. Provide 5V voltage for the target board.

  4. Open a serial terminal on PC for OpenSDA serial device with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  5. Download the program to the target board.

  6. Either press the reset button on your board or launch the debugger in your IDE to begin running the example.

Running the demo

The log below shows the output of the example in the terminal window.

USB Host stack successfully initialized
Bluetooth initialized
BR/EDR set connectable and discoverable done

Procedures to run 1 Open Android phone, and connect the “a2dp sink” device in bluetooth setting window. 2 Play music in the phone 3 The music can be heared in the audio port of the board.

Supported Boards