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>]] |
− | '''<big>veye_mipi_i2c.sh MANUAL</big>'''
| |
| | | |
| ===Overview=== | | ===Overview=== |
− | There are 4 files: camera_i2c_config、i2c_read、i2c_write、veye_mipi_i2c.sh。 | + | There are 4 files: camera_i2c_config、i2c_read、i2c_write、veye_mipi_i2c.sh |
| | | |
| + | ===RaspberryPi Only, Set IO config=== |
| Running | | Running |
| | | |
Line 16: |
Line 16: |
| | | |
| Then you can run veye_mipi_i2c.sh. | | Then you can run veye_mipi_i2c.sh. |
− | ===camera_i2c_config USAGE=== | + | ====camera_i2c_config USAGE==== |
| | | |
| *for standard RPI, just run | | *for standard RPI, just run |
Line 66: |
Line 66: |
| !description | | !description |
| |- | | |- |
− | |0x02 | + | |0x06 |
− | |MIPI, 2Lane | + | |VEYE-MIPI-290/327 |
− | |-
| |
− | |0x13
| |
− | |LVDS,3Lane
| |
| |} | | |} |
| =====hdver===== | | =====hdver===== |
Line 98: |
Line 95: |
| |- | | |- |
| |0x03 | | |0x03 |
− | |WDR Enable | + | |DOL WDR Enable |
| |} | | |} |
| =====videoformat===== | | =====videoformat===== |
Line 191: |
Line 188: |
| <code>./veye_mipi_i2c.sh -r -f agc | | <code>./veye_mipi_i2c.sh -r -f agc |
| ./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. |
| {| class="wikitable" | | {| class="wikitable" |
| !value | | !value |
Line 201: |
Line 199: |
| <code>./veye_mipi_i2c.sh -r -f lowlight | | <code>./veye_mipi_i2c.sh -r -f lowlight |
| ./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. |
| + | |
| + | Note that it is not suitable for use in a sports scene. |
| {| class="wikitable" | | {| class="wikitable" |
| !value | | !value |
Line 280: |
Line 281: |
| value is exposure time(seconds) | | value is exposure time(seconds) |
| | | |
− | If value is greater than or equal to 0x4B, it enters slow shutter mode. | + | If value is greater than or equal to 0x4B, it will reduce framerate. |
| {| class="wikitable" | | {| class="wikitable" |
| |+ | | |+ |
Line 348: |
Line 349: |
| |0x53 | | |0x53 |
| |1/30 (25) *30 | | |1/30 (25) *30 |
− | |}<br /> | + | |} |
| + | |
| + | =====cameramode===== |
| + | Requirements:hdver >= 0x3 |
| + | |
| + | <code>./veye_mipi_i2c.sh -r -f cameramode</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f cameramode -p1 [value]</code> |
| + | {| class="wikitable" |
| + | !value |
| + | !description |
| + | |- |
| + | |0x0 |
| + | |Stream mode |
| + | |- |
| + | |0x1 |
| + | |Capture mode |
| + | |}Stream mode: stream output |
| + | |
| + | Caputre mode: output the next frame each '''capture''' cmd. |
| + | =====notf===== |
| + | Requirements:hdver >= 0x3, effective in Stream mode |
| + | |
| + | Number of dropped frames |
| + | |
| + | It is a method of framerate control, output one frame,discard '''notf''' frames,output next frame, and so on. |
| + | |
| + | ''actual framerate = original framerate /(1+notf)'' |
| + | |
| + | For example,if the original framerate is 30fps, set '''notf''' to 2, then ''actual framerate'' is 10fps. |
| + | |
| + | <code>./veye_mipi_i2c.sh -r -f notf</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f notf -p1 [value]</code> |
| + | |
| + | '''ntof''' range is [0-0xFF], default 0. |
| + | =====capture===== |
| + | Requirements:hdver >= 0x3, effective in Capture mode |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f capture</code> |
| + | |
| + | Output the next frame. This cmd does not interfere the sensor, it just output the next frame (the newest frame). |
| + | |
| + | So it is not trigger mode, there will be a delay[0,1/framerate] between the cmd and the frame exposure. |
| + | |
| + | It is applicable to those that do not require a high level of real-time performance. |
| + | =====csienable===== |
| + | Requirements:hdver >= 0x3 |
| + | |
| + | <code>./veye_mipi_i2c.sh -r -f csienable</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f csienable -p1 [value]</code> |
| + | {| class="wikitable" |
| + | !value |
| + | !description |
| + | |- |
| + | |0x0 |
| + | |suspend csi output |
| + | |- |
| + | |0x1 |
| + | |enable csi output |
| + | |}default: 0x1 |
| + | |
| + | Note: This is not low power mode, the camera is still working. |
| + | =====brightness===== |
| + | <code>./veye_mipi_i2c.sh -r -f brightness</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f brightness -p1 0x32</code> |
| + | |
| + | AE Target Brightness,rang: [0,0x64] |
| + | =====aespeed===== |
| + | <code>./veye_mipi_i2c.sh -r -f aespeed</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f aespeed -p1 0x32 -p2 0x32</code> |
| + | |
| + | AE adjust speed,p1 is agc speed, p2 is shutter speed,Slow to Fast: [0,0x64] |
| + | =====contrast===== |
| + | <code>./veye_mipi_i2c.sh -r -f contrast</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f contrast -p1 0x32</code> |
| + | |
| + | Contrast,range: [0,0xFF],default: 0x80. |
| + | |
| + | =====saturation===== |
| + | <code>./veye_mipi_i2c.sh -r -f saturation</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f saturation -p1 0x32</code> |
| + | |
| + | Saturation, range: [0,0x64]. |
| + | |
| + | ===== sharppen ===== |
| + | <code>./veye_mipi_i2c.sh -r -f sharppen</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f sharppen -p1 [val1] -p2 [value]</code> |
| + | {| class="wikitable" |
| + | !param1 value |
| + | !description |
| + | |- |
| + | |0x0 |
| + | | sharppen disable |
| + | |- |
| + | |0x1 |
| + | | sharppen enable |
| + | |}default: 0x1 |
| + | |
| + | param2: sharppen strength, range [0x0-0xA] |
| + | =====wdrtargetbr===== |
| + | <code>./veye_mipi_i2c.sh -r -f wdrtargetbr</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f wdrtargetbr -p1 0x80</code> |
| + | |
| + | The overall AE target value in WDR mode. |
| + | |
| + | Takes effect in WDR mode. range: [0-0xFF], default : 0x80. |
| + | =====wdrbtargetbr===== |
| + | <code>./veye_mipi_i2c.sh -r -f wdrbtargetbr</code> |
| + | |
| + | <code>./veye_mipi_i2c.sh -w -f wdrbtargetbr -p1 0x80</code> |
| + | |
| + | The AE target value of the bright area in WDR mode. |
| + | |
| + | Takes effect in WDR mode. range: [0-0xFF], default : 0x80. |
| + | <br /> |