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

    How to set exposure for IMX-287M?

    Scheduled Pinned Locked Moved Raspberry Pi App Software
    6 Posts 2 Posters 3.1k 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.
    • E Offline
      etale_cohomology
      last edited by etale_cohomology

      How do I set the exposure for the IMX-287M?

      I don't find anything about exposure here: https://wiki.veye.cc/index.php/Mv_series_camera_appnotes_4_rpi

      I also tried:

      v4l2-ctl --set-ctrl exposure=10000 -d /dev/v4l-subdev2

      but it says:

      unknown control 'exposure'

      Maybe there's a media-ctl command?

      I'm on the Raspberry Pi 5 on Bookworm with kernel 6.1.0-rpi7-rpi-2712

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

        @etale_cohomology
        We use an i2c script to configure the camera parameters, including exposure mode and settings. Please refer to the following link:
        https://wiki.veye.cc/index.php/Mv_mipi_i2c.sh_user_guide

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

        E 1 Reply Last reply Reply Quote 0
        • E Offline
          etale_cohomology @veye_xumm
          last edited by etale_cohomology

          @veye_xumm

          Thank you for your reply.

          I'm using the files here:

          https://github.com/veyeimaging/mvcam_raspberrypi/tree/392451009cc93cfd56bd3c0096c329e7a429f6f8/mv_tools_rpi

          and, according to the docs, before running mv_mipi_i2c.sh I must run

          ./enable_i2c_vc.sh
          ./camera_i2c_config

          but ./camera_i2c_config is failing with:

          setting GPIO for board revsion: d04170
          Failed: don't know how to set GPIO for this board! Type is 17
          Use i2c-10 for the sensor (-y 10)

          (I'm running a Raspberry Pi 5.)

          I also tried the files here: https://github.com/veyeimaging/raspberrypi_v4l2/tree/c782fc464d76c5ed2a7f8f31df72eaaa51e0dceb/mv_tools_rpi
          but same error.

          veye_xummV E 2 Replies Last reply Reply Quote 0
          • veye_xummV Offline
            veye_xumm @etale_cohomology
            last edited by

            @etale_cohomology
            Sorry for not being clear, v4l2 mode does not need to execute camera_i2c_config

            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
            • E Offline
              etale_cohomology @etale_cohomology
              last edited by etale_cohomology

              @etale_cohomology

              I think something is still missing, because I still can't run ./mv_mipi_i2c.sh successfully.

              For example,

              ./mv_mipi_i2c.sh -r -f manufacturer

              returns

              Manufacturer 0 not recognized

              ./mv_mipi_i2c.sh -r -f model

              returns

              model 0 not recognized


              EDIT

              It turns out you must manually select the I2C bus number (I also enabled I2C on raspi-config). Since I'm using CAM0 on RPI5, the bus is 6. Example:

              ./mv_mipi_i2c.sh -r -f manufacturer -b 6

              This works.

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

                @etale_cohomology said in How to set exposure for IMX-287M?:

                It turns out you must manually select the I2C bus number (I also enabled I2C on raspi-config). Since I'm using CAM0 on RPI5, the bus is 6. Example:
                ./mv_mipi_i2c.sh -r -f manufacturer -b 6
                This works.

                Yes

                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