BT Music Sink Example
Source code path: example/bt/music_sink
Supported Platforms
eh-lb52x
eh-lb56x
eh-lb58x
sf32lb52-lcd series
sf32lb56-lcd series
sf32lb58-lcd series
Overview
This example demonstrates playing music and acquiring cover art picture from source devices on the local device after connecting to mobile phones and other A2DP Source devices via Bluetooth.
Example Usage
The example enables Bluetooth Inquiry scan and page scan on startup, allowing A2DP source devices like mobile phones to discover this device and initiate connections. After connection, mobile phone music can be played.Try to get the cover when you switch songs.( Only Iphone phones after Iphone 7 and some Android phones support the function change. For the support of Android phones, please refer to https://guide.hiby.com/docs/question/bt_reciver/bt_cover_support). if the file system is used, a cover.JPEG file will be generated locally to store the cover map. The default Bluetooth name of this device is sifli_avrcp_cover_art.
Hardware Requirements
Before running this example, you need to prepare:
One development board supported by this example (Supported Platforms).
Speakers.
Compilation and Flashing
Switch to the example project directory and run the scons command to compile:
> scons --board=eh-lb525 -j32
Switch to the example project/build_xx directory and run uart_download.bat, select the port as prompted to download:
$ ./uart_download.bat
Uart Download
please input the serial port num:5
For detailed compilation and download steps, please refer to the relevant introduction in Quick Start.
Expected Results
After the example starts: A2DP source devices like mobile phones can connect to this device and play music.
Exception Diagnosis
Reference Documentation
Update History
Version |
Date |
Release Notes |
|---|---|---|
0.0.1 |
01/2025 |
Initial version |