SOLVED V4L2 driver, missing exposure, gain... controls
-
Hello,
I'm trying to use a Veye 327 E camera connected to a Raspberry PI 4 and the software I'm using needs to set, at least the Exposure configuration.
The missing commands are: V4L2_CID_ANALOGUE_GAIN, V4L2_CID_EXPOSURE, V4L2_CID_DIGITAL_GAIN, V4L2_CID_HFLIP, V4L2_CID_VFLIP and V4L2_CID_VBLANK
In the driver source code at https://github.com/veyeimaging/raspberrypi_v4l2/blob/main/driver_source/cam_drv_src/rpi-5.x_all/veye327.c there are some portions of commented code. I tried to uncomment them and recompile, but there is a missing file called veye327.h with missing constants and values I don't know.
Would it be possible for you to provide that missing file or a bit of guidance so that I can get the driver to work with full functionality. I have C development skills and could manage.
I have also managed to adapt the code of this driver (which has all controls support) https://github.com/54shady/qop_kernel/blob/master/drivers/media/i2c/imx327.c so that it is recognised as your device, but without success.
Also, I tried to mix code between the two files... also, no success.
No success => no image retrieved and/or error messages when setting exposure or other properties...
Best regards,
Paco Ferre
-
@pacoferre
Hi,
VEYE-MIPI-IMX327 is not just a sensor board, it has ISP functions built-in. So you could not treat it as a SENSOR.
So :- You can not use https://github.com/54shady/qop_kernel/blob/master/drivers/media/i2c/imx327.c
to driver VEYE camera module. You can not control the sensor directly. - Functions like V4L2_CID_VBLANK are also meaningless.
I suggest you use this script to configure the parameters. http://wiki.veye.cc/index.php/VEYE-MIPI-290/327_i2c/.
It can realize the functions provided by the V4L2 driver, and provides more functions.If you must implement some functions in the v4l2 driver, you can refer to the code of this script to port the register configuration method to the driver layer.
- You can not use https://github.com/54shady/qop_kernel/blob/master/drivers/media/i2c/imx327.c
-
@veye_xumm
Hello, thanks for the reply,I will do as you say, refer to the code of this script to port the register configuration method to the driver layer.
Best regards,
Paco