Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:configurations:bluetooth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:configurations:bluetooth [2022/07/06 05:42]
frank Add bluetooth
products:sbc:common:configurations:bluetooth [2026/02/02 22:31] (current)
gray update by using AI
Line 1: Line 1:
 ====== Bluetooth ====== ====== Bluetooth ======
  
 +/*
 ===== Introduction ===== ===== Introduction =====
  
-This document mainly introduces Bluetooth. The first part of the document is about how to use Bluetooth under Ubuntu, and the second part of the document is how to use Bluetooth under Android.+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.
  
-===== Ubuntu =====+*/
  
-<tabbox Desktop OS>+====== Linux ======
  
-Bluetooth settings are in the upper-right corner, click it and select ''Device''.+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 ''Devices...''.
  
 {{/products:sbc:common:configurations:gnome-bluetooth1.png?500|gnome-bluetooth1}} {{/products:sbc:common:configurations:gnome-bluetooth1.png?500|gnome-bluetooth1}}
Line 17: Line 22:
 {{/products:sbc:common:configurations:gnome-bluetooth2.png?500|gnome-bluetooth2}} {{/products:sbc:common:configurations:gnome-bluetooth2.png?500|gnome-bluetooth2}}
  
-Select the device that you want to pair with.+Select the device you want to pair with from the list.
  
 {{/products:sbc:common:configurations:gnome-bluetooth3.png?500|gnome-bluetooth3}} {{/products:sbc:common:configurations:gnome-bluetooth3.png?500|gnome-bluetooth3}}
  
-<tabbox Server OS>+===== Ubuntu Server ======
  
-Enable Bluetooth:+Bluetooth can be configured via command-line utilities.
  
-```sh +Enable Bluetooth Service 
-sudo hciconfig hci0 up+ 
 +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 bluetoothctl:+  * Launch the Bluetooth control tool:
  
-```sh+```shell
 $ sudo bluetoothctl $ sudo bluetoothctl
 +```
 +
 +You will see a prompt similar to:
 +```shell
 [NEW] Controller 43:54:A2:00:1F:AC Khadas [default] [NEW] Controller 43:54:A2:00:1F:AC Khadas [default]
 Agent registered Agent registered
Line 38: Line 58:
 ``` ```
  
-Setup:+Within ''bluetoothctl'', run the following setup commands:
  
-```sh+```shell
 [bluetooth]# agent on [bluetooth]# agent on
 [bluetooth]# default-agent [bluetooth]# default-agent
Line 49: Line 69:
 ``` ```
  
-Scan for Bluetooth devices:+  * Scan for Devices:
  
-```sh+```shell
 [bluetooth]# scan on [bluetooth]# scan on
 +```
 +Example output:
 +```shell
 Discovery started Discovery started
 [CHG] Controller 43:54:A2:00:1F:AC Discovering: yes [CHG] Controller 43:54:A2:00:1F:AC Discovering: yes
Line 58: Line 81:
 [NEW] Device 8C:EB:C6:E7:2E:33 Khadas [NEW] Device 8C:EB:C6:E7:2E:33 Khadas
 ``` ```
 +  * List Discovered Devices
 +Show all discovered devices:
  
-Show connected Bluetooth devices: +```shell
- +
-```sh+
 [bluetooth]# devices [bluetooth]# devices
 +```
 +
 +Example output:
 +```shell
 Device 46:04:25:5F:1E:8D 46-04-25-5F-1E-8D Device 46:04:25:5F:1E:8D 46-04-25-5F-1E-8D
 Device 8C:EB:C6:E7:2E:33 Khadas Device 8C:EB:C6:E7:2E:33 Khadas
 Device 9C:FB:D5:0D:91:47 9C-FB-D5-0D-91-47 Device 9C:FB:D5:0D:91:47 9C-FB-D5-0D-91-47
-[NEW] Device AC:83:F3:DD:D4:E1 AC-83-F3-DD-D4-E1 
-[CHG] Device AC:83:F3:DD:D4:E1 Name: LibreELEC 
-[CHG] Device AC:83:F3:DD:D4:E1 Alias: LibreELEC 
 ``` ```
  
-Pair with a device:+  * Pair and Connect 
 +To pair and connect with a device, use its MAC address:
  
-```sh+```shell
 [bluetooth]# connect <device_addr> [bluetooth]# connect <device_addr>
 ``` ```
 +Replace <device_mac_address> with the actual address (e.g., 8C:EB:C6:E7:2E:33).
  
 <WRAP info > <WRAP info >
-''device_addr'' is the address of the device you want to connect to.+The ''device_mac_address'' is the unique hardware address of the Bluetooth device you want to connect to, shown in the ''devices'' list.
 </WRAP> </WRAP>
  
-Exit bluetoothctl:+  * Exit 
 +To exit ''bluetoothctl'':
  
-```sh+```shell
 [bluetooth]# quit [bluetooth]# quit
-Agent unregistered 
-[DEL] Controller 43:54:A2:00:1F:AC Khadas [default] 
-khadas@Khadas:~$ 
 ``` ```
  
-</tabbox> +====== Android ======
  
-===== Android =====+Please goto System Settings.
  
Last modified: 2022/07/06 05:42 by frank