您尚未登录。

#1 2017-03-02 23:44:36

Wasiv
会员
注册时间: 2017-02-23
帖子: 5

求助关于蓝牙的问题

这两天/dev下的hci0设备文件突然不见了,hciconfig、hcitool等命令也消失了,前几天还在,不知道是什么原因。
附上dmsg有关蓝牙的信息:
[   16.370145] Bluetooth: Core ver 2.22
[   16.370192] Bluetooth: HCI device and connection manager initialized
[   16.370200] Bluetooth: HCI socket layer initialized
[   16.370205] Bluetooth: L2CAP socket layer initialized
[   16.370217] Bluetooth: SCO socket layer initialized
[   17.443558] Bluetooth: hci0: BCM: chip id 70
[   17.459533] Bluetooth: hci0: BCM43142A
[   17.459538] Bluetooth: hci0: BCM (001.001.011) build 0000
[   17.574285] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2
[   17.574298] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found
[   19.605307] Bluetooth: hci0 command 0x1003 tx timeout
[   20.812806] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   20.812811] Bluetooth: BNEP filters: protocol multicast
[   20.812821] Bluetooth: BNEP socket layer initialized

离线

#2 2017-03-03 01:05:32

Wasiv
会员
注册时间: 2017-02-23
帖子: 5

Re: 求助关于蓝牙的问题

hciconfig、hcitool这些命令是哪个软件包里的?

离线

#3 2017-03-03 01:12:34

zsrkmyn
lazy...
注册时间: 2013-05-05
帖子: 331

Re: 求助关于蓝牙的问题

没有软件包包含 hciconfig, hcitool:

~$ pkgfile -b hciconfig
~$ pkgfile -b hcitool
~$ 

离线

#4 2017-03-03 10:06:48

Wasiv
会员
注册时间: 2017-02-23
帖子: 5

Re: 求助关于蓝牙的问题

我创建了一个BCM.hcd的符号链接,现在已经可以使用蓝牙了,只是/dev下的hci0文件以及系统命令hciconfig,hcitool等还是没有,这是什么原因?

离线

#5 2017-03-03 18:51:27

Wasiv
会员
注册时间: 2017-02-23
帖子: 5

Re: 求助关于蓝牙的问题

还有两个问题:
1、用蓝牙无法向手机传送程序文件,但可以传送其他文件如文档文件和动态库文件;
2、系统睡眠又唤醒后,蓝牙无法使用了。
以下是一些信息:

$ dmesg | grep -i bluetooth
[   15.960937] Bluetooth: Core ver 2.22
[   15.961014] Bluetooth: HCI device and connection manager initialized
[   15.961027] Bluetooth: HCI socket layer initialized
[   15.961034] Bluetooth: L2CAP socket layer initialized
[   15.961054] Bluetooth: SCO socket layer initialized
[   16.314823] Bluetooth: hci0: BCM: chip id 70
[   16.330840] Bluetooth: hci0: Sarch
[   16.330848] Bluetooth: hci0: BCM (001.001.011) build 0336
[   17.112720] Bluetooth: hci0: BCM (001.001.011) build 0336
[   17.128759] Bluetooth: hci0: BCM43142A0 Generic USB Class 2 NonUHE @ 20 MHz
[   21.304930] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   21.304935] Bluetooth: BNEP filters: protocol multicast
[   21.304944] Bluetooth: BNEP socket layer initialized
[   52.527254] Modules linked in: cmac bnep amdgpu dell_led snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi edac_mce_amd edac_core kvm_amd nls_iso8859_1 kvm nls_cp437 vfat irqbypass dell_laptop crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel dell_wmi sparse_keymap dell_smbios dcdbas fat aesni_intel btusb dell_smm_hwmon aes_x86_64 lrw btrtl gf128mul glue_helper btbcm btintel pcspkr rtsx_usb_ms bluetooth ablk_helper cryptd wl(PO) evdev memstick amdkfd uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media snd_hda_intel joydev mousedev input_leds mac_hid amd_iommu_v2 radeon r8169 snd_hda_codec ttm drm_kms_helper drm ccp cfg80211 syscopyarea sysfillrect sysimgblt dell_rbtn wmi snd_hda_core snd_hwdep snd_pcm fam15h_power k10temp snd_timer fb_sys_fops
[   57.871526] Bluetooth: hci0: BCM: chip id 70
[   57.890498] Bluetooth: hci0: BCM43142A
[   57.890506] Bluetooth: hci0: BCM (001.001.011) build 0000
[   58.554489] Bluetooth: hci0: BCM (001.001.011) build 0336
[   58.570470] Bluetooth: hci0: BCM43142A0 Generic USB Class 2 NonUHE @ 20 MHz
[  125.717199] Bluetooth: RFCOMM TTY layer initialized
[  125.717215] Bluetooth: RFCOMM socket layer initialized
[  125.717229] Bluetooth: RFCOMM ver 1.11
[ 1402.197400] Bluetooth: hci0 command 0x1001 tx timeout
[ 1410.090720] Bluetooth: hci0: BCM: Reading local version info failed (-110)
[ 1415.684216] Modules linked in: rfcomm fuse cmac bnep amdgpu dell_led snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi edac_mce_amd edac_core kvm_amd nls_iso8859_1 kvm nls_cp437 vfat irqbypass dell_laptop crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel dell_wmi sparse_keymap dell_smbios dcdbas fat aesni_intel btusb dell_smm_hwmon aes_x86_64 lrw btrtl gf128mul glue_helper btbcm btintel pcspkr rtsx_usb_ms bluetooth ablk_helper cryptd wl(PO) evdev memstick amdkfd uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media snd_hda_intel joydev mousedev input_leds mac_hid amd_iommu_v2 radeon r8169 snd_hda_codec ttm drm_kms_helper drm ccp cfg80211 syscopyarea sysfillrect sysimgblt dell_rbtn wmi snd_hda_core snd_hwdep snd_pcm fam15h_power k10temp

离线

#6 2017-03-03 20:19:31

Wasiv
会员
注册时间: 2017-02-23
帖子: 5

Re: 求助关于蓝牙的问题

刚刚我尝试了一下给程序文件加上后缀.exe结果蓝牙可以正常传送到手机了。只能传输带点号的文件,这属于gnome的bluetooth-sendto的一个bug吗?

离线

#7 2017-03-25 23:27:29

rocka
会员
注册时间: 2017-01-27
帖子: 7
个人网站

Re: 求助关于蓝牙的问题

刚在Reddit上找到了 一个讨论
说是这几个命令已经被 deprecated 。。。
所以只用 bluetoothctl 就好

离线

页脚