Difference between revisions of "EBOX-IMX8MM-Bluetooth A2DP"
From ICOP tech wiki
Eveshih0725 (talk | contribs) (Created page with "=Bluetooth A2DP function test= Initialized the Bluetooth module <pre># hciattach /dev/ttymxc0 bcm43xx 3000000 flow -t 30 </pre> Turn on the Bluetooth function controller <pre...") |
|||
Line 16: | Line 16: | ||
[bluetooth]# show | [bluetooth]# show | ||
</pre> | </pre> | ||
− | [[File: | + | [[File:Bluetooth A2DP function show.png|alt=|frameless|500x500px]] |
To test the Bluetooth A2DP playback, the Pulseaudio control module has to be loaded. | To test the Bluetooth A2DP playback, the Pulseaudio control module has to be loaded. |
Latest revision as of 11:30, 25 March 2021
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