Prerequisites
Before you begin, set up your device and configure the DUT for HFP audio gateway functions.Connect a remote device
To connect a remote device, run the following command from thebluetoothctl menu:
<bt_address> is the Bluetooth address of the remote device.
Example
To connect to a paired remote device with <bt_address> 20:19:D8:36:90:40, run the following command:
Verify audio gateway functionality
To verify the audio gateway functionality, do the following:The pactl tool isn’t available by default. Enable and build the tool on your device.
-
List all cards, verify the available profiles of the BlueZ card, and find its active profile by running the following command:
Sample output
-
If the active profile is
a2dp-sink(Active Profile: a2dp-sink), switch the active profile toheadset-head-unitby running the following command:This setting ensures that the audio is streamed over SCO when multiple profiles are connected. -
Verify that the active profile of the BlueZ card is set to
headset-head-unitby running the following command:Sample output -
Create a dummy SCO as follows:
a. Run SSH.
b. Play a WAV file by running the following command:
Example To play the
AG_playback.wavfile, run the following command:Sample output -
Receive microphone data from the remote device by running the following command:
Parameters
To identify the device name from a list of sources, run the following command in SSH:Sample output
- Play the recorded microphone data and verify if the audio is clear.
Disconnect a remote device
To disconnect a remote device, run the following command from thebluetoothctl menu:
<bt_address> is the Bluetooth address of the remote device.
Example
To disconnect a paired remote device with <bt_address> 20:19:D8:36:90:40, run the following command:

