Line 8:
Line 8:
RAW系列相机只有一个mcu作为辅助控制芯片,并不包含ISP模块。因此,其功能是MV系列的子集。在后文中每个功能的描述中会列出该功能是否适用于RAW系列相机。
RAW系列相机只有一个mcu作为辅助控制芯片,并不包含ISP模块。因此,其功能是MV系列的子集。在后文中每个功能的描述中会列出该功能是否适用于RAW系列相机。
−
−
此外,RAW系列相机支持SDA(Sensor direct access)模式,会在本文最后章节详述。
为方便客户快速开发,我们提供了软硬件说明,寄存器手册以及嵌入式平台下的驱动,demo。
为方便客户快速开发,我们提供了软硬件说明,寄存器手册以及嵌入式平台下的驱动,demo。
Line 24:
Line 22:
!Shutter Mode
!Shutter Mode
|-
|-
−
| rowspan="6" |MV series
+
| rowspan="7" |MV series
|MV-MIPI-IMX178M
|MV-MIPI-IMX178M
|3088×2064@22.3 fps
|3088×2064@22.3 fps
Line 53:
Line 51:
|Global
|Global
|-
|-
−
| rowspan="3" |RAW series
+
|MV-MIPI-GMAX4002M
+
|4lane@8bit mode:2048 x 1200 @213fps
+
4lane@10bit mode:2048 x 1200 @185fps
+
+
4lane@12bit mode:2048 x 1200 @158fps
+
+
2lane@8bit mode:2048 x 1200 @112fps
+
+
2lane@10bit mode:2048 x 1200 @99fps
+
+
2lane@12bit mode:2048 x 1200 @84fps
+
|Global
+
|-
+
| rowspan="4" |RAW series
|RAW-MIPI-SC132M
|RAW-MIPI-SC132M
|1080×1280@120fps
|1080×1280@120fps
Line 66:
Line 77:
|4lane mode:1920 x 1200 @120fps
|4lane mode:1920 x 1200 @120fps
2lane mode:1920 x 1200 @60fps
2lane mode:1920 x 1200 @60fps
+
|Global
+
|-
+
|RAW-MIPI-SC535M
+
|4lane@8bit mode:2448 x 2048 @83fps
+
4lane@10bit mode:2448 x 2048 @80fps
+
+
4lane@12bit mode:2448 x 2048 @70fps
+
+
2lane@8bit mode:2448 x 2048 @54fps
+
+
2lane@10bit mode:2448 x 2048 @42fps
+
+
2lane@12bit mode:2448 x 2048 @35fps
|Global
|Global
|}
|}
Line 93:
Line 117:
==== 普通触发模式 ====
==== 普通触发模式 ====
+
普通触发模式下,建议将fps配置为maxfps值,以保证最大的触发信号响应能力。
===== Rolling shutter(卷帘式曝光) =====
===== Rolling shutter(卷帘式曝光) =====
Line 107:
Line 132:
===== Smartsens's Global shutter(全局曝光) =====
===== Smartsens's Global shutter(全局曝光) =====
−
本节适用于: MV-MIPI-SC130M,RAW-MIPI-SC132M。
+
本节适用于: MV-MIPI-SC130M,RAW-MIPI-SC132M,RAW-MIPI-SC535M。
对于斯特威的global shutter sensor,如SC130GS,一个完整的图像帧,需要经过曝光周期(exp time)和读出周期(read out)才可以完成。读出完成后才可以进行第二帧的曝光。
对于斯特威的global shutter sensor,如SC130GS,一个完整的图像帧,需要经过曝光周期(exp time)和读出周期(read out)才可以完成。读出完成后才可以进行第二帧的曝光。
Line 117:
Line 142:
下图以触发触发帧数设置为2为例:
下图以触发触发帧数设置为2为例:
[[File:Normal trigger mode (Global shutter).png|center|thumb|800x800px|Smartsens's Normal trigger mode (Global shutter)]]
[[File:Normal trigger mode (Global shutter).png|center|thumb|800x800px|Smartsens's Normal trigger mode (Global shutter)]]
−
<br />对于RAW系列模组,不支持Exposure Delay和Trigger interval,触发帧数只支持1帧。
+
<br />对于RAW系列模组,不支持Exposure Delay。
===== Sony's Global shutter(全局曝光) =====
===== Sony's Global shutter(全局曝光) =====
−
本节适用于: MV-MIPI-IMX296M,MV-MIPI-IMX265M,MV-MIPI-IMX264M,MV-MIPI-IMX287M。
+
本节适用于: MV-MIPI-IMX296M,MV-MIPI-IMX265M,MV-MIPI-IMX264M,MV-MIPI-IMX287M,MV-MIPI-GMAX4002M。
对于Sony的global shutter sensor,在外触发模式下,上一帧的读出和下一帧的曝光可以同步进行。因此,可以达到几乎与视频流模式一样的外触发帧率。
对于Sony的global shutter sensor,在外触发模式下,上一帧的读出和下一帧的曝光可以同步进行。因此,可以达到几乎与视频流模式一样的外触发帧率。
Line 127:
Line 152:
[[File:Sony's Normal trigger mode (Global shutter).png.png|center|thumb|800x800px|Sony's Normal trigger mode (Global shutter)]]
[[File:Sony's Normal trigger mode (Global shutter).png.png|center|thumb|800x800px|Sony's Normal trigger mode (Global shutter)]]
<br />
<br />
−
==== 高速触发模式 ====
−
===== Rolling shutter(卷帘式曝光) =====
+
==== 电平触发模式 ====
+
本节适用型号:MV-MIPI-IMX296M,MV-MIPI-IMX265M,MV-MIPI-IMX264M,MV-MIPI-IMX287M,MV-MIPI-SC130M,MV-MIPI-GMAX4002M。
+
+
在电平触发模式下,以电平信号的宽度来控制曝光时间。此模式不支持触发延迟、触发间隔、触发数量等参数,支持触发信号滤波,曝光延迟参数。
+
[[File:Pulse trigger mode (Global shutter).png|center|thumb|800x800px|Pulse trigger mode (Global shutter)]]
+
<br />
+
==== 滚动快门多帧触发模式 ====
本节适用型号:MV-MIPI-IMX178M。
本节适用型号:MV-MIPI-IMX178M。
Line 141:
Line 171:
==== 触发源 ====
==== 触发源 ====
摄像机支持软触发和硬触发两种触发源,这两种方式只是触发信号来源不同。触发延迟、曝光延迟、触发帧数、触发间隔等配置和功能完全一致。
摄像机支持软触发和硬触发两种触发源,这两种方式只是触发信号来源不同。触发延迟、曝光延迟、触发帧数、触发间隔等配置和功能完全一致。
+
+
注意,触发源设置仅对普通触发模式和滚动快门多帧触发模式有效。
相关命令:trgsrc。
相关命令:trgsrc。
Line 197:
Line 229:
|Mono8,Mono10,Mono12
|Mono8,Mono10,Mono12
|sensor的AD是12bit-depth
|sensor的AD是12bit-depth
+
|-
+
|MV-MIPI-GMAX4002M
+
|Mono8,Mono10,Mono12
+
|sensor的AD是10,12bit-depth
|-
|-
|RAW-MIPI-SC132M
|RAW-MIPI-SC132M
Line 209:
Line 245:
|Mono8,Mono10
|Mono8,Mono10
|sensor的AD是10bit-depth
|sensor的AD是10bit-depth
+
|-
+
|RAW-MIPI-SC535M
+
|Mono8,Mono10,Mono12
+
|sensor的AD是12bit-depth
|}
|}
相关命令:fmtcap,pixelformat。
相关命令:fmtcap,pixelformat。
Line 288:
Line 328:
|1920 x 1080
|1920 x 1080
|67
|67
+
|
+
|-
+
| rowspan="6" |MV-MIPI-GMAX4002M
+
|2048 x 1200@4lane RAW8
+
|213
+
|
+
|-
+
|2048 x 1200@4lane RAW10
+
|185
+
|
+
|-
+
|2048 x 1200@4lane RAW12
+
|158
+
|
+
|-
+
|2048 x 1200@2lane RAW8
+
|112
+
|
+
|-
+
|2048 x 1200@2lane RAW10
+
|99
+
|
+
|-
+
|2048 x 1200@2lane RAW12
+
|84
|
|
|-
|-
Line 296:
Line 361:
|-
|-
| rowspan="2" |RAW-MIPI-IMX462M
| rowspan="2" |RAW-MIPI-IMX462M
−
|1920x1088@4lane raw10
+
|1920x1088@4lane RAW10
|120
|120
|
|
|-
|-
−
|1920x1088@2lane raw10/12
+
|1920x1088@2lane RAW10/12
|60
|60
|
|
Line 311:
Line 376:
|1920x1200@2lane
|1920x1200@2lane
|60
|60
+
|
+
|-
+
| rowspan="6" |RAW-MIPI-SC535M
+
|2448 x 2048@4lane RAW8
+
|84
+
|
+
|-
+
|2448 x 2048@4lane RAW10
+
|82
+
|
+
|-
+
|2448 x 2048@4lane RAW12
+
|70
+
|
+
|-
+
|2448 x 2048@2lane RAW8
+
|53
+
|
+
|-
+
|2448 x 2048@2lane RAW10
+
|43
+
|
+
|-
+
|2448 x 2048@2lane RAW12
+
|36
|
|
|}
|}
Line 320:
Line 410:
==== ROI区域 ====
==== ROI区域 ====
通过设置相机的图像感兴趣区域(ROI)可以只传输图像的特定区域,输出区域的参数包括输出区域的水平偏移(x)、垂直偏移(y)、宽度(w)和高度(h)。
通过设置相机的图像感兴趣区域(ROI)可以只传输图像的特定区域,输出区域的参数包括输出区域的水平偏移(x)、垂直偏移(y)、宽度(w)和高度(h)。
+
+
全画幅输出的情况下,图像左上角坐标为(0,0)。
默认情况下,相机的图像感兴趣区域为传感器的全分辨率区域。
默认情况下,相机的图像感兴趣区域为传感器的全分辨率区域。
Line 354:
Line 446:
|MV-MIPI-IMX264M
|MV-MIPI-IMX264M
|264x4
|264x4
+
|
+
|-
+
|MV-MIPI-GMAX4002M
+
|64x64
|
|
|-
|-
Line 365:
Line 461:
|-
|-
|RAW-MIPI-AR0234M
|RAW-MIPI-AR0234M
+
|64x64
+
|
+
|-
+
|RAW-MIPI-SC535M
|64x64
|64x64
|
|
Line 393:
Line 493:
[[File:Test pattern2 enlarged.png|center|thumb|800x800px|Test pattern2 (enlarged)]]
[[File:Test pattern2 enlarged.png|center|thumb|800x800px|Test pattern2 (enlarged)]]
−
===== MV-MIPI-SC130M RAW-MIPI-SC132M =====
+
===== MV-MIPI-SC130M,RAW-MIPI-SC132M,RAW-MIPI-SC535M =====
====== 模式1:灰度渐变测试图 ======
====== 模式1:灰度渐变测试图 ======
Line 404:
Line 504:
固定亮度为最大亮度的一半。
固定亮度为最大亮度的一半。
[[File:Test pattern1 of 0234m.jpg|center|thumb|800x800px|Test pattern1 of 0234m]]
[[File:Test pattern1 of 0234m.jpg|center|thumb|800x800px|Test pattern1 of 0234m]]
−
模式2:color bar
模式2:color bar
Line 482:
Line 581:
|MV-MIPI-IMX264M
|MV-MIPI-IMX264M
|0-48dB
|0-48dB
+
|0.1dB
+
|-
+
|MV-MIPI-GMAX4002M
+
|Analog Gain:0 dB to 11.6 dB
+
Digital Gain: 6 dB to 23.8 dB
|0.1dB
|0.1dB
|-
|-
|RAW-MIPI-SC132M
|RAW-MIPI-SC132M
|0-40dB
|0-40dB
+
|0.1dB
+
|-
+
|RAW-MIPI-SC535M
+
|0-69dB
|0.1dB
|0.1dB
|}
|}
Line 540:
Line 648:
相关命令:lutenable,lut。
相关命令:lutenable,lut。
+
+
==== OSD叠加 ====
+
部分摄像机模组ISP后进行OSD叠加功能。
+
+
* mode1:
+
+
在图像中心叠加一个宽高均为150个像素的正方形十字,笔画宽度为2个像素。用于进行坐标校准。
+
+
相关命令:osdmode
=== IO控制 ===
=== IO控制 ===
Line 566:
Line 683:
===== 触发延迟 =====
===== 触发延迟 =====
−
MV系列摄像机具有触发延迟功能。触发延迟时间可以设置为[1,1000000]us。在硬触发和软触发都是生效的。
+
MV系列摄像机和RAW系列摄像机具有触发延迟功能。触发延迟时间可以设置为[1,1000000]us。在硬触发和软触发都是生效的。
相关命令:trgdelay。
相关命令:trgdelay。
Line 581:
Line 698:
===== Strobe =====
===== Strobe =====
在此模式下相机发送触发信号来激活闪光灯。strobe 信号高电平有效,接收到触发信号后,strobe 信号电平拉高,拉高时间为'''曝光延迟'''和'''触发周期'''之和。
在此模式下相机发送触发信号来激活闪光灯。strobe 信号高电平有效,接收到触发信号后,strobe 信号电平拉高,拉高时间为'''曝光延迟'''和'''触发周期'''之和。
+
+
RAW系列相机的strobe信号直接由sensor输出,是准确的曝光时间段。
===== UserOut =====
===== UserOut =====
Line 590:
Line 709:
可以使用相机的触发等待信号来优化触发图像采集,并可以有效避免过度触发的问题。
可以使用相机的触发等待信号来优化触发图像采集,并可以有效避免过度触发的问题。
−
====== 普通触发模式(global shutter) ======
+
===== Strobe和TriggerWait信号的图示 =====
+
+
====== Smartsens's 普通触发模式(global shutter) ======
+
本节适用于: MV-MIPI-SC130M,RAW-MIPI-SC132M,RAW-MIPI-SC535M。
+
下图以触发触发帧数设置为2为例,列出Strobe信号和TriggerWait信号:
下图以触发触发帧数设置为2为例,列出Strobe信号和TriggerWait信号:
[[File:Normal trigger mode details (Global shutter).png|center|thumb|800x800px|Normal trigger mode details (Global shutter)]]
[[File:Normal trigger mode details (Global shutter).png|center|thumb|800x800px|Normal trigger mode details (Global shutter)]]
+
<br /><br />
+
====== Sony's 普通触发模式(Global shutter) ======
+
本节适用于: MV-MIPI-IMX296M,MV-MIPI-IMX265M,MV-MIPI-IMX264M,MV-MIPI-IMX287M,MV-MIPI-GMAX4002M。
+
+
下图以触发触发帧数设置为2为例,列出Strobe信号和TriggerWait信号:
+
[[File:Sony Normal trigger mode detail(Global shutter).png.png|center|thumb|800x800px|Sony's Normal trigger mode, Strobe and TriggerWait]]
<br />
<br />
−
====== Smartsens's 普通触发模式(rolling shutter) ======
+
+
====== Sony and Smartsens's 电平触发模式(global shutter) ======
+
本节适用于: MV-MIPI-IMX296M,MV-MIPI-IMX265M,MV-MIPI-IMX264M,MV-MIPI-IMX287M,MV-MIPI-SC130M,MV-MIPI-GMAX4002M.
+
[[File:Pulse trigger mode details (Global shutter).png|center|thumb|800x800px|Pulse trigger mode details (Global shutter)]]
+
<br />
+
====== Sony's 普通触发模式(Rolling shutter) ======
+
本节适用于: MV-MIPI-IMX178M。
+
下图以触发触发帧数设置为2为例,列出Strobe信号和TriggerWait信号:
下图以触发触发帧数设置为2为例,列出Strobe信号和TriggerWait信号:
[[File:Rolling shutter Normal trigger mode full-new.png|alt=|center|thumb|800x800px|Smartsens's Normal trigger mode; Strobe and TriggerWait]]<br />
[[File:Rolling shutter Normal trigger mode full-new.png|alt=|center|thumb|800x800px|Smartsens's Normal trigger mode; Strobe and TriggerWait]]<br />
−
====== Sony's 普通触发模式(rolling shutter) ======
−
下图以触发触发帧数设置为2为例,列出Strobe信号和TriggerWait信号:
−
[[File:Sony Normal trigger mode detail(Global shutter).png.png|center|thumb|800x800px|Sony's Normal trigger mode, Strobe and TriggerWait]]
<br />
<br />
−
====== 高速触发模式(rolling shutter) ======
+
====== Sony's 滚动快门多帧触发模式 ======
+
本节适用于: MV-MIPI-IMX178M。
+
下图以触发触发帧数设置为3为例,列出Strobe信号和TriggerWait信号:
下图以触发触发帧数设置为3为例,列出Strobe信号和TriggerWait信号:
[[File:Rolling shutter High-speed trigger mode full-2.png|alt=|center|thumb|800x800px|High-speed trigger mode; Strobe and TriggerWait]]
[[File:Rolling shutter High-speed trigger mode full-2.png|alt=|center|thumb|800x800px|High-speed trigger mode; Strobe and TriggerWait]]
Line 622:
Line 757:
=== RAW series camera的特别说明 ===
=== RAW series camera的特别说明 ===
−
RAW系列相机只有一个MCU作为辅助控制芯片。普通模式和SDA模式可以通过[[Mv mipi i2c.sh user guide#mcubypass|mcubypass]]命令进行切换。
+
==== 触发延迟 ====
+
对于RAW系列摄像头,触发信号需要经过MCU的转发而传递给sensor。这个转发有一个固定的950ns左右的延迟。<br />
−
==== 普通模式 ====
+
=== 本文修改记录 ===
−
普通模式下,主板不能直接访问sensor。MCU提供了对sensor的初始化配置以及各种功能的配置。对不同的嵌入式平台,我们都提供了对应的驱动、脚本、demo。
−
其功能的介绍参考本文上面的描述。
+
* 2025-03-14
−
==== SDA 模式 ====
+
增加GMAX4002型号的描述。
−
SDA模式是Sensor Direct Access的缩写,此时MCU不再对sensor的i2c做任何控制,而是直接由用户控制sensor。
−
同时,为了提供必要的系统信息、模式切换、触发信号配置,MCU本身依旧对外提供i2c接口。
+
* 2025-01-07
−
比如,RAW系列摄像头在SDA模式下,具备两个i2c地址:0x30是sensor的地址,0x3b是MCU的地址。
+
# 去掉RAW系列产品的SDA模式的描述。
+
# 根据RAW系列升级成果,增加关于RAW系列外触发模式的说明。
−
SDA模式下,我们提供的驱动和demo均不再适用,只有部分[[Mv mipi i2c.sh user guide|mv_mipi_i2c.sh]]指令和[[MV Series MIPI Camera Register Map/zh|寄存器]]可用。
+
* 2024-08-27
−
==== 触发延迟 ====
+
增加关于pulse trigger mode的描述。注意与trgmodecap寄存器的值相印证。<br />
−
对于RAW系列摄像头,触发信号需要经过MCU的转发而传递给sensor。这个转发有一个固定的850ns左右的延迟。<br />