首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配对失败: org.bluez.Error.AlreadyExists

问配对失败: org.bluez.Error.AlreadyExists
EN

Stack Overflow用户
提问于 2018-04-02 13:53:33
回答 1查看 9.9K关注 0票数 9

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

试图使用蓝牙fail来配对、连接和信任HC-05设备对我来说似乎是失败的。

代码语言:javascript
复制
[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

这是信息提示。

代码语言:javascript
复制
[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”。

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

谢谢,Aditya

EN

回答 1

Stack Overflow用户

发布于 2020-11-29 15:41:02

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

解决方案:

  1. 在linux中卸载基本蓝牙(bluez)软件,然后重新启动。
  2. 安装‘蓝色-小程序’,然后看

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

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

你好,Balázs

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49612626

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档