EBOX-IMX8MM-Bluetooth A2DP
From ICOP tech wiki
Bluetooth A2DP function test
Initialized the Bluetooth module
# hciattach /dev/ttymxc0 bcm43xx 3000000 flow -t 30
Turn on the Bluetooth function controller
# bluetoothctl
Turn on the Bluetooth
[bluetooth]# power on
Check the status of the Bluetooth function.
[bluetooth]# show
To test the Bluetooth A2DP playback, the Pulseaudio control module has to be loaded. In order to simplify the operation, turn on another terminal (terminal2) and load the control module in it.
# pulseaudio -D
In the meantime, the Bluetoothctl will load more control modules. Scan the Bluetooth in terminal 1.
[bluetooth]# scan on
Stop scanning after you’ve seen your Bluetooth device.
[bluetooth]# scan off
Connect to the Bluetooth device (Ex: Bluetooth headphone or speaker)
[bluetooth]# connect BT-addr
Check the terminal to see whether it has supported A2DP or not after connected the Bluetooth device.
# pactl info
Start to play the music for testing.
# gat-launch-1.0 playbin uri=file:///path