HFP example

JLIspace
Posts: 4
Joined: Sun Feb 18, 2018 10:39 pm

HFP example

Postby JLIspace » Sun Feb 18, 2018 11:01 pm

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

mysterd
Posts: 2
Joined: Thu Mar 08, 2018 6:27 pm

Re: HFP example

Postby mysterd » Thu Mar 08, 2018 6:35 pm

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

mysterd
Posts: 2
Joined: Thu Mar 08, 2018 6:27 pm

Re: HFP example

Postby mysterd » Sun Jun 17, 2018 5:23 pm

Still nothing for HFP profile ?

Sorry for the bump...

JLIspace
Posts: 4
Joined: Sun Feb 18, 2018 10:39 pm

Re: HFP example

Postby JLIspace » Mon Jun 18, 2018 5:35 am

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: HFP example

Postby WiFive » Mon Jun 18, 2018 1:05 pm


kongon
Posts: 4
Joined: Mon Aug 13, 2018 8:55 pm

Re: HFP example

Postby kongon » Sat Feb 02, 2019 1:48 pm

Hi,

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

Thanks.

Tnarain5
Posts: 7
Joined: Fri Nov 29, 2019 11:22 am

Re: HFP example

Postby Tnarain5 » Fri Nov 29, 2019 11:37 am

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);

Carsten
Posts: 3
Joined: Sun Nov 22, 2020 11:56 am

Re: HFP example

Postby Carsten » Sun Jan 24, 2021 12:08 pm

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?

JLIspace
Posts: 4
Joined: Sun Feb 18, 2018 10:39 pm

Re: HFP example

Postby JLIspace » Sun Jan 24, 2021 9:07 pm

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!

Carsten
Posts: 3
Joined: Sun Nov 22, 2020 11:56 am

Re: HFP example

Postby Carsten » Tue Jan 26, 2021 1:38 pm

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 ;)

Who is online

Users browsing this forum: No registered users and 195 guests