Page 1 of 1

A2dp sink not working :(

Posted: Sun Jan 26, 2020 4:50 am
by mooalot
Im using the master branch for the a2dp sink example, but I cant get it to work.

I believe the hardware is setup correctly because I have used dac_output_voltage() function to output a sine wave. The sine wave outputs on my speaker just fine.

When I try to connect my phone, however, there is no audio output.

I think I followed this guide exactly https://github.com/espressif/esp-idf/tr ... /a2dp_sink

I changed the menuconfig to the internal 8 bit dac output and I made sure that bluetooth classic and a2dp were enabled.

The output is just silence, but the monitor shows that it is receiving the audio packets and AVRC controls as it should:

Code: Select all

I (57927) BT_AV: Audio packet count 400
I (58487) RCTG: Volume is set locally to: 19%
I (60257) BT_AV: Audio packet count 500

Help... :oops:

Re: A2dp sink not working :(

Posted: Tue Mar 31, 2020 3:29 pm
by dimfred
+1, same problem here.

Re: A2dp sink not working :(

Posted: Tue Mar 31, 2020 6:30 pm
by dimfred
Got it working by switching replacing:

Code: Select all

in i2s_config_t

communication_format=I2S_COMM_FORMAT_I2S_MSB
to
communication_format : I2S_COMM_FORMAT_PCM

my sound was terrible then, so I added https://github.com/espressif/esp-idf/issues/1614 what @macaba mentioned to improve the quality, it still sucks but better than nothing ^^

I am using v4.1 btw

For me this says that the a2dp_sink example is kinda buggy or I am doing something wrong, idk.

Hope this helps

Re: A2dp sink not working :(

Posted: Fri Apr 03, 2020 6:00 pm
by mooalot
Thanks! That helped a ton! Too bad its only an 8 bit dac