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 [2023/03/06 23:01] (current)
hyphop
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 configure examples for Ubuntu Desktop and Server variants 
 +===== Ubuntu Desktop =====
  
 Bluetooth settings are in the upper-right corner, click it and select ''Device''. Bluetooth settings are in the upper-right corner, click it and select ''Device''.
Line 13: Line 17:
 {{/products:sbc:common:configurations:gnome-bluetooth1.png?500|gnome-bluetooth1}} {{/products:sbc:common:configurations:gnome-bluetooth1.png?500|gnome-bluetooth1}}
  
-Click ''Search'' to scan for nearby Bluetooth devices.+Click ''Search'' to scan for Bluetooth devices nearby.
  
 {{/products:sbc:common:configurations:gnome-bluetooth2.png?500|gnome-bluetooth2}} {{/products:sbc:common:configurations:gnome-bluetooth2.png?500|gnome-bluetooth2}}
Line 21: Line 25:
 {{/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 ===== 
 + 
 +Bluetooth configuration via console bluetooth utils. 
  
 Enable Bluetooth: Enable Bluetooth:
  
-```sh +```shell 
-sudo hciconfig hci0 up+sudo rfkill unblock bluetooth 
 +sudo hciconfig hci0 up
 ``` ```
  
-Launch bluetoothctl:+Launch ''bluetoothctl'':
  
-```sh+```shell
 $ sudo bluetoothctl $ sudo bluetoothctl
 [NEW] Controller 43:54:A2:00:1F:AC Khadas [default] [NEW] Controller 43:54:A2:00:1F:AC Khadas [default]
Line 40: Line 47:
 Setup: Setup:
  
-```sh+```shell
 [bluetooth]# agent on [bluetooth]# agent on
 [bluetooth]# default-agent [bluetooth]# default-agent
Line 51: Line 58:
 Scan for Bluetooth devices: Scan for Bluetooth devices:
  
-```sh+```shell
 [bluetooth]# scan on [bluetooth]# scan on
 Discovery started Discovery started
Line 61: Line 68:
 Show connected Bluetooth devices: Show connected Bluetooth devices:
  
-```sh+```shell
 [bluetooth]# devices [bluetooth]# devices
 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
Line 73: Line 80:
 Pair with a device: Pair with a device:
  
-```sh+```shell
 [bluetooth]# connect <device_addr> [bluetooth]# connect <device_addr>
 ``` ```
Line 83: Line 90:
 Exit bluetoothctl: Exit bluetoothctl:
  
-```sh+```shell
 [bluetooth]# quit [bluetooth]# quit
 Agent unregistered Agent unregistered
Line 90: Line 97:
 ``` ```
  
-</tabbox> +====== Android ======
  
-===== Android =====+Please goto System Settings.
  
Last modified: 2022/07/06 05:42 by frank