5

Is there a way to pair and connect programmatically to a remote device in Hands-Free-Profile (HFP) mode?

So far I am able to just connect to the remote device in the normal way through code. I require to connect to the remote device in the HFP profile mode.

Vickyexpert
  • 3,147
  • 5
  • 21
  • 34
SoulRayder
  • 5,072
  • 6
  • 47
  • 93
  • I am trying out the same thing and have some questions like is this method viable to receive call from other phone or do you get only notification? Also it would help me out a great deal if i could get some source code,thanks – rajithShetty Feb 25 '21 at 14:40

2 Answers2

0

I don't really understand what you are trying to do here. HFP is a profile, once you have a BT pairing and connection, you can then connect the HFP profile.

HFP itself is not used for pairning.

This is where HFP fits in to the whole of things (from official BT specification HFP_1.6)

enter image description here

There is more information on how to initiate the Service Level Connection in the official documentation Check page 19

Jon Carlstedt
  • 2,317
  • 5
  • 22
  • 27