Personal tools

EBOX-IMX8MM-Bluetooth A2DP

From ICOP tech wiki

Revision as of 11:30, 25 March 2021 by Joec (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Check the terminal to see whether it has supported A2DP or not after connected the Bluetooth device.png

Start to play the music for testing.

# gat-launch-1.0 playbin uri=file:///path 

Start to play the music for testing.png