找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 11483|回复: 24

[N1盒子] [已解决,内附方案]请问有在N1的armbian上成功使用蓝牙的吗?试了很久一直不成功

  [复制链接]
发表于 2018-7-11 19:12 | 显示全部楼层 |阅读模式
本帖最后由 Zoner 于 2018-7-12 20:44 编辑

感谢 @achaoge 的帮助,已经解决了此问题,解决方案如下:

1. 修改/etc/modules
  1. echo "hci_uart" >> /etc/modules
复制代码

2. 将brcm_patchram_plus保存至/usr/local/bin/,记得加上执行权限

  1. chmod +x /usr/local/bin/brcm_patchram_plus
复制代码


3. 修改/etc/rc.local,在exit 0前加入如下内容
  1. /usr/local/bin/brcm_patchram_plus --patchram /lib/firmware/brcm/BCM4345C0.hcd --enable_hci --no2bytes --tosleep 1000 /dev/ttyS1
  2. /bin/sleep 1
  3. /usr/bin/hciattach /dev/ttyS1 any
复制代码


重启后执行hciconfig -a就可以看到我们的蓝牙设备了
  1. hci1:   Type: Primary  Bus: UART
  2.         BD Address: 43:45:C0:00:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
  3.         UP RUNNING PSCAN
  4.         RX bytes:1318 acl:0 sco:0 events:72 errors:0
  5.         TX bytes:2408 acl:0 sco:0 commands:72 errors:0
  6.         Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
  7.         Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
  8.         Link policy: RSWITCH SNIFF
  9.         Link mode: SLAVE ACCEPT
  10.         Name: 'HomeCenter'
  11.         Class: 0x000000
  12.         Service Classes: Unspecified
  13.         Device Class: Miscellaneous,
  14.         HCI Version: 4.1 (0x7)  Revision: 0x4b
  15.         LMP Version: 4.1 (0x7)  Subversion: 0x6119
  16.         Manufacturer: Broadcom Corporation (15)

  17. hci0:   Type: Primary  Bus: SDIO
  18.         BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
  19.         DOWN
  20.         RX bytes:0 acl:0 sco:0 events:0 errors:0
  21.         TX bytes:0 acl:0 sco:0 commands:0 errors:0
  22.         Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  23.         Packet type: DM1 DH1 HV1
  24.         Link policy:
  25.         Link mode: SLAVE ACCEPT
复制代码


下面是之前问的问题

hcitool扫描时提示没有设备,hciconfig能列出蓝牙设备,但MAC地址全0。

各种命令执行结果如下,请问大家有知道什么原因的吗?

hciconfig
  1. hci0:   Type: Primary  Bus: SDIO
  2.         BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
  3.         DOWN
  4.         RX bytes:0 acl:0 sco:0 events:0 errors:0
  5.         TX bytes:0 acl:0 sco:0 commands:0 errors:0
复制代码

hcitool dev
  1. Devices:
复制代码

hcitool scan
  1. Device is not available: No such device
复制代码


lsmod
  1. Module                  Size  Used by
  2. bnep                   11404  2
  3. zram                    8953  4
  4. btsdio                  3186  0
  5. bluetooth             251912  7 bnep,btsdio
  6. 6lowpan_iphc            5983  1 bluetooth
  7. dhd                   817295  0
  8. cfg80211              415017  1 dhd
  9. aml_nftl_dev           95108  0
复制代码


dmesg | grep Bluetooth
  1. [   48.089537] Bluetooth: Core ver 2.18
  2. [   48.089586] Bluetooth: HCI device and connection manager initialized
  3. [   48.089612] Bluetooth: HCI socket layer initialized
  4. [   48.089618] Bluetooth: L2CAP socket layer initialized
  5. [   48.089658] Bluetooth: SCO socket layer initialized
  6. [   48.092213] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
  7. [   49.131954] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
  8. [   49.131963] Bluetooth: BNEP filters: protocol multicast
  9. [   49.131991] Bluetooth: BNEP socket layer initialized
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 4恩山币 +4 收起 理由
heq + 1 自己的坑自己填,恩山因你精彩!
jyp90s + 1 强大的恩山!(以下重复1万次)
20927469 + 1 面对这种帖子,我内心复杂,真不知道说什么好……
someoneloveU + 1 感谢楼主成功安装搜得到我的手机蓝牙和天猫

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-7-11 23:36 | 显示全部楼层
布吉岛,大佬帖子说蓝牙完美,我自己也是启动不了蓝牙
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-12 12:29 | 显示全部楼层
http://forum.khadas.com/t/diy-ma ... emmc-install/836/42

按这个帖子做,应该可以启动蓝牙(需要X桌面)

我做了之后的结果:
  1. amlogic:~$ hciconfig
  2. hci1:   Type: Primary  Bus: UART
  3.         BD Address: 43:45:C0:00:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
  4.         UP RUNNING PSCAN
  5.         RX bytes:16709 acl:22 sco:0 events:411 errors:0
  6.         TX bytes:4192 acl:23 sco:0 commands:147 errors:0

  7. hci0:   Type: Primary  Bus: SDIO
  8.         BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
  9.         DOWN
  10.         RX bytes:0 acl:0 sco:0 events:0 errors:0
  11.         TX bytes:0 acl:0 sco:0 commands:0 errors:0
复制代码

点评

多谢!按您给的方案已经解决了!  详情 回复 发表于 2018-7-12 20:13
大佬 能整理一个教程吗? cat: '/sys/bus/mmc/devices/mmc2:0001/mmc2:0001:1/device': No such file or directory port /dev/ttyAML1 could not be opened, error 2 Can't open serial port: No such file or d  详情 回复 发表于 2018-7-12 18:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-12 18:28 | 显示全部楼层
achaoge 发表于 2018-7-12 12:29
http://forum.khadas.com/t/diy-mainline-kernel-4-12-ubuntu-base-17-04-zesty-for-vim-pro-and-emmc-inst ...

大佬 能整理一个教程吗?
cat: '/sys/bus/mmc/devices/mmc2:0001/mmc2:0001:1/device': No such file or directory
port /dev/ttyAML1 could not be opened, error 2
Can't open serial port: No such file or directory
Can't initialize device: No such file or directory

我按照教程启动提示错误
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-7-12 20:13 | 显示全部楼层
achaoge 发表于 2018-7-12 12:29
http://forum.khadas.com/t/diy-mainline-kernel-4-12-ubuntu-base-17-04-zesty-for-vim-pro-and-emmc-inst ...

多谢!按您给的方案已经解决了!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-12 21:27 | 显示全部楼层
谢谢分享!!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-26 09:58 | 显示全部楼层
你好,lz看了你的帖子,我感觉你只是把蓝牙驱动起来,有没有如何配对蓝牙音响和蓝牙调试方面的教程,恳请指点,谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-25 19:32 | 显示全部楼层
你好,按楼主的操作后依然无法启动蓝牙
我手动执行完 /usr/local/bin/brcm_patchram_plus --patchram /lib/firmware/brcm/BCM4345C0.hcd --enable_hci --no2bytes --tosleep 1000 /dev/ttyS1 后就卡死了 不知道什么原因

点评

解决了么?我跟你一样的情况  详情 回复 发表于 2019-1-6 20:17
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-16 00:32 | 显示全部楼层
还是刷不出蓝牙mac
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-30 16:01 | 显示全部楼层
本帖最后由 zld_555 于 2018-12-30 16:21 编辑

问题一样,太感谢了
_________________________
用了这个方法,还是只有一个全为0的设备。

点评

解决了吗?同样问题  详情 回复 发表于 2019-1-6 20:17
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-6 20:17 | 显示全部楼层
wormshow 发表于 2018-10-25 19:32
你好,按楼主的操作后依然无法启动蓝牙
我手动执行完 /usr/local/bin/brcm_patchram_plus --patchram /li ...

解决了么?我跟你一样的情况
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-6 20:17 | 显示全部楼层
zld_555 发表于 2018-12-30 16:01
问题一样,太感谢了
_________________________
用了这个方法,还是只有一个全为0的设备。

解决了吗?同样问题

点评

解决了吗?可以刷出mac地址了吗?谢谢  详情 回复 发表于 2019-6-3 12:36
我也是。。  详情 回复 发表于 2019-3-8 10:05
用来这个方法没解决,还是只有一个全0设备  详情 回复 发表于 2019-1-6 22:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-6 22:08 | 显示全部楼层
wolfid 发表于 2019-1-6 20:17
解决了吗?同样问题

用来这个方法没解决,还是只有一个全0设备
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 10:05 | 显示全部楼层
wolfid 发表于 2019-1-6 20:17
解决了吗?同样问题

我也是。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-4-18 16:33 | 显示全部楼层
补丁之后,蓝牙可以连接耳机听歌吗?

点评

同问。蓝牙音响设备链接问题  详情 回复 发表于 2019-9-18 18:12
解决了吗?可以刷出mac地址了吗?谢谢  详情 回复 发表于 2019-6-3 12:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-17 04:18

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表