蓝牙Bluetooth: hci0 command tx timeout

woyaonuli2011 2014-11-13 03:41:56
各位好!在调试调试8723bs的BT功能,系统是linux3.4,先出现下面的的问题:

[root@test ~]$ echo 1 > /proc/net/rtl8723bs/wlan0/btcoex_dbg
[root@test ~]$
[root@test ~]$ hciattach -s 115200 /dev/ttySAK1 rtk_h5
Realtek Bluetooth init uart with init speed:115200, final_speed:921600, type:HCI UART H5
Realtek Bluetooth:Realtek hciattach version 2.2

Realtek Bluetooth:3-wire sync pattern resend : 1, len: 8


Realtek Bluetooth ERROR: can't access bt bt_mac_addr file:/data/btmac.txt, try use another path

reason:: No such file or directory
Realtek Bluetooth ERROR: can't access bt bt_mac_addr file:/data/misc/bluetoothd/bt_mac/btmac.txt, try use ramdom BT Addr

reason:: No such file or directory
Realtek Bluetooth ERROR: open file error:/data/misc/bluetoothd/bt_mac/btmac.txt

reason:: No such file or directory
Realtek Bluetooth:config offset(f4),length(8)
Realtek Bluetooth:config baud rate to :4928002, hwflowcontrol:5f, 1
Realtek Bluetooth:config offset(27),length(1)
Realtek Bluetooth:config offset(fe),length(1)
Realtek Bluetooth:config offset(15b),length(4)
Realtek Bluetooth:config offset(1e3),length(1)
Realtek Bluetooth:Get config baud rate(4 bytes) from config file:4928002
Realtek Bluetooth:Load FW OK
Realtek Bluetooth:RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

、、、、、、、、、、、、、、、、、、、、、、、、、

Realtek Bluetooth ERROR: lmp_version is 2300, project_id is 8723, does not match!!!
reason:: No such file or directory


Realtek Bluetooth post process
[root@anyka ~]$ Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout
Bluetooth: hci0 command tx timeout


备注:调试工具移植的是bluez-4.9,上面是加载了厂家提供的config和fw固件的打印信息,我现在的困惑是:“ lmp_version is 2300, project_id is 8723, does not match”和“tx timeout”是什么原因导致的?
...全文
4836 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yshenu 2015-04-15
  • 打赏
  • 举报
回复
楼主的tx timeout是什么原因 导致的,怎么解决的呢?
woyaonuli2011 2014-11-19
  • 打赏
  • 举报
回复
现在蓝牙基本正常了,可以搜索到其它设备了。大家碰到我这样问题的时候,可以尝试从下面着手:1、如果有流控,先尝试关闭(CPU和蓝牙芯片上的流控);2、如果采用sdio接口,把sdio的中断挂起的功能屏蔽;3、确定蓝牙的波特率和CPU接口的波特率是一致的;4、在调试的时候,关闭蓝牙芯片的power save功能;6、当蓝牙出现问题的时候,可以尝试跟踪hciattach这部分的源码,这样比较容易定位问题;7、当很确认自身驱动没问题时,可以多尝试几个不同版本的bluez协议栈。下面我要做的是和手机的app进行通讯,大家有相关资料(linux,非安卓)推荐吗?
woyaonuli2011 2014-11-17
  • 打赏
  • 举报
回复
现在还没头绪,根据打印信息,蓝牙模块内部是自带了固件了,是否我可以不需要加载固件?
woyaonuli2011 2014-11-13
  • 打赏
  • 举报
回复
在不加载厂家固件和配置文件的情况下的打印信息如下: [root@test ~]$ hciconfig hci0: Type: UART BD Address: CC:D2:9C:F6:C3:79 ACL MTU: 820:8 SCO MTU: 255:16 DOWN RX bytes:634 acl:0 sco:0 events:13 errors:0 TX bytes:280 acl:0 sco:0 commands:14 errors:0 [root@test ~]$ hciconfig -a hci0: Type: UART BD Address: CC:D2:9C:F6:C3:79 ACL MTU: 820:8 SCO MTU: 255:16 DOWN RX bytes:634 acl:0 sco:0 events:13 errors:0 TX bytes:280 acl:0 sco:0 commands:14 errors:0 Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1 Link policy: Link mode: SLAVE ACCEPT [root@test ~]$ [root@test ~]$ hciconfig hci0 up [root@test ~]$ [root@test ~]$ [root@test ~]$ hcitool scan Scanning ... [root@test ~]$ 扫描不到任何设备。

1,323

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧