SOLVED How to set exposure for IMX-287M?
-
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
-
@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 -
Thank you for your reply.
I'm using the files here:
and, according to the docs, before running mv_mipi_i2c.sh I must run
./enable_i2c_vc.sh
./camera_i2c_configbut ./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. -
@etale_cohomology
Sorry for not being clear, v4l2 mode does not need to execute camera_i2c_config -
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.
-
@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