【问题标题】:Bluetooth OPP profile - 'Client proxy not available'蓝牙 OPP 配置文件 - '客户端代理不可用'
【发布时间】:2018-09-03 06:03:30
【问题描述】:

我正在尝试在我的 linux 机器 (Ubuntu-16.04 LTS) 中启用蓝牙 OPP 配置文件以将其与 android 手机连接。

  • 最初我使用命令/etc/init.d/bluetooth start启用蓝牙接口
  • 开始扫描要连接的设备,使用同时显示设备“蓝牙 MAC 地址和用户名”的hcitool scan
  • 我使用命令 hcitool cc --role=s <br_addr> 将我的 PC 与设备 (Redmi note 4-Android Nougat) 配对
  • 然后我执行命令sudo obexctl,这导致交互模式, [obex]# connect <br_addr>

使用蓝牙MAC地址连接设备时,抛出以下错误,

Client proxy not available

希望此链接有用,因为它解释了确切的输出应该是什么样的。 https://docs.ubuntu.com/core/en/stacks/bluetooth/bluez/docs/reference/sending-files

【问题讨论】:

    标签: linux bluetooth android-bluetooth obex bluetooth-profile


    【解决方案1】:

    是的,我刚刚找到了我自己问题的答案(考虑不要删除问题,因为它可能会帮助遇到相同情况的人)

    在初始化蓝牙服务之前,必须运行守护进程,

    sudo service bluetooth stop sudo systemctl daemon-reload sudo service bluetooth start sudo hciconfig -a hci0 reset

    现在一切顺利,可以执行 obexctl 命令了。一旦进入交互模式,就可以建立连接,并且可以按照链接中的说明推送或拉取文件。

    【讨论】:

    • 你为什么跑systemctl daemon-reload
    猜你喜欢
    • 2011-07-31
    • 1970-01-01
    • 1970-01-01
    • 2014-02-06
    • 2018-03-16
    • 2015-10-21
    • 1970-01-01
    • 2012-09-21
    • 2014-11-02
    相关资源
    最近更新 更多