【问题标题】:Failed to pair: org.bluez.Error.AlreadyExists [closed]配对失败:org.bluez.Error.AlreadyExists [关闭]
【发布时间】:2018-04-02 13:53:33
【问题描述】:

我正在尝试将 HC-05 蓝牙模块(连接到 Arduino Uno)连接到我的 Raspberry Pi 3,以期实现两者之间的蓝牙通信,从而将数据从 Uno 发送到 Pi。

尝试使用 Bluetoothctl 配对、连接和信任 HC-05 设备对我来说似乎失败了。

[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# scan on
[CHG] Device 98:D3:31:FB:6F:F1 LegacyPairing: yes
[CHG] Device 98:D3:31:FB:6F:F1 RSSI: -43

[bluetooth]# pair 98:D3:31:FB:6F:F1
Attempting to pair with 98:D3:31:FB:6F:F1
[CHG] Device 98:D3:31:FB:6F:F1 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 98:D3:31:FB:6F:F1 Paired: yes
Pairing successful
[CHG] Device 98:D3:31:FB:6F:F1 Connected: no

[bluetooth]# connect 98:D3:31:FB:6F:F1
Attempting to connect to 98:D3:31:FB:6F:F1
[CHG] Device 98:D3:31:FB:6F:F1 Connected: yes
Failed to connect: org.bluez.Error.NotAvailable
[CHG] Device 98:D3:31:FB:6F:F1 Connected: no

[bluetooth]# trust 98:D3:31:FB:6F:F1
[CHG] Device 98:D3:31:FB:6F:F1 Trusted: yes
Changing 98:D3:31:FB:6F:F1 trust succeeded

这是信息提示。

[bluetooth]# info 98:D3:31:FB:6F:F1
Device 98:D3:31:FB:6F:F1
        Name: HC-05
        Alias: HC-05
        Class: 0x001f00
        Paired: yes
        Trusted: yes
        Blocked: no
        Connected: no
        LegacyPairing: yes
        UUID: Serial Port               (00001101-0000-1000-8000-00805f9b34fb)

我得到的具体错误是“无法连接:org.bluez.Error.NotAvailable

我不知道如何通过这个错误,如果不确认两个微处理器之间的蓝牙信号连接,我将无法完成我的项目。

谢谢, 阿迪亚

【问题讨论】:

    标签: bluetooth raspberry-pi3 arduino-uno


    【解决方案1】:

    我有 Linux Mint 2020。我遇到了同样的配对失败:org.bluez.Error.AlreadyExists 消息。

    解决方案:

    1. 在linux中卸载基本的蓝牙(bluez)软件,然后重启
    2. 安装“blueman-applet”,然后瞧

    https://www.maketecheasier.com/setup-bluetooth-in-linux/

    它解决了我的 BT 音响系统问题。

    亲切的问候, 巴拉兹

    【讨论】:

      猜你喜欢
      • 2016-10-04
      • 2014-05-21
      • 2023-03-31
      • 2023-03-10
      • 1970-01-01
      • 2020-10-04
      • 1970-01-01
      • 2022-01-19
      • 1970-01-01
      相关资源
      最近更新 更多