Difference between revisions of "Mv mipi i2c.sh user guide"
(Created blank page) |
|||
Line 1: | Line 1: | ||
+ | <big>'''mv_mipi_i2c.sh Shell scripts usage'''</big> | ||
+ | === Overview === | ||
+ | The mv_mipi_i2c.sh script is a tool set for configuring MV MIPI series cameras through the I2C. | ||
+ | |||
+ | === Raspberry Pi Only, Set IO config === | ||
+ | Running | ||
+ | |||
+ | <code>./enable_i2c_vc.sh</code> | ||
+ | |||
+ | <code>./camera_i2c_config</code> | ||
+ | |||
+ | first,it will config IO pin. Then you can run mv_mipi_i2c.sh. | ||
+ | |||
+ | === mv_mipi_i2c.sh USAGE === | ||
+ | ./mv_mipi_i2c.sh | ||
+ | |||
+ | Usage: ./mv_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -b bus | ||
+ | |||
+ | options: | ||
+ | |||
+ | -r read | ||
+ | |||
+ | -w write | ||
+ | |||
+ | -f [function name] function name | ||
+ | |||
+ | -p1 [param1] param1 of each function | ||
+ | |||
+ | -p2 [param1] param2 of each function | ||
+ | |||
+ | -p3 [param3] param3 of each function | ||
+ | |||
+ | -p4 [param4] param4 of each function | ||
+ | |||
+ | -b [i2c bus num] i2c bus number | ||
+ | |||
+ | -d [i2c addr] i2c addr if not default 0x3b | ||
+ | |||
+ | Please open this srcipt and read the COMMENT on top for support functions and samples | ||
+ | |||
+ | ===i2c bus number on different board=== | ||
+ | Please refer to the following article to determine which -b parameter you need to use. | ||
+ | |||
+ | [[I2c bus number and video node|i2c bus number on different boards]] | ||
+ | ===Functions list=== |
Revision as of 17:33, 7 March 2022
mv_mipi_i2c.sh Shell scripts usage
1 Overview
The mv_mipi_i2c.sh script is a tool set for configuring MV MIPI series cameras through the I2C.
2 Raspberry Pi Only, Set IO config
Running
./enable_i2c_vc.sh
./camera_i2c_config
first,it will config IO pin. Then you can run mv_mipi_i2c.sh.
3 mv_mipi_i2c.sh USAGE
./mv_mipi_i2c.sh
Usage: ./mv_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -b bus
options:
-r read
-w write
-f [function name] function name
-p1 [param1] param1 of each function
-p2 [param1] param2 of each function
-p3 [param3] param3 of each function
-p4 [param4] param4 of each function
-b [i2c bus num] i2c bus number
-d [i2c addr] i2c addr if not default 0x3b
Please open this srcipt and read the COMMENT on top for support functions and samples
4 i2c bus number on different board
Please refer to the following article to determine which -b parameter you need to use.
i2c bus number on different boards