Line 6: |
Line 6: |
| The cs_mipi_i2c.sh script is a toolset for configuring CS-MIPI-X series cameras through the I2C. | | The cs_mipi_i2c.sh script is a toolset for configuring CS-MIPI-X series cameras through the I2C. |
| | | |
| + | === RaspberryPi Only, Set IO config === |
| Include the following files,camera_i2c_config、i2c_read、i2c_write、cs_mipi_i2c.sh. | | Include the following files,camera_i2c_config、i2c_read、i2c_write、cs_mipi_i2c.sh. |
| | | |
Line 15: |
Line 16: |
| | | |
| first,it will config IO pin. Then you can run cs_mipi_i2c.sh. | | first,it will config IO pin. Then you can run cs_mipi_i2c.sh. |
− | ===camera_i2c_config USAGE=== | + | ====camera_i2c_config USAGE==== |
| | | |
| *for standard RPI, just run | | *for standard RPI, just run |
Line 36: |
Line 37: |
| ===cs_mipi_i2c.sh USAGE=== | | ===cs_mipi_i2c.sh USAGE=== |
| ./cs_mipi_i2c.sh | | ./cs_mipi_i2c.sh |
| + | |
| + | this shell scripts should be used for CS-MIPI-IMX307! |
| | | |
| Usage: ./cs_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -p3 param3 -b bus | | Usage: ./cs_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -p3 param3 -b bus |
Line 41: |
Line 44: |
| options: | | options: |
| | | |
− | -r read | + | -r read |
| | | |
| -w write | | -w write |
Line 54: |
Line 57: |
| | | |
| -b [i2c bus num] i2c bus number | | -b [i2c bus num] i2c bus number |
| + | |
| + | -d [i2c addr] i2c addr if not default 0x3b |
| + | |
| + | support functions: devid,firmwarever,productmodel,videofmtcap,videofmt,ispcap,i2caddr,powerhz,sysreset,paramsave |
| | | |
| | | |
Line 117: |
Line 124: |
| |}Configure the power frequency of the environment in which the camera is used. | | |}Configure the power frequency of the environment in which the camera is used. |
| | | |
− | * 50Hz framerate is 25、50、100;60Hz framerate is 30、60、120. | + | *50Hz framerate is 25、50、100;60Hz framerate is 30、60、120. |
− | * camera support antiflicker, accroding to powerhz setting here. | + | *camera support antiflicker, accroding to powerhz setting here. |
| + | |
| + | =====i2caddr===== |
| + | <code>./cs_mipi_i2c.sh -r -f i2caddr -d i2caddrnow</code> |
| + | |
| + | <code>./cs_mipi_i2c.sh -w -f i2caddr -p1 newi2caddr -d oldi2caddr</code> |
| | | |
| + | This module support i2c addr change by software, i2c addr range[0x3,0x77]. |
| =====paramsave===== | | =====paramsave===== |
| <code>./cs_mipi_i2c.sh -w -f paramsave</code> | | <code>./cs_mipi_i2c.sh -w -f paramsave</code> |