VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    相机运行一段时间后出现阻塞

    Scheduled Pinned Locked Moved VEYE MIPI camera
    15 Posts 2 Posters 5.5k Views 1 Watching
    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.
    • L Offline
      lin @veye_xumm
      last edited by

      @veye_xumm 3c21af37-4d3c-43e5-a88d-d7ef5c68fb56-image.png 重复采集图像到一定次数后,阻塞了,然后我结束程序用官方示例执行也是阻塞的?
      我在采集图像中添加了select 报错select timeout,并且执行打印信息到333,后面就阻塞了,没有打印444
      143f44dd-499d-4b23-b637-016d17fca479-image.png
      cf7bfffa-c51c-45d2-a596-76dba847145e-image.png

      veye_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @lin
        last edited by

        @lin
        0234这个相机的图像是传感器直接输出,应该不是硬件的问题。初步我怀疑还是软件驱动的问题或者是你移植出来的。
        你这样测试一下:
        系统重新上电,然后执行这个命令,长期跑跑,看看会不会卡死。

        v4l2-ctl -d /dev/video[yournodeindex] --set-fmt-video=width=1920,height=1200,pixelformat=GREY --stream-mmap --stream-count=-1 --stream-to=/dev/null
        

        如果卡死了,用另一个终端登录系统,执行dmesg看看有什么报错没有?

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          lin @veye_xumm
          last edited by

          @veye_xumm 现在执行这个命令五个小时左右,没有出现中断现象,但是我运行自己写的还是报错select timeout 从而导致执行到这个函数报错,可能是什么原因?23712eaa-a21e-4648-83ce-fc2fbd35235a-image.png
          dmesg 内核打印信息:
          40d0b3c6-358d-4ce6-836e-b6aa0b4b0fe4-image.png

          veye_xummV 1 Reply Last reply Reply Quote 0
          • veye_xummV Offline
            veye_xumm @lin
            last edited by

            @lin
            你可以参考一下这个程序的代码,尤其是内存使用相关的内容。

            git clone git://git.ideasonboard.org/yavta.git
            

            Questions will be answered as soon as possible, please be patient.
            如果你使用中文,请直接用中文提问。
            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              lin @veye_xumm
              last edited by

              @veye_xumm 请问,内核打印这个信息,可能是什么原因rkisp0-vir2: rkisp_stream_stop id:1 timeout
              当相机节点select timeout时,我让他重新重新初始化打开设备好像也是不行的?

              L veye_xummV 2 Replies Last reply Reply Quote 0
              • L Offline
                lin @lin
                last edited by

                @lin 如果相机设置为硬触发,但是由于线程运行速度的影响导致没有接收到硬触发信号,会不会导致上面描述的现象?

                1 Reply Last reply Reply Quote 0
                • veye_xummV Offline
                  veye_xumm @lin
                  last edited by

                  @lin

                  @lin said in 相机运行一段时间后出现阻塞:

                  请问,内核打印这个信息,可能是什么原因rkisp0-vir2: rkisp_stream_stop id:1 timeout
                  当相机节点select timeout时,我让他重新重新初始化打开设备好像也是不行的?

                  这个rkisp的驱动代码是rockchip原厂写的。其逻辑我不是特别清楚。

                  @lin said in 相机运行一段时间后出现阻塞:

                  如果相机设置为硬触发,但是由于线程运行速度的影响导致没有接收到硬触发信号,会不会导致上面描述的现象?

                  不会的。应该还是buffer使用的问题。

                  Questions will be answered as soon as possible, please be patient.
                  如果你使用中文,请直接用中文提问。
                  May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    lin @veye_xumm
                    last edited by

                    @veye_xumm 但是我用流模式调用我写的代码没有出现阻塞

                    veye_xummV 1 Reply Last reply Reply Quote 0
                    • veye_xummV Offline
                      veye_xumm @lin
                      last edited by

                      @lin 相机本身触发信号出图和流模式出图,对你的程序接收图像而言,没有区别啊! 你的系统架构是怎样的最好一次说清楚。

                      Questions will be answered as soon as possible, please be patient.
                      如果你使用中文,请直接用中文提问。
                      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        lin @veye_xumm
                        last edited by

                        @veye_xumm 我是外部触发相机的,通过外部dlp每秒触发40次,开两个线程两个相机分别采集20张图像数据

                        veye_xummV 1 Reply Last reply Reply Quote 0
                        • veye_xummV Offline
                          veye_xumm @lin
                          last edited by

                          @lin 相机触发模式出图和流模式出图,对你的程序接收图像而言,没有区别啊!

                          Questions will be answered as soon as possible, please be patient.
                          如果你使用中文,请直接用中文提问。
                          May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post