linux - 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 没有帮助
系统信息:
- GNU/Lunix 4.19.42-v7 #1219
- 带有实验标志集的 Bluez 5.50
解决方案
推荐阅读
- google-apps-script - 谷歌应用脚本 - gmail - 通过过滤器返回消息(不是线程)
- c++ - CLion/CMake 可以在一个项目中找到 SDL,但不能在另一个项目中找到
- mysql - 如何按category_id选择逗号传播的数据?
- ios - UIScrollView 中宽度和高度相等的动态按钮
- c - 如何以更快的方式读取 TCP 数据包?
- android - 三星 S9(18:9) 相机预览拉长
- ruby-on-rails - 如何从表单创建重定向 URL
- python - 如何在 Django 或 Flask 中嵌入交互式 Bokeh 或 Dash 应用程序*with authentication*?
- php - 如果有错误,则准备循环和回滚语句
- vba - Word VBA:插入分页符后,第1页上的我的文本框都转到第2页