【问题标题】:bluetoothctl don't find my device whereas hcitool can/Can't find device if not trustedbluetoothctl 找不到我的设备,而 hcitool 如果不受信任则可以/找不到设备
【发布时间】:2018-11-08 02:27:07
【问题描述】:

关于this帖子

这个话题有答案吗?因为我有同样的问题,HackToHell 要求继续使用 AskUbuntu 聊天,但现在已经不可用了

实际上我可以在 Bluetoothctl 上找到我的设备,我信任它一次,我每次都能看到它,但现在它不受信任,我只能用 btmon 看到它,这很痛苦哈哈。我设置了所有设备发现过滤器,但仍然没有效果。使用 sudo hcitool lescan --duplicates 我也可以看到我的设备

那我怎么才能找回来呢?

我尝试重新启动、重新启动蓝牙、重新配置蓝牙、将 hci0 重置、关闭和启动状态等,但仍然没有任何结果... 我在 execstart=... 行之后的文件 /lib/systemd/system/bluetooth.service 中有标志 -C 和 --experimental

本杰明

【问题讨论】:

    标签: bluetooth bluetooth-lowenergy raspberry-pi3 bluetoothlescanner


    【解决方案1】:

    将您的 Linux 内核升级到 5.1.6 或更高版本。

    此版本中修复的问题与有缺陷的蓝牙控制器固件有关,它会发送两次完成事件,使内核将扫描变为被动扫描,因此不会创建 device found 事件。

    Kernel -> controller: LE Set Random Address
    Controller -> kernel: Command "LE Set Random Address" Complete
    Kernel -> controller: LE Set Scan Parameters (active scan)
    Controller -> kernel: Command "LE Set Random Address" Complete
    

    内核之前会假设它无法将扫描设置为主动扫描,因此它会作为被动扫描恢复。

    相关的提交是:https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a3d50fb7ce931f08a2c6194fdc4c9a56c9ed4153

    您可以通过运行 btmon 来验证您是否遇到此问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-07
      • 1970-01-01
      • 2013-11-28
      • 1970-01-01
      • 1970-01-01
      • 2015-08-19
      • 2023-03-11
      相关资源
      最近更新 更多