pschatzmann / arduino-audio-tools

Arduino Audio Tools (a powerful Audio library not only for Arduino)
GNU General Public License v3.0
1.43k stars 222 forks source link

Streams-generator-a2dp example won't connect to bluetooth headphones #395

Closed Sparky54 closed 1 year ago

Sparky54 commented 1 year ago

I am using a MakePython ESP32 from Makerfabs. I am trying to use the Streams-generator-a2dp example to connect with my AirPods and they seem like they are being recognized by the board, but don't connect. Help and ways to troubleshoot would be very much appreciated, thanks.

Log:

16:38:05.246 -> [860379][I][BluetoothA2DPSource.cpp:474] bt_app_gap_callback(): [BT_AV] Discovery started. 16:38:05.996 -> [861071][D][BluetoothA2DPSource.cpp:250] bt_app_work_dispatch(): [BT_API] bt_app_work_dispatch event 0xff00, param len 0 16:38:05.996 -> [861072][D][BluetoothA2DPSource.cpp:301] bt_app_task_handler(): [BT_API] bt_app_task_handler, sig 0x1, 0xff00 16:38:05.996 -> [861080][I][BluetoothA2DPSource.cpp:628] bt_app_av_sm_hdlr(): [BT_AV] bt_app_av_sm_hdlr state 1, evt 0xff00 16:38:05.996 -> [861090][D][BluetoothA2DPSource.cpp:596] process_user_state_callbacks(): [BT_AV] process_user_state_callbacks 16:38:09.125 -> [864203][D][BluetoothA2DPSource.cpp:455] bt_app_gap_callback(): [BT_AV] bt_app_gap_callback evt 0 16:38:09.125 -> [864204][I][BluetoothA2DPSource.cpp:385] filter_inquiry_scan_result(): [BT_AV] Scanned device: a4:c6:f0:e2:b2:60 16:38:09.125 -> [864211][I][BluetoothA2DPSource.cpp:391] filter_inquiry_scan_result(): [BT_AV] --Class of Device: 0x240418 16:38:09.125 -> [864220][I][BluetoothA2DPSource.cpp:395] filter_inquiry_scan_result(): [BT_AV] --RSSI: -28 16:38:09.125 -> [864228][I][BluetoothA2DPSource.cpp:411] filter_inquiry_scan_result(): [BT_AV] --Compatiblity: Compatible 16:38:09.125 -> [864237][I][BluetoothA2DPSource.cpp:413] filter_inquiry_scan_result(): [BT_AV] --Name: Brayden’s AirPods Pro 16:38:09.125 -> [864247][I][BluetoothA2DPSource.cpp:419] filter_inquiry_scan_result(): [BT_AV] --Checking match: Brayden's AirPods Pro 16:38:09.125 -> [864258][I][BluetoothA2DPSource.cpp:437] filter_inquiry_scan_result(): [BT_AV] --Result: Target device not found 16:38:09.685 -> [864794][D][BluetoothA2DPSource.cpp:455] bt_app_gap_callback(): [BT_AV] bt_app_gap_callback evt 0

(This happens countless times but to no avail)

Sparky54 commented 1 year ago

UPDATE:

I realized I was using the previous update rathar than the latest. I updated and the headphones now connect, however no audio is coming through.

Sparky54 commented 1 year ago

After more fiddling, the example is now working.