linux无法加载蓝牙设备,Linux 无法识别蓝牙适配器解决办法

编译hci_usb模块即可。

其中,会出现编译错误,error: ‘HCI_QUIRK_RESET_ON_INIT’ undeclared ,

解决办法:打开hci_usb.c,把HCI_QUIRK_RESET_ON_INIT修改为HCI_QUIRK_NO_RESET

加载hci_usb模块:

insmod hci_usb.ko

再次查看蓝牙设备:

#hciconfig -a

hci0:    Type: USB

BD Address: 00:15:83:15:A3:10 ACL MTU: 339:8 SCO MTU: 128:2

UP RUNNING PSCAN ISCAN

RX bytes:1413 acl:0 sco:0 events:35 errors:0

TX bytes:358 acl:0 sco:0 commands:28 errors:0

Features: 0xff 0x3e 0x85 0x30 0x18 0x18 0x00 0x00

Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3

Link policy: RSWITCH HOLD SNIFF PARK

Link mode: SLAVE ACCEPT

Name: 'lhvictor-0'

Class: 0x000104

Service Classes: Unspecified

Device Class: Computer, Desktop workstation

HCI Ver: 2.0 (0x3) HCI Rev: 0xc5c LMP Ver: 2.0 (0x3) LMP Subver: 0xc5c

Manufacturer: Cambridge Silicon Radio (10)

说明蓝牙设备已正确识别。0b1331709591d260c1c78e86d0c51c18.png

你可能感兴趣的:(linux无法加载蓝牙设备)