Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    SOLVED jetson nano 2GB无法识别相机 MV-MIPI-IMX264M

    Jetson App Software
    2
    39
    5354
    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.
    • H
      hmj @veye_xumm last edited by hmj

      @veye_xumm
      我现在又遇到一个问题,如果我把相机曝光设置为10000(2432*2048), 查询GET_FPS,帧率大约为38.84,那么帧周期为27902, 在此基础上用硬触发(周期为28000的脉冲,其中高电平维持10000,站空比为5:7)去拍, 比如发送10个脉冲, 那么只能收到5图,如果把触发周期改成34000以上, 那么10图都能接受到.

      我现在需要保证相机尽量快速取图,哪边还需要再配置才能获地高速?

      veye_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        veye_xumm @hmj last edited by

        @hmj 按照https://wiki.veye.cc/index.php/Mv_mipi_camera_manual/zh part2.4.3的描述,你的诉求应该是没有问题的。
        你先参考这个链接,升级一下固件:https://wiki.veye.cc/index.php/Mvcam_firmware_update_manual
        然后再做一下测试试试。

        H 1 Reply Last reply Reply Quote 0
        • H
          hmj @veye_xumm last edited by

          @veye_xumm

          ./mv_mipi_i2c.sh -r -f version
          version is C 01.34 and L 02.00
          貌似已经是最新固件,与网站上6月5日是同一版, 无需再升级

          veye_xumm 1 Reply Last reply Reply Quote 0
          • veye_xumm
            veye_xumm @hmj last edited by

            @hmj https://wiki.veye.cc/index.php/Mv_mipi_i2c.sh_user_guide
            参考这个页面,把trigger相关的参数读出来一下,发给我看看。
            trgnum
            trginterval
            trgdelay
            trgedge
            trgfilter_enable
            trgfilter_time
            trgexp_delay
            trgcount

            H 1 Reply Last reply Reply Quote 0
            • H
              hmj @veye_xumm last edited by

              @veye_xumm said in jetson nano 2GB无法识别相机 MV-MIPI-IMX264M:

              trgcount

              pt@dpt-desktop:./mv_mipi_i2c.sh -r -f version
              version is C 01.34 and L 02.00
              dpt@dpt-desktop: ./mv_mipi_i2c.sh -r -f trgnum
              r trigger num is 1
              dpt@dpt-desktop: ./mv_mipi_i2c.sh -r -f trginterval
              r trginterval is 0
              dpt@dpt-desktop:./mv_mipi_i2c.sh -r -f trgdelay
              r trgdelay is 0
              dpt@dpt-desktop:./mv_mipi_i2c.sh -r -f trgedge
              r trg edge is 0
              dpt@dpt-desktop: ./mv_mipi_i2c.sh -r -f trgfilter_enable
              r trgfilter enable is 0
              dpt@dpt-desktop: ./mv_mipi_i2c.sh -r -f trgfilter_time
              r trgfilter time is 1 us
              dpt@dpt-desktop:./mv_mipi_i2c.sh -r -f trgexp_delay
              r trigger exposure delay is 0 us
              dpt@dpt-desktop:./mv_mipi_i2c.sh -r -f trgcount
              r trigger count 156, trigger lost 0

              veye_xumm 1 Reply Last reply Reply Quote 0
              • veye_xumm
                veye_xumm @hmj last edited by

                @hmj 你现在读取一下fps和maxfps,分别是多少?

                H 2 Replies Last reply Reply Quote 0
                • H
                  hmj @veye_xumm last edited by

                  @veye_xumm
                  ./mv_mipi_i2c.sh -r -f maxfps
                  r maxfps @ current setting is 35.84 fps
                  ./mv_mipi_i2c.sh -r -f fps
                  r fps is 30.00 fps

                  veye_xumm 1 Reply Last reply Reply Quote 0
                  • veye_xumm
                    veye_xumm @hmj last edited by

                    @hmj
                    这是问题所在了。
                    虽然是触发模式,但是实际生效的帧率还是fps这个参数,maxfps永远只是最大能力的一个提示而已。
                    那么你之前

                    @hmj said in jetson nano 2GB无法识别相机 MV-MIPI-IMX264M:

                    查询GET_FPS,帧率大约为38.84,那么帧周期为27902,

                    这个地方的帧周期计算,应该使用fps来算。 这个fps不仅影响着camera真正的运作时序,也影响着最大可设的曝光时间。
                    建议你:

                    ./mv_mipi_i2c.sh -w -f fps -p1 40 -b [bus]
                    ./mv_mipi_i2c.sh -r -f fps -b [bus]
                    

                    这样,就把相机设置到了当前roi下最大帧率。
                    应该就没问题了。

                    H 1 Reply Last reply Reply Quote 0
                    • H
                      hmj @veye_xumm last edited by

                      @veye_xumm
                      感谢,问题解决~

                      veye_xumm 1 Reply Last reply Reply Quote 0
                      • veye_xumm
                        veye_xumm @hmj last edited by

                        @hmj 不客气

                        1 Reply Last reply Reply Quote 0
                        • H
                          hmj @veye_xumm last edited by

                          @veye_xumm
                          我们现在基本测试已经通过,现在有个棘手的问题,由于jetson nano的mipi驱动在kernel image中,我目前的做法是直接替换官方的.

                          我们目前项目中添加了许多其他功能, 因此修改了内核的许多地方.所以为了替换之前的老相机,必须拿到你们kenrel源码和DTS, 再整合进我们目前的内核中,才能无缝完成项目的迁移.

                          veye_xumm 1 Reply Last reply Reply Quote 0
                          • veye_xumm
                            veye_xumm @hmj last edited by

                            @hmj 请参考下面这个链接
                            https://wiki.veye.cc/index.php/VEYE_CS_Camera_source_for_Jetson/zh

                            H 1 Reply Last reply Reply Quote 0
                            • H
                              hmj @veye_xumm last edited by

                              @veye_xumm
                              相机有没有调节对比度的api, 我们目前发现图片在拍黑白图案(相机标定)时候,图片质量没有国外相机明显.

                              veye_xumm 1 Reply Last reply Reply Quote 0
                              • veye_xumm
                                veye_xumm @hmj last edited by

                                @hmj 您可以通过调节gamma,或者自定义lut曲线达到这种高对比度效果。

                                H 1 Reply Last reply Reply Quote 0
                                • H
                                  hmj @veye_xumm last edited by hmj

                                  @veye_xumm said in jetson nano 2GB无法识别相机 MV-MIPI-IMX264M:

                                  gamma

                                  gamma设置不需要对相机做关闭操作吧,只要在不拍照的时刻进行配置即可?
                                  lut的文件,请问这个文件怎么 修改

                                  veye_xumm 1 Reply Last reply Reply Quote 0
                                  • veye_xumm
                                    veye_xumm @hmj last edited by

                                    @hmj
                                    gamma随时可配。
                                    lut适用于比较专业的客户特殊要求场景下,你可以先试试gamma。

                                    H 1 Reply Last reply Reply Quote 0
                                    • H
                                      hmj @veye_xumm last edited by

                                      @veye_xumm
                                      我们买的一款相机现在不出图了,排除了其他原因,应该和相机相关. 从dmesg中可以看到如下log

                                      [ 33.578643] mvcam 7-003b: camera_common_mclk_enable: no device power rail
                                      [ 34.087223] mvcam 7-003b: camera_common_mclk_disable: no device power rail
                                      [ 34.094119] mvcam 8-003b: camera_common_mclk_enable: no device power rail
                                      [ 34.602642] mvcam 8-003b: camera_common_mclk_disable: no device power rail
                                      [ 34.609562] mvcam 7-003b: camera_common_mclk_enable: no device power rail

                                      这是啥问题?

                                      veye_xumm 1 Reply Last reply Reply Quote 0
                                      • veye_xumm
                                        veye_xumm @hmj last edited by

                                        @hmj
                                        这个提示是没有关系的。不影响。
                                        你查看一下配置,是否配置为触发模式了?
                                        可以尝试恢复一下出厂默认值试试,factoryparam

                                        H 1 Reply Last reply Reply Quote 0
                                        • H
                                          hmj @veye_xumm last edited by

                                          @veye_xumm
                                          问题是程序没改动过, 以前二个月里都没动过,也能跑出图,就昨天开始就不行了
                                          触发模式一直是外触发, 外触发信号也是合乎要求.
                                          相机设置应该也是断电不保存的.

                                          出厂值后,出现如下错误
                                          [ 57.016386] mvcam 7-003b: camera_common_mclk_enable: no device power rail
                                          [ 57.525021] mvcam 7-003b: camera_common_mclk_disable: no device power rail
                                          [ 57.531930] mvcam 8-003b: camera_common_mclk_enable: no device power rail
                                          [ 58.040414] mvcam 8-003b: camera_common_mclk_disable: no device power rail
                                          [ 58.047311] mvcam 7-003b: camera_common_mclk_enable: no device power rail
                                          [ 58.555198] mvcam 7-003b: csi2_try format
                                          [ 58.555205] mvcam 7-003b: mvcam_csi2_get_fmt_idx_by_code success
                                          [ 58.613896] video4linux video0: tegra_channel_s_ctrl: 10100856 set vi timeout disable 1

                                          veye_xumm 1 Reply Last reply Reply Quote 0
                                          • veye_xumm
                                            veye_xumm @hmj last edited by

                                            @hmj

                                            @hmj said in jetson nano 2GB无法识别相机 MV-MIPI-IMX264M:

                                            出厂值后,出现如下错误
                                            [ 57.016386] mvcam 7-003b: camera_common_mclk_enable: no device power rail
                                            [ 57.525021] mvcam 7-003b: camera_common_mclk_disable: no device power rail
                                            [ 57.531930] mvcam 8-003b: camera_common_mclk_enable: no device power rail
                                            [ 58.040414] mvcam 8-003b: camera_common_mclk_disable: no device power rail
                                            [ 58.047311] mvcam 7-003b: camera_common_mclk_enable: no device power rail
                                            [ 58.555198] mvcam 7-003b: csi2_try format
                                            [ 58.555205] mvcam 7-003b: mvcam_csi2_get_fmt_idx_by_code success
                                            [ 58.613896] video4linux video0: tegra_channel_s_ctrl: 10100856 set vi timeout disable 1

                                            看起来这个没有错误。 不过你的程序好像给配置成了触发模式。
                                            相机的参数是可以保存的,只要你通过脚本调用一下paramsave。
                                            我的建议是你把摄像头恢复默认值——这样也就恢复为了图像流模式。
                                            不要运行你的现在的程序——配置为触发啊之类的。
                                            然后用qv4l2程序来取图看看。

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