Navigation

    VEYE IMAGING Forum

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

    SOLVED How to set exposure for IMX-287M?

    Raspberry Pi App Software
    2
    6
    1041
    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
      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_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        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

        E 1 Reply Last reply Reply Quote 0
        • E
          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_xumm E 2 Replies Last reply Reply Quote 0
          • veye_xumm
            veye_xumm @etale_cohomology last edited by

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

            1 Reply Last reply Reply Quote 0
            • E
              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_xumm 1 Reply Last reply Reply Quote 0
              • veye_xumm
                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

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