HFP_HF_DEMO

6 views
Skip to first unread message

Sam Anderson

unread,
May 26, 2026, 3:12:43 AM (7 days ago) May 26
to btstack-dev
Hi,

I am trying to get my esp32 up to run the HFP_HF_DEMO example. I want to establish a voice channel and play the sine wave with the default settings of this example. 

I am able to get the microcontroller to connect to my iphone no problem, and I am able to do actions, eg: 'f' for pickup call and it seems to negotiate codec as well.

AG Indicator Status  | INDEX 5: status 0x01, 'signal'
[00:03:28.056] CMD => 35 0C 05 01 81 00 01 00
[00:03:33.976] LOG -- hfp_hf_demo.c.197: USER:'b'
Establish Audio connection to device with Bluetooth address 04:2E:C1:67:98:6D...
ENTERED HFP_HF.c ESTABLISH
[00:03:33.986] LOG -- hfp.c.283: HFP_TX AT+BCC
[00:03:33.986] ACL => 81 00 10 00 0C 00 08 2B 09 EF 0E 00 41 54 2B 42 43 43 0D 40
After Establish HFP+HF.c Subroutine
[00:03:34.006] EVT <= 13 05 01 81 00 01 00
[00:03:34.006] ACL <= 81 20 0E 00 0A 00 42 00 0B EF 0D 0D 0A 4F 4B 0D 0A 9A
[00:03:34.006] LOG -- hfp.c.2515: HFP_HF_RX: '\r\nOK\r\n'
[00:03:34.016] LOG -- hfp.c.1422: command string 'OK', handsfree 1 -> cmd id 3
[00:03:34.016] CMD => 35 0C 05 01 81 00 01 00
#FEAT# ATTE2 status:0

The iphone doesn't seem to want to open the voice channel and allow the esp32 to be a microphone. I have been trialing this code in a phone call with another phone and made sure the esp32 is selected.

Any suggestions on how to get the iphone to agree?
-Sam 

Matthias Ringwald

unread,
May 26, 2026, 3:22:28 AM (7 days ago) May 26
to btsta...@googlegroups.com
Hi Sam

The snippet below looks good but it doesn't contain the complete audio setup. In general, only the phone can initiate the audio setup.
However, you get the message "#FEAT# ATTE2 status: 0" appears.
BTstack does not emit such a message, so it might be an error message from the ESP32 Bluetooth Controller.

Please capture a complete packet log from boot, use tool/create_packet_log.py to convert it to .pklg that can be inspected with Wireshark, zip both files and post them here for a quick check.

Best regards,
Matthias
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/btstack-dev/0fcd98c2-d4d4-4364-836e-bc2ce944ec0cn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages