The following workflow shows how to get started with verifying the Bluetooth functionality using a sample application.

- Set up your infrastructure as described in the Build Qualcomm Linux using Yocto.
- Set up the device and run the sample application of a profile.
- Verify the functionality of a Bluetooth profile.
- If any issues occur, log and debug them as described in Debug Bluetooth issues.
Set the Bluetooth MAC address
By default, the factory sets the Bluetooth MAC address in the one-time programmable memory. If you want to set the Bluetooth MAC address manually, complete the following procedure.A manually set Bluetooth MAC address doesn’t persist across device reboots.
- Enable SSH to access your host device. For instructions, see Sign in using SSH.
- Switch off Bluetooth on the device.
-
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:
-
Open the Bluetooth management tool and set the Bluetooth address by running the following command:
For example, to set the Bluetooth address of the device as
22:22:9B:2C:79:1E, run the following command:Sample output
Source code location
The following table lists the source code location of Bluetooth components such as the stack, sample test applications, and drivers.| Component | Source code location |
|---|---|
| bluetoothctl | https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/tools |
| obexctl | https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/tools |
| ofono | https://git.kernel.org/pub/scm/network/ofono/ofono.git |
| BlueZ stack |
|
| Bluetooth driver | You can download the Bluetooth driver from the following locations:
|
Next steps
- To set up the device and verify GAP functions, see Verify GAP functions.
- To set up the device and verify GATT functions, see Verify GATT functions.
- To set up the device and verify HOGP functions, see Verify HOGP functions.
- To set up the device and verify A2DP functions, see Verify A2DP functions.
- To set up the device and verify HFP functions, see Verify HFP functions.
- To set up the device and verify OPP functions, see Verify OPP functions.
- To set up the device and verify FTP functions, see Verify FTP functions.
- To set up the device and verify PBAP functions, see Verify PBAP functions.
- To set up the device and verify MAP functions, see Verify MAP functions.

