完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
正常用 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 wit h 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 -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蓝牙会出这个错误? |
|
相关推荐
3个回答
|
|
# 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 编译: 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/ |
|
|
|
这个错误可以不用理,直接怼个 btstack 就能用了。
|
|
|
|
只有小组成员才能发言,加入小组>>
全志T113双核异构处理器的使用基于Tina Linux5.0——RTOS系统定制开发
1028 浏览 0 评论
全志T113双核异构处理器的使用基于Tina Linux5.0——RTOS编译开发说明
540 浏览 0 评论
1217 浏览 1 评论
3021 浏览 0 评论
为了学习内核开发,大佬手搓了一个轻量级操作系统YiYiYa OS
2972 浏览 0 评论
【开源硬件大赛】基于全志V853设计的全功能BTB学习开发板
3469浏览 8评论
3117浏览 5评论
1885浏览 4评论
全志V85x硬件设计大赛作品精选第二期,快来Pick你心目中的最佳方案
89226浏览 3评论
3619浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 15:36 , Processed in 0.864740 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号