Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
[[VEYE-MIPI-290/327 i2c/|English]]
 
[[VEYE-MIPI-290/327 i2c/|English]]
   −
'''<big><big><big><big>[[VEYE-MIPI-290/327 i2c/zh|VEYE-MIPI-290/327 I2C.sh用户手册]]</big></big></big></big>'''
+
'''<big><big><big><big>[[VEYE-MIPI-290/327 i2c/zh|VEYE-MIPI-X I2C.sh用户手册]]</big></big></big></big>'''
    
===介绍===
 
===介绍===
 
目录下总共4个文件,camera_i2c_config、i2c_read、i2c_write、veye_mipi_i2c.sh。
 
目录下总共4个文件,camera_i2c_config、i2c_read、i2c_write、veye_mipi_i2c.sh。
 +
 +
第一次使用需要确认此目录下文件都具备可执行权限。
 +
 +
<code>chmod +x *</code>
    
===树莓派配置管脚,非树莓派忽略此步===
 
===树莓派配置管脚,非树莓派忽略此步===
Line 36: Line 40:  
./veye_mipi_i2c.sh
 
./veye_mipi_i2c.sh
   −
Usage: ./veye_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -b bus
+
Usage: ./veye_mipi_i2c.sh [-r/w] [-f] function name -p1 param1 -p2 param2 -b bus -d i2caddr
    
options:
 
options:
Line 52: Line 56:  
-b [i2c bus num] i2c bus number
 
-b [i2c bus num] i2c bus number
   −
support functions: devid,hdver,wdrmode,videoformat,mirrormode,denoise,agc,lowlight,daynightmode,ircutdir,irtriggerhutter
+
-d [i2c addr] i2c device address
 
+
=== 不同板子上的i2c序号===
cameramode, nodf, capture, csienable,saturation,wdrbtargetbr,wdrtargetbr, brightness ,contrast , sharppen, aespeed,lsc,boardmodel,yuvseq,i2cauxenable,i2cwen
+
请参考下面的文章,确定你所需要使用的-b参数。
 
  −
对于树莓派Pi3B / Pi3B+ / 3A / 4B(1G/2G/4G),使用i2c0或10,  '''对于Compute Module/ CM3,使用i2c1,请添加-b1 选项。'''
  −
 
  −
====使用详解====
      +
[[I2c bus number and video node|i2c bus number on different boards]]
 +
===功能列表===
 
=====devid=====
 
=====devid=====
 
  <code>./veye_mipi_i2c.sh -r -f devid</code>
 
  <code>./veye_mipi_i2c.sh -r -f devid</code>
Line 67: Line 69:  
|-
 
|-
 
|0x06
 
|0x06
|VEYE-MIPI-290/327
+
|VEYE-MIPI-X serises,IMX327,IMX462,IMX385
 
|}
 
|}
   Line 79: Line 81:  
|Version
 
|Version
 
|}
 
|}
 +
同时会打印出isp fireware的发布时间。
 +
 +
===== sensorid =====
 +
<code>./veye_mipi_i2c.sh -r -f sensorid</code>
 +
 +
Print sensor type and board information.
    
=====wdrmode=====
 
=====wdrmode=====
Line 197: Line 205:  
  <code>./veye_mipi_i2c.sh -r -f agc
 
  <code>./veye_mipi_i2c.sh -r -f agc
 
  ./veye_mipi_i2c.sh -w -f agc -p1 [value]</code>
 
  ./veye_mipi_i2c.sh -w -f agc -p1 [value]</code>
含义为增益上限
+
含义为增益上限,默认为0xC。
 
{| class="wikitable"
 
{| class="wikitable"
 
!value
 
!value
Line 214: Line 222:  
{| class="wikitable"
 
{| class="wikitable"
 
!value
 
!value
!description
+
!最小帧率
 
|-
 
|-
 
|0x01
 
|0x01
Line 277: Line 285:  
*Trigger Mode
 
*Trigger Mode
   −
Trigger pin : [[VEYE-MIPI-290/327|J3 pin1]].
+
Trigger pin : [[VEYE-MIPI-290/327|J3 pin1 of VEYE-MIPI-327]] or [[VEYE-MIPI-IMX327S Data Sheet|J2 pin1 of VEYE-MIPI-IMX327S]].
    
Trigger pin High(3.3~12V),Image is Black&White Mode and IR-CUT status '''Deliver''' infrared.
 
Trigger pin High(3.3~12V),Image is Black&White Mode and IR-CUT status '''Deliver''' infrared.
Line 283: Line 291:  
Trigger pin Low(GND),Image is Color Mode and IR-CUT status '''Bolck''' infrared.
 
Trigger pin Low(GND),Image is Color Mode and IR-CUT status '''Bolck''' infrared.
    +
===== ircutdir =====
 +
<code>./veye_mipi_i2c.sh -r -f ircutdir</code>
 +
 +
<code>./veye_mipi_i2c.sh -w -f ircutdir -p1 [value]</code>
 +
 +
IR_CUT pins control direction. value could be 0 or 1.
 +
 +
===== irtrigger =====
 +
<code>./veye_mipi_i2c.sh -r -f irtrigger</code>
 +
 +
<code>./veye_mipi_i2c.sh -w -f irtrigger -p1 [value]</code>
 +
 +
日夜切换外触发模式引脚的极性设置。
 +
{| class="wikitable"
 +
!value
 +
!description
 +
!remark
 +
|-
 +
|0x0
 +
|默认值,参考不同型号datasheet说明。
 +
|第0bit有效,其他为无关位
 +
|-
 +
|0x1
 +
|反转。
 +
|第0bit有效,其他为无关位
 +
|}
 
=====mshutter=====
 
=====mshutter=====
close AE, use manual shutter
+
自动曝光,手动曝光模式选择和配置。
    
<code>./veye_mipi_i2c.sh -r -f mshutter</code>
 
<code>./veye_mipi_i2c.sh -r -f mshutter</code>
Line 461: Line 495:     
<code>./veye_mipi_i2c.sh -w -f sharppen -p1 [val1] -p2 [value]</code>
 
<code>./veye_mipi_i2c.sh -w -f sharppen -p1 [val1] -p2 [value]</code>
 +
{| class="wikitable"
 +
!param1 value
 +
!description
 +
|-
 +
|0x0
 +
|sharppen disable
 +
|-
 +
|0x1
 +
|sharppen enable
 +
|}
 +
default: 0x1
 +
 +
param2: sharppen strength, range [0x0-0xA]
 +
 +
===== wdrsharppen =====
 +
<code>./veye_mipi_i2c.sh -r -f wdrsharppen</code>
 +
 +
<code>./veye_mipi_i2c.sh -w -f wdrsharppen -p1 [val1] -p2 [value]</code>
 +
 +
sharppeness setting on DOL WDR mode
 
{| class="wikitable"
 
{| class="wikitable"
 
!param1 value
 
!param1 value
Line 547: Line 601:  
<code>./veye_mipi_i2c.sh -r -f mwbgain</code>
 
<code>./veye_mipi_i2c.sh -r -f mwbgain</code>
   −
<code>./veye_mipi_i2c.sh -w -f wbmode -p1 [rgain] -p2 [bgain]</code>
+
<code>./veye_mipi_i2c.sh -w -f mwbgain -p1 [rgain] -p2 [bgain]</code>
    
手动白平衡下的rgain和bgain读写。rgain和bgain的范围[0,0xFF]。
 
手动白平衡下的rgain和bgain读写。rgain和bgain的范围[0,0xFF]。
Line 561: Line 615:     
Note: only supported on hdver >= 0x4.
 
Note: only supported on hdver >= 0x4.
 +
 +
=== 新功能 ===
 +
下面的新功能,只有摄像机固件版本的release time晚于2022-11-22的版本才支持。
 +
 +
===== paramsave =====
 +
<code>./veye_mipi_i2c.sh -w -f paramsave</code>
 +
 +
保存isp相关参数到flash中。
 +
 +
===== new_expmode =====
 +
<code>./veye_mipi_i2c.sh -r -f new_expmode</code>
 +
 +
<code>./veye_mipi_i2c.sh -w -f new_expmode -p1 [0/1]</code>
 +
 +
新版本手动曝光是否使能。
 +
 +
如果使能新版本手动曝光,则:
 +
 +
# 原来的mshutter命令不再生效,new_mshutter生效。
 +
# 增益(agc)由自动模式也改为手动模式,new_mgain生效。
 +
 +
===== new_mshutter =====
 +
<code>./veye_mipi_i2c.sh -r -f new_mshutter</code>
 +
 +
<code>./veye_mipi_i2c.sh -w -f new_mshutter -p1 1000</code>
 +
 +
新版本手动曝光时间配置,单位为us,范围是[1,1000000].
 +
 +
由于sensor无法支持精确到1us的曝光时间,建议在配置之后,读取一下进行确认。
 +
 +
===== new_mgain =====
 +
<code>./veye_mipi_i2c.sh -r -f new_mgain</code>
 +
 +
<code>./veye_mipi_i2c.sh -w -f new_mgain -p1 2.1</code>
 +
 +
新版本手动增益,根据sensor不同,精确到0.1dB或者0.3dB。
 +
 +
===== auto_shutter_max =====
 +
此功能只有release time晚于2022-12-09的版本才支持。
 +
 +
在'''mshutter'''配置为auto时,配置自动曝光的上限。
 +
 +
<code>./veye_mipi_i2c.sh -r -f auto_shutter_max</code>
 +
 +
<code>./veye_mipi_i2c.sh -w -f auto_shutter_max -p1 1000</code>
 +
 +
单位为us,范围是[1,1000000/fps].
 +
 +
由于sensor无法支持精确到1us的曝光时间,建议在配置之后,读取一下进行确认。

Navigation menu