Firefly开源社区

rk3308 bt连接一直失败

112

积分

0

威望

0

贡献

技术小白

积分
112
发表于 2020-7-29 09:58:58     
使用的镜像版本ROC-RK3308-CC_Buildroot_normal_20181114
1、使用如下命令,可以扫描到,但是无法连接成功,连接通过hcitool dump出现如下错误:
   Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
    status 0x04 handle 11 bdaddr 22:22:E3:6F:1C:F6 type ACL encrypt 0x00
    Error: Page Timeout
bluetoothd[453]: src/adapter.c:connect_failed_callback() hci0 22:22:E3:6F:1C:F6 status 4
bluetoothd[453]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 22:22:E3:6F:1C:F6 type 0 status 0x4
bluetoothd[453]: src/adapter.c:resume_discovery()

命令:
hciconfig hci0 up        #使能蓝牙
hciconfig -a        #查看设备信息
hcitool scan        #扫描蓝牙设备
hciconfig hci0 iscan        #可见
hciconfig hci0 pscan        #开启Inquiry Scan和Page Scan,使设备处于可被搜索和可连接状态
sdptool browse local        #查看自己

sdptool add A2SNK                #增加Sink服务


2、使用deviceio bluetooth进行蓝牙功能测试,第一步bt_server_open时出现如下错误:Which would you like: 01
--------------- BT BLUETOOTH INIT ----------------
++++++++++ RK_BT_STATE_TURNING_ON ++++++++++
hcd_file = /system/etc/firmware/BCM4345C0.hcd
start broadcom bluetooth server bsa_sever
killall: bsa_server: no process killed
BSA_trace 1@ 12/31 19h:56m:51s:853ms: BSA_MgtOpenInit
BSA_trace 2@ 12/31 19h:56m:51s:854ms: BSA_MgtOpen (/data/bsa/config/)
Created thread with thread_id=  b710f1c0
BSA_trace 3@ 12/31 19h:56m:51s:855ms: bsa_cl_mgt_init
BSA_trace 4@ 12/31 19h:56m:51s:855ms: UIPC_Init
BSA_trace 5@ 12/31 19h:56m:51s:855ms: UIPC_Open ChId:3
BSA_trace 6@ 12/31 19h:56m:51s:855ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 7@ 12/31 19h:56m:51s:855ms: uipc_cl_control_open fails to connect control socket
BSA_trace 8@ 12/31 19h:56m:51s:855ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 9@ 12/31 19h:56m:52s:856ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 10@ 12/31 19h:56m:52s:856ms: bsa_cl_mgt_init
BSA_trace 11@ 12/31 19h:56m:52s:856ms: UIPC_Init
BSA_trace 12@ 12/31 19h:56m:52s:856ms: UIPC_Open ChId:3
BSA_trace 13@ 12/31 19h:56m:52s:856ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 14@ 12/31 19h:56m:52s:856ms: uipc_cl_control_open fails to connect control socket
BSA_trace 15@ 12/31 19h:56m:52s:856ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
|----- bluetooth bsa server is open ------|
BSA_trace 16@ 12/31 19h:56m:53s:856ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 17@ 12/31 19h:56m:53s:856ms: bsa_cl_mgt_init
BSA_trace 18@ 12/31 19h:56m:53s:856ms: UIPC_Init
BSA_trace 19@ 12/31 19h:56m:53s:856ms: UIPC_Open ChId:3
BSA_trace 20@ 12/31 19h:56m:53s:856ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 21@ 12/31 19h:56m:53s:857ms: uipc_cl_control_open fails to connect control socket
BSA_trace 22@ 12/31 19h:56m:53s:857ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 23@ 12/31 19h:56m:54s:857ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 24@ 12/31 19h:56m:54s:857ms: bsa_cl_mgt_init
BSA_trace 25@ 12/31 19h:56m:54s:857ms: UIPC_Init
BSA_trace 26@ 12/31 19h:56m:54s:857ms: UIPC_Open ChId:3
BSA_trace 27@ 12/31 19h:56m:54s:857ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 28@ 12/31 19h:56m:54s:857ms: uipc_cl_control_open fails to connect control socket
BSA_trace 29@ 12/31 19h:56m:54s:857ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 30@ 12/31 19h:56m:55s:857ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 31@ 12/31 19h:56m:55s:857ms: bsa_cl_mgt_init
BSA_trace 32@ 12/31 19h:56m:55s:857ms: UIPC_Init
BSA_trace 33@ 12/31 19h:56m:55s:857ms: UIPC_Open ChId:3
BSA_trace 34@ 12/31 19h:56m:55s:858ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 35@ 12/31 19h:56m:55s:858ms: uipc_cl_control_open fails to connect control socket
BSA_trace 36@ 12/31 19h:56m:55s:858ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 37@ 12/31 19h:56m:56s:858ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 38@ 12/31 19h:56m:56s:858ms: bsa_cl_mgt_init
BSA_trace 39@ 12/31 19h:56m:56s:858ms: UIPC_Init
BSA_trace 40@ 12/31 19h:56m:56s:858ms: UIPC_Open ChId:3
BSA_trace 41@ 12/31 19h:56m:56s:858ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 42@ 12/31 19h:56m:56s:858ms: uipc_cl_control_open fails to connect control socket
BSA_trace 43@ 12/31 19h:56m:56s:858ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 44@ 12/31 19h:56m:57s:858ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 45@ 12/31 19h:56m:57s:858ms: bsa_cl_mgt_init
BSA_trace 46@ 12/31 19h:56m:57s:858ms: UIPC_Init
BSA_trace 47@ 12/31 19h:56m:57s:859ms: UIPC_Open ChId:3
BSA_trace 48@ 12/31 19h:56m:57s:859ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 49@ 12/31 19h:56m:57s:859ms: uipc_cl_control_open fails to connect control socket
BSA_trace 50@ 12/31 19h:56m:57s:859ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 51@ 12/31 19h:56m:58s:859ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 52@ 12/31 19h:56m:58s:859ms: bsa_cl_mgt_init
BSA_trace 53@ 12/31 19h:56m:58s:859ms: UIPC_Init
BSA_trace 54@ 12/31 19h:56m:58s:859ms: UIPC_Open ChId:3
BSA_trace 55@ 12/31 19h:56m:58s:859ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 56@ 12/31 19h:56m:58s:859ms: uipc_cl_control_open fails to connect control socket
BSA_trace 57@ 12/31 19h:56m:58s:859ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 58@ 12/31 19h:56m:59s:860ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 59@ 12/31 19h:56m:59s:860ms: bsa_cl_mgt_init
BSA_trace 60@ 12/31 19h:56m:59s:860ms: UIPC_Init
BSA_trace 61@ 12/31 19h:56m:59s:860ms: UIPC_Open ChId:3
BSA_trace 62@ 12/31 19h:56m:59s:860ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 63@ 12/31 19h:56m:59s:860ms: uipc_cl_control_open fails to connect control socket
BSA_trace 64@ 12/31 19h:56m:59s:860ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
BSA_trace 65@ 12/31 19h:57m:00s:860ms: BSA_MgtOpen (/data/bsa/config/)
BSA_trace 66@ 12/31 19h:57m:00s:860ms: bsa_cl_mgt_init
BSA_trace 67@ 12/31 19h:57m:00s:860ms: UIPC_Init
BSA_trace 68@ 12/31 19h:57m:00s:860ms: UIPC_Open ChId:3
BSA_trace 69@ 12/31 19h:57m:00s:860ms: uipc_cl_socket_connect: connect(/data/bsa/config/./bt-daemon-socket) failed(No such file or directory)
BSA_trace 70@ 12/31 19h:57m:00s:860ms: uipc_cl_control_open fails to connect control socket
BSA_trace 71@ 12/31 19h:57m:00s:860ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)
#### Please Input Your Test Command Index ####
回复

使用道具 举报

1万

积分

18

威望

20

贡献

神级创客

Rank: 8Rank: 8

积分
10661

突出贡献

发表于 2020-7-29 11:05:10     
在另一边回复你了,这一边确认一下你用的蓝牙模块是什么
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表