Skip to main content

Prerequisites

Before you begin, set up the device as described in Set up the device for Bluetooth GAP functions.

Enable Bluetooth

To enable Bluetooth on the device, run the following command:
Sample output

Run Bluetooth inquiry scan

To start an inquiry for nearby devices, run the following command:
Sample output

Stop Bluetooth inquiry scan

To stop an inquiry that’s in progress, run the following command:
Sample output

Pair with a remote Bluetooth device

Before you pair a remote device, run a Bluetooth inquiry scan to ensure that the remote device is available. To pair with a remote Bluetooth device, run the following command:
To accept the outgoing/incoming pairing, enter yes. To reject the outgoing/incoming pairing, enter no. Parameters <bt_address> is the Bluetooth address of the remote device. Example To pair with a remote device with <bt_address> F8:7D:76:9D:9B:6B, run the following command:
Sample output

Get the bonded/paired device list

To get a verified list of paired devices, run the following command:
Sample output

Unpair a device

To unpair a device, run the following command: Example To unpair a device with the address F8:7D:76:9D:9B:6B, run the following command:
Sample output

Enable device discovery

To enable discovery mode in the DUT, run the following command:
Sample output

Disable Bluetooth

To disable Bluetooth on the device, run the following command:
Sample output