首页 > 解决方案 > Bluez 5.50 Gatt 服务器终止后的 D-Bus 连接错误

问题描述

我正在运行基于 BlueZ V5.50 的 BlueZ Gatt 服务器和 BlueZ 测试目录中包含的 example-gatt-server.py 文件。很多时候,当服务器程序退出/终止时,D-Bus 处于不稳定状态,如果不重新启动,我就无法再次成功执行程序。

收到的错误消息如下。此错误一直存在,直到系统重新启动。

('adapter (val/add) = ', dbus.ObjectPath('/org/bluez/hci0/dev_62_D9_BD_2F_9D_DB/service0018/char0019/desc001b'), '/', '0x75e2a020')
('service_manager (val/loc) = ', <Interface <ProxyObject wrapping <dbus._dbus.SystemBus (system) at 0x75dbbea0> :1.7 /org/bluez/hci0/dev_62_D9_BD_2F_9D_DB/service0018/char0019/desc001b at 0x75e5bf90> implementing 'org.bluez.GattManager1' at 0x75db9f70>, '/', '0x75e168a0')
ERROR:dbus.connection:Unable to set arguments (dbus.ObjectPath('/'), {}) according to signature None: <type 'exceptions.ValueError'>: Unable to guess signature from an empty dict

休息蓝牙适配器电源关闭/打开没有效果

该错误与程序异步发生,因此 pdb 没有帮助


系统信息:

标签: linuxdbusbluez

解决方案


推荐阅读