Navigation

    VEYE IMAGING Forum

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

    SOLVED V4L2 driver, missing exposure, gain... controls

    Raspberry Pi App Software
    2
    3
    529
    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.
    • P
      pacoferre last edited by

      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

      veye_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        veye_xumm @pacoferre last edited by

        @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 :

        1. 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.
        2. 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.

        P 1 Reply Last reply Reply Quote 0
        • P
          pacoferre @veye_xumm last edited by

          @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

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