Questions tagged [hfp]

HFP (Hands-Free Profile) is a bluetooth profiles that allows hands-free kits to communicate with mobile phones.

HFP (Hands-Free Profile) is a bluetooth profiles that allows hands-free kits to communicate with mobile phones.

60 questions
82
votes
1 answer

Bluetooth hands free client volume control

I have an android device acting as a hands free client device using hfp. Using the following code: I am able to receive a call and the speakers and mic are working as expected. My problem is that I can't seem to control the volume. I tried using…
Distwo
  • 11,569
  • 8
  • 42
  • 65
11
votes
1 answer

Bluetoothctl without any user interaction

Right now I can successfully pair and connect a phone to my machine without any user interaction in this way: $bluetoothctl #power on #discoverable on #pairable on #agent NoInputNoOutput #default-agent from my phone I search for the BT device and…
Mark
  • 4,338
  • 7
  • 58
  • 120
6
votes
1 answer

Bluetooth HFP support for Android App with SIP/VoIP

I am trying to add support for bluetooth devices like headsets/headphones/car stereo to my android app which allows user to make SIP/VoIP calls. I am trying to mostly address the requirements of Answering and Ending of calls using button on…
sole007
  • 716
  • 1
  • 10
  • 27
5
votes
1 answer

Forcing Android A2DP profile to work when we have an active (HFP) Bluetooth SCO connection

As we can connect two bluetooth device with different connection type Phone audio and music audio (i.e HFP profile and A2DP profile respectively). the both device connect simultaneously but HPF has a precedence over A2DP that means when I have an…
Avinash Joshi
  • 1,307
  • 8
  • 25
5
votes
1 answer

Difference between HFP 1.6 and HFP 1.5?

Can someone please help in getting the difference between HFP 1.6 and HFP 1.5 ? Any link or available document?
user2888161
  • 63
  • 1
  • 1
  • 4
5
votes
3 answers

Android communicating to HFP device via AT commands

im trying to control a bluetooth bracelet with vibration function via HFP (hands free profile) in Android. I've been able to connect to the bracelet and access the input- and outputstream. My goal is to simulate an incoming call so that the…
V1nc3nt
  • 369
  • 4
  • 11
5
votes
0 answers

Bluetooth : Send AT commends to Headset from Android device

I have established connection between Bluetooh HeadSet and Android phone through HFP profile. Now I want to send AT commands to HeadSet device. I have used following components while HFP connection. IBluetoothHeadset.aidl BroadcastReciever for ACL…
Tushar
  • 1,122
  • 1
  • 13
  • 28
4
votes
0 answers

Setting Android as bluetooth Headset

I am newbie to Bluetooth,I would be grateful if anyone can explain me whether my thinking and route is correct and how to proceed further. I am working on Android device(tablet) running on AM437x and supporting android kitkat(4.4). I want to…
ckadiyal
  • 41
  • 4
4
votes
2 answers

How can I detect whether an HFP or A2DP is connected in iOS?

I am working on a project which can play music via HFP device. But here's a problem that I want to detect whether an HFP or A2DP is connected when music is playing. Now I am using the AVFoundation framework to do this. Here's the code: -…
EricCheung
  • 41
  • 3
4
votes
1 answer

Connect to bluetooth device via Hands Free Profile programatically on Android

We have a Bluegiga Bluetooth module that is set up to work as hands free device. After initial pairing, I need my application to initiate connection to it via HFP programmatically. Can this be achieved in Android?
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
3
votes
1 answer

How to find Bluetooth Profile Versions for HFP, PBAP on iPhone/Android

I am generating report for my Automotive head unit with references to all the phone Bluetooth profiles like HFP 1.6 for iphone 5 Is there a way to find out what HFP version is supported in iPhone 7 and all other versions iphone and Android…
Rohith Gowda
  • 137
  • 2
  • 2
  • 12
3
votes
0 answers

What is the code flow for using AudioTrack to play audio on device after startBluetoothSco is called?

I am connecting a mobile device with Android OS 4.1 to a Bluetooth device (device class = 1792), using BluetoothSco to route audio (voice). I've setup a BluetoothSocket using createRfcommSocketToServiceRecord successfully. My settings: Using…
3
votes
1 answer

hfp client role implementation on kitkat

Requirement is to have hfp client role on android device. So we backported hfp client role implementation available in Lollopop version. Except for the audio changes everything went smooth. Now I am facing a problem where I am not able to…
indra
  • 99
  • 1
  • 6
2
votes
1 answer

How to use bluetooth HFP profile in android programmatically?

Here I am trying to connect two android devices using Bluetooth classic and transfer calls through HFP profile. If Device A has an incoming call, I need to notify Device B and accept/decline from the device B side and even need to talk from device B…
Dhina17
  • 123
  • 1
  • 8
2
votes
0 answers

Connect to Bluetooth HSP/HFP service from android

I'm trying to build an application which allows me to answer incoming phone calls from my PC, so far, i was able to advertise a service using Pybluez in Python. Now, How can i connect to that service from android?
Hossam
  • 21
  • 1
1
2 3 4