V3s 驱动 RTL8723DS 蓝牙,出了这个问题,请问怎么解决呢?
-
https://www.cnblogs.com/tid-think/p/13100009.html
正常用 rtk_hciattach 是这样的:
root@airfly:/# rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 & root@airfly:/# Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach version 3.1.0099684.20181218-163903 Realtek Bluetooth :Use epoll Realtek Bluetooth :[SYNC] Get SYNC Resp Pkt Realtek Bluetooth :[CONFIG] Get SYNC pkt Realtek Bluetooth :[CONFIG] Get CONFG pkt Realtek Bluetooth :[CONFIG] Get CONFG resp pkt Realtek Bluetooth :dic is 1, cfg field 0x14 Realtek Bluetooth :H5 init finished Realtek Bluetooth :Realtek H5 IC Realtek Bluetooth :Receive cmd complete event of command: 1001 Realtek Bluetooth :HCI Version 0x08 Realtek Bluetooth :HCI Revision 0x000c Realtek Bluetooth :LMP Subversion 0x8821 Realtek Bluetooth :Receive cmd complete event of command: fc6d Realtek Bluetooth :Read ROM version 01 Realtek Bluetooth :LMP Subversion 0x8821 Realtek Bluetooth :EVersion 1 Realtek Bluetooth :IC: RTL8821CS Realtek Bluetooth :Firmware/config: rtl8821cs_fw, rtl8821cs_config Realtek Bluetooth :Couldnt access customer BT MAC file /opt/bdaddr Realtek Bluetooth :Couldnt open extra config /opt/rtk_btconfig.txt, No such file or directory Realtek Bluetooth :Original Cfg len 25 Realtek Bluetooth :Config baudrate: 04928002 Realtek Bluetooth :uart flow ctrl: 0 Realtek Bluetooth :55 ab 23 87 13 00 0c 00 10 02 80 92 04 50 c5 ea Realtek Bluetooth :19 e1 1b fd af 5b 01 a4 0b Realtek Bluetooth :Cfg length 25 Realtek Bluetooth :Vendor baud from Config file: 04928002 Realtek Bluetooth :Load FW /lib/firmware/rtlbt/rtl8821cs_fw OK, size 40448 Realtek Bluetooth :rtb_get_fw_project_id: opcode 0, len 1, data 10 Realtek Bluetooth :FW version 0xaa7b2a21, Patch num 2 Realtek Bluetooth :Chip id 0x0001 Realtek Bluetooth :Chip id 0x0002 Realtek Bluetooth :Patch length 0x6078 Realtek Bluetooth :Start offset 0x00003d40 Realtek Bluetooth :Svn version: 20445 Realtek Bluetooth :Coexistence: BTCOEX_20180125-2828 Realtek Bluetooth :FW exists, Config file exists Realtek Bluetooth :Total len 24721 for fwc Realtek Bluetooth :baudrate in change speed command: 0x02 0x80 0x92 0x04 Realtek Bluetooth :Receive cmd complete event of command: fc17 Realtek Bluetooth :Received cc of vendor change baud Realtek Bluetooth :Final speed 1500000 Realtek Bluetooth :end_idx: 98, lp_len: 25, additional pkts: 1 Realtek Bluetooth :Start downloading... Realtek Bluetooth :Last packet 227 Realtek Bluetooth :Send last pkt Realtek Bluetooth :Disable host hw flow control Realtek Bluetooth :h5_hci_reset: Issue hci reset cmd Realtek Bluetooth :Receive cmd complete event of command: 0c03 Realtek Bluetooth :Received cc of hci reset cmd Realtek Bluetooth :Init Process finished Realtek Bluetooth post process Device setup complete
可是我的是这样的:
# rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 Realtek Bluetooth :Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach ve[ 32.487000] vcc3v0: disabling rsion 3.1.8905594.20200602-140152 Realtek Bluetooth :Use epo[ 32.491457] vcc5v0: disabling ll Realtek Bluetooth :[SYNC] Get SYNC Resp Pkt Realtek Bluetooth :[CONFIG] Get SYNC pkt Realtek Bluetooth :[CONFIG] Get CONFG pkt Realtek Bluetooth :[CONFIG] Get CONFG resp pkt Realtek Bluetooth :dic is 1, cfg field 0x14 Realtek Bluetooth :H5 init finished Realtek Bluetooth :Realtek H5 IC Realtek Bluetooth :Receive cmd complete event of command: 1001 Realtek Bluetooth :HCI Version 0x08 Realtek Bluetooth :HCI Revision 0x000d Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :Receive cmd complete event of command: fc6d Realtek Bluetooth :Read ROM version 02 Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :EVersion 2 Realtek Bluetooth :IC: RTL8723DS Realtek Bluetooth :Firmware/config: rtl8723d_fw, rtl8723d_config Realtek Bluetooth :Couldnt open extra config /opt/rtk_btconfig.txt, No such file or directory Realtek Bluetooth :Couldnt access customer BT MAC file /opt/bdaddr Realtek Bluetooth :Origin cfg len 10 Realtek Bluetooth :55 ab 23 87 04 00 d9 00 01 0f Realtek Bluetooth :Vendor baud from Config file: 00000000 Realtek Bluetooth :New cfg len 10 Realtek Bluetooth :55 ab 23 87 04 00 d9 00 01 0f Realtek Bluetooth :Load FW /lib/firmware/rtlbt/rtl8723d_fw OK, size 52080 Realtek Bluetooth :rtb_get_fw_project_id: opcode 0, len 1, data 9 Realtek Bluetooth :FW version 0x828a96f1, Patch num 3 Realtek Bluetooth :Chip id 0x0001 Realtek Bluetooth :Chip id 0x0002 Realtek Bluetooth :Chip id 0x0003 Realtek Bluetooth :Patch length 0x81e8 Realtek Bluetooth :Start offset 0x00004940 Realtek Bluetooth :Svn version: 22030 Realtek Bluetooth :Coexistence: BTCOEX_20190509-2f2f Realtek Bluetooth :FW exists, Config file exists Realtek Bluetooth :Total len 33266 for fwc Realtek Bluetooth :No baud from Config file, set baudrate: 115200, 0x0252c014 Realtek Bluetooth :end_idx: 132, lp_len: 2, additional pkts: 0 Realtek Bluetooth :Start downloading... Realtek Bluetooth :Send last pkt Realtek Bluetooth :Disable host hw flow control Realtek Bluetooth WARN: Patch pkt trans timeout, re-trans Realtek Bluetooth WARN: Patch pkt trans timeout, re-trans Realtek Bluetooth WARN: Patch pkt trans timeout, re-trans Realtek Bluetooth WARN: Patch pkt trans timeout, re-trans Realtek Bluetooth ERROR: h5_download_patch: Retransmission exhausts # # #
-
# rtk_hciattach_2 -n -s 115200 /dev/ttyS1 rtk_h5 Realtek Bluetooth :Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach version 3.1 Realtek Bluetooth :Use epoll Realtek Bluetooth :[SYNC] Get SYNC Resp Pkt Realtek Bluetooth :[CONFIG] Get SYNC pkt Realtek Bluetooth :[CONFIG] Get CONFG pkt Realtek Bluetooth :[CONFIG] Get CONFG resp pkt Realtek Bluetooth :dic is 1, cfg field 0x14 Realtek Bluetooth :H5 init finished Realtek Bluetooth :Realtek H5 IC Realtek Bluetooth :Receive cmd complete event of command: 1001 Realtek Bluetooth :HCI Version 0x08 Realtek Bluetooth :HCI Revision 0x000d Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :Receive cmd complete event of command: fc6d Realtek Bluetooth :Read ROM version 02 Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :EVersion 2 Realtek Bluetooth :IC: RTL8723DS Realtek Bluetooth :Firmware/config: rtl8723d_fw, rtl8723d_config Realtek Bluetooth :Couldnt open extra config /opt/rtk_btconfig.txt, No such file or directory Realtek Bluetooth :Couldnt access customer BT MAC file /opt/bdaddr Realtek Bluetooth :Origin cfg len 48 Realtek Bluetooth :55 ab 23 87 2a 00 0c 00 10 02 80 92 04 50 c5 ea Realtek Bluetooth :19 e1 1b fd af 5f 01 a4 0b d9 00 01 0f e4 00 01 Realtek Bluetooth :08 f3 00 01 0c f4 00 08 01 00 01 90 00 00 09 04 Realtek Bluetooth :Config baudrate: 04928002 Realtek Bluetooth :uart flow ctrl: 1 Realtek Bluetooth :Vendor baud from Config file: 04928002 Realtek Bluetooth :New cfg len 48 Realtek Bluetooth :55 ab 23 87 2a 00 0c 00 10 02 80 92 04 50 c5 ea Realtek Bluetooth :19 e1 1b fd af 5f 01 a4 0b d9 00 01 0f e4 00 01 Realtek Bluetooth :08 f3 00 01 0c f4 00 08 01 00 01 90 00 00 09 04 Realtek Bluetooth :Load FW /lib/firmware/rtlbt/rtl8723d_fw OK, size 52096 Realtek Bluetooth :rtb_get_fw_project_id: opcode 0, len 1, data 9 Realtek Bluetooth :FW version 0xaa7add92, Patch num 3 Realtek Bluetooth :Chip id 0x0001 Realtek Bluetooth :Chip id 0x0002 Realtek Bluetooth :Chip id 0x0003 Realtek Bluetooth :Patch length 0x81b8 Realtek Bluetooth :Start offset 0x00004980 Realtek Bluetooth :Svn version: 20318 Realtek Bluetooth :Coexistence: BTCOEX_20180125-2323 Realtek Bluetooth :FW exists, Config file exists Realtek Bluetooth :Total len 33256 for fwc Realtek Bluetooth :baudrate in change speed command: 0x02 0x80 0x92 0x04 Realtek Bluetooth :Receive cmd complete event of command: fc17 Realtek Bluetooth :Received cc of vendor change baud Realtek Bluetooth :Final speed 1500000 Realtek Bluetooth :end_idx: 131, lp_len: 244, additional pkts: 0 Realtek Bluetooth :Start downloading... Realtek Bluetooth :Send last pkt Realtek Bluetooth :Enable host hw flow control Realtek Bluetooth :h5_hci_reset: Issue hci reset cmd Realtek Bluetooth :Receive cmd complete event of command: 0c03 Realtek Bluetooth :Received cc of hci reset cmd Realtek Bluetooth :Init Process finished [ 43.857766] Bluetooth: HCI UART driver ver 2.3 [ 43.862265] Bluetooth: HCI UART protocol H4 registered [ 43.867623] Bluetooth: HCI UART protocol BCSP registered [ 43.873240] Bluetooth: HCI UART protocol LL registered [ 43.878465] Bluetooth: HCI UART protocol ATH3K registered [ 43.883983] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 43.890604] Bluetooth: HCI UART protocol Intel registered [ 43.896317] Bluetooth: HCI UART protocol Broadcom registered [ 43.902191] Bluetooth: HCI UART protocol QCA registered [ 43.907516] Bluetooth: HCI UART protocol AG6XX registered [ 43.913019] Bluetooth: HCI UART protocol Marvell registered Realtek Bluetooth :Realtek Bluetooth post process Realtek Bluetooth :Device setup complete
搞定, 从全志的D1哪吒 SDK扣 固件和 rtk_attach出来就完事了!
-
rtk_hciattach 编译:
cd /opt/D1/tina_d1_open/package/utils/rtk_hciattach/src CC=/opt/v3s/dreamer_v1/output/host/bin/arm-linux-gnueabihf-gcc make
固件位置:
/opt/D1/tina_d1_open/package/firmware/linux-firmware/rtl8723ds
复制到文件系统位置:
lib/firmware/rtlbt/
-
# rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 Realtek Bluetooth :Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach version 3.1 Realtek Bluetooth :Use epoll Realtek Bluetooth :[SYNC] Get SYNC Resp Pkt Realtek Bluetooth :[CONFIG] Get SYNC pkt Realtek Bluetooth :[CONFIG] Get CONFG pkt Realtek Bluetooth :[CONFIG] Get CONFG resp pkt Realtek Bluetooth :dic is 1, cfg field 0x14 Realtek Bluetooth :H5 init finished Realtek Bluetooth :Realtek H5 IC Realtek Bluetooth :Receive cmd complete event of command: 1001 Realtek Bluetooth :HCI Version 0x08 Realtek Bluetooth :HCI Revision 0x000d Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :Receive cmd complete event of command: fc6d Realtek Bluetooth :Read ROM version 02 Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :EVersion 2 Realtek Bluetooth :IC: RTL8723DS Realtek Bluetooth :Firmware/config: rtl8723d_fw, rtl8723d_config Realtek Bluetooth :Couldnt open extra config /opt/rtk_btconfig.txt, No such file or directory Realtek Bluetooth :Couldnt access customer BT MAC file /opt/bdaddr Realtek Bluetooth :Origin cfg len 48 Realtek Bluetooth :55 ab 23 87 2a 00 0c 00 10 02 80 92 04 50 c5 ea Realtek Bluetooth :19 e1 1b fd af 5f 01 a4 0b d9 00 01 0f e4 00 01 Realtek Bluetooth :08 f3 00 01 0c f4 00 08 01 00 01 90 00 00 09 04 Realtek Bluetooth :Config baudrate: 04928002 Realtek Bluetooth :uart flow ctrl: 1 Realtek Bluetooth :Vendor baud from Config file: 04928002 Realtek Bluetooth :New cfg len 48 Realtek Bluetooth :55 ab 23 87 2a 00 0c 00 10 02 80 92 04 50 c5 ea Realtek Bluetooth :19 e1 1b fd af 5f 01 a4 0b d9 00 01 0f e4 00 01 Realtek Bluetooth :08 f3 00 01 0c f4 00 08 01 00 01 90 00 00 09 04 Realtek Bluetooth :Load FW /lib/firmware/rtlbt/rtl8723d_fw OK, size 52096 Realtek Bluetooth :rtb_get_fw_project_id: opcode 0, len 1, data 9 Realtek Bluetooth :FW version 0xaa7add92, Patch num 3 Realtek Bluetooth :Chip id 0x0001 Realtek Bluetooth :Chip id 0x0002 Realtek Bluetooth :Chip id 0x0003 Realtek Bluetooth :Patch length 0x81b8 Realtek Bluetooth :Start offset 0x00004980 Realtek Bluetooth :Svn version: 20318 Realtek Bluetooth :Coexistence: BTCOEX_20180125-2323 Realtek Bluetooth :FW exists, Config file exists Realtek Bluetooth :Total len 33256 for fwc Realtek Bluetooth :baudrate in change speed command: 0x02 0x80 0x92 0x04 Realtek Bluetooth :Receive cmd complete event of command: fc17 Realtek Bluetooth :Received cc of vendor change baud Realtek Bluetooth :Final speed 1500000 Realtek Bluetooth :end_idx: 131, lp_len: 244, additional pkts: 0 Realtek Bluetooth :Start downloading... Realtek Bluetooth :Send last pkt Realtek Bluetooth :Enable host hw flow control Realtek Bluetooth :h5_hci_reset: Issue hci reset cmd Realtek Bluetooth :Receive cmd complete event of command: 0c03 Realtek Bluetooth :Received cc of hci reset cmd Realtek Bluetooth :Init Process finished Realtek Bluetooth ERROR: Can't set line discipline 22, Invalid argument Realtek Bluetooth ERROR: Can't initialize device 22, Invalid argument # #
Realtek Bluetooth ERROR: Can't set line discipline 22, Invalid argument
Realtek Bluetooth ERROR: Can't initialize device 22, Invalid argument为什么我的V3s Linux3.4 初始化8723DS蓝牙会出这个错误?
-
这个错误可以不用理,直接怼个 btstack 就能用了。
-
看我的,V3s 8723DS 跑 a2dp_sink_demo,完全OK
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号