Changes

Jump to navigation Jump to search
Line 3: Line 3:  
=== Overview ===
 
=== Overview ===
 
The mv_mipi_i2c.sh script is a tool set for configuring MV MIPI  series cameras through the I2C.
 
The mv_mipi_i2c.sh script is a tool set for configuring MV MIPI  series cameras through the I2C.
 +
 +
This script is essentially an access to registers. For registers, please refer to [[MV Series MIPI Camera Register Map]].
    
=== Raspberry Pi Only, Set IO config ===
 
=== Raspberry Pi Only, Set IO config ===
Line 45: Line 47:  
[[I2c bus number and video node|i2c bus number on different boards]]
 
[[I2c bus number and video node|i2c bus number on different boards]]
 
===Functions list===
 
===Functions list===
 +
The camera has two states, '''standby''' and '''running''', after the start of image acquisition into the '''running''' state.
 +
 +
There are some registers that are write-protected in the running state, which will be marked with an asterisk. For example: '''''trgsrc*''''' ''.''
 +
 +
There are some parameters that have strict range restrictions, and it's a good idea to try reading them when you're in doubt.
    
==== Basic Parameters ====
 
==== Basic Parameters ====
<br />
+
 
 +
===== manufacturer =====
 +
<code>./mv_mipi_i2c.sh -r -f manufacturer</code>
 +
 
 +
Get the manufacturer name, which is  '''VEYE'''.
 +
 
 +
===== model =====
 +
<code>./mv_mipi_i2c.sh -r -f model</code>
 +
 
 +
Get the product model, such as MV-MIPI-IMX178.
 +
 
 +
===== version =====
 +
<code>./mv_mipi_i2c.sh -r -f version</code>
 +
 
 +
Get the Controller version number and Logical version number.
 +
 
 +
The system has two main control chips that serve the control and logic functions respectively.
 +
 
 +
===== timestamp =====
 +
<code>./mv_mipi_i2c.sh -r -f timestamp</code>
 +
 
 +
Time after system startup in Milliseconds.
 +
 
 +
This value starts counting again if you call the reboot command, or if the camera reboots unexpectedly.
 +
 
 +
===== errcode =====
 +
<code>./mv_mipi_i2c.sh -r -f errcode</code>
 +
 
 +
System error code, each bit represents an error type.
 +
 
 +
bit0: sensor error.
 +
 
 +
bit1: Logic module startup error.
 +
 
 +
bit2: Logic module communication error.
 +
 
 +
bit5: AA(AE&AG) regulation cannot reach the target brightness.
 +
 
 +
bit6: Authorization failure.
 +
 
 +
===== factoryparam =====
 +
<code>./mv_mipi_i2c.sh -w -f factoryparam</code>
 +
 
 +
All parameters restored to factory default values.
 +
 
 +
===== paramsave =====
 +
<code>./mv_mipi_i2c.sh -w -f paramsave</code>
 +
 
 +
Save all parameters to flash, and they will not be lost when power off.
 +
 
 +
===== reboot =====
 +
<code>./mv_mipi_i2c.sh -w -f reboot</code>
 +
 
 +
Reboot the camera.
 +
 
 +
===== i2caddr =====
 +
<code>./mv_mipi_i2c.sh -w -f i2caddr -p1 [new]</code>
 +
 
 +
<code>./mv_mipi_i2c.sh -r -f i2caddr</code> <br />This module support i2c address changed by software, i2c address range[0x3,0x77].
 +
 
 +
Only after paramsave and reboot will it really take effect.
    
==== Image Acquisition ====
 
==== Image Acquisition ====

Navigation menu