Changes

Jump to navigation Jump to search
Line 1: Line 1:  +
[[5m mipi i2c user guide|English]]
 +
 
=== 介绍 ===
 
=== 介绍 ===
 
本脚本为开源程序,通过是对i2c寄存器的直接访问达到配置摄像头模组的目的。
 
本脚本为开源程序,通过是对i2c寄存器的直接访问达到配置摄像头模组的目的。
Line 22: Line 24:     
-d [i2c addr]   i2c addr if not default 0x3b
 
-d [i2c addr]   i2c addr if not default 0x3b
 +
===不同板子上的i2c序号===
 +
请参考下面的文章,确定你所需要使用的-b参数。
   −
==== i2c bus的说明 ====
+
[http://wiki.veye.cc/index.php/I2c_bus_number_and_video_node i2c bus number on different boards]
[[VEYE CS Camera for Jetson TX2#Video Control Toolkits Manual|jetson平台i2cbus的说明]]
+
===功能列表===
 
  −
==== 格式说明 ====
   
下列代码中[param]方括号中的部分,表示变量。
 
下列代码中[param]方括号中的部分,表示变量。
  −
==== 使用详解 ====
      
===== manufacturer =====
 
===== manufacturer =====
Line 91: Line 91:  
!value
 
!value
 
!description
 
!description
 +
!接口位置
 
|-
 
|-
 
|0x00
 
|0x00
 
|FFC 排线 i2c端口
 
|FFC 排线 i2c端口
 +
|'''[[VEYE-MIPI-IMX335数据手册#.E6.8E.A5.E5.8F.A3.E5.BC.95.E8.84.9A.E5.8A.9F.E8.83.BD.E8.AF.B4.E6.98.8E|J1 IIC]]'''
 
|-
 
|-
 
| 0x01
 
| 0x01
 
|备用白端子i2c端口
 
|备用白端子i2c端口
 +
|'''[[VEYE-MIPI-IMX335数据手册#.E6.8E.A5.E5.8F.A3.E5.BC.95.E8.84.9A.E5.8A.9F.E8.83.BD.E8.AF.B4.E6.98.8E|J5 辅助IIC]]'''
 
|}
 
|}
   Line 128: Line 131:  
!value
 
!value
 
!description
 
!description
 +
!备注
 
|-
 
|-
 
|0x00
 
|0x00
 
|默认方向
 
|默认方向
 +
|'''[[VEYE-MIPI-IMX335数据手册#.E6.8E.A5.E5.8F.A3.E5.BC.95.E8.84.9A.E5.8A.9F.E8.83.BD.E8.AF.B4.E6.98.8E|J4 Day/Night 日夜切换外部同步信号]]'''
 
|-
 
|-
 
| 0x01
 
| 0x01
 
|逆转IRCUT控制pin脚电平
 
|逆转IRCUT控制pin脚电平
 +
|
 
|}
 
|}
   Line 145: Line 151:  
!value
 
!value
 
!description
 
!description
 +
!备注
 
|-
 
|-
 
|0x00
 
|0x00
 
|低电平为黑白模式,高电平为彩色模式
 
|低电平为黑白模式,高电平为彩色模式
 +
| rowspan="2" |'''[[VEYE-MIPI-IMX335数据手册#.E6.8E.A5.E5.8F.A3.E5.BC.95.E8.84.9A.E5.8A.9F.E8.83.BD.E8.AF.B4.E6.98.8E|J4 : Day/Night 日夜切换外部同步信号]]'''
 
|-
 
|-
 
| 0x01
 
| 0x01
Line 169: Line 177:  
|-
 
|-
 
|0x01
 
|0x01
|2592x1944@20fps
+
|5M 2592x1944@20fps
 
|-
 
|-
 
| 0x02
 
| 0x02
|2592x1944@12.5fps
+
|5M 2592x1944@12.5fps
 
|-
 
|-
 
|0x03
 
|0x03
|2560x1440@25fps
+
|4M 2560x1440@25fps
 
|-
 
|-
 
|0x04
 
|0x04
|2560x1440@30fps
+
|4M 2560x1440@30fps
 
|}
 
|}
   Line 251: Line 259:     
===== mshutter =====
 
===== mshutter =====
<code>./veye5_mipi_i2c.sh -w -f mshutter -p1 [0,0x0B]</code>
+
<code>./veye5_mipi_i2c.sh -w -f mshutter -p1 [0,0x0A]</code>
    
<code>./veye5_mipi_i2c.sh -r -f mshutter</code>  
 
<code>./veye5_mipi_i2c.sh -r -f mshutter</code>  
Line 258: Line 266:     
<nowiki>#</nowiki>0,auto; others, manual value  
 
<nowiki>#</nowiki>0,auto; others, manual value  
 +
{| class="wikitable"
 +
! rowspan="3" |手动快门参数
 +
(manual value)
 +
! colspan="5" |曝光时间
 +
|-
 +
! rowspan="2" |4M 30FPS
 +
! rowspan="2" |4M 25FPS
 +
! colspan="2" |5M 20FPS
 +
! rowspan="2" |5M 12.5FPS
 +
|-
 +
!antiflicker=0
 +
!antiflicker=1
 +
|-
 +
|0x00
 +
|自动快门
 +
|自动快门
 +
|自动快门
 +
|自动快门
 +
|自动快门
 +
|-
 +
| 0x01
 +
|1/30
 +
|1/25
 +
|1/30
 +
|1/40
 +
|1/25
 +
|-
 +
|0x02
 +
|1/60
 +
|1/50
 +
|1/60
 +
|1/80
 +
|1/50
 +
|-
 +
|0x03
 +
|1/120
 +
|1/100
 +
|1/120
 +
|1/160
 +
|1/100
 +
|-
 +
|0x04
 +
|1/240
 +
|1/200
 +
|1/240
 +
|1/240
 +
|1/200
 +
|-
 +
|0x05
 +
|1/480
 +
|1/400
 +
|1/480
 +
|1/480
 +
|1/400
 +
|-
 +
|0x06
 +
|1/1000
 +
|1/1000
 +
|1/1000
 +
|1/1000
 +
|1/1000
 +
|-
 +
|0x07
 +
|1/2000
 +
|1/2000
 +
|1/2000
 +
|1/2000
 +
|1/2000
 +
|-
 +
|0x08
 +
|1/3000
 +
|1/5000
 +
|1/5000
 +
|1/5000
 +
|1/5000
 +
|-
 +
|0x09
 +
|1/5000
 +
|1/10000
 +
|1/10000
 +
|1/10000
 +
|1/12375
 +
|-
 +
|0x0A
 +
|1/10000
 +
|1/76923
 +
|1/76923
 +
|1/76923
 +
|1/50000
 +
|-
 +
|0x0B - 0x0F
 +
|1/30
 +
|1/25
 +
|1/20
 +
|1/20
 +
|1/12.5
 +
|}
    
===== mirrormode =====
 
===== mirrormode =====
Line 297: Line 402:     
===== sharppen =====
 
===== sharppen =====
<code>./veye5_mipi_i2c.sh -w -f sharppen -p1 [0,0x0f]</code>
+
<code>./veye5_mipi_i2c.sh -w -f sharppen -p1 [0x10,0x1D]</code>
    
<code>./veye5_mipi_i2c.sh -r -f sharppen</code>
 
<code>./veye5_mipi_i2c.sh -r -f sharppen</code>
Line 306: Line 411:  
!description
 
!description
 
|-
 
|-
|0x00
+
|0x10
 
|关闭
 
|关闭
 
|-
 
|-
| 0x09
+
| 0x19
 
|low
 
|low
 
|-
 
|-
|0x0B
+
|0x1B
 
|middle
 
|middle
 
|-
 
|-
|0x0C
+
|0x1D
 
|high
 
|high
 
|}
 
|}
   −
<br />
+
===== saturation =====
 +
<code>./veye5_mipi_i2c.sh -w -f saturation -p1 [0,0x0A]</code>
 +
 
 +
<code>./veye5_mipi_i2c.sh -r -f saturation</code>
 +
 
 +
饱和度配置,默认为0xA。
 +
 
 +
===== extra_color_gain =====
 +
<code>./veye5_mipi_i2c.sh -w -f extra_color_gain -p1 [0,0xFF]</code>
 +
 
 +
<code>./veye5_mipi_i2c.sh -r -f extra_color_gain</code>
 +
 
 +
额外色彩增益,默认为0xC0。

Navigation menu