Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    F133跑bluez的时候,加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 & 报错。

    Linux
    2
    8
    2994
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shz18877605430 LV 6 last edited by

      F133跑bluez的时候,加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 &报错

      运行了以下操作,rtl8723ds驱动已经运行,hci_uart.ko也运行了。

      /etc/init.d/dbus start
      echo 0 > /sys/class/rfkill/rfkill0/state
      echo 1 > /sys/class/rfkill/rfkill0/state
      
      

      加载rtk_hciattach -n -s 115200 ttyS1 rtk_h5 &的时候出现了协议不支持。但是内核已经开启了h5

      f1170d5d-b2ac-44a8-a354-2924d9d93d0d-image.png

      
      root@TinaLinux:/# 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 device 93, Protocol not supported
      Realtek Bluetooth ERROR: Can't initialize device 93, Protocol not supported
      
      

      各位大佬指教一下!!!

      whycan 1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 @shz18877605430 last edited by whycan

        @shz18877605430

        我记得RTL8723DS CTS/RTS其中一条腿要下拉到地,这个有没有做呢?

        S 1 Reply Last reply Reply Quote Share 0
        • S
          shz18877605430 LV 6 @whycan last edited by

          @whycan 我测了的时候已经是拉低了(不上电默认和GND导通的),但是我还是把100k的电阻接上去做下拉了。还是出现这个问题。

          whycan 1 Reply Last reply Reply Quote Share 0
          • whycan
            whycan晕哥 LV 9 @shz18877605430 last edited by

            @shz18877605430
            看下蓝牙使能脚有没有拉高?

            S 2 Replies Last reply Reply Quote Share 0
            • S
              shz18877605430 LV 6 @whycan last edited by

              @whycan 这个蓝牙使能管脚会一直高吗?还是瞬间拉高然后回到低电平?

              1 Reply Last reply Reply Quote Share 0
              • S
                shz18877605430 LV 6 @whycan last edited by

                @whycan 测过了,是拉高的。高电平

                1 Reply Last reply Reply Quote Share 0
                • whycan
                  whycan晕哥 LV 9 last edited by

                  @shz18877605430

                  参考这个: V3s 驱动 RTL8723DS 蓝牙,出了这个问题,请问怎么解决呢

                  1 Reply Last reply Reply Quote Share 0
                  • whycan
                    whycan晕哥 LV 9 last edited by whycan

                    @shz18877605430

                    一定要勾选H5协议:

                    2f59f2d0-4e44-4ba0-8d15-4f59681e51a9-b6db94f5ff75d6db510ebf3c0079167.png

                    4109bef7-ab4c-429f-9975-da53e55893a7-70f9c9757fde601f4c64962f574b834.jpg

                    1 Reply Last reply Reply Quote Share 0
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策