Changes

Jump to navigation Jump to search
989 bytes added ,  10:27, 27 March 2020
Line 60: Line 60:  
    -d [i2c addr]                  i2c addr if not default 0x3b
 
    -d [i2c addr]                  i2c addr if not default 0x3b
   −
support functions: devid,hdver,firmwarever,productmodel,videofmtcap,videofmt,ispcap,i2caddr,streammode,powerhz,sysreset,paramsave
+
support functions: devid,hdver,camcap,firmwarever,productmodel,videofmtcap,videofmt,ispcap,i2caddr,streammode,powerhz,sysreset,paramsave
      Line 96: Line 96:     
get product model,for example:CS-MIPI-IMX307
 
get product model,for example:CS-MIPI-IMX307
 +
 +
<br />
 +
=====camcap=====
 +
<code>./cs_mipi_i2c.sh -r -f camcap</code>
 +
 +
get camera module capbility, each bit represents a function.
 +
{| class="wikitable"
 +
|+camcap
 +
!bit
 +
!description
 +
|-
 +
|0
 +
|sync stream mode
 +
|}
 
=====videofmtcap=====
 
=====videofmtcap=====
 
<code>./cs_mipi_i2c.sh -r -f videofmtcap</code>
 
<code>./cs_mipi_i2c.sh -r -f videofmtcap</code>
Line 156: Line 170:     
The camera reset to the factory default parameters.
 
The camera reset to the factory default parameters.
 +
=====streammode=====
 +
{| class="wikitable"
 +
|+stream mode
 +
!value
 +
!description
 +
|-
 +
|0
 +
|free running
 +
|-
 +
|1
 +
|sync mode
 +
|}
 +
{| class="wikitable"
 +
|+slave mode(sync stream mode)
 +
!value
 +
!description
 +
|-
 +
|0
 +
|master
 +
|-
 +
|1
 +
|slave
 +
|}<code>./cs_mipi_i2c.sh -r -f streammode</code>
 +
 +
Read the current stream mode and master-slave mode
 +
 +
<code>./cs_mipi_i2c.sh -w -f streammode -p1 0</code>
 +
 +
Set the current camera to free running mode
 +
 +
<code>./cs_mipi_i2c.sh -w -f streammode -p1 1 -p2 0</code>
 +
 +
Set the current camera to sync mode, and set to master
 +
 +
<code>./cs_mipi_i2c.sh -w -f streammode -p1 1 -p2 1</code>
 +
 +
Set the current camera to sync mode, and set to slave
 +
 +
sync mode :[[Camera module Stream Mode manual/zh|Camera module Stream Mode manual]]
 +
 +
Note: only supported on camcap bit 0 is 1.

Navigation menu