android hciattach bcm43xx bd_address

时间:2014-04-28 16:40:19

标签: android bluetooth android-source android-4.4-kitkat broadcom

我正试图在运行Kitkat的Galaxy note 2上初始化我的bcm43xx芯片。

我已经移植了我的蓝牙子系统并添加了来自Bluez的hciattach,hciconfig和其他人(我已将其移植到我的ROM中以取代Bluedroid)

重启后,我运行以下

modprobe bluetooth //Load the backported subsystem
modprobe hci_uart
modprobe hci_smd
echo "1" > /sys/class/rfkill/rfkill0/state
hciattach /dev/ttySAC0 bcm43xx 3000000 flow 79:59:5E:**:**:** //The bt addr is loaded from /efs/bluetooth/bt_addr in which the ** are real hex
hciconfig hci0 up

无论如何我已经修改了hciattach,因为我遇到了问题,因为我找到了我的bcm4334.hcd固件文件,在我的rom中是/ system / bin我把它硬编码到源代码中,所有看起来都像我得到的那样

In '/system/bin': Success
In '/system/bin': Success
In '/system/bin/.ext': Success
Broke in '/system/bin/.ext': Success
Flash firmware /system/bin/bcm4334_semcosh.hcd
Set Controller UART speed to 3000000 bit/s
Device setup complete

前四行是我的调试代码,试图获得递归搜索的函数。

是的,它有效...不...我可以使用shell中的工具ping,扫描等但是看看我的hciconfig -a

hci0:   Type: BR/EDR  Bus: UART
        BD Address: 43:34:B0:00:00:00  ACL MTU: 1021:8  SCO MTU: 64:1
        DOWN
        RX bytes:579 acl:0 sco:0 events:27 errors:0
        TX bytes:379 acl:0 sco:0 commands:27 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

看看我的BD地址。它是默认的,没有给定地址的地址。我现在面临的问题是Bluez检查我的硬件地址并发现它不匹配因此它失败并且无法启动。

我到了一个我不知道去哪里的地方。任何帮助都会很棒

我正在使用Bluez 5.18,向后移植3.14驱动程序,4.4.2基础。

提前致谢

0 个答案:

没有答案