Difference between revisions of "MV Series MIPI Camera Register Map/zh"

From wiki_veye
Jump to navigation Jump to search
Line 132: Line 132:
 
|}
 
|}
 
=== 图像采集 ===
 
=== 图像采集 ===
 +
{| class="wikitable"
 +
!Address
 +
!Name
 +
!Description
 +
!Data Type
 +
!R/W
 +
!Update timing
 +
!script function
 +
|-
 +
|0x0400
 +
|Image  Acquisition
 +
|Start/Stop acquisition
 +
There is no image output after the camera is powered on, which means it is in the standby state.
 +
 +
After writing 1 to this register, it enters the running state and starts outputting images or waiting for the trigger signal.
 +
|bool
 +
|WO
 +
|A
 +
|imgacq
 +
|-
 +
|0x0404
 +
|Trigger Mode
 +
|0:Video streaming mode
 +
1:Normal trigger mode.
 +
 +
2:High-speed continuous trigger mode.
 +
 +
See product manual for details.
 +
|enum
 +
|RW
 +
|S
 +
|trgmode
 +
|-
 +
|0x0408
 +
|Trigger Source
 +
|0: Software trigger mode.
 +
1: Hardware trigger mode.
 +
|enum
 +
|RW
 +
|S
 +
|trgsrc
 +
|-
 +
|0x040C
 +
|Trigger Number
 +
|The number of image frames output by one trigger signal in trigger mode. Range:[1.255]
 +
|uint
 +
|RW
 +
|S
 +
|trgnum
 +
|-
 +
|0x0410
 +
|Trigger  Interval
 +
|Trigger interval in normal trigger mode, in microseconds. Range:[0.0xFFFFFF]
 +
|uint
 +
|RW
 +
|S
 +
|trginterval
 +
|-
 +
|0x0414
 +
|Trigger  Software
 +
|Software trigger command, write 1 for one trigger.
 +
|bool
 +
|WO
 +
|A
 +
|trgone
 +
|-
 +
|0x0418
 +
|Trigger Count
 +
|Trigger count statistics.
 +
The high 16 bits indicate the number of trigger loss, and the low 16 bits indicate the total number of triggers.
 +
 +
Write 1 to clear the count.
 +
|uint
 +
|RW
 +
|A
 +
|trgcount
 +
|-
 +
|0x041C
 +
|I2C ADDR
 +
|I2c address. Range[0x03,0x77].
 +
|uint
 +
|RW
 +
|A
 +
|i2caddr
 +
|}
 
=== 图像参数 ===
 
=== 图像参数 ===
 
=== 图像处理(ISP) ===
 
=== 图像处理(ISP) ===
 
=== IO控制 ===
 
=== IO控制 ===

Revision as of 10:39, 7 March 2022

English

MV系列MIPI摄像机模组寄存器列表

1 概述

1.1 寄存器特征

寄存器地址长度为4字节,数据长度为2字节。

寄存器读写属性分为RW,RO,WO三种。只有RW属性的可以保存到摄像机flash中。

寄存器值包括几种类型:intboolenumascii

1.2 i2c通信协议

模组支持通过i2c协议进行参数配置。摄像机默认的i2c从地址是0x3b,这个地址是可以修改的。

i2c读写寄存器时采用大端字节序,即高字节在前的顺序。

为了方便客户使用,我们提供了linux下开源的shell脚本,帮助进行每个寄存器的读写。

下表中script function一列表示此寄存器对应的shell脚本的功能函数。

1.3 Update timing

摄像机有两种状态,standby和running,开始图像采集后进入running状态。

下表中,Update timing的类型有:
A:任何时刻都可以读写。

S: running状态下可读不可写。

-:任何时刻都可读。

2 基础功能

Address Name Description Data Type R/W Update timing script function
0x0000 Manufacturer Name String containing the self-describing name of the manufacturer. “VEYE” ascii RO - manufacturer
0x0004 Model Name Product Model Code.

0x178 : MV-MIPI-IMX178

enum RO - model
0x0008 Sensor Name Sensor Model:

0x178 : IMX178LLJ

enum RO -
0x000C Serial Number Unique product serial number uint RO -
0x0010 Device Version Firmware version number. The high 16 bits are the Control version and the low 16 bits are the Logic version.

For example, 0x01020304 means Control version is 1.2 and Logic version is 3.4.

uint RO - version
0x0014 Factory Param All parameters restored to factory default values. bool WO A factoryparam
0x0018 Param save to flash Save the parameters to flash, and they will not be lost when power off. bool WO A paramsave
0x001C System reboot Reboot the camera. bool WO A reboot
0x0020 Time stamp Time after system startup in Milliseconds. uint RO - timestamp
0x0024 Error Code System error code, each bit represents an error type.

bit0: sensor error.

bit1: Logic module startup error.

bit2: Logic module communication error.

bit5: AA(AE&AG) regulation cannot reach the target.

bit6: Authorization failure.

uint RO - errcode

3 图像采集

Address Name Description Data Type R/W Update timing script function
0x0400 Image Acquisition Start/Stop acquisition

There is no image output after the camera is powered on, which means it is in the standby state.

After writing 1 to this register, it enters the running state and starts outputting images or waiting for the trigger signal.

bool WO A imgacq
0x0404 Trigger Mode 0:Video streaming mode

1:Normal trigger mode.

2:High-speed continuous trigger mode.

See product manual for details.

enum RW S trgmode
0x0408 Trigger Source 0: Software trigger mode.

1: Hardware trigger mode.

enum RW S trgsrc
0x040C Trigger Number The number of image frames output by one trigger signal in trigger mode. Range:[1.255] uint RW S trgnum
0x0410 Trigger Interval Trigger interval in normal trigger mode, in microseconds. Range:[0.0xFFFFFF] uint RW S trginterval
0x0414 Trigger Software Software trigger command, write 1 for one trigger. bool WO A trgone
0x0418 Trigger Count Trigger count statistics.

The high 16 bits indicate the number of trigger loss, and the low 16 bits indicate the total number of triggers.

Write 1 to clear the count.

uint RW A trgcount
0x041C I2C ADDR I2c address. Range[0x03,0x77]. uint RW A i2caddr

4 图像参数

5 图像处理(ISP)

6 IO控制