i.MX7 BlueZ A2DP AVRCP

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX7 BlueZ A2DP AVRCP

1,010 Views
seana_h_hsieh
Contributor I

I want to make product to be a BT speaker , so build in pulseaudio and bluez5 , and reference https://community.nxp.com/docs/DOC-103385 .

Our product can connect to PC through BT now , but audio streaming can't work.

How can I enable bluez A2DP and AVRCP profiles ?

bluez version: 5.37

pulseaudio version: 8.0

Product BT info as below:

Controller AA:AA:AA:AA:AA:AA
Name: BlueZ 5.37
Alias: BlueZ 5.37
Class: 0x200000
Powered: yes
Discoverable: yes
Pairable: yes
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0525
Discovering: no

0 Kudos
2 Replies

322 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Sean

please try additional configurations provided in p.21 attached Release Notes

and sect.10 Connectivity attached Linux Guide.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

322 Views
seana_h_hsieh
Contributor I

I use sdptool tool to add services , but audio streaming still can't work.

My following commands as below:

hciattach /dev/ttymxc5 bcm43xx 3000000 flow -t 20
hciconfig hci0 up

/usr/libexec/bluetooth/bluetoothd --compat -d &
pulseaudio --system --realtime &

sdptool add a2snk
sdptool add a2src
sdptool add avrct
sdptool add avrtg
sdptool add hf
sdptool add hs

bluetoothctl
power on
agent on
discoverable on
pairable on

and then PC connect to our product

trust <PC bdaddr>

0 Kudos