Bluetooth HFP-AG: ESP32 IDF Example Template Bug: Noise or No Connection
Posted: Wed Apr 01, 2020 10:35 am
using the Original Espressif HFP-AG example does not work properly
-> "Noise" in Speaker or "no Connection"
STEPS:
Creating a new / Espressif-IDF-Project / from template
Selecting "bluetooth/bluedroid/classic_bt/hfp_ag"
Keep the original "sdkconfig" unchanged
Compile, download - OK
Got the expected "HFP AG Command-Page" in the Terminal
When entering
hf con;
I got the Error:
W (13900) BT_APPL: AG found collision (ACL) ...
W (39150) BT_RFCOMM: rfc_find_lcid_mcb LCID reused LCID:0x43 current:0x0
W (39150) BT_RFCOMM: RFCOMM_DisconnectInd LCID:0x43
W (39150) BT_L2CAP: L2CAP - rcvd conn req for unknown PSM: 25
W (39570) BT_RFCOMM: rfc_find_lcid_mcb LCID reused LCID:0x45 current:0x0
W (39580) BT_RFCOMM: RFCOMM_DisconnectInd LCID:0x45
Effects:
I can only establish a connection with one BT-Device, the same one I sucessfully used in former A2DP Test-on this ESP32-Modul.
But there is no Audio-Channel with only Noise -
Next step: sdkconfig: I switched to SCO to HCI at 2 places,
but bt_app_hf_outgoing_cb in bt-app-hf.c seems to remain without invocation.
(fix: I fill the whole Buffer with sinus-data)
Trying to connect any other of my BT-HFP-Devices completly fails.
Question:
Any Ideas, where to search? Configuration? Clear any old BT-ConnectionList?
-> "Noise" in Speaker or "no Connection"
STEPS:
Creating a new / Espressif-IDF-Project / from template
Selecting "bluetooth/bluedroid/classic_bt/hfp_ag"
Keep the original "sdkconfig" unchanged
Compile, download - OK
Got the expected "HFP AG Command-Page" in the Terminal
When entering
hf con;
I got the Error:
W (13900) BT_APPL: AG found collision (ACL) ...
W (39150) BT_RFCOMM: rfc_find_lcid_mcb LCID reused LCID:0x43 current:0x0
W (39150) BT_RFCOMM: RFCOMM_DisconnectInd LCID:0x43
W (39150) BT_L2CAP: L2CAP - rcvd conn req for unknown PSM: 25
W (39570) BT_RFCOMM: rfc_find_lcid_mcb LCID reused LCID:0x45 current:0x0
W (39580) BT_RFCOMM: RFCOMM_DisconnectInd LCID:0x45
Effects:
I can only establish a connection with one BT-Device, the same one I sucessfully used in former A2DP Test-on this ESP32-Modul.
But there is no Audio-Channel with only Noise -
Next step: sdkconfig: I switched to SCO to HCI at 2 places,
but bt_app_hf_outgoing_cb in bt-app-hf.c seems to remain without invocation.
(fix: I fill the whole Buffer with sinus-data)
Trying to connect any other of my BT-HFP-Devices completly fails.
Question:
Any Ideas, where to search? Configuration? Clear any old BT-ConnectionList?