csr8811蓝牙芯片porting总结

1.添加BT电源driver,提供给android接口,android文件目录是:system/Bluetooth/bluedroid、bluetooth.c文件
2.在drivers/bluetooth目录下查看是否有hci_bcsp.o hci_ldisc.o hci_uart.o,如果没有要查看时候是kconfig没有在driver/kconfig目录下添加。我们需要这三个.o文件
3.把 networking下 --- Bluetooth subsystem support 里的以下几项全部选上即可:
L2CAP protocol support
SCO links support
RFCOMM protocol support
RFCOMM TTY support
BNEP protocol support
HIDP protocol support
用csr的chip要注意把HCI UART driver/BCSP protocol support选择上
I/bluedroid( 1152): bt_enable: ret: -1, errno: 19
此error log是打印出来是

For CSR's bluetooth

service hciattach /system/bin/hciattach -s 921600 -n /dev/ttyS2 bcsp 921600
disabled
oneshot

service bccmd /system/bin/bccmd -t bcsp -d /dev/ttyS2 psload -r /etc/csr/ps.psr
disabled
oneshot
4.没有生成bccmd工具
Android4.0.4对于bccmd加了开关,需要把开关打开
ifeq ($(BOARD_HAVE_BLUETOOTH_CSR),true)
在BoardConfig.mk文件加一个开关。
5.bccmd不能下pskey。
由于csr启动初始化芯片是通过pskey实现,所以下pskey是第一步。
(1)首先检查硬件电路是否是OK。(csr硬件工程师帮忙check)
(2)检查设置的baud rate是否是有效的。-cfsetospeed/cfsetispeed
(3)查看时序和可以强制设置baud rate
6.遇到hciattach tool不能启动(initialization timed out)
要特备注意参数,hciattach /dev/ttyS2 bcsp 115200
7.hciconfig可以找到hci0
8.hciconfig不能激活hci0,log:can’t init device hci0:connection timed out

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值