bluetoothd 问题:没有足够的可用句柄来注册服务

bluetoothd 问题:没有足够的可用句柄来注册服务

我的系统上的蓝牙出现了问题。

我买了一个 USB 加密狗,并且已经成功使用过多次。今天我再次尝试使用它,但遇到了错误。问题主要在于使用依赖于 pygatt 的 python 代码。

我已经安装了 bluez,并且我可以从管理器中看到设备,但是每次我尝试运行我的代码时一切都会崩溃。

无论如何,如果我尝试 sudo service bluetooth status 我会得到:

bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2017-12-29 20:50:03 GMT; 16min ago
 Docs: man:bluetoothd(8)
Main PID: 923 (bluetoothd)
Status: "Running"
Tasks: 1
Memory: 2.2M
  CPU: 56ms
CGroup: /system.slice/bluetooth.service
       └─923 /usr/lib/bluetooth/bluetoothd

Dec 29 20:50:06 jsab-u bluetoothd[923]: Error adding Link Loss service
Dec 29 20:50:06 jsa-u bluetoothd[923]: Not enough free handles to register service
Dec 29 20:50:06 jsab-u bluetoothd[923]: Not enough free handles to register service
Dec 29 20:50:06 jsab-u bluetoothd[923]: Not enough free handles to register service
Dec 29 20:50:06 jsab-u bluetoothd[923]: Current Time Service could not be registered
Dec 29 20:50:06 jsab-u bluetoothd[923]: gatt-time-server: Input/output error (5)
Dec 29 20:50:06 jsab-u bluetoothd[923]: Not enough free handles to register service
Dec 29 20:50:06 jsab-u bluetoothd[923]: Not enough free handles to register service
Dec 29 20:50:06 jsab-u bluetoothd[923]: Sap driver initialization failed.
Dec 29 20:50:06 jsab-u bluetoothd[923]: sap-server: Operation not permitted (1)

uname -a

Linux jsab-u 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

lsusb,这是我的两个蓝牙:

Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)

在蓝牙设备中,如果我扫描,我可以看到我的设备,但无法配对。如果我运行代码,我会弹出一个窗口

“连接到 BlueZ 失败

Bluez 守护进程未运行,blueman-manager 无法继续。这可能意味着未检测到蓝牙适配器或蓝牙守护进程未启动。"

由于之前一切都运行正常,所以我猜我的系统出了问题。(该代码不是我开发的,但它对其他人有用,并且之前也可以运行)。

有什么建议可以解决问题吗?我尝试过关注不同的帖子,但无法解决。

谢谢!

相关内容