Skip to main content

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 the bluetoothctl menu:
Parameters <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:
Sample output

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.
  1. List all cards, verify the available profiles of the BlueZ card, and find its active profile by running the following command:
    Sample output
  2. If the active profile is a2dp-sink (Active Profile: a2dp-sink), switch the active profile to headset-head-unit by running the following command:
    This setting ensures that the audio is streamed over SCO when multiple profiles are connected.
  3. Verify that the active profile of the BlueZ card is set to headset-head-unit by running the following command:
    Sample output
  4. 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.wav file, run the following command:
    Sample output
  5. 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
Example To receive microphone data from a remote device for the example values listed in the table, run the following command:
Sample output
  1. 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 the bluetoothctl menu:
Parameters <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:
Sample output