使用Raspberry Pi 3,Linux测试4.4.9-v7 +#884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU / Linux
root@raspberry:/home/user# hcitool scan
Device is not available: No such device
这可能是什么问题?
我已更新到最新
#sudo rpi-update
我已经安装了rpi-bluetooth
#sudo apt-get install rpi-bluetooth
这可以从dmesg中看到:
root@raspberry:/home/user# dmesg | grep Blue
[ 43.442353] Bluetooth: Core ver 2.21
[ 43.442453] Bluetooth: HCI device and connection manager initialized
[ 43.442477] Bluetooth: HCI socket layer initialized
[ 43.442494] Bluetooth: L2CAP socket layer initialized
[ 43.442528] Bluetooth: SCO socket layer initialized
[ 73.520196] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 73.520215] Bluetooth: BNEP filters: protocol multicast
[ 73.520238] Bluetooth: BNEP socket layer initialized
编辑:
这也可能很有趣,为什么蓝牙不在这里?
root@raspberry:/home/user# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
编辑2: 我试图重新安装pi-bluetooth
user@raspberry:~ $ sudo apt-get purge bluez-firmware
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
bluez-firmware* pi-bluetooth*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 240 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 47373 files and directories currently installed.)
Removing pi-bluetooth (0.1.0) ...
Purging configuration files for pi-bluetooth (0.1.0) ...
Removing bluez-firmware (1.2-3+rpi1) ...
user@raspberry:~ $ sudo apt-get install pi-bluetooth
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bluez-firmware
The following NEW packages will be installed:
bluez-firmware pi-bluetooth
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/92.8 kB of archives.
After this operation, 240 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package bluez-firmware.
(Reading database ... 47354 files and directories currently installed.)
Preparing to unpack .../bluez-firmware_1.2-3+rpi1_all.deb ...
Unpacking bluez-firmware (1.2-3+rpi1) ...
Selecting previously unselected package pi-bluetooth.
Preparing to unpack .../pi-bluetooth_0.1.0_armhf.deb ...
Unpacking pi-bluetooth (0.1.0) ...
Setting up bluez-firmware (1.2-3+rpi1) ...
Setting up pi-bluetooth (0.1.0) ...
Job for hciuart.service failed. See 'systemctl status hciuart.service' and 'journalctl -xn' for details.
我怀疑最后一个错误与它有关: hciuart.service的作业失败。有关详细信息,请参见“ systemctl status hciuart.service”和“ journalctl -xn”。
user@raspberry:~ $ sudo journalctl -xn
-- Logs begin at Sun 2016-05-08 19:48:33 CEST, end at Sun 2016-05-08 19:58:07 CEST. --
May 08 19:52:46 raspberry systemd[1]: Failed to start Configure Bluetooth Modems connected by UART.
-- Subject: Unit hciuart.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit hciuart.service has failed.
--
-- The result is failed.
May 08 19:52:46 raspberry systemd[1]: Unit hciuart.service entered failed state.
May 08 19:52:46 raspberry hciattach[1279]: Can't initialize device: Success
May 08 19:52:46 raspberry hciattach[1279]: bcm43xx_init
user@raspberry:~ $ systemctl status hciuart.service
● hciuart.service - Configure Bluetooth Modems connected by UART
Loaded: loaded (/lib/systemd/system/hciuart.service; enabled)
Active: failed (Result: exit-code) since Sun 2016-05-08 19:52:46 CEST; 6min ago
Process: 1279 ExecStart=/usr/bin/hciattach /dev/ttyAMA0 bcm43xx 921600 noflow - (code=exited, status=1/FAILURE)
user@raspberry:~ $
它不应该有所作为,但是如果您将sudo称为hcitool呢?
—
抢
没什么区别,我已经运行过sudo bash,所以我在root外壳中
—
www.jensolsson.se
您解决了这个问题吗?我想知道您是如何解决的
—
mozcelikors
我在Pi 3 Model B V1.2上看到了相同的问题,并且发现将完全相同的SD卡放入Pi 3 B +可以正常工作。如果您有其他的Pi 3,也许尝试一下,看看它是否有效?其他人过去曾报告过此问题,但是软件修复程序对他们有效,对我而言仍然失败。我无法连接到BT模块。github.com/raspberrypi/linux/issues/1314#issuecomment-190788662,stackoverflow.com/questions/44554255/...,archlinuxarm.org/forum/viewtopic.php?f=60&t=10770
—
威尔海利