Skip to content

蓝牙配置 ​

Rhino Pi IQ9N 的无线模组集成 Bluetooth 5.3,支持 LE Audio。

硬件规格 ​

项目参数
蓝牙版本Bluetooth 5.3
特性支持 LE Audio
天线通过 2 路 ANT 接口连接外置天线(IPEX 一代)

检查蓝牙状态 ​

bash
bluetoothctl show

若输出中 Powered: yes,表示蓝牙已启用。

开启蓝牙服务 ​

蓝牙服务在 IQ9N 上默认已启用并随系统启动,如需确认状态或重新开启:

bash
sudo systemctl enable --now bluetooth

查看服务状态:

bash
systemctl status bluetooth

扫描与配对设备 ​

  1. 进入交互模式:
bash
bluetoothctl
  1. 依次执行以下命令:
text
power on
agent on
default-agent
scan on
  1. 记录目标设备的 MAC 地址,停止扫描并配对:
text
scan off
pair <设备 MAC 地址>
trust <设备 MAC 地址>
connect <设备 MAC 地址>
  1. 退出交互模式:
text
exit

提示

上述命令需进入 bluetoothctl 交互界面后逐条输入。若把多条命令一次性粘贴,可能因尚未与蓝牙服务建立连接而提示 Failed to register agent object 或 No agent is registered,属时序问题,重新逐条执行即可。

查看已配对设备 ​

bash
bluetoothctl devices

使用蓝牙音频 ​

IQ9N 的音频服务为 PipeWire,未预装 PulseAudio 的 pactl,请改用 PipeWire 自带的 wpctl。

查看音频设备:

bash
wpctl status

在 Audio → Sinks 一节中列出所有输出设备,行首带 * 的为当前默认输出。实测板载输出为:

text
 ├─ Sinks:
 │      44. pal sink speaker ll                 [vol: 1.00]
 │      45. pal sink headset_ll                 [vol: 1.00]

连接蓝牙耳机或音箱后,该列表会新增一个对应的 sink。切换默认输出设备时填入 sink 前的编号:

bash
wpctl set-default <Sink 编号>

注意

wpctl 需要访问用户会话中的 PipeWire 服务,请在设备本机的图形终端(以 aidlux 用户登录)中执行;直接在 adb shell 的 root 环境中执行会提示 Could not connect to PipeWire。

常见问题 ​

  • 搜索不到设备:确认目标设备处于可被发现模式,并确保天线已连接。
  • 连接后无声音:执行 wpctl status 确认默认输出(带 * 的 sink)已切换为蓝牙设备,未切换时用 wpctl set-default <Sink 编号> 设置。