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

    SC130M搭配RK3588不出图

    Scheduled Pinned Locked Moved VEYE MIPI camera
    26 Posts 3 Posters 11.0k 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.
    • M Offline
      m4416202
      last edited by

      纠正下dmeg的截图,这个目前设备树对应的dmsegdm.PNG

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

        @m4416202
        现在表明你的i2c是通了,也能正常创建/dev/video节点。

        1. 你测试图像,不要直接尝试去预览。参考我们这个链接,尝试取图,保存图。
          https://wiki.veye.cc/index.php/MV_Camera_on_Firfly_Boards/zh#.E5.B8.A7.E7.8E.87.E7.BB.9F.E8.AE.A1
        2. 我印象中sditf这个节点是disable掉的,因为我们的mv系列产品输出raw数据,不需要启用3588里面的isp。建议你参考这个链接中我们在rk3588上的dts源码。
          ff72b625-63cf-41f4-a55c-4a9b2c0a2cdd-image.png

        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.)

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          m4416202 @veye_xumm
          last edited by

          @veye_xumm 不对吧,如果是RAW数据的sesor,3588需要开启ISP,如果是YUV的sensor,3588的才不需要ISP吧。目前把设备树清空了,重新只配置,只有一个sensor的dtsi,发现的新的错误,运行出图程序时,串口一直打印错误。 我们今天也会尝试下关闭ISP测试看看

          dmsg.PNG
          csi2 err.PNG

          veye_xummV 1 Reply Last reply Reply Quote 0
          • M Offline
            m4416202
            last edited by m4416202

            上述对应新的设备树问题
            f1ac8371-ae37-4fec-a489-6cf7d6fd83ae-image.png
            f3c02da1-cb91-4915-b5de-d0f4bff37167-image.png
            19055d49-5d5a-4ac1-bb5c-824d11c25c33-image.png
            da2a2cf6-57a5-45f9-b627-bc4e2affb94a-image.png
            3b215dc3-a1c1-4c4a-a951-0842da6a7ebe-image.png

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

              @m4416202 said in SC130M搭配RK3588不出图:

              不对吧,如果是RAW数据的sesor,3588需要开启ISP,如果是YUV的sensor,3588的才不需要ISP吧。

              这款产品是机器视觉类的产品,不做ISP即可。 你先按照我的思路调通,如果自己想研究rockchip的isp你自己再搞。

              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.)

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                m4416202 @veye_xumm
                last edited by

                @veye_xumm 我刚刚屏蔽了ISP试了下,还是会报错
                a7994c2d-62f5-4399-aa10-d70bfdfe23c3-image.png
                118d580f-8828-4cfa-8c08-cd55a93da87d-image.png

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

                  有可能是:
                  vicap模块缺少数据类型的支持。Y10 和Y12都不支持。
                  参考一下下面的代码,手动增加一下数据格式。
                  kernel\drivers\media\platform\rockchip\cif\capture.c
                  capture.c.txt

                  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.)

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    m4416202 @veye_xumm
                    last edited by

                    @veye_xumm 我们对比了下这个文件,发现原来的文件缺少很多东西,我们尝试增加进去修改下看看

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

                      @m4416202 只把与数据格式相关的地方加进去即可。

                      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.)

                      M 乔 2 Replies Last reply Reply Quote 0
                      • M Offline
                        m4416202 @veye_xumm
                        last edited by

                        @veye_xumm 您好,我们现在出图了。raw格式就这个样子吗?目前只是参照您给的capture.c增加了y8和y12两种数据格式(增加了2个case的代码)。还需要修改其他的吗?
                        5bc6ca12-21ab-4f80-a495-342fd362d2cd-image.png

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

                          @m4416202 看起来像是数据格式认知错误。 SC130M是黑白的。
                          你看一下我们的wiki文档上,按照步骤抓一下raw8数据看看。

                          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.)

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            m4416202 @veye_xumm
                            last edited by

                            @veye_xumm wiki文档是指How to use MV and RAW series cameras on Firefly's board.md这篇吗?

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

                              @m4416202 是的。

                              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
                              • M Offline
                                m4416202
                                last edited by

                                运行抓图指令,看到了“<<<<<”,应该是抓图成功。但是生成的文件却是0KB。2.png

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

                                  @m4416202 在有的厂家的固件上我们遇到过这个问题。应该是v4l2-ctl工具的问题。
                                  你试试用我们文档上提到的yavta工具试试。

                                  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.)

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    m4416202 @veye_xumm
                                    last edited by

                                    @veye_xumm 这个是用yavta工具生成的RAW文件,这个RAW文件好像打不开,您那用什么软件打开的?

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

                                      @m4416202 看part6.5

                                      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.)

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        m4416202 @veye_xumm
                                        last edited by

                                        @veye_xumm 生成的图像还是绿底的
                                        cf6e591c-fde6-4156-a160-2378877bf1bd-image.png

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

                                          @veye_xumm !E2DA8C03-20AA-48ED-A669-4242A9088FAA.jpeg 目前只增加了605、612行的两个case,请问这是您说的跟格式有关的部分吗?还需要修改其他地方吗

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

                                            @m4416202
                                            你为啥把图像理解成UYVY格式呢?是不是看错文章了啊?
                                            看一下part7.4.4. https://wiki.veye.cc/index.php/MV_Camera_on_Firfly_Boards/zh#.E6.B5.81.E6.A8.A1.E5.BC.8F
                                            uyvy是彩色数据格式,SC130M是黑白的啊。

                                            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.)

                                            M 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