在“ hcitool扫描”中使用蓝牙扫描未返回任何结果(哈马00049229)


8

当我运行时hcitool scan,shell显示Scanning...〜10秒,但未显示任何结果。

相同的 sudo hcitool scan

(我附近有一部Android手机和一台PC,并且已激活了蓝牙并将其设置为可见)

(它第一次起作用了;从那以后我什么都没改变)


系统规格

蓝牙适配器是Hama 00049229(手册

芯片组:
Bus 001 Device 005: ID 0a5c:2121 Broadcom Corp. BCM2210 Bluetooth


hciconfig 显示:

hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:0D:18:01:5A:B3  ACL MTU: 1017:8  SCO MTU: 64:0
        UP RUNNING PSCAN
        RX bytes:849 acl:0 sco:0 events:39 errors:0
        TX bytes:420 acl:0 sco:0 commands:35 errors:0


(如Tim Holt所评论)
hcitool dev显示:

Devices:
    hci0    00:0D:18:01:5A:B3


(也正如蒂姆·霍尔特(Tim Holt)所说),
我跑hcidump --raw了,扫描工具找到了附近所有的蓝牙设备。这是转储(我扫描了两次):

HCI sniffer - Bluetooth packet analyzer ver 2.4
device: hci0 snap_len: 1028 filter: 0xffffffff
< 01 01 04 05 33 8B 9E 08 00
> 04 0F 04 00 01 01 04
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C9
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C8
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C9
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C8
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C8
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B CA
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C7
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C9
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C7
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C8
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C5
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B CA
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C5
> 04 22 0F 01 65 FF 3D 83 15 00 01 00 04 01 12 BD 6B C9
> 04 01 01 00
< 01 19 04 0A 65 FF 3D 83 15 00 01 00 BD EB
> 04 0F 04 00 01 19 04
> 04 07 FF 00 65 FF 3D 83 15 00 4D 69 63 68 69 73 2D 50 43 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

然后,一切再次恢复正常(中断)并hcidump --raw显示:

HCI sniffer - Bluetooth packet analyzer ver 2.4
device: hci0 snap_len: 1028 filter: 0xffffffff
< 01 01 04 05 33 8B 9E 08 00
> 04 0F 04 00 01 01 04
> 04 01 01 00


dmesg | grep -i bluetooth 显示:

[    5.875950] Bluetooth: Core ver 2.19
[    6.000541] Bluetooth: HCI device and connection manager initialized
[    6.202400] Bluetooth: HCI socket layer initialized
[    6.209332] Bluetooth: L2CAP socket layer initialized
[    6.586384] Bluetooth: SCO socket layer initialized
[   29.059873] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   29.059914] Bluetooth: BNEP filters: protocol multicast
[   29.059972] Bluetooth: BNEP socket layer initialized
[   29.132785] Bluetooth: RFCOMM TTY layer initialized
[   29.132869] Bluetooth: RFCOMM socket layer initialized
[   29.132930] Bluetooth: RFCOMM ver 1.11


Raspberry Pi是Model B Rev2

已安装的软件包:

  • bluetooth
  • bluez-utils
  • bluez-compat
  • bluez-hcidump

“ hcitool dev”会给您带来什么?那应该列出您的设备。
蒂姆·霍尔特

另外,尝试在一个窗口中执行“ hcidump --raw”,然后在另一个窗口中进行“ hcitool扫描”-您应该在转储窗口中看到一些输出。
蒂姆·霍尔特

hcidump: command not found-> 如何在Debian中找到包含程序的软件包?我知道该问题已作为一个重复项关闭,但可接受的答案是一个很好的答案,如果您单击重复的重复项,也可以根据需要检查这些答案。
goldilocks

由于它似乎间歇性地工作,可能是B无法提供足够的电源,尤其是如果您的电源小于2A时,因此该设备一直在发生故障。如果您拥有有源集线器,则可以在其中进行测试。
goldilocks

@goldilocks可悲的是我没有供电的集线器,并且PSU读取1.5A
gizmo

Answers:


3

尝试运行以下命令:

sudo bluetoothctl
agent on
default-agent
scan on

键入scan off以停止扫描。


0

通过匿名编辑


每当您看到类似以下内容的内容:

[bluetooth]# scan on
Failed to start discovery: org.bluez.Error.NotReady

显式打开芯片电源,输入:

[bluetooth]# power on
[CHG] Controller 00:1A:7D:DA:71:08 Class: 0x500000
Changing power on succeeded
[CHG] Controller 00:1A:7D:DA:71:08 Powered: yes
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.