espressif / esp-adf

Espressif Audio Development Framework
Other
1.53k stars 672 forks source link

Bluetooth Intercom Between Two ESP32 LyraT Kit (AUD-3850) #832

Open shridattdudhat opened 2 years ago

shridattdudhat commented 2 years ago

Hello, We want to try Bluetooth Intercom between Two ESP32 Audio Kits. Has anybody tried the solution ?

Please guide us how we can achieve the Intercom between two ESP32 boards?

shridattdudhat commented 2 years ago

Any updates for this issue ?

HengYongChao commented 2 years ago

Hi @shridattdudhat

pipeline_hfp_stream is what you need.

Also hfp_ag, hfp_hf examples in esp-idf repo, https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/bluedroid/classic_bt

shridattdudhat commented 2 years ago

Hi @HengYongChao

Thank you for the suggestion.

We tried hfp_ag and hfp_hf but that example does not have audio codec code.

Can you guide us how we can use hfp_ag and hfp_hf for Bluetooth Intercom functionality?

HengYongChao commented 2 years ago

Hi @shridattdudhat

Please refer to this routine, pipeline_hfp_stream.

shridattdudhat commented 2 years ago

Hi @HengYongChao We used hfp_ag and hfp_hf example code, we are able to connect two audio kit with each other but not able to transfer the audio between them. Is there any another example code or sample code which we can try out to achieve bluetooth intercom functionality ?

shridattdudhat commented 2 years ago

The Audio Connect is not working, I used hfp_ag and hfp_hf example code.

I (10453) BT_HF: ESP_BT_GAP_MODE_CHG_EVT mode:2
connect audio
I (49523) BT_HF: APP HFP event: AUDIO_STATE_EVT
E (49533) BT_BTM: btm_sco_connected, handle 81
I (49533) BT_HF: --audio state connecting
E (49533) BT_BTM: btm_sco_connected, handle 81
hfp_hf> I (49543) BT_HF: APP HFP event: AUDIO_STATE_EVT
I (49553) BT_HF: --audio state disconnected
shridattdudhat commented 1 year ago

@HengYongChao Any Sample code for this Bluetooth intercom ??