Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent Microphone over Bluetooth HFP (AUD-1198) #309

Closed
miakizz opened this issue Jan 5, 2020 · 4 comments
Closed

Silent Microphone over Bluetooth HFP (AUD-1198) #309

miakizz opened this issue Jan 5, 2020 · 4 comments

Comments

@miakizz
Copy link

miakizz commented Jan 5, 2020

Hi!
I'm currently trying to use the HFP example code here: https://github.com/espressif/esp-adf/tree/master/examples/get-started/pipeline_a2dp_sink_and_hfp. The module can sink A2DP and HFP audio and play it, but when a call is active the microphone is completely silent. This message is also constantly printing in the console whenever HFP is active:

W (1279166) BT_BTM: SCO xmit Q overflow, pkt dropped
W (1279166) BT_BTM: stat 10
W (1279186) BT_BTM: SCO xmit Q overflow, pkt dropped
W (1279186) BT_BTM: stat 10
W (1279206) BT_BTM: SCO xmit Q overflow, pkt dropped
W (1279206) BT_BTM: stat 10

A similar issue was encountered here: espressif/esp-idf#3550, however increasing BTM_SCO_DATA_SIZE_MAX just increases the time between the messages, suggesting that no data is being sent and the queue is filling up regardless of the size. The message is from this file: https://github.com/espressif/esp-idf/blob/9dbb7526c5d140b22529a1cfb0b4b46a0ab288aa/components/bt/host/bluedroid/stack/btm/btm_sco.c#L447 and increasing BTM_SCO_XMIT_QUEUE_THRS also doesn't fix the issue. I'm using the ESP32-LyraT-Mini_V1.2 and the latest ADF version.

Thanks!

@github-actions github-actions bot changed the title Silent Microphone over Bluetooth HFP Silent Microphone over Bluetooth HFP (AUD-1198) Jan 5, 2020
@esp-xiaodong
Copy link
Contributor

@nkizz
Please use this file for mini board, and test again.

a2dp_sink_and_hfp_example.txt

@miakizz
Copy link
Author

miakizz commented Jan 7, 2020

The new code worked! I had to comment out periph_bt_play(bt_periph); since that function wasn't defined, but one I did that, the mic worked perfectly. The message about the queue overflow still prints to the console every 20 ms, so I commented out that print statement because it was causing the audio to cut out.

@rahna803
Copy link

Hello,

I am facing the same problem but for LyraT 4.3 board. Is it possible to a working code?

@pooyasa
Copy link

pooyasa commented Jun 2, 2021

Hello,

I am facing the same problem but for LyraT 4.3 board. Is it possible to a working code?

I fixed it by enabling the on board SPI RAM from Component Config > ESP32-specific > Support for external, SPI-Connected ram.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants