This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:configurations:bluetooth [2022/07/06 00:00] nick |
products:sbc:common:configurations:bluetooth [2026/02/02 22:31] (current) gray update by using AI |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| + | |||
| + | /* | ||
| + | ===== Introduction ===== | ||
| + | |||
| + | This document mainly introduces Bluetooth from two parts. The first one is about how to use Bluetooth under Ubuntu, and the second one is how to use Bluetooth under Android. | ||
| + | |||
| + | */ | ||
| + | |||
| + | ====== Linux ====== | ||
| + | |||
| + | Bluetooth configuration examples for Ubuntu Desktop and Server variants. | ||
| + | |||
| + | ===== Ubuntu Desktop ====== | ||
| + | |||
| + | Bluetooth settings are located in the system menu at the upper-right corner. Click the menu and select '' | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | Click '' | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | Select the device you want to pair with from the list. | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | ===== Ubuntu Server ====== | ||
| + | |||
| + | Bluetooth can be configured via command-line utilities. | ||
| + | |||
| + | Enable Bluetooth Service | ||
| + | |||
| + | Enable and start the Bluetooth service, then bring up the interface: | ||
| + | |||
| + | ===== Ubuntu Server ===== | ||
| + | |||
| + | Bluetooth configuration via console bluetooth utils. | ||
| + | |||
| + | * Enable Bluetooth: | ||
| + | |||
| + | ```shell | ||
| + | sudo rfkill unblock bluetooth | ||
| + | sudo hciconfig hci0 up | ||
| + | ``` | ||
| + | |||
| + | * Launch the Bluetooth control tool: | ||
| + | |||
| + | ```shell | ||
| + | $ sudo bluetoothctl | ||
| + | ``` | ||
| + | |||
| + | You will see a prompt similar to: | ||
| + | ```shell | ||
| + | [NEW] Controller 43: | ||
| + | Agent registered | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | |||
| + | Within '' | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | |||
| + | * Scan for Devices: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | Example output: | ||
| + | ```shell | ||
| + | Discovery started | ||
| + | [CHG] Controller 43: | ||
| + | [NEW] Device 46: | ||
| + | [NEW] Device 8C: | ||
| + | ``` | ||
| + | * List Discovered Devices | ||
| + | Show all discovered devices: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | |||
| + | Example output: | ||
| + | ```shell | ||
| + | Device 46: | ||
| + | Device 8C: | ||
| + | Device 9C: | ||
| + | ``` | ||
| + | |||
| + | * Pair and Connect | ||
| + | To pair and connect with a device, use its MAC address: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | Replace < | ||
| + | |||
| + | <WRAP info > | ||
| + | The '' | ||
| + | </ | ||
| + | |||
| + | * Exit | ||
| + | To exit '' | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | |||
| + | ====== Android | ||
| + | |||
| + | Please goto System Settings. | ||