a2dp_sink
Overview
Application demonstrating how to use the a2dp sink feature.
Prepare the Demo
Open example’s project and build it.
Connect a USB cable between the PC host and the OpenSDA USB port on the target board.
Provide 5V voltage for the target board.
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
Download the program to the target board.
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.