本帖最后由 C.Soult 于 2018-7-13 17:55 编辑
之前借@Mirukuteii大大的帖子问了个N1蓝牙的问题,在这里 https://bbs.hassbian.com/thread-4274-1-1.html#pid113886
感谢各位的帮助,已经解决了此问题,解决方案如下:
1. 将brcm_patchram_plus保存至/usr/local/bin/,记得加上执行权限
brcm_patchram_plus.zip
(7.66 KB, 下载次数: 521)
chmod +x /usr/local/bin/brcm_patchram_plus
2. 修改/etc/rc.local,在exit 0前加入如下内容
/usr/local/bin/brcm_patchram_plus --patchram /lib/firmware/brcm/BCM4345C0.hcd --enable_hci --no2bytes --tosleep 1000 /dev/ttyS1
/bin/sleep 1
/usr/bin/hciattach /dev/ttyS1 any
重启后执行hciconfig -a就可以看到我们的蓝牙设备了
hci1: Type: Primary Bus: UART
BD Address: 43:45:C0:00:1F:AC ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:1318 acl:0 sco:0 events:72 errors:0
TX bytes:2408 acl:0 sco:0 commands:72 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'HomeCenter'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: 4.1 (0x7) Revision: 0x4b
LMP Version: 4.1 (0x7) Subversion: 0x6119
Manufacturer: Broadcom Corporation (15)
hci0: Type: Primary Bus: SDIO
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT
|