• Register
    • Login
    • Search
    • Recent
    • Wiki
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop

    20230105-ubuntu-20.04-preinstalled-desktop-arm64,支持从1个USB-hub 2.0同时读取2个摄像头图像吗

    Ubuntu
    2
    11
    459
    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.
    • B
      bbsvs2000 last edited by

      大佬,4b的一个usb口,外接了1个usb-hub(usb-hub已单独外接电源+5V供电) 。

      这个usb-hub上,再外接了2个摄像头,目前的情况是opencv可以发现2个ID号。

      但无法同时打开、读取这2个摄像头的图像。即使通过opencv调用函数时,capture设置降低帧率、帧大小,还是无法同时打开两个摄像头。

      这是什么情况哈?

      B 1 Reply Last reply Reply Quote 0
      • B
        bbsvs2000 @bbsvs2000 last edited by

        @bbsvs2000

        很多usb外设备,还是得需要使用usb-hub扩展接口。

        大法师 1 Reply Last reply Reply Quote 0
        • 大法师
          大法师 @bbsvs2000 last edited by

          @bbsvs2000

          提供以下命令输出

          lsusb
          lsusb -t
          dmesg
          

          用自带相机能打开几个摄像头

          jack@cool-pi.com

          B 2 Replies Last reply Reply Quote 0
          • B
            bbsvs2000 @大法师 last edited by

            @大法师 dmesg

            1 Reply Last reply Reply Quote 0
            • B
              bbsvs2000 @大法师 last edited by

              @大法师 未带micro -hdmi的转接线。还没法子看自带相机能看几个摄像头。

              大法师 1 Reply Last reply Reply Quote 0
              • 大法师
                大法师 @bbsvs2000 last edited by

                @bbsvs2000

                看log有部分错误信息。将外挂的usb-hub接到蓝色USB3端口试试

                [  313.897060] usb 5-1: Product: USB2.0 Hub
                [  313.949139] hub 5-1:1.0: USB hub found
                [  313.949386] hub 5-1:1.0: 4 ports detected
                [  314.228959] usb 5-1.1: new full-speed USB device number 39 using xhci-hcd
                [  314.302370] usb 5-1.1: device descriptor read/64, error -32
                [  314.485667] usb 5-1.1: device descriptor read/64, error -32
                [  314.555768] usb 5-1: USB disconnect, device number 38
                

                jack@cool-pi.com

                B 1 Reply Last reply Reply Quote 0
                • B
                  bbsvs2000 @大法师 last edited by

                  @大法师 目前外挂的usb-hub是接在蓝色的上面,做的测试的。

                  大法师 1 Reply Last reply Reply Quote 0
                  • 大法师
                    大法师 @bbsvs2000 last edited by 大法师

                    @bbsvs2000 usb-hub电源适配器拍照看下。另外摄像头直接连接主板也试下功能是不是正常的

                    jack@cool-pi.com

                    B 2 Replies Last reply Reply Quote 0
                    • B
                      bbsvs2000 @大法师 last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • B
                        bbsvs2000 @大法师 last edited by

                        @大法师
                        2个摄像头,每一个分别直接接上USB3.0是可以的同时打开的。
                        2个摄像头,每一个分别直接接上USB2.0是没办法同时打开的。
                        USB-hub电源适配器是单独的芯片供电。

                        微信图片_20230116135052.jpg

                        大法师 1 Reply Last reply Reply Quote 0
                        • 大法师
                          大法师 @bbsvs2000 last edited by 大法师

                          @bbsvs2000
                          禁用rkisp、cif、csi
                          rk3588s-cp4.dtb

                          用于加载/boot/firmware/wifi.txt
                          wifi_precfg

                          sudo cp rk3588s-cp4.dtb /boot/firmware/rk3588s-cp4.dtb
                          
                          sudo cp wifi_precfg /usr/sbin/
                          
                          sudo chmod a+x /usr/sbin/wifi_precfg
                          
                          sudo reboot
                          

                          jack@cool-pi.com

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