|
本帖最后由 awhs123 于 2019-6-18 13:46 编辑
相信很多小伙伴都在使用N1盒子Armbian的时候有困惑,对蓝牙使用的方法不是很了解,今天来跟大家分享一下N1盒子在Armbian上使用蓝牙的教程。
N1盒子Armbian使用蓝牙教程
1. 修改/etc/modules
- echo "hci_uart" >> /etc/modules
复制代码 2. 将brcm_patchram_plus保存至/usr/local/bin/,记得加上执行权限
brcm_patchram_plus.zip
(7.66 KB, 下载次数: 90)
- chmod +x /usr/local/bin/brcm_patchram_plus
复制代码 3. 修改/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
复制代码 分享网友:Zoner
|
上一篇: T1盒子学习型红外遥控器适配办法下一篇: 新买的n1总是白屏?
|