Line 1: |
Line 1: |
| [[VEYE-MIPI-290/327 i2c/zh|查看中文]] | | [[VEYE-MIPI-290/327 i2c/zh|查看中文]] |
| | | |
− | [[VEYE-MIPI-290/327 i2c/|<big><big><big><big>VEYE-MIPI-290/327 I2C.sh user guide</big></big></big></big>]] | + | [[VEYE-MIPI-290/327 i2c/|<big><big><big><big>VEYE-MIPI-X I2C.sh user guide</big></big></big></big>]] |
| | | |
| ===Overview=== | | ===Overview=== |
Line 34: |
Line 34: |
| |1 | | |1 |
| |CAM1 | | |CAM1 |
− | |}<br /> | + | |} |
| ===veye_mipi_i2c.sh USAGE=== | | ===veye_mipi_i2c.sh USAGE=== |
| ./veye_mipi_i2c.sh | | ./veye_mipi_i2c.sh |
| | | |
− | Usage: ./veye_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -b bus | + | Usage: ./veye_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -b bus -d i2caddr |
| | | |
| options: | | options: |
Line 54: |
Line 54: |
| -b [i2c bus num] i2c bus number | | -b [i2c bus num] i2c bus number |
| | | |
− | support functions: devid,hdver,wdrmode,videoformat,mirrormode,denoise,agc,lowlight,daynightmode,ircutdir,irtriggerhutter
| + | -d [i2c addr] i2c device address |
− | | + | === i2c bus number on different board === |
− | cameramode, nodf, capture, csienable,saturation,wdrbtargetbr,wdrtargetbr, brightness ,contrast , sharppen, aespeed,lsc,boardmodel,yuvseq,i2cauxenable,i2cwen
| + | Please refer to the following article to determine which -b parameter you need to use. |
| | | |
− | Pi3B / Pi3B+ / 3A / 4B(1G/2G/4G),we use i2c0
| + | [[I2c bus number and video node|i2c bus number on different boards]] |
| | | |
− | Compute Module/ CM3,we use i2c1,please add '''-b 1''' option.
| + | === Functions list === |
| | | |
| =====devid===== | | =====devid===== |
Line 69: |
Line 69: |
| |- | | |- |
| |0x06 | | |0x06 |
− | |VEYE-MIPI-290/327 | + | |VEYE-MIPI-X series,IMX327 IMX462 IMX385 |
| |} | | |} |
| =====hdver===== | | =====hdver===== |
Line 80: |
Line 80: |
| |Version | | |Version |
| |} | | |} |
| + | The isp fireware release time will also be printed. |
| + | |
| + | ===== sensorid ===== |
| + | <code>./veye_mipi_i2c.sh -r -f sensorid</code> |
| + | |
| + | Print sensor type and board information. |
| + | |
| =====wdrmode===== | | =====wdrmode===== |
| <code>./veye_mipi_i2c.sh -r -f wdrmode | | <code>./veye_mipi_i2c.sh -r -f wdrmode |
Line 194: |
Line 201: |
| ./veye_mipi_i2c.sh -w -f agc -p1 [value]</code> | | ./veye_mipi_i2c.sh -w -f agc -p1 [value]</code> |
| agc indicated max gain of AE mode. | | agc indicated max gain of AE mode. |
| + | |
| + | Agc stands for auto gain control. It is a part of auto exposure, in different light intensity, will try to adjust the gain of sensor to achieve the same image brightness. 0xC by default. |
| {| class="wikitable" | | {| class="wikitable" |
| !value | | !value |
Line 205: |
Line 214: |
| ./veye_mipi_i2c.sh -w -f lowlight -p1 [value]</code> | | ./veye_mipi_i2c.sh -w -f lowlight -p1 [value]</code> |
| In the case of low illuminance, the camera module can prolong the exposure time and reduce the frame rate by configuring this parameter to achieve a better effect of low illuminance. | | In the case of low illuminance, the camera module can prolong the exposure time and reduce the frame rate by configuring this parameter to achieve a better effect of low illuminance. |
| + | |
| + | Note that the set value is the minimum frame rate value and the actual frame rate value is affected by the automatic exposure algorithm. |
| | | |
| Note that it is not suitable for use in a sports scene. | | Note that it is not suitable for use in a sports scene. |
| {| class="wikitable" | | {| class="wikitable" |
| !value | | !value |
− | !description | + | !minimum fps |
| |- | | |- |
| |0x01 | | |0x01 |
Line 271: |
Line 282: |
| *Trigger Mode | | *Trigger Mode |
| | | |
− | Trigger pin : [[VEYE-MIPI-290/327|J3 pin1]]. | + | Trigger pin : [[VEYE-MIPI-290/327|J3 pin1 of VEYE-MIPI-327]] or [[VEYE-MIPI-IMX327S Data Sheet|J2 pin1 of VEYE-MIPI-IMX327S]]. |
| | | |
| Trigger pin High(3.3~12V),Image is Black&White Mode and IR-CUT status '''Deliver''' infrared. | | Trigger pin High(3.3~12V),Image is Black&White Mode and IR-CUT status '''Deliver''' infrared. |
Line 277: |
Line 288: |
| Trigger pin Low(GND),Image is Color Mode and IR-CUT status '''Bolck''' infrared. | | Trigger pin Low(GND),Image is Color Mode and IR-CUT status '''Bolck''' infrared. |
| | | |
| + | ===== ircutdir ===== |
| + | <code>./veye_mipi_i2c.sh -r -f ircutdir</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f ircutdir -p1 [value]</code> |
| + | |
| + | IR_CUT pins control direction. value could be 0 or 1. |
| + | =====irtrigger===== |
| + | <code>./veye_mipi_i2c.sh -r -f irtrigger</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f irtrigger -p1 [value]</code> |
| + | |
| + | Polarity setting of the day/night switching external trigger mode pin. |
| + | {| class="wikitable" |
| + | ! value |
| + | !description |
| + | |- |
| + | |0x0 |
| + | |default value,refer to datasheet of different boards. |
| + | |- |
| + | |0x1 |
| + | |Reversed. |
| + | |} |
| =====mshutter===== | | =====mshutter===== |
− | close AE, use manual shutter
| + | Automatic exposure, manual exposure mode selection and configuration. |
| | | |
| <code>./veye_mipi_i2c.sh -r -f mshutter</code> | | <code>./veye_mipi_i2c.sh -r -f mshutter</code> |
Line 454: |
Line 487: |
| |0x0 | | |0x0 |
| | sharppen disable | | | sharppen disable |
| + | |- |
| + | |0x1 |
| + | | sharppen enable |
| + | |}default: 0x1 |
| + | |
| + | param2: sharppen strength, range [0x0-0xA] |
| + | =====wdrsharppen===== |
| + | <code>./veye_mipi_i2c.sh -r -f wdrsharppen</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f wdrsharppen -p1 [val1] -p2 [value]</code> |
| + | |
| + | sharppeness setting on DOL WDR mode. |
| + | {| class="wikitable" |
| + | ! param1 value |
| + | !description |
| + | |- |
| + | |0x0 |
| + | |sharppen disable |
| |- | | |- |
| |0x1 | | |0x1 |
Line 524: |
Line 575: |
| <code>./veye_mipi_i2c.sh -r -f mwbgain</code> | | <code>./veye_mipi_i2c.sh -r -f mwbgain</code> |
| | | |
− | <code>./veye_mipi_i2c.sh -w -f wbmode -p1 [rgain] -p2 [bgain]</code> | + | <code>./veye_mipi_i2c.sh -w -f mwbgain -p1 [rgain] -p2 [bgain]</code> |
| | | |
| Rgain and Bgain setting in manual white balance mode.arameter range [0,0xFF]. | | Rgain and Bgain setting in manual white balance mode.arameter range [0,0xFF]. |
Line 537: |
Line 588: |
| | | |
| Note: only supported on hdver >= 0x4 | | Note: only supported on hdver >= 0x4 |
| + | |
| + | === New function list === |
| + | The following new features are only supported in camera's firmware versions with ''release time'' later than 2022-11-22. |
| + | |
| + | ===== paramsave ===== |
| + | <code>./veye_mipi_i2c.sh -w -f paramsave</code> |
| + | |
| + | Save isp-related parameters to flash. |
| + | |
| + | ===== new_expmode ===== |
| + | <code>./veye_mipi_i2c.sh -r -f new_expmode</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f new_expmode -p1 [0/1]</code> |
| + | |
| + | Whether the new version of manual exposure is enabled. |
| + | |
| + | If the new version manual exposure is enabled, then: |
| + | |
| + | # The original ''mshutter'' command is no longer in effect, ''new_mshutter'' takes effect. |
| + | # gain (agc) from automatic mode also changed to manual mode, ''new_mgain'' takes effect. |
| + | |
| + | ===== new_mshutter ===== |
| + | <code>./veye_mipi_i2c.sh -r -f new_mshutter</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f new_mshutter -p1 1000</code> |
| + | |
| + | New version of manual exposure time configuration, in us in the range [1,1000000]. |
| + | |
| + | Since the sensor can not support accurate exposure time of 1us, it is recommended to read it for confirmation after configuration. |
| + | |
| + | ===== new_mgain ===== |
| + | <code>./veye_mipi_i2c.sh -r -f new_mgain</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f new_mgain -p1 2.1</code> |
| + | |
| + | The new version manual gain, depending on the sensor, accurate to 0.1dB or 0.3dB. |
| + | |
| + | ===== auto_shutter_max ===== |
| + | This feature is only supported in versions with ''release time'' later than 2022-12-09. |
| + | |
| + | Configure the upper limit of auto exposure when '''mshutter''' is configured to auto. |
| + | |
| + | <code>./veye_mipi_i2c.sh -r -f auto_shutter_max</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f auto_shutter_max -p1 1000</code> |
| + | |
| + | in us in the range [1,1000000/fps]. |
| + | |
| + | Since the sensor can not support accurate exposure time of 1us, it is recommended to read it for confirmation after configuration. |