---
title: 蓝牙操作手册
url: https://doc.liz6.com/devops/bluetooth-ops
locale: zh
area: devops
tags:
- devops
date: 2026-06-30
modified: 2026-06-30
description: 蓝牙操作手册 查看 操作 故障排查
---

# 蓝牙操作手册

## 查看

```bash
bluetoothctl devices              # 已配对设备
bluetoothctl show                 # 本机蓝牙信息
bluetoothctl info XX:XX:XX:XX:XX:XX  # 设备详情
```

## 操作

```bash
bluetoothctl                      # 进入交互式
  scan on                         # 扫描设备
  pair XX:XX:XX:XX:XX:XX          # 配对
  trust XX:XX:XX:XX:XX:XX         # 信任 (自动重连)
  connect XX:XX:XX:XX:XX:XX       # 连接
  disconnect XX:XX:XX:XX:XX:XX    # 断开
  remove XX:XX:XX:XX:XX:XX        # 删除设备

# 命令行一行操作
bluetoothctl connect XX:XX:XX:XX:XX:XX
bluetoothctl disconnect XX:XX:XX:XX:XX:XX
bluetoothctl power on / off
```

## 故障排查

```bash
systemctl status bluetooth
dmesg | grep -i bluetooth         # 固件加载错误
rfkill list                        # 是否被软/硬 block
rfkill unblock bluetooth
```
