Prerequisites
- Enable SSH to access your host device. For instructions, see Sign in using SSH.
- Place the DUT and the remote device in the Bluetooth vicinity.
Set up the device for HFP functions
-
Run the SSH in command prompt using the following command:
Example If the IP address of the device is
10.92.160.222, run the following command: -
Connect to the SSH by entering the following password:
- Configure the DUT for the HFP client or audio gateway functions, as required.
Configure the DUT for HFP client functions
After the initial device set up for HFP functions, do the following for an HFP client:-
Verify the status of ofono service by running the following command in SSH:
-
Download the Bluetooth configuration file
bluetooth.conffrom GitHub PipeWire page. -
Push the
bluetooth.conffile to the device at the/usr/share/wireplumber/wireplumber.conf.ddirectory. -
Open the
bluetooth.conffile in a text editor. -
Uncomment the
bluez5.hfphsp-backend = "native"property. Change its value from"native"to"ofono". The file must appear as follows: - Save the file.
-
Reload the daemon by running the following command:
-
Restart the WirePlumber service by running the following command:
After you reload the daemon and restart the WirePlumber service, the changes in the
bluetooth.confconfiguration file reflect in the system. PipeWire establishes a connection with ofono using DBUS. -
Run
bluetoothctlby running the following command in SSH: -
Verify if the UUID of the hands-free-client device appears in the list by running the following command from the
bluetoothctlmenu:
The hands-free audio gateway and headset UUIDs aren’t listed. Only the hands-free client UUID that’s configured from PipeWire appears in the list.
-
Open the
ofono/testmenu by running the following command in SSH:Build and install theofono-testspackage on your device for theofono/testapplication.
Configure the DUT for HFP audio gateway functions
After the initial device set up for HFP functions, do the following for an HFP audio gateway:-
Run
bluetoothctlby running the following command in SSH: -
Verify if the UUID of the hands-free audio gateway and the headset appear in the list by running the following command from the
bluetoothctlmenu:Sample output -
Enable Modified Sub Band Coding (mSBC) codec as the default codec for HFP audio gateway connection as follows:
a. Open the
bluetooth.conffile using a text editor on the device. b. Uncommentbluez5.enable-msbc = trueline in the bluetooth.conf file. c. Save thebluetooth.conffile. -
Reload the Bluetooth daemon by running the following command:
-
Restart the WirePlumber service by running the following command:
The changes in the
bluetooth.confconfiguration file are applied in the device.

