D 1开发板 如何使用蓝牙键盘/鼠标
-
如题,请问下D1上如何链接蓝牙HID设备?
如下图尝试用bt_test工具链接蓝牙鼠标时日志显示是用A2DP profile去链接的,结果失败
盼复,感谢
-
刚刚测试了一下a2dp source 连小米蓝牙音箱, 正常.
复制测试音频文件:
C:\>"C:\Program Files (x86)\AllWinnerTech\PhoenixSuit\adb.exe" push 44100-stereo-s16_le-10s.wav /tmp/ * daemon not running. starting it now on port 5037 * * daemon started successfully * 5174 KB/s (1764044 bytes in 0.332s)
蓝牙播放正常:
# bt_test -i -p a2dp-source 1253.322907: [bt_manager_enable:400]: bt manager version:Version:3.0.1.202101231450,builed time:Mar 24 2021-06:37:15 1253.323209: [bt_test_status_cb:71]: bt is turnning on. hcidump_xr start Bluetooth init has been completed!! /usr/bin/hcidump_xr: line 1: syntax error: unexpected word (expecting ")") 1253.835079: [bt_profile_global_init:356]: start bluealsa :1 times 1253.870094: [bt_test_dev_add_cb:104]: address:E8:07:BF:1C:43:74,name:NDZ-03-GA,class:2360324,icon:audio-card,address type:public,rssi:0 [ 1183.426017] debugfs: File 'le_min_key_size' in directory 'hci0' already present! [ 1183.434453] debugfs: File 'le_max_key_size' in directory 'hci0' already present! [ 1183.442885] debugfs: File 'force_bredr_smp' in directory 'hci0' already present! 1254.432072: [bt_test_adapter_power_state_cb:41]: Turn on bt successfully 1254.836491: [bt_test_status_cb:61]: BT is ON [bt]#connect E8:07:BF:1C:43:74 1266.516883: [bt_test_a2dp_source_connection_state_cb:285]: A2DP source connecting with device: E8:07:BF:1C:43:74 addr:E8:07:BF:1C:43:74,name:NDZ-03-GA,state:CONNECTED addr:E8:07:BF:1C:43:74,name:NDZ-03-GA,state:CONNECTED [bt]#1267.366635: [bt_test_a2dp_source_connection_state_cb:287]: A2DP source connected with device: E8:07:BF:1C:43:74 1267.367007: [bt_test_a2dp_sink_connection_state_cb:261]: A2DP sink connected with device: E8:07:BF:1C:43:74 [bt]# [bt]#a2dp_src_start [bt]#1276.929765: [_a2dp_source_thread_func:364]: start a2dp src loop,data size:1764000,ch:2,sample:44100
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号