[go: up one dir, main page]

CN102164232B - Data communication method between two cameras and realization method thereof - Google Patents

Data communication method between two cameras and realization method thereof Download PDF

Info

Publication number
CN102164232B
CN102164232B CN 201110033162 CN201110033162A CN102164232B CN 102164232 B CN102164232 B CN 102164232B CN 201110033162 CN201110033162 CN 201110033162 CN 201110033162 A CN201110033162 A CN 201110033162A CN 102164232 B CN102164232 B CN 102164232B
Authority
CN
China
Prior art keywords
chip
slave
data
state
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201110033162
Other languages
Chinese (zh)
Other versions
CN102164232A (en
Inventor
赵立新
孟庆
马小妹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Galaxycore Shanghai Ltd Corp
Original Assignee
Galaxycore Shanghai Ltd Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Galaxycore Shanghai Ltd Corp filed Critical Galaxycore Shanghai Ltd Corp
Priority to CN 201110033162 priority Critical patent/CN102164232B/en
Publication of CN102164232A publication Critical patent/CN102164232A/en
Application granted granted Critical
Publication of CN102164232B publication Critical patent/CN102164232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

本发明提供一种双摄像头之间数据通讯的方法,包括:设置其中一颗摄像头为主芯片,设置另外一颗摄像头为从芯片;设置主芯片与从芯片的工作状态,使主芯片工作在行消隐的状态时,从芯片工作在行有效状态,主芯片工作在行有效状态时,从芯片工作在行消隐的状态;使从芯片在行有效状态下输出图像数据,主芯片在行消隐状态下接收从芯片来的数字信号。同时提出了一套实现所述双摄像头之间数据通讯方法的双摄像头装置。本发明利用双摄像头分时复用处理单元及接口而实现协同工作,节约了从芯片的外部通讯接口及处理单元,减少了需要的管脚,使芯片面积可以做得更小,降低了双摄像头方案实现成本,同时缩小了双摄像头的安装空间。

Figure 201110033162

The invention provides a method for data communication between two cameras, comprising: setting one of the cameras as the master chip, setting the other camera as the slave chip; setting the working status of the master chip and the slave chip so that the master chip works In the state of blanking, the slave chip works in the row valid state, and when the master chip works in the row valid state, the slave chip works in the row blanking state; the slave chip outputs image data in the row valid state, and the master chip Receive the digital signal from the chip in the hidden state. At the same time, a set of dual-camera device for realizing the data communication method between the dual-cameras is proposed. The present invention utilizes the time-division multiplexing processing unit and interface of dual cameras to realize cooperative work, saves the external communication interface and processing unit of the slave chip, reduces the required pins, makes the chip area smaller, and reduces the cost of dual cameras. The implementation cost of the solution is reduced, and the installation space of the dual cameras is reduced at the same time.

Figure 201110033162

Description

一种双摄像头之间数据通讯的方法及其实现装置A method of data communication between two cameras and its realization device

技术领域 technical field

本发明涉及图像处理领域,特别涉及一种双摄像头之间数据通讯方法及实现该方法的双摄像头装置。The invention relates to the field of image processing, in particular to a data communication method between dual cameras and a dual camera device for realizing the method.

背景技术 Background technique

摄像头作为一种图像采集工具目前广泛应用于诸如移动电话、PDA及平板电脑等数码产品中。为了改善设备的用户体验及增强个体功能,愈来愈多的数码产品采用了双摄像头图像采集方案,分别置于设备的不同部位(一般分前摄像头和后摄像头),以实现多角度图像采集。在现有的双摄像头解决方案中,一般是双摄像头分别和系统主芯片(一般是基带芯片)进行通信:如目前最常用的各个摄像头以接口为DVP(Digital Video Port)模式的方式与上层系统进行通讯,这种模式下一般需要每个摄像头均有自己的图像处理部分以及与上层系统连接的数据输出管脚。此种双摄像头连接模式对于设备放置空间要求较高,同时双摄像头均具有图像处理装置的方案成本也相对较高。As an image acquisition tool, a camera is currently widely used in digital products such as mobile phones, PDAs, and tablet computers. In order to improve the user experience of the device and enhance individual functions, more and more digital products adopt a dual-camera image acquisition solution, which is placed in different parts of the device (generally divided into front camera and rear camera) to achieve multi-angle image acquisition. In the existing dual-camera solutions, the dual-cameras usually communicate with the main chip of the system (usually the baseband chip): for example, the most commonly used cameras communicate with the upper-level system in the form of a DVP (Digital Video Port) interface. For communication, this mode generally requires each camera to have its own image processing part and data output pins connected to the upper system. This dual-camera connection mode requires a relatively high space for equipment placement, and at the same time, the cost of a solution in which both cameras have an image processing device is relatively high.

公开号为CN101877760A的中国专利申请提出了一种基于同一DVP数据总线的双摄像头结构,具体地,涉及一种基于同一DVP数据总线的双摄像头在手机中的连接方案,使用此方案,能够在单一的数据处理芯片(DSP)平台上,实现对主副双摄像头的控制与支持,并可以完成对双摄像头的配置、使用、切换、体眠等多种功能。但是,此种方案通过外置单一数据处理芯片来协调主副摄像头之间的工作,只是在摄像头与上层系统通讯的方式上加以改进,并没有针对摄像头本身进行改进,单个摄像头仍需配备各自的功能单元,双摄像头安装空间及实现成本控制有限。The Chinese patent application with the publication number CN101877760A proposes a dual-camera structure based on the same DVP data bus. Specifically, it relates to a connection scheme for dual-cameras in a mobile phone based on the same DVP data bus. Using this scheme, it is possible to On the advanced data processing chip (DSP) platform, it realizes the control and support of the main and secondary dual cameras, and can complete the configuration, use, switching, body sleep and other functions of the dual cameras. However, this solution uses an external single data processing chip to coordinate the work between the main and secondary cameras. It only improves the way the camera communicates with the upper system, and does not improve the camera itself. Each camera still needs to be equipped with its own Functional unit, dual camera installation space and cost control are limited.

发明内容 Contents of the invention

本发明解决的问题是针对现有双摄像头解决方案中,主摄像头芯片面积有限,没有地方来摆放足够的数据输入/输出管脚,使得双摄像头实现成本较高的问题。The problem solved by the present invention is to solve the problem that in the existing dual camera solution, the chip area of the main camera is limited, and there is no place to place enough data input/output pins, so that the implementation cost of the dual camera is relatively high.

为解决上述问题,本发明提出了一种双摄像头之间数据通讯的方法,包括:In order to solve the above problems, the present invention proposes a method for data communication between dual cameras, including:

提供双摄像头装置,设置其中一颗摄像头为主芯片,设置另外一颗摄像头为从芯片;Provide a dual-camera device, set one of the cameras as the master chip, and set the other camera as the slave chip;

设置主芯片与从芯片的工作状态,使主芯片工作在行消隐的状态时,从芯片工作在行有效状态,主芯片工作在行有效状态时,从芯片工作在行消隐的状态;Set the working state of the master chip and the slave chip so that when the master chip works in the line blanking state, the slave chip works in the line valid state, and when the master chip works in the line valid state, the slave chip works in the line blanking state;

使从芯片在行有效状态下输出图像数据,主芯片在行消隐状态下接收从芯片来的数字信号。Make the slave chip output image data in the line active state, and the master chip receive the digital signal from the slave chip in the line blank state.

同时提出了一套实现所述双摄像头之间数据通讯方法的双摄像头装置,包括主芯片及从芯片,其中:At the same time, a set of dual-camera device for realizing the data communication method between the dual-cameras is proposed, including a master chip and a slave chip, wherein:

所述从芯片包括:The slave chip includes:

感光单元,用于获取图像信号;a photosensitive unit for acquiring an image signal;

读出单元,用于读取感光单元内的图像信号;The readout unit is used to read the image signal in the photosensitive unit;

数字化单元,用于将模拟图像信号转换成数字信号;a digitizing unit, for converting the analog image signal into a digital signal;

以及输出单元,包括输出接口,用于输出数字信号;and an output unit, including an output interface, for outputting digital signals;

所述主芯片包括:The main chip includes:

感光单元,用于获取图像信号;a photosensitive unit for acquiring an image signal;

读出单元,用于读取感光单元的图像信号;The readout unit is used to read the image signal of the photosensitive unit;

数字化单元,用于将模拟图像信号转换成数字信号;a digitizing unit, for converting the analog image signal into a digital signal;

处理单元,用于对数字信号进行处理形成图像数据;a processing unit, configured to process the digital signal to form image data;

输入输出单元,包括数据接口,用于向上层系统输出图像数据;及在主从工作模式时,在主芯片的行消隐时间里,接收从芯片来的数字信号。The input and output unit includes a data interface, which is used to output image data to the upper system; and in the master-slave mode, receives the digital signal from the slave chip during the line blanking time of the master chip.

优选地,主芯片工作在行消隐的状态时,从芯片工作在行有效状态,主芯片工作在行有效状态时,从芯片工作在行消隐的状态。Preferably, when the master chip works in the row blanking state, the slave chip works in the row active state, and when the master chip works in the row valid state, the slave chip works in the row blanking state.

优选地,从芯片工作时,在主芯片行消隐的时间内,从芯片上与主芯片相连接的数据管脚为输出状态,主芯片上与从芯片相连接的数据管脚为输入状态,用于主芯片接收来自从芯片的数字信号;在主芯片行有效传输的时间里,从芯片上与主芯片相连接的数据管脚为高阻状态,主芯片上与从芯片相连接的数据管脚为输出状态,通过主芯片的数据管脚向上层系统输出图像数据。Preferably, when the slave chip is working, the data pins connected to the master chip on the slave chip are in an output state during the blanking time of the master chip, and the data pins connected to the slave chip on the master chip are in an input state. It is used for the master chip to receive the digital signal from the slave chip; during the effective transmission time of the master chip, the data pin connected to the master chip on the slave chip is in a high-impedance state, and the data pin connected to the slave chip on the master chip is in a high-impedance state. The pin is in the output state, and the image data is output to the upper system through the data pin of the main chip.

与现有技术相比,本发明具有以下优点:本发明利用双摄像头分时复用处理单元及接口而实现协同工作,节约了从芯片的图像处理单元,减少了主芯片通讯时需要的管脚,使主/从芯片面积可以做得更小,降低了双摄像头方案实现成本,同时缩小了双摄像头的安装空间。Compared with the prior art, the present invention has the following advantages: the present invention utilizes the dual-camera time-division multiplexing processing unit and interface to realize cooperative work, saves the image processing unit of the slave chip, and reduces the pins required for the communication of the master chip , so that the area of the master/slave chip can be made smaller, which reduces the implementation cost of the dual-camera solution and reduces the installation space of the dual-camera.

附图说明 Description of drawings

图1是本发明现有技术中摄像头基本组成部分示意图。FIG. 1 is a schematic diagram of the basic components of a camera in the prior art of the present invention.

图2是本发明所述双摄像头装置基本构架示意图。FIG. 2 is a schematic diagram of the basic structure of the dual-camera device of the present invention.

图3是本发明所述双摄像头之间通讯方法的工作状态图。Fig. 3 is a working state diagram of the communication method between the dual cameras of the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图对本实发明的具体实施方式做详细的说明。In order to make the above objects, features and advantages of the present invention more obvious and comprehensible, specific implementations of the present invention will be described in detail below in conjunction with the accompanying drawings.

现有的双摄像头图像处理装置中,请参阅图1,每个摄像头的内部构造基本相同,均包括:感光单元101,用于获取图像信号;读出单元102,用于读取感光单元的图像信号;数字化单元103,用于将模拟信号转换成数字信号;处理单元104,用于对数字信号进行处理,完成诸如去噪声、内插、边缘加强、灰度校正、颜色校正及其他图像处理功能;输入输出单元105,包括数据接口,用于向上层系统输出图像信号。In the existing dual-camera image processing device, please refer to FIG. 1 , the internal structure of each camera is basically the same, including: a photosensitive unit 101 for acquiring image signals; a readout unit 102 for reading the image of the photosensitive unit Signal; digitization unit 103, used to convert analog signal into digital signal; processing unit 104, used to process digital signal, complete functions such as noise removal, interpolation, edge enhancement, grayscale correction, color correction and other image processing ; The input and output unit 105 includes a data interface for outputting image signals to the upper system.

发明人经过研究发现,摄像头装置在工作状态时,有部分时间数据输出接口并没有处于数据输出状态,利用这部分时间,可以接收其他摄像头装置传输过来的图像信号进行处理,这部分时间可以定义为摄像头工作的空闲时间。具体地,在摄像头装置将光信号转换为电信号的扫描过程中,扫描总是从图像的左上角开始,水平向前行进,同时扫描点也以较慢的速率向下移动。当扫描点到达图像右侧边缘时,扫描点快速返回左侧,重新开始在第1行的起点下面进行第2行扫描,每行扫描的时间称之为行有效(水平有效)的时间,行与行之间的返回过程所消耗的时间称为行消隐(水平消隐)时间,在行消隐的这段时间里,摄像头装置停止输出数据,其输入输出单元的数据接口处于空闲状态,因此属于摄像头工作的空闲时间的一种。The inventor found through research that when the camera device is in the working state, the data output interface is not in the data output state for a part of the time. Using this part of the time, the image signal transmitted by other camera devices can be received for processing. This part of the time can be defined as Free time for camera work. Specifically, during the scanning process in which the camera device converts optical signals into electrical signals, the scanning always starts from the upper left corner of the image and moves forward horizontally, while the scanning point also moves downward at a slower rate. When the scanning point reaches the right edge of the image, the scanning point quickly returns to the left, and restarts to scan the second line below the starting point of the first line. The scanning time of each line is called the line effective (horizontal effective) time. The time consumed by the return process between the line and the line is called the line blanking (horizontal blanking) time. During this period of line blanking, the camera device stops outputting data, and the data interface of its input and output unit is in an idle state. Therefore, it is a kind of idle time for camera work.

由上所述,当摄像头装置工作至行消隐状态时,输入输出单元的数据接口可以用来接收数据,同时处理外部数据,在行有效的时间里将处理后的图像信号输出。基于此原理,可以将双摄像头装置中一个摄像头的图像处理装置省去,利用另外一个摄像头的数据处理单元及与上层系统的通讯接口进行数据处理,从而达到降低现有技术中双摄像头方案实现成本,同时缩小双摄像头的安装空间的目的,同时保证了信号处理质量。为实现此目的,发明人提出了一种双摄像头之间数据通讯的方法,包括:As mentioned above, when the camera device works in the line blanking state, the data interface of the input and output unit can be used to receive data, process external data at the same time, and output the processed image signal during the line effective time. Based on this principle, the image processing device of one camera in the dual-camera device can be omitted, and the data processing unit of the other camera and the communication interface with the upper system can be used for data processing, thereby reducing the implementation cost of the dual-camera solution in the prior art , while reducing the installation space of the dual cameras, while ensuring the quality of signal processing. To achieve this goal, the inventor proposes a method for data communication between dual cameras, including:

提供双摄像头装置,设置其中一颗摄像头为主芯片,设置另外一颗摄像头为从芯片;Provide a dual-camera device, set one of the cameras as the master chip, and set the other camera as the slave chip;

设置主芯片与从芯片的工作状态,使主芯片工作在行消隐的状态时,从芯片工作在行有效状态,主芯片工作在行有效状态时,从芯片工作在行消隐的状态;Set the working state of the master chip and the slave chip so that when the master chip works in the line blanking state, the slave chip works in the line valid state, and when the master chip works in the line valid state, the slave chip works in the line blanking state;

使从芯片在行有效状态下输出图像信号,主芯片在行消隐状态下接收从芯片来的数字信号。Make the slave chip output the image signal in the line active state, and the master chip receive the digital signal from the slave chip in the line blank state.

同时提出了一套实现此方法的双摄像头装置,请参阅图2,包括:At the same time, a set of dual-camera device for implementing this method is proposed, please refer to Figure 2, including:

包括主芯片100及从芯片200,其中,Including master chip 100 and slave chip 200, wherein,

所述从芯片200包括:The slave chip 200 includes:

感光单元201,用于获取图像信号;a photosensitive unit 201, configured to acquire an image signal;

读出单元202,用于读取感光单元内的图像信号;The readout unit 202 is used to read the image signal in the photosensitive unit;

数字化单元203,用于将模拟图像信号转换成数字信号;A digitization unit 203, configured to convert the analog image signal into a digital signal;

以及输出单元204,包括输出接口,用于输出数字信号;And an output unit 204, including an output interface, for outputting digital signals;

所述主芯片100包括:The main chip 100 includes:

感光单元101,用于获取图像信号;A photosensitive unit 101, configured to acquire an image signal;

读出单元102,用于读取感光单元的图像信号;The readout unit 102 is used to read the image signal of the photosensitive unit;

数字化单元103,用于将模拟图像信号转换成数字信号;A digitization unit 103, configured to convert the analog image signal into a digital signal;

处理单元104,用于对数字信号进行处理形成图像数据;a processing unit 104, configured to process the digital signal to form image data;

输入输出单元105,包括数据接口,用于向上层系统输出图像数据;及在主从工作模式时,在主芯片100的行消隐时间里,接收从芯片200来的数字信号。The I/O unit 105 includes a data interface for outputting image data to the upper system; and receives digital signals from the slave chip 200 during the line blanking time of the master chip 100 in the master-slave mode.

以下结合附图及实施例对本发明具体实施方式做进一步说明:The specific embodiment of the present invention will be further described below in conjunction with accompanying drawing and embodiment:

首先提供包括主芯片100及从芯片200在内的双摄像头装置,设置其中一颗摄像头为主芯片100,设置另外一颗摄像头为从芯片200。请继续参阅图2,其中,所述从芯片200包括:感光单元201,用于获取图像信号;读出单元202,用于读取感光单元内的图像信号;数字化单元203,用于将模拟图像信号转换成数字信号;以及输出单元204,包括输出接口,所述输出接口与主芯片输入输出单元105的数据接口相连接,用于向主芯片100输出数字信号;所述主芯片100包括:感光单元101,用于获取图像信号;读出单元102,用于读取感光单元101的图像信号;数字化单元103,用于将模拟图像信号转换成数字信号;处理单元104,用于对数字信号进行处理形成图像数据;输入输出单元105,包括数据接口,用于向上层系统输出图像数据;及在主从工作模式时,在主芯片100的行消隐时间里,接收从芯片200来的数字信号。First, a dual-camera device including a master chip 100 and a slave chip 200 is provided, and one of the cameras is set as the master chip 100 , and the other camera is set as the slave chip 200 . Please continue to refer to FIG. 2 , wherein the slave chip 200 includes: a photosensitive unit 201 for acquiring an image signal; a readout unit 202 for reading the image signal in the photosensitive unit; a digitization unit 203 for converting an analog image The signal is converted into a digital signal; and the output unit 204 includes an output interface, the output interface is connected with the data interface of the main chip input and output unit 105, and is used to output a digital signal to the main chip 100; the main chip 100 includes: photosensitive The unit 101 is used to acquire the image signal; the readout unit 102 is used to read the image signal of the photosensitive unit 101; the digitization unit 103 is used to convert the analog image signal into a digital signal; the processing unit 104 is used to process the digital signal Process and form image data; input and output unit 105 includes a data interface for outputting image data to the upper layer system; and in the master-slave mode, receive digital signals from the slave chip 200 during the line blanking time of the master chip 100 .

根据本发明的第一实施例,所述主芯片100以DVP并口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、1个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;以主芯片100的数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;主芯片100其他数据输出管脚中的任意1个,连接到从芯片200的数据输出管脚。According to the first embodiment of the present invention, the master chip 100 communicates with the upper system in the DVP parallel port mode, and the data interface pins of the slave chip output unit 204 include a clock output pin and a data output pin and other pins, the master chip 100 includes 8 data output pins and other pins; one of the data output pins of the master chip 100 is used as a clock input pin, connected to the clock output pin of the slave chip 200 Any one of the other data output pins of the master chip 100 is connected to the data output pin of the slave chip 200.

根据本发明第一实施例的一个变化例,所述主芯片100以DVP并口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、2个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;以主芯片100的数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;主芯片100其他数据输出管脚中的任意2个,连接到从芯片200的数据输出管脚。According to a variation of the first embodiment of the present invention, the master chip 100 communicates with the upper system in the DVP parallel port mode, and the data interface pins of the slave chip output unit 204 include 1 clock output pin, 2 data Output pins and other pins, the master chip 100 includes 8 data output pins and other pins; use one of the data output pins of the master chip 100 as a clock input pin, connected to the slave chip 200 Clock output pins; any two of the other data output pins of the master chip 100 are connected to the data output pins of the slave chip 200 .

根据本发明第一实施例的另一个变化例,所述主芯片100以DVP并口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、3个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;以主芯片100的数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;主芯片100其他数据输出管脚中的任意3个,连接到从芯片200的数据输出管脚。According to another variation of the first embodiment of the present invention, the master chip 100 communicates with the upper system in the DVP parallel port mode, and the data interface pins of the slave chip output unit 204 include 1 clock output pin, 3 Data output pins and other pins, the master chip 100 includes 8 data output pins and other pins; one of the data output pins of the master chip 100 is used as a clock input pin, connected to the slave chip 200 Any three of the other data output pins of the master chip 100 are connected to the data output pins of the slave chip 200 .

根据本发明第一实施例的另一个变化例,所述主芯片100以DVP并口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、4个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;以主芯片100的数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;主芯片100其他数据输出管脚中的任意4个,连接到从芯片200的数据输出管脚。According to another variation of the first embodiment of the present invention, the master chip 100 communicates with the upper system in the DVP parallel port mode, and the data interface pins of the slave chip output unit 204 include 1 clock output pin, 4 Data output pins and other pins, the master chip 100 includes 8 data output pins and other pins; one of the data output pins of the master chip 100 is used as a clock input pin, connected to the slave chip 200 Any 4 of the other data output pins of the master chip 100 are connected to the data output pins of the slave chip 200 .

根据本发明的第二实施例,所述主芯片100以SPI串口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、1个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;其中,主芯片100以8个数据输出管脚中的任1个作为与上层系统通讯的SPI数据管脚;以主芯片100的其余数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;此后,选择剩余主芯片100数据输出管脚中的任意1个,连接到从芯片200的数据输出管脚。According to the second embodiment of the present invention, the master chip 100 communicates with the upper system in the SPI serial port mode, and the data interface pins of the slave chip output unit 204 include a clock output pin and a data output pin and other pins, the main chip 100 includes 8 data output pins and other pins; wherein, the main chip 100 uses any one of the 8 data output pins as the SPI data pin for communication with the upper system; Take one of the remaining data output pins of the main chip 100 as a clock input pin, and connect to the clock output pin of the slave chip 200; thereafter, select any one of the remaining main chip 100 data output pins, and connect to The data output pin of the slave chip 200.

根据本发明的第二实施例的一个变化例,所述主芯片100以SPI串口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、4个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;其中,主芯片100以8个数据输出管脚中的任1个作为与上层系统通讯的SPI数据管脚;以主芯片100的其余数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;此后,选择剩余主芯片100数据输出管脚中的任意4个,连接到从芯片200的数据输出管脚。According to a variation of the second embodiment of the present invention, the master chip 100 communicates with the upper system in the SPI serial port mode, and the data interface pins of the slave chip output unit 204 include 1 clock output pin, 4 Data output pins and other pins, the main chip 100 includes 8 data output pins and other pins; wherein, the main chip 100 uses any one of the 8 data output pins as an SPI for communication with the upper system Data pin; 1 of the remaining data output pins of the main chip 100 is used as a clock input pin, connected to the clock output pin of the slave chip 200; thereafter, select any 4 of the remaining main chip 100 data output pins One, connected to the data output pin of the slave chip 200.

根据本发明第二实施例的另一个变化例,所述主芯片100以SPI串口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、2个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;其中,主芯片100以8个数据输出管脚中的任2个作为与上层系统通讯的SPI数据管脚;以主芯片100的其余数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;此后,选择剩余主芯片100数据输出管脚中的任意2个,连接到从芯片200的数据输出管脚。According to another variation of the second embodiment of the present invention, the master chip 100 communicates with the upper system in the SPI serial port mode, and the data interface pins of the slave chip output unit 204 include 1 clock output pin, 2 Data output pins and other pins, the main chip 100 includes 8 data output pins and other pins; wherein, the main chip 100 uses any 2 of the 8 data output pins as the SPI for communication with the upper system Data pins; use 1 of the remaining data output pins of the main chip 100 as a clock input pin to be connected to the clock output pin of the slave chip 200; thereafter, select any 2 of the remaining main chip 100 data output pins One, connected to the data output pin of the slave chip 200.

根据本发明第二实施例的另一个变化例,所述主芯片100以SPI串口模式与上层系统进行通讯,所述从芯片输出单元204的数据接口管脚包括1个时钟输出管脚、1个数据输出管脚及其它管脚,所述主芯片100包括8个数据输出管脚及其他管脚;其中,主芯片100以8个数据输出管脚中的任4个作为与上层系统通讯的SPI数据管脚;以主芯片100的其余数据输出管脚中的1个作为时钟输入管脚,连接到从芯片200的时钟输出管脚;此后,选择剩余主芯片100数据输出管脚中的任意1个,连接到从芯片200的数据输出管脚。According to another variation of the second embodiment of the present invention, the master chip 100 communicates with the upper system in the SPI serial port mode, and the data interface pins of the slave chip output unit 204 include a clock output pin, a Data output pins and other pins, the main chip 100 includes 8 data output pins and other pins; wherein, the main chip 100 uses any 4 of the 8 data output pins as the SPI for communication with the upper system Data pins; use one of the remaining data output pins of the master chip 100 as a clock input pin to be connected to the clock output pin of the slave chip 200; thereafter, select any one of the remaining master chip 100 data output pins One, connected to the data output pin of the slave chip 200.

其次,设置主芯片100与从芯片200的工作状态,使主芯片100工作在行消隐的状态时,从芯片200工作在行有效状态,主芯片100工作在行有效状态时,从芯片200工作在行消隐的状态。参照图3,可将主芯片100与从芯片200的工作时钟频率设置为相同频率,使主芯片工作在行有效地状态时,从芯片工作在行消隐的状态;主芯片工作在行消隐的状态时,从芯片工作在行有效状态。Secondly, set the operating state of master chip 100 and slave chip 200, when making master chip 100 work in the state of row blanking, slave chip 200 works in row valid state, when master chip 100 works in row valid state, slave chip 200 works in the state of line blanking. Referring to Fig. 3, the operating clock frequency of the main chip 100 and the slave chip 200 can be set to the same frequency, so that when the main chip works in the effective state of the line, the slave chip works in the line blanking state; the main chip works in the line blanking In the state, the slave chip works in the active state.

其次,使从芯片200在行有效状态下输出图像数据,主芯片100在行消隐状态下接收从芯片200来的图像信号。Secondly, make the slave chip 200 output image data in the line active state, and the master chip 100 receive the image signal from the slave chip 200 in the line blank state.

根据本发明的第一实施例及其变化例,所述双摄像头装置的工作模式包括主芯片100单独工作模式及主从芯片同时工作的主从工作模式,其主芯片100与上层系统以DVP并口模式通讯。进一步具体地,所述主从工作模式时:从芯片200的感光单元201获取图像信号;从芯片读出单元202读出图像信号并将所述图像信号传输至数字化单元203;数字化单元203处理所述图像信号形成数字信号,在主芯片100行消隐、从芯片200行有效的时间里,将数字信号通过DVP接口输入至主芯片输入输出单元105;主芯片处理单元104对输入的数字信号进行处理形成图像数据,并在主芯片100行有效、从芯片200行消隐的时间里将图像数据通过DVP接口送出至上层系统。其中,从芯片200与主芯片100之间的通讯方式可为串口通讯或并口通讯,优选地,主从芯片之间的通讯方式可为带包头的串口通讯模式。其传输的数据可为任意位,且带有标示位,用于主芯片100识别及定位。进一步具体地,在从芯片200工作时,主芯片100行消隐的时间内,从芯片200上与主芯片100相连接的数据管脚为输出状态,主芯片100上与从芯片200相连接的数据管脚为输入状态,用于主芯片100接收来自从芯片200的数字信号;在主芯片100行有效传输的时间里,从芯片200上与主芯片100相连接的数据管脚为高阻状态,主芯片100上与从芯片200相连接的数据管脚为输出状态,通过主芯片100的数据管脚向上层系统输出图像数据。所述主芯片100单独工作时:主芯片感光单元获取图像信号;读出单元读出获取的图像信号并将所述图像信号传输至处理单元104;处理单元104对所述图像信号进行处理形成图像数据,并传送至输入输出单元105;输入输出单元105输出图像数据至上层系统。According to the first embodiment of the present invention and its variations, the operating mode of the dual camera device includes a master-slave mode in which the master chip 100 works independently and the master-slave chip works simultaneously, and the master chip 100 and the upper system use a DVP parallel port mode communication. More specifically, during the master-slave mode of operation: obtain the image signal from the photosensitive unit 201 of the chip 200; read the image signal from the chip readout unit 202 and transmit the image signal to the digitization unit 203; the digitization unit 203 processes the The above image signal forms a digital signal, and in the time when 100 lines of the main chip are blanked and 200 lines of the slave chip are valid, the digital signal is input to the main chip input and output unit 105 through the DVP interface; the main chip processing unit 104 processes the input digital signal Process and form image data, and send the image data to the upper system through the DVP interface during the time when 100 lines of the master chip are active and 200 lines of the slave chip are blank. Wherein, the communication mode between the slave chip 200 and the master chip 100 can be serial port communication or parallel port communication. Preferably, the communication mode between the master chip and the master chip 100 can be a serial port communication mode with packet header. The transmitted data can be any bit, and has a flag bit, which is used for identifying and locating the main chip 100 . Further specifically, when the slave chip 200 is working, the data pins connected to the master chip 100 on the slave chip 200 are in the output state during the blanking time of the master chip 100 lines, and the data pins connected to the slave chip 200 on the master chip 100 are in the output state. The data pin is in the input state, and is used for the master chip 100 to receive digital signals from the slave chip 200; during the effective transmission time of the master chip 100 lines, the data pin connected to the master chip 100 on the slave chip 200 is in a high-impedance state , the data pins on the master chip 100 connected to the slave chips 200 are in an output state, and the image data is output to the upper layer system through the data pins of the master chip 100 . When the main chip 100 works alone: the photosensitive unit of the main chip acquires an image signal; the readout unit reads out the acquired image signal and transmits the image signal to the processing unit 104; the processing unit 104 processes the image signal to form an image The data is sent to the I/O unit 105; the I/O unit 105 outputs the image data to the upper system.

根据本发明的第二实施例及其变化例,所述双摄像头装置的工作模式包括主芯片100单独工作模式及主从芯片同时工作的主从工作模式,其主芯片100与上层系统以SPI口模式通讯。进一步具体地,所述主从工作模式时:从芯片200的感光单元201获取图像信号;从芯片读出单元202读出图像信号并将所述图像信号传输至数字化单元203;数字化单元处理所述图像信号形成数字信号,因从芯片200输出管脚与主芯片100的输出管脚分别使用了不同的主芯片管脚,所以无论是在主芯片100行消隐还是在主芯片100行有效的时间里,均可将数字信号输入至主芯片输入输出单元105;主芯片处理单元104对输入的数字信号进行处理形成图像数据,并在主芯片100行有效、从芯片200行消隐的时间里将图像数据通过SPI管脚送出至上层系统。其中,从芯片200与主芯片100之间的通讯方式可为串口通讯或并口通讯,优选地,主从芯片之间的通讯方式可为带包头的串口通讯模式。其传输的数据可为任意位,且带有标示位,用于主芯片100识别及定位。所述主芯片100单独工作时:主芯片100感光单元101获取图像信号;读出单元102读出获取的图像信号并将所述图像信号传输至数字化单元103形成数字信号,数字信号进入处理单元104;处理单元104对所述数字信号进行处理形成图像数据,并传送至输入输出单元105;输入输出单元105输出图像数据至上层系统。According to the second embodiment of the present invention and its variations, the operating modes of the dual camera device include a master-slave mode in which the master chip 100 works independently and the master-slave chip works simultaneously, and the master chip 100 and the upper system use an SPI interface. mode communication. Further specifically, during the master-slave working mode: the image signal is obtained from the photosensitive unit 201 of the chip 200; the image signal is read out from the chip readout unit 202 and the image signal is transmitted to the digitization unit 203; the digitization unit processes the The image signal forms a digital signal. Since the output pins of the slave chip 200 and the output pins of the main chip 100 use different main chip pins, no matter whether the 100 lines of the main chip are blanked or the 100 lines of the main chip are valid Here, the digital signal can be input to the main chip input and output unit 105; the main chip processing unit 104 processes the input digital signal to form image data, and in the time when 100 lines of the main chip are valid and 200 lines of the slave chip are blanked The image data is sent to the upper system through the SPI pin. Wherein, the communication mode between the slave chip 200 and the master chip 100 can be serial port communication or parallel port communication. Preferably, the communication mode between the master chip and the master chip 100 can be a serial port communication mode with packet header. The transmitted data can be any bit, and has a flag bit, which is used for identifying and locating the main chip 100 . When the main chip 100 works alone: the photosensitive unit 101 of the main chip 100 acquires an image signal; the readout unit 102 reads out the acquired image signal and transmits the image signal to the digitization unit 103 to form a digital signal, and the digital signal enters the processing unit 104 The processing unit 104 processes the digital signal to form image data, and sends it to the input and output unit 105; the input and output unit 105 outputs the image data to the upper system.

本发明虽然已以较佳实施例公开如上,但其并不是用来限定本发明,任何本领域技术人员在不脱离本发明的精神和范围内,都可以利用上述揭示的方法和技术内容对本发明技术方案做出可能的变动和修改,因此,凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化及修饰,均属于本发明技术方案的保护范围。Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention, and any person skilled in the art can use the methods disclosed above and technical content to analyze the present invention without departing from the spirit and scope of the present invention. Possible changes and modifications are made in the technical solution. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention, which do not depart from the content of the technical solution of the present invention, all belong to the technical solution of the present invention. protected range.

Claims (2)

1.一种双摄像头之间数据通讯的方法,其特征在于:1. A method for data communication between two cameras, characterized in that: 提供双摄像头装置,设置其中一颗摄像头为主芯片,设置另外一颗摄像头为从芯片,其中,所述主芯片包括:感光单元,用于获取图像信号;读出单元,用于读取感光单元的图像信号;数字化单元,用于将模拟图像信号转换成数字信号;处理单元,用于对数字信号进行处理形成图像数据;输入输出单元,包括数据接口,用于向上层系统输出图像数据,及在主从工作模式时,在主芯片的行消隐时间里,接收从芯片来的数字信号;所述从芯片包括感光单元,用于获取图像信号;读出单元,用于读取感光单元内的图像信号;数字化单元,用于将模拟图像信号转换成数字信号;以及输出单元,包括输出接口,所述输出接口与主芯片输入输出单元的数据接口相连接,用于向主芯片输出数字信号;Provide a dual-camera device, set one of the cameras as the master chip, and set the other camera as the slave chip, wherein the master chip includes: a photosensitive unit for obtaining image signals; a readout unit for reading the photosensitive unit The image signal of the image; the digitization unit is used to convert the analog image signal into a digital signal; the processing unit is used to process the digital signal to form image data; the input and output unit includes a data interface and is used to output the image data to the upper system, and In the master-slave mode, during the line blanking time of the master chip, the digital signal from the slave chip is received; the slave chip includes a photosensitive unit for obtaining image signals; a readout unit is used for reading the photosensitive unit The image signal of the image; the digitization unit is used to convert the analog image signal into a digital signal; and the output unit includes an output interface, the output interface is connected with the data interface of the main chip input and output unit, and is used to output the digital signal to the main chip ; 设置主芯片与从芯片的工作状态,使主芯片工作在行消隐的状态时,从芯片工作在行有效状态,主芯片工作在行有效状态时,从芯片工作在行消隐的状态;Set the working state of the master chip and the slave chip so that when the master chip works in the line blanking state, the slave chip works in the line valid state, and when the master chip works in the line valid state, the slave chip works in the line blanking state; 使从芯片在行有效状态下输出数字信号,主芯片在行消隐状态下接收从芯片来的数字信号。Make the slave chip output digital signals in the active state of the row, and the master chip receives the digital signal from the slave chip in the blank state of the row. 2.一种实现权利要求1所述方法的双摄像头处理装置,其特征在于,从芯片工作时,在主芯片行消隐的时间内,从芯片上与主芯片相连接的数据管脚为输出状态,主芯片上与从芯片相连接的数据管脚为输入状态,用于主芯片接收来自从芯片的数字信号;在主芯片行有效传输的时间里,从芯片上与主芯片相连接的数据管脚为高阻状态,主芯片上与从芯片相连接的数据管脚为输出状态,通过主芯片的数据管脚向上层系统输出图像数据。2. A dual-camera processing device that realizes the method described in claim 1 is characterized in that, when working from the chip, in the time when the main chip line is blanked, the data pin connected with the main chip on the chip is output state, the data pin connected to the slave chip on the master chip is in the input state, and is used for the master chip to receive the digital signal from the slave chip; The pins are in a high-impedance state, and the data pins connected to the slave chip on the master chip are in an output state, and the image data is output to the upper system through the data pins of the master chip.
CN 201110033162 2011-01-30 2011-01-30 Data communication method between two cameras and realization method thereof Active CN102164232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110033162 CN102164232B (en) 2011-01-30 2011-01-30 Data communication method between two cameras and realization method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110033162 CN102164232B (en) 2011-01-30 2011-01-30 Data communication method between two cameras and realization method thereof

Publications (2)

Publication Number Publication Date
CN102164232A CN102164232A (en) 2011-08-24
CN102164232B true CN102164232B (en) 2013-04-17

Family

ID=44465180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110033162 Active CN102164232B (en) 2011-01-30 2011-01-30 Data communication method between two cameras and realization method thereof

Country Status (1)

Country Link
CN (1) CN102164232B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012100541A1 (en) * 2011-01-25 2012-08-02 Galaxycore Inc. Method and device for data communication between two cameras
CN103309838B (en) * 2012-03-16 2018-02-27 联想(北京)有限公司 Switching method, terminal device and the multi-terminal equipment system of information collecting device
CN109672869A (en) * 2019-02-11 2019-04-23 湖南国科微电子股份有限公司 A kind of time-sharing multiplex image processing apparatus, method and electronic equipment
CN110392149A (en) * 2019-07-23 2019-10-29 华为技术有限公司 image capture display terminal
KR102473842B1 (en) * 2021-04-21 2022-12-05 (주)에이피텍 Camera module manufacturing in-line system equipped with work head module and manufacturing method using the system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827219A (en) * 2010-01-22 2010-09-08 中兴通讯股份有限公司 Method and device for controlling two cameras in master/slave mode in wireless terminal
CN101877760A (en) * 2009-04-29 2010-11-03 上海观图光电科技有限公司 Dual-camera structure based on same DVP (Digital Version Port) data bus
CN201657118U (en) * 2009-12-25 2010-11-24 Tcl集团股份有限公司 Retractable camera lens structure

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040201681A1 (en) * 2001-06-21 2004-10-14 Jack Chen Multimedia data file producer combining image and sound information together in data file
US20040201700A1 (en) * 2001-09-07 2004-10-14 Chao-Ting Ho Separate-type camera lens vehicle reversal monitoring device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877760A (en) * 2009-04-29 2010-11-03 上海观图光电科技有限公司 Dual-camera structure based on same DVP (Digital Version Port) data bus
CN201657118U (en) * 2009-12-25 2010-11-24 Tcl集团股份有限公司 Retractable camera lens structure
CN101827219A (en) * 2010-01-22 2010-09-08 中兴通讯股份有限公司 Method and device for controlling two cameras in master/slave mode in wireless terminal

Also Published As

Publication number Publication date
CN102164232A (en) 2011-08-24

Similar Documents

Publication Publication Date Title
KR101490067B1 (en) Parallel image processing using multiple processors
CN102164232B (en) Data communication method between two cameras and realization method thereof
EP3148177A1 (en) Image generation method based on dual camera module and dual camera module
JPWO2017098871A1 (en) Communication system and communication method
JPWO2016203987A1 (en) Transmission device, reception device, and communication system, and signal transmission method, signal reception method, and communication method
CN102006420A (en) Design method capable of using external synchronous for cameral with various data output formats
CN105404788A (en) Distributed medical diagnosis system
TW201320720A (en) Device for transmitting information
CN110418079B (en) Image signal conversion device
CN117156074B (en) Video processing device and system with multiple circuit boards
CN204258949U (en) A kind of IMAQ playback board
CN101102403A (en) Video input system and method for using mobile phone camera as external camera of external device
CN102497514B (en) Three-channel video forwarding equipment and forwarding method
CN217546051U (en) Repeater and image transmission system
CN204929046U (en) Real -time image acquisition system
CN103327300A (en) Audio/video transmission system and method based on USB 2.0 protocol
CN201181965Y (en) Electronic photo frame
KR20080096160A (en) Apparatus and method for data transmission
CN115866178A (en) Multi-channel self-adaptive ARINC818 multi-mode receiving and transmitting SiP chip
TWM568005U (en) Video signal conversion device
KR100934611B1 (en) Apparatus and method for data transmission
CN219499433U (en) Video control equipment
CN200976616Y (en) Mobile terminal for computer camera
CN104426566A (en) Data transceiving system and data transceiving method
WO2012100541A1 (en) Method and device for data communication between two cameras

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant