Closed xiliugatech closed 5 hours ago
Quick update: I tried to capture by writing a c++ program to capture image via v4l2. In the program I set gain = 8. However, I noticed the gain seems to bounce back to a certain value and stopped. So looks like there's some internal register (most likely gain_auto 0x0199e205 (bool)) that is controlling the gain and we are not able to program it via v4l2?
Hello
the missing properties are not known by v4l2 by default. Thus we made some udev rules, which add these properties to v4l2. You can follow the article at https://wiki.theimagingsource.com/index.php/Using_USB_2.0_CCD_Cameras_in_Linux, even if it is for using one of our older camera models. The udev file contains the rules for the modern cameras too.
As you can see in your listing, gain is expected to have a range from 0 to 240. I suppose, you will get this range after installing the udev rules. The 0x0199e205 is for gain auto. If gain auto is enabled (true), then it always will override a gain (0x00980913 ) value you try to set.
Stefan
Hi Stefan,
I am using 2 of the Imaging Source Europe GmbH DMK 37AUX290 for my project. Due to software incompatibility we are unable to import the tiscamera to our code base. So I tried to use linux v4l2 to control this camera.
We don't do any fancy things, just manually set the gain and exposure for the camera. I thought that should be pretty easy. However, turns out that using v4l2-ctl --list-ctrls returns:
When I tried to set the gain register using both c++ or v4l2-ctl, it won't allow me to do so. Looks like there's some auto gain setting that prevents manually adjusting the gain settings.
Earlier this year we tried to use the same cameras on another desktop computer but found the programability is much better: v4l2-ctl --list-ctrls returns:
I am curious to know why there's difference between one desktop to another, and whether there's a way to simply use v4l2 to control gain and exposure of the camera. Thanks.