|
rk3308连接bt一直报错,求各位大佬指点
发表于 2020-7-7 18:36:00
浏览:18456
|
回复:18
打印
只看该作者
[复制链接]
楼主
使用的镜像版本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
[30;47mBSA_trace 1@ 12/31 19h:56m:51s:853ms: BSA_MgtOpenInit[30;47m
[30;47mBSA_trace 2@ 12/31 19h:56m:51s:854ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
Created thread with thread_id= b710f1c0
[30;47mBSA_trace 3@ 12/31 19h:56m:51s:855ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 4@ 12/31 19h:56m:51s:855ms: UIPC_Init[30;47m
[30;47mBSA_trace 5@ 12/31 19h:56m:51s:855ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 7@ 12/31 19h:56m:51s:855ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 8@ 12/31 19h:56m:51s:855ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 9@ 12/31 19h:56m:52s:856ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 10@ 12/31 19h:56m:52s:856ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 11@ 12/31 19h:56m:52s:856ms: UIPC_Init[30;47m
[30;47mBSA_trace 12@ 12/31 19h:56m:52s:856ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 14@ 12/31 19h:56m:52s:856ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 15@ 12/31 19h:56m:52s:856ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
|----- bluetooth bsa server is open ------|
[30;47mBSA_trace 16@ 12/31 19h:56m:53s:856ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 17@ 12/31 19h:56m:53s:856ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 18@ 12/31 19h:56m:53s:856ms: UIPC_Init[30;47m
[30;47mBSA_trace 19@ 12/31 19h:56m:53s:856ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 21@ 12/31 19h:56m:53s:857ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 22@ 12/31 19h:56m:53s:857ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 23@ 12/31 19h:56m:54s:857ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 24@ 12/31 19h:56m:54s:857ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 25@ 12/31 19h:56m:54s:857ms: UIPC_Init[30;47m
[30;47mBSA_trace 26@ 12/31 19h:56m:54s:857ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 28@ 12/31 19h:56m:54s:857ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 29@ 12/31 19h:56m:54s:857ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 30@ 12/31 19h:56m:55s:857ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 31@ 12/31 19h:56m:55s:857ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 32@ 12/31 19h:56m:55s:857ms: UIPC_Init[30;47m
[30;47mBSA_trace 33@ 12/31 19h:56m:55s:857ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 35@ 12/31 19h:56m:55s:858ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 36@ 12/31 19h:56m:55s:858ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 37@ 12/31 19h:56m:56s:858ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 38@ 12/31 19h:56m:56s:858ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 39@ 12/31 19h:56m:56s:858ms: UIPC_Init[30;47m
[30;47mBSA_trace 40@ 12/31 19h:56m:56s:858ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 42@ 12/31 19h:56m:56s:858ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 43@ 12/31 19h:56m:56s:858ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 44@ 12/31 19h:56m:57s:858ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 45@ 12/31 19h:56m:57s:858ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 46@ 12/31 19h:56m:57s:858ms: UIPC_Init[30;47m
[30;47mBSA_trace 47@ 12/31 19h:56m:57s:859ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 49@ 12/31 19h:56m:57s:859ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 50@ 12/31 19h:56m:57s:859ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 51@ 12/31 19h:56m:58s:859ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 52@ 12/31 19h:56m:58s:859ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 53@ 12/31 19h:56m:58s:859ms: UIPC_Init[30;47m
[30;47mBSA_trace 54@ 12/31 19h:56m:58s:859ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 56@ 12/31 19h:56m:58s:859ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 57@ 12/31 19h:56m:58s:859ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 58@ 12/31 19h:56m:59s:860ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 59@ 12/31 19h:56m:59s:860ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 60@ 12/31 19h:56m:59s:860ms: UIPC_Init[30;47m
[30;47mBSA_trace 61@ 12/31 19h:56m:59s:860ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 63@ 12/31 19h:56m:59s:860ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 64@ 12/31 19h:56m:59s:860ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
[30;47mBSA_trace 65@ 12/31 19h:57m:00s:860ms: BSA_MgtOpen (/data/bsa/config/)[30;47m
[30;47mBSA_trace 66@ 12/31 19h:57m:00s:860ms: bsa_cl_mgt_init[30;47m
[30;47mBSA_trace 67@ 12/31 19h:57m:00s:860ms: UIPC_Init[30;47m
[30;47mBSA_trace 68@ 12/31 19h:57m:00s:860ms: UIPC_Open ChId:3[30;47m
[31;47mBSA_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)[30;47m
[31;47mBSA_trace 70@ 12/31 19h:57m:00s:860ms: uipc_cl_control_open fails to connect control socket[30;47m
[31;47mBSA_trace 71@ 12/31 19h:57m:00s:860ms: BSA_MgtOpen UIPC_open fails (cannot connect to server)[30;47m
#### Please Input Your Test Command Index ####
|
|