首页 > 解决方案 > 无法检测到蓝牙设备 - qt.bluetooth.bluez 收到广告错误

问题描述

我正在使用 ubuntu 18.4、bluez 5.58。蓝牙模块以“root”权限执行。在嵌入式设备上电期间(使用 cypress BLE 模块),广告失败并出现错误:“qt.bluetooth.bluez 收到广告错误”。此问题间歇性发生。

我尝试重新启动蓝牙模块 - /etc/init.d/bluetooth restart 并再次调用广告接口。但问题仍然存在。

<policy user="root">
    <allow own="org.bluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_interface="org.bluez.Agent1"/>
    <allow send_interface="org.bluez.MediaEndpoint1"/>
    <allow send_interface="org.bluez.MediaPlayer1"/>
    <allow send_interface="org.bluez.Profile1"/>
    <allow send_interface="org.bluez.GattCharacteristic1"/>
    <allow send_interface="org.bluez.GattDescriptor1"/>
    <allow send_interface="org.bluez.LEAdvertisement1"/>
    <allow send_interface="org.freedesktop.DBus.ObjectManager"/>
    <allow send_interface="org.freedesktop.DBus.Properties"/>
  </policy>

有谁知道如何解决这个问题?或者是否有任何重试机制要实施?谢谢你。

标签: linuxqtbluetooth-lowenergybluezqtbluetooth

解决方案


推荐阅读