This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
products:sbc:common:configurations:bluetooth [2022/07/06 00:00] nick created |
products:sbc:common:configurations:bluetooth [2023/03/06 23:01] (current) hyphop |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Bluetooth ====== | ====== Bluetooth ====== | ||
| + | |||
| + | /* | ||
| + | ===== 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 configure examples for Ubuntu Desktop and Server variants | ||
| + | ===== Ubuntu Desktop ===== | ||
| + | |||
| + | Bluetooth settings are in the upper-right corner, click it and select '' | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | Click '' | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | Select the device that you want to pair with. | ||
| + | |||
| + | {{/ | ||
| + | |||
| + | ===== Ubuntu Server ===== | ||
| + | |||
| + | Bluetooth configuration via console bluetooth utils. | ||
| + | |||
| + | Enable Bluetooth: | ||
| + | |||
| + | ```shell | ||
| + | sudo rfkill unblock bluetooth | ||
| + | sudo hciconfig hci0 up | ||
| + | ``` | ||
| + | |||
| + | Launch '' | ||
| + | |||
| + | ```shell | ||
| + | $ sudo bluetoothctl | ||
| + | [NEW] Controller 43: | ||
| + | Agent registered | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | |||
| + | Setup: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | |||
| + | Scan for Bluetooth devices: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | Discovery started | ||
| + | [CHG] Controller 43: | ||
| + | [NEW] Device 46: | ||
| + | [NEW] Device 8C: | ||
| + | ``` | ||
| + | |||
| + | Show connected Bluetooth devices: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | Device 46: | ||
| + | Device 8C: | ||
| + | Device 9C: | ||
| + | [NEW] Device AC: | ||
| + | [CHG] Device AC: | ||
| + | [CHG] Device AC: | ||
| + | ``` | ||
| + | |||
| + | Pair with a device: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | ``` | ||
| + | |||
| + | <WRAP info > | ||
| + | '' | ||
| + | </ | ||
| + | |||
| + | Exit bluetoothctl: | ||
| + | |||
| + | ```shell | ||
| + | [bluetooth]# | ||
| + | Agent unregistered | ||
| + | [DEL] Controller 43: | ||
| + | khadas@Khadas: | ||
| + | ``` | ||
| + | |||
| + | ====== Android ====== | ||
| + | |||
| + | Please goto System Settings. | ||