Page 1 of 2

HFP example

Posted: Sun Feb 18, 2018 11:01 pm
by JLIspace
Hey,

I was just curious if there is any working Hands-Free-Profile (HFP) example which could be used with a2dp_sink or some similar programs? I really love the A2DP support combined with my cars radio system but the lack of phone support is pretty annoying.

If someone could help with with this issue I'd be really grateful :)

Regards

Re: HFP example

Posted: Thu Mar 08, 2018 6:35 pm
by mysterd
Hi

I am also very interested in getting information about HFP / HSP profiles for the ESP32.

I'd like to build a handsfree kit for my car, and the ESP32 seemed like a great solution.

Is there any plan to implement the corresponding bluetooth profiles ?

Thanks in advance for your help.

MysterD

Re: HFP example

Posted: Sun Jun 17, 2018 5:23 pm
by mysterd
Still nothing for HFP profile ?

Sorry for the bump...

Re: HFP example

Posted: Mon Jun 18, 2018 5:35 am
by JLIspace
mysterd wrote:Still nothing for HFP profile ?

Sorry for the bump...
For one second I thought it got added, thank for ruining my dreams :'D

Re: HFP example

Posted: Mon Jun 18, 2018 1:05 pm
by WiFive

Re: HFP example

Posted: Sat Feb 02, 2019 1:48 pm
by kongon
Hi,

Do you have hfp example for getting CallerID number or incoming call number.

Thanks.

Re: HFP example

Posted: Fri Nov 29, 2019 11:37 am
by Tnarain5
You can get the phone Number by callback function provided in HFP API
use in A2DP example.

Code: Select all

void bt_app_hf_event(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_t *param)
{
	switch (event) {
	 case ESP_HF_CLIENT_CIND_SIGNAL_STRENGTH_EVT: 
		ESP_LOGI(BT_AV_TAG,"HPF event ESP_HF_CLIENT_CIND_SIGNAL_STRENGTH_EVT : %d", param->signal_strength.value); 
		break; 
	 case ESP_HF_CLIENT_CLIP_EVT:                          /*!< Calling Line Identification notification */
		ESP_LOGI(BT_AV_TAG,"HPF event ESP_HF_CLIENT_CLIP_EVT : %s", param->clip.number); //Caller number
	}
}		
Register callback in main.c

Code: Select all

esp_hf_client_init();
esp_hf_client_register_callback(bt_app_hf_event);

Re: HFP example

Posted: Sun Jan 24, 2021 12:08 pm
by Carsten
Did someone got this working?

I already implemented A2DP and AVRC in my car radio with an ESP32. Now i want to expand it to support calls.
Would i need HFP Client or only HFP AG? How about the audio transmission? I already have the connection Phone->ESP through A2DP would this disturb in anyway and would i need a separated mono audio connection for the call?

Re: HFP example

Posted: Sun Jan 24, 2021 9:07 pm
by JLIspace
Hey!

I've also been using the AD2P+AVRCP profiles in my car for a few years now. It still works great until this day.

I haven't touched it at all so I unfortunately haven't continued trying to get the HFP profile to work.

As far as I'm concerned HFP won't work with the AD2P stereo channels as the bluetooth bandwidth is not sufficient. It's using two mono channels instead.

Maybe I'll try getting it to work at some point. I'd really love to also have a bluetooth mic for calling. :D

Please let me know if there's any news on that topic..

cheers!

Re: HFP example

Posted: Tue Jan 26, 2021 1:38 pm
by Carsten
Well, beside the ESP in my car i still have two on my desk. So probably i'll try to continue working on this. Gonna let you know once i got it working ;)