Navigation

    全志在线开发者论坛

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

    D1s RTL8723DS 蓝牙起不来,大伙帮我瞅瞅。

    MR Series
    7
    30
    8645
    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.
    • whycan
      whycan晕哥 LV 9 last edited by whycan

      mmexport1642954629086.png

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

        奇怪了,发现以前的开发板蓝牙功能正常。

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

          mmexport1642954738202.png

          对比发现是CTS悬空了。

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

            mmexport1642954848118.png

            用镊子短路CTS到GND就正常。

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

              IMG_20220124_001131.jpg

              飞线

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

                IMG_20220124_001059.jpg

                封印

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

                  mmexport1642954959253.png

                  OK

                  sora1874 1 Reply Last reply Reply Quote Share 1
                  • BedRock
                    BedRock LV 6 last edited by

                    whychan PI 再次拖更👍

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

                      @bedrock
                      这个感觉可以通过软件修复。

                      tigger 1 Reply Last reply Reply Quote Share 0
                      • tigger
                        tigger LV 7 @whycan last edited by

                        @whycan
                        搞A133 碰到一模一样问题,

                        CTS悬空了,飞线到GND就好了,应该串口是没有收到握手信号。

                        1 Reply Last reply Reply Quote Share 0
                        • sora1874
                          sora1874 LV 5 @whycan last edited by

                          @whycan 晕哥,厂家的8723DS的BT的文件发一份呀

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

                            @sora1874
                            您要哪个文件,SDK里面都有了,用find命令查找一下就可以了。

                            sora1874 1 Reply Last reply Reply Quote Share 0
                            • sora1874
                              sora1874 LV 5 @whycan last edited by

                              @whycan 您的tina2.0有RTL8723DS的包?

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

                                @sora1874
                                从别的tina sdk 抽出来的。

                                sora1874 D 2 Replies Last reply Reply Quote Share 0
                                • sora1874
                                  sora1874 LV 5 @whycan last edited by

                                  @whycan ....购买模块时候,模块厂商一般提供的有软件包

                                  1 Reply Last reply Reply Quote Share 0
                                  • D
                                    dyd2022 LV 3 @whycan last edited by

                                    @whycan 大佬请教下我在d1-h上8723ds的wifi能正常使用了,蓝牙和上面日志一样启动不了,蓝牙还需要做哪些配置吗?

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

                                      @dyd2022
                                      蓝牙使能脚有没有拉高?

                                      D 1 Reply Last reply Reply Quote Share 0
                                      • D
                                        dyd2022 LV 3 @whycan last edited by

                                        @whycan 咋看使能脚有没有拉高呀😀

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

                                          @dyd2022
                                          9c9119b1-4b00-4e91-9ef6-ece95c58865f-image.png

                                          834b2655-319a-423f-8b1d-5ae4e2a3ac6b-image.png

                                          这两个手动拉高试一试.

                                          D 2 Replies Last reply Reply Quote Share 0
                                          • D
                                            dyd2022 LV 3 @whycan last edited by

                                            @whycan 这两都是高电平状态

                                            root@TinaLinux:/sys/kernel/debug# cat gpio 
                                            gpiochip0: GPIOs 0-223, parent: platform/2000000.pinctrl, 2000000.pinctrl:
                                             gpio-115 (                    |usb1-vbus           ) out lo 
                                             gpio-116 (                    |otg_det             ) in  hi 
                                             gpio-117 (                    |otg_id              ) in  hi 
                                             gpio-144 (                    |phy-rst             ) out hi 
                                             gpio-166 (                    |cd                  ) in  hi IRQ 
                                             gpio-202 (                    |wlan_hostwake       ) in  hi 
                                             gpio-204 (                    |wlan_regon          ) out hi 
                                             gpio-208 (                    |bt_wake             ) out hi 
                                             gpio-209 (                    |bt_hostwake         ) in  hi 
                                             gpio-210 (                    |bt_rst              ) out hi 
                                            root@TinaLinux:/sys/kernel/debug# 
                                            
                                            1 Reply Last reply Reply Quote Share 0
                                            • D
                                              dyd2022 LV 3 @whycan last edited by

                                              @whycan 这个是bt_test的日志,还是不行

                                              root@TinaLinux:/sys/kernel/debug# bt_test
                                              root@TinaLinux:/sys/kernel/debug# 6457.787326: BTMG[bt_manager_set_enable_default:513]:  enable default profile from bt config.
                                              6457.787589: BTMG[bt_manager_enable:407]:  bt manager version:Version:3.0.1.202110291544,builed time:Oct 29 2021-09:42:35
                                              6457.787634: BTMG[bt_test_status_cb:82]:  bt is turnning on.
                                              [ 5713.070119] sunxi-rfkill soc@3000000:rfkill@0: set block: 1
                                              [ 5713.076703] sunxi-rfkill soc@3000000:rfkill@0: bt power off success
                                              [ 5714.091160] sunxi-rfkill soc@3000000:rfkill@0: set block: 0
                                              [ 5714.107584] sunxi-rfkill soc@3000000:rfkill@0: bt power on success
                                              bring up hci0 failed
                                              6464.182791: BTMG[btmg_device_on:56]:  detect hci0......
                                              6467.183036: BTMG[btmg_device_on:56]:  detect hci0......
                                              6470.183290: BTMG[btmg_device_on:56]:  detect hci0......
                                              6473.183544: BTMG[btmg_device_on:56]:  detect hci0......
                                              6476.183799: BTMG[btmg_device_on:56]:  detect hci0......
                                              6479.184057: BTMG[btmg_device_on:56]:  detect hci0......
                                              6482.184311: BTMG[btmg_device_on:61]:  hci0 device available
                                              6482.184388: BTMG[bt_test_status_cb:65]:  BT is off
                                              6482.184415: BTMG[bt_test_adapter_power_state_cb:49]:  Failed to turn on bt
                                              6482.184442: BTMG[bt_manager_enable:443]:  init HCI device failed!
                                              
                                              whycan 1 Reply Last reply Reply Quote Share 0
                                              • whycan
                                                whycan晕哥 LV 9 @dyd2022 last edited by

                                                @dyd2022

                                                start_hci_attach()
                                                {
                                                        h=`ps | grep "$bt_hciattach" | grep -v grep`
                                                        [ -n "$h" ] && {
                                                                killall "$bt_hciattach"
                                                                sleep 1
                                                        }
                                                
                                                        #8723ds h5 init
                                                        echo 0 > /sys/class/rfkill/rfkill0/state;
                                                        sleep 1
                                                        echo 1 > /sys/class/rfkill/rfkill0/state;
                                                        sleep 1
                                                
                                                        "$bt_hciattach" -n ttyS1 xradio >/dev/null 2>&1 &
                                                        sleep 1
                                                
                                                        wait_hci0_count=0
                                                        while true
                                                        do
                                                                [ -d /sys/class/bluetooth/hci0 ] && break
                                                                sleep 1
                                                                let wait_hci0_count++
                                                                [ $wait_hci0_count -eq 8 ] && {
                                                                        echo "bring up hci0 failed"
                                                                        exit 1
                                                                }
                                                        done
                                                }
                                                

                                                看到bring up hci0 failed没?你一行一行手动执行这个脚本吧,看卡哪里了.

                                                D 2 Replies Last reply Reply Quote Share 0
                                                • D
                                                  dyd2022 LV 3 @whycan last edited by

                                                  @whycan 执行这句报了这个错误:rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5

                                                  root@TinaLinux:/etc/bluetooth# 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 WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
                                                  Realtek Bluetooth ERROR: Retransmission exhausts
                                                  root@TinaLinux:/etc/bluetooth# ^C
                                                  
                                                  1 Reply Last reply Reply Quote Share 0
                                                  • D
                                                    dyd2022 LV 3 @whycan last edited by

                                                    @whycan 上面那个单条执行不对,得连着

                                                    root@TinaLinux:~# cat init.sh 
                                                    #!/bin/sh
                                                    
                                                    #realtek h5 init
                                                    echo 0 > /sys/class/rfkill/rfkill0/state;
                                                    sleep 1
                                                    echo 1 > /sys/class/rfkill/rfkill0/state;
                                                    sleep
                                                    
                                                    rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5  
                                                    

                                                    这次是报了缺协议

                                                    root@TinaLinux:~# sh init.sh 
                                                    [12925.724501] sunxi-rfkill soc@3000000:rfkill@0: set block: 1
                                                    [12925.730762] sunxi-rfkill soc@3000000:rfkill@0: bt power off success
                                                    [12926.745128] sunxi-rfkill soc@3000000:rfkill@0: set block: 0
                                                    [12926.761497] sunxi-rfkill soc@3000000:rfkill@0: bt power on success
                                                    BusyBox v1.27.2 () multi-call binary.
                                                    
                                                    Usage: sleep [N]...
                                                    
                                                    Pause for a time equal to the total of the args given, where each arg can
                                                    have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays
                                                    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
                                                    root@TinaLinux:~# 
                                                    

                                                    我看内核配置里没有支持H5的协议😭

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

                                                      @dyd2022 在 D1s RTL8723DS 蓝牙起不来,大伙帮我瞅瞅。 中说:

                                                      我看内核配置里没有支持H5的协议

                                                      我看着也像。

                                                      1 Reply Last reply Reply Quote Share 0
                                                      • D
                                                        duanzhh LV 5 last edited by

                                                        This post is deleted!
                                                        1 Reply Last reply Reply Quote Share 0
                                                        • D
                                                          duanzhh LV 5 last edited by

                                                          @whycan 晕哥,我使用tina的sdk调试xr829蓝牙时,一直出现这种问题,Initialization timed out.,请教一下这种可以从哪些方面排查问题啊:

                                                          root@TinaLinux:~# hciattach -n ttyS1 xradio 
                                                          xradio_init
                                                          [  808.694093] sunxi-bt soc@03000000:bt@0: set block: 1
                                                          [  808.722163] sunxi-bt soc@03000000:bt@0: set block: 0
                                                          [  808.728553] sunxi-bt soc@03000000:bt@0: current check wlan bt_power voltage: 3300000
                                                          [  808.738131] sunxi-bt soc@03000000:bt@0: current check bt io regulator voltage: 3300000
                                                          [  808.777636] [XR_BT_LPM] bluedroid_write_proc_btwake: bluedroid_write_proc_btwake 1
                                                          [  808.786177] [XR_BT_LPM] bluedroid_write_proc_btwake: wakeup bt device
                                                          [  808.793647] [XR_BT_LPM] bluedroid_write_proc_lpm: disable lpm mode
                                                          set LPM mode:disabled[userial_sync] uart sync count: 1.
                                                          [userial_sync] read buf: 00 00.
                                                          [userial_sync] uart sync count: 2.
                                                          [userial_sync] read buf: 4f 4b.
                                                          [userial_sync] Receive OK, uart sync done.
                                                          Set uart mode done
                                                          [userial_sync] uart sync count: 1.
                                                          [userial_sync] read buf: 00 00.
                                                          [userial_sync] uart sync count: 2.
                                                          [userial_sync] read buf: 4f 4b.
                                                          [userial_sync] Receive OK, uart sync done.
                                                          [load_btfirmware] start loading firmware...
                                                          [load_btfirmware] open firmware file success. loading...
                                                          load firmware done.
                                                          jump:
                                                          set pc 0, val 0
                                                          Now the system will jump to 00000000
                                                          Set HW FlowControl On
                                                          userial_vendor_set_hw_fctrl set hw flowcontrol on
                                                          [xradio_init] send reset cmd...
                                                          writing
                                                          01 03 0c 00 
                                                          Initialization timed out.
                                                          
                                                          D 1 Reply Last reply Reply Quote Share 0
                                                          • D
                                                            duanzhh LV 5 @duanzhh last edited by

                                                            @duanzhh 找到原因了,mad,智障自己,流控打开又给自己在system_config.fex里面关闭了

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

                                                              @dyd2022 在 D1s RTL8723DS 蓝牙起不来,大伙帮我瞅瞅。 中说:

                                                              我看内核配置里没有支持H5的协议

                                                              一定要勾选H5协议:

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

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

                                                              1 Reply Last reply Reply Quote Share 0
                                                              • S
                                                                sagfa LV 2 last edited by

                                                                @whycan 在 D1s RTL8723DS 蓝牙起不来,大伙帮我瞅瞅。 中说:

                                                                勾选H5协议
                                                                你好,请教一下,如果不使用流控,那么CTS 和RTS应该保持什么状态,悬空还是接地?会影响蓝牙功能吗?

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

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

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