imx8: How to bring up HFP(Hands free profile) bluetooth im imx8mq evk android12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8: How to bring up HFP(Hands free profile) bluetooth im imx8mq evk android12

3,867 Views
vsuneja63
Contributor III

Hi,

Thanks!

I could bring up android 12 on imx8mq evk. I am trying to bring up bluetooth "Hands free profile" on android 12. Can you please help me with the steps to enable HFP on android? Is there any prebuild android app as well which can be used to test this feature?

Looking forward for your response asap.

Regards,

Vipul Kumar

Labels (1)
0 Kudos
Reply
3 Replies

3,235 Views
surya45
Contributor II

Hello @Sanket_Parekh ,

I too work on IMX8MP on Phytec's Pollux Board,

I am able to successfully bring up Bluetooth on Android 11, the problem i have is i don't have any GSM or sim related module attached to my board. so Hands Free Profile is not working. is there any way that i can add a piece of code to add some dummy in source code and make the HFP work?

when my phone is connected to the board in audio sink mode, once i get a call on my phone it is getting disconnected from board.

 from the logs captured i see these errors,

08-30 09:37:45.537 365 428 E audio_hw_primary: cannot open pcm_sco_rx: cannot open device '/dev/snd/pcmC4294967295D0c': No such file or directory
08-30 09:37:45.537 365 428 I audio_h[ 190.397052] rtk_btusb: btchr_close: BT usb char device is closing
w_primary: sco_task_create, ret -[ 190.397258] binder: 543:653 transaction failed 29189/-22, size 116-0 line 3125

 

and also i have seen telephony related error

08-30 09:37:37.326 687 893 D BluetoothAdapter: 211325372: getState(). Returning ON
08-30 09:37:37.326 543 779 I Telecom : PhoneAccountRegistrar: Phone account ComponentInfo{com.android.bluetooth/com.android.bluetooth.hfpclient.connserv.HfpClientConnectionService}, ***, UserHandle{0
08-30 09:37:37.326 543 779 W Telecom : PhoneAccountRegistrar: Could not find account to enable: ComponentInfo{com.android.bluetooth/com.android.bluetooth.hfpclient.connserv.HfpClientConnectionServic0
08-30 09:37:37.329 543 2114 W Telecom : PhoneAccountRegistrar: Trying to set nonexistent default outgoing ComponentInfo{com.android.bluetooth/com.android.bluetooth.hfpclient.connserv.HfpClientConnect4
08-30 09:37:37.330 2043 2043 D BluetoothHeadsetClient: getCurrentCalls()
08-30 09:37:37.330 2043 2043 D BluetoothAdapter: 71639300: getState(). Returning ON
08-30 09:37:37.330 845 845 D AdaptiveHomepageIcon: Setting background color -3411720
08-30 09:37:37.330 845 845 D BluetoothHeadsetClient: getConnectionState(D0:28:BA:26:5C:CC)
08-30 09:37:37.330 845 845 D BluetoothAdapter: 101494684: getState(). Returning ON

 

attached complete log

 

IMX8MPLUS   #BLUETOOTH

0 Kudos
Reply

3,844 Views
vsuneja63
Contributor III

Hi,

Thanks!

Any input on this problem statement?

0 Kudos
Reply

3,831 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @vsuneja63 ,

I hope you are doing well.

A Bluetooth profile is a wireless interface specification for Bluetooth-based communication between devices, such as the Hands-Free profile.

->Please check with the below-given steps:

  • Go to the Settings on GUI.
  • Please tap on "Connected devices."
  • Please tap on "Bluetooth."
  • Please tap on the gear icon next to the Bluetooth device you want to use with HFP.
  • Please turn on the "Hands-free" toggle.

Is there any prebuild android app as well which can be used to test this feature?
->There is no prebuild app, but one can test it by making a phone call using the Bluetooth device. If the device supports HFP, the call audio should be routed through the device instead of the phone's speaker.

Thanks & Regards,
Sanket Parekh

0 Kudos
Reply