CN102263904B - Method and system for controlling double cameras and electronic equipment with double cameras - Google Patents

Method and system for controlling double cameras and electronic equipment with double cameras Download PDF

Info

Publication number
CN102263904B
CN102263904B CN 201110236402 CN201110236402A CN102263904B CN 102263904 B CN102263904 B CN 102263904B CN 201110236402 CN201110236402 CN 201110236402 CN 201110236402 A CN201110236402 A CN 201110236402A CN 102263904 B CN102263904 B CN 102263904B
Authority
CN
China
Prior art keywords
camera module
port
camera
control
potential
Prior art date
Application number
CN 201110236402
Other languages
Chinese (zh)
Other versions
CN102263904A (en
Inventor
梁代喜
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to CN 201110236402 priority Critical patent/CN102263904B/en
Publication of CN102263904A publication Critical patent/CN102263904A/en
Application granted granted Critical
Publication of CN102263904B publication Critical patent/CN102263904B/en

Links

Abstract

本发明实施例公开了一种双摄像头的控制方法、系统及具有双摄像头的电子设备,该控制系统包括:第一摄像头模组、第二摄像头模组和主处理器;第一摄像头模组的电源控制端口及第二摄像头模组的电源控制端口均与主处理器相连;主处理器用于控制第一摄像头模组的电源控制端口和第二摄像头模组的电源控制端口的电位;主处理器的第一通用输入输出端口通过第一控制开关与第一摄像头模组的标识端口及第二摄像头模组的标识端口相连;该第一控制开关用于控制第一通用输入输出端口与第一摄像头模组的标识端口或第二摄像头模组的标识端口的连通。 Example discloses a control method of the present invention, two-camera system and an electronic device having a two-camera, the control system comprising: a first camera module, the camera module and a second host processor; a first camera module power control power control port and the second port of the camera module are connected to the main processor; a main processor for controlling the power supply of the camera module of the first port and the second control potential of the camera module power control ports; the main processor a first output port connected via a general purpose input identifying a first port and a control switch and a second identifier of the camera module of the camera module of the first port; a first control switch for controlling the first general-purpose input and output ports of the first camera communicating identifications of the camera module or the second port of the module port. 该控制系统对不同摄像头模组中采用相同的传感器设计,能在节省GPIO资源情况下实现对不同摄像头模组的识别。 The control system uses the same sensor design for the different camera modules, can recognize different camera module while saving resources GPIO.

Description

双摄像头的控制方法、系统及具有双摄像头的电子设备 Dual camera control method, a system and an electronic device having a two-camera

技术领域 FIELD

[0001] 本发明涉及光学摄像头技术领域,特别是涉及双摄像头的控制方法、系统及具有双摄像头的电子设备。 [0001] The present invention relates to optical camera technology, and particularly relates to a method of controlling a two-camera system and an electronic device having dual cameras.

背景技术 Background technique

[0002]目前,光学摄像头已经广泛应用于手机等移动终端中。 [0002] Currently, optical camera has been widely used in mobile phones and other mobile terminals. 随着3G技术的发展,移动终端中已经具有可视电话的功能,具有可视电话功能的移动终端中一般会设有主、副两个摄像头,主摄像头一般用于拍照,副摄像头一般用于视频通话。 With the development of 3G technology, the mobile terminal already has a videophone function, the mobile terminal having a videophone function generally provided in the main, two sub-camera, the main camera is generally used for taking pictures, the camera is generally used for the sub video call.

[0003] 摄像头成像的过程主要是光信号数字化的过程,该过程主要由摄像头模组来完成,摄像头模组一般由镜头(lens)、传感器(sensor)、后端图像处理芯片(Backend IC)和软板(FPC)四部分组成。 [0003] The main process of the camera imaging optical signal digitized process that accomplished primarily by the camera module, the camera module typically by a lens (Lens), a sensor (Sensor), a rear end image processing chip (Backend IC) and soft board (FPC) four parts. 而具有双摄像头的电子设备,不同的摄像头模组可能会来自不同的厂家,因此在摄像头工作时,需要识别出模组的厂家型号,才能调用模组对应的初始化代码,完成模组的初始化。 And the electronic apparatus having a two-camera, different camera modules may come from different manufacturers, so when the camera work, the manufacturers need to identify the module type, the module can call the corresponding initialization codes to complete initialization module. 具有双摄像头的电子设备中,当不同的摄像头模组中的传感器不同时,CPU可以通过内部集成电路总线(I2C, Inter — Integrated Circuit)来识别出不同的传感器,进而调用模组对应的初始化代码,进行模组的初始化。 The electronic device having a dual camera, when the camera modules are different sensors are different, the CPU through C bus - to identify different sensors (I2C, Inter Integrated Circuit), which in turn calls the corresponding initialization code module , a module initialization.

[0004] 而具有双摄像头的电子设备中,当不同摄像头模组中采用相同的传感器设计时,就需要通过拉高或拉低可设置的ID识别端口( ID PIN)电位,利用通用输入/输出端口GPIO并结合相应的软硬件来识别出不同的摄像头模组以及不同的传感器。 [0004] and the electronic device having a dual camera, when the camera modules different in the design uses the same sensor, it is necessary to identify by high or low port ID (the PIN ID) the potential can be set using a general input / output GPIO port and the corresponding software and hardware combined to identify the different camera module and different sensors. 也就是说,当该摄像头模组的ID端口处于低电平时,利用与该模组的ID识别端口相连的GP10,并结合相应的软硬件来识别该模组,进而调用该模组对应的初始化代码,完成该模组的初始化。 That is, when the ID of the port of the camera module at a low level, by using the identification ID GP10 connected to the port of the module, combined with appropriate hardware and software to identify the module in turn calls the corresponding initialization module codes, the initialization module is completed. 这样,每个模组的ID识别端口均需要与一个GPIO连接,换言之,识别两个摄像头模组至少需要两个GPIO端口,但是由于GPIO资源有限,如何在能识别不同摄像头模组的情况下,节省GPIO资源是本领域技术人员急需解决的问题。 Thus, each module ID for identifying a port must be connected to a GPIO, in other words, to identify the at least two camera modules requires two GPIO ports, but because of the limited resources GPIO, how to identify a case where different camera module, save GPIO resources to those skilled urgent problem.

发明内容 SUMMARY

[0005] 为解决上述技术问题,本发明实施例提供了一种双摄像头的控制方法、系统及具有双摄像头的电子设备,对于不同摄像头模组中采用相同的传感器设计的情况下,能采用更节省GPIO资源的方式实现对不同摄像头模组的识别。 [0005] To solve the above problems, embodiments provide a method of controlling a dual camera of the present invention, a system and an electronic device having a two-camera, for different camera modules used in the case of the same sensor design, can be employed more recognize different camera module saves GPIO resources.

[0006] 为实现上述目的,本发明提供了一种双摄像头的控制系统,包括:第一摄像头模组、第二摄像头模组和主处理器; [0006] To achieve the above object, the present invention provides a control system for a two-camera, comprising: a first camera module, the camera module and a second host processor;

[0007] 所述第一摄像头模组的电源控制端口及所述第二摄像头模组的电源控制端口均与所述主处理器相连; Power Supply [0007] The first camera module controls the power supply port and the second camera module are connected to the control port of the main processor;

[0008] 所述主处理器用于控制所述第一摄像头模组的电源控制端口和所述第二摄像头模组的电源控制端口的电位; [0008] The main processor for controlling the power supply of the camera module of the first control port and said second power source control potential camera module port;

[0009] 所述主处理器的第一通用输入输出端口通过第一控制开关与所述第一摄像头模组的标识端口或所述第二摄像头模组的标识端口相连;[0010] 所述第一控制开关用于根据处理器发送的电信号控制所述第一通用输入输出端口与所述第一摄像头模组的标识端口或所述第二摄像头模组的标识端口的连通。 [0009] The first general purpose input output port coupled to the main processor through a first port identifier identifying the control switch and the first camera module or the second camera module port; [0010] The first a control switch for identifying the communication port of the first general-purpose input and output ports of the first camera module or the second port identifier of the camera module in accordance with an electric signal transmission control of the processor.

[0011] 另一方面,本发明还提供了一种具有双摄像头的电子设备,所述电子设备包括以上所述的双摄像头的控制系统。 [0011] In another aspect, the present invention also provides an electronic apparatus having a two-camera, the electronic device comprises a control system of the above-described two-camera.

[0012] 另一方面,本发明还提供了一种双摄像头的控制方法,包括: [0012] In another aspect, the present invention also provides a method of controlling a two-camera, comprising:

[0013] 根据用户的选择,在第一摄像头模组和第二摄像头模组中,将需要启动的摄像头模组确定为目标摄像头模组; [0013] According to a user's selection, the first camera module and a second camera module, the camera module to be started is determined as the target camera module;

[0014] 将所述目标摄像头模组的电源控制端口的电位设定为工作状态电位; [0014] The power supply potential of the target of the camera module control port is set to the operating state of electric potential;

[0015] 将第一控制开关与所述目标摄像头模组的标识端口连通,以便所述第一控制开关根据处理器发送的电信号将第一通用输入输出端口与所述目标摄像头模组的标识端口间的电路导通。 [0015] The identification control switch port in communication with the target first camera module, so that the first control switch electrical signals transmitted by the first processor general purpose input output target port and said camera module identification circuit between ports.

[0016] 经由上述的技术方案可知,与现有技术相比,本发明提供了一种双摄像头的控制方法、系统及具有双摄像头的电子设备,通过第一控制开关将第一通用输入输出端口与第一摄像头模组和第二摄像头模组的标识端口连接,并利用第一控制开关来控制第一输入输出端口与第一摄像头模组或第二摄像头模组之间的连通,当某一摄像头模组处于工作状态时,可以通过第一控制开关将该摄像头模组的识别端口与第一通用输入输出端口连通,以便处理器通过第一通用输入输出端口识别该摄像头模组,这样第一摄像头模组和第二摄像头模组可以共用一个通用输入输出端口来识别摄像头模组,减少了使用通用输入输出端口的数量。 [0016] via the known technical solution, compared with the prior art, the present invention provides a control method for a two-camera system and an electronic device having a two-camera, through a first switch controlling the first GPIOs a first port identifier and the camera module and a second camera module, and the first control switch to control the communication between the first input port and the first output or the second camera module of the camera module, when a certain when the camera module is in operation, the first control switch can identify the port of the camera module first port in communication with the general purpose input output to the first processor via the GPIO port identification camera module, such that the first camera module and a second camera modules can share a common input and output ports to identify the camera module, reduces the number of general purpose input output port.

附图说明 BRIEF DESCRIPTION

[0017] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0017] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, a brief Apparently, the drawings in the following description or embodiments as described in the prior art needed to be used in describing the embodiments the drawings are only some embodiments of the present invention, those of ordinary skill in the art is concerned, without any creative effort, and can obtain other drawings based on these drawings.

[0018] 图1为现有技术中识别双摄像头模组系统的电路结构示意图; [0018] Figure 1 a schematic circuit diagram identifying dual camera module of the prior art system;

[0019]图2为本发明实施例的一种双摄像头的控制系统的一个实施例的结构示意图; Structure of one embodiment of the [0019] Figure 2 a control system for a two-camera embodiment of the present invention. FIG embodiment;

[0020] 图3为本发明实施例的一种双摄像头的控制系统的另一个实施例的结构示意图; A schematic view of another configuration example of [0020] FIG 3 a dual camera control system according to the present embodiment of the invention;

[0021] 图4为本发明实施例的一种双摄像头的控制方法的一个实施例的流程示意图; [0021] FIG. 4 is a schematic flow of one embodiment of a control method for a two camera embodiment of the present invention;

[0022] 图5为本发明实施例的一种双摄像头的控制方法的另一个实施例的流程示意图。 Another [0022] FIG. 5 method of controlling a dual camera according to an embodiment of the present invention the process embodiment of FIG.

具体实施方式 Detailed ways

[0023] 对于具有双摄像头的电子设备(如,带有双摄像头的手机)来说,不同的摄像头模组可能来自不同的厂家,当不同摄像头模组中采用相同的传感器设计时,现有技术中将每个摄像头模组分别与主处理器的一个通用输入输出端口GPIO相连,两个摄像头模组就至少需要两个通用输入输出端口,占用的通用输入输出端口GPIO资源较多。 [0023] For the electronic device (e.g., mobile phones with dual camera) having a two-camera, the camera module may be different from different manufacturers, different camera modules when the same sensor design, prior art each camera module will be a general purpose input output respectively GPIO port of the main processor is connected to two camera modules requires at least two general-purpose input and output ports, more general purpose input output port occupied GPIO resources.

[0024] 为了在识别摄像头模组的过程中,减少占用通用输入输出端口GPIO资源,本发明实施例提供了一种双摄像头模组的控制方法、系统及电子设备,当不同摄像头模组中采用相同的传感器设计时,能减少摄像头模组占用主处理器的通用输入输出端口的数量。 [0024] In order to identify the process of the camera module, to reduce the occupancy GPIOs GPIO resources, embodiments of the present invention provides a control method for a two camera modules, systems and electronic devices, when employed in different camera modules same sensor design, to reduce the number of general purpose input output port is occupied by the camera module of the host processor. [0025] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。 [0025] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments to those of ordinary skill in the obtained fall within the scope of the present invention.

[0026] 参见图1,为现有技术中识别双摄像头模组系统的电路结构示意图,该系统包括第一摄像头模组1、第二摄像头模组2和主处理器3,其中,第一摄像头模组I的电源控制端口11 (BP, powder Down端口)以及第二摄像头模组2的电源控制端口21分别与主处理器3中的一个通用输入输出端口GPIO相连;第一摄像头模组I的标识端口(也称标识识别端口或ID端口)12与主处理器3的第一通用输入输出端口(GP10端口)31相连;第一摄像头模组I的复位端口13与主处理器3的第二通用输入输出端口33相连;第二摄像头模组2的标识端口22与主处理器3的第三通用输入输出端口33相连;第二摄像头模组2的复位端口23与主处理器3的第四通用输入输出端口34相连。 [0026] Referring to Figure 1, the prior art recognizes a schematic circuit configuration of the dual camera module system, the system comprising a first camera module 1, a second camera module 2 and a main processor 3, wherein the first camera I power control port module 11 (BP, powder Down port) and a second camera module 2 power control port 21 are connected to a general-purpose GPIO input and output ports of main processor 3; I is a first camera module port identification (also referred to as a port identifier identifying a port or ID) 3112 is connected to a first host processor of the general purpose input output port 3 (the GP10 port); I is a first camera module 13 with the main processor to reset the second port 3 output port 33 is connected to a general purpose input; a second camera module is connected to port 22 and the main processor identifies a third 2 33 3 general purpose input output port; a second camera module 2 is reset port 23 and the main processor of the fourth 3 34 GPIOs connected.

[0027] 需要说明的是,该双摄像头模组系统中,不同摄像头模组中采用相同的传感器设计,因此不能通过内部集成电路总线来识别出该摄像头模组在该情况下,识别摄像头模组的过程具体为:当主处理器设定某个摄像头模组的电源控制端口的电位为工作状态时,该摄像头模组可以接收并响应相应操作命令,通过通用输入输出端口控制该摄像头模组的复位端口的信号,启动该摄像头模组;之后,通过与标识端口相连的通用输入输出端口来读取标识端口的状态识别该摄像头模组,以便识别出该摄像头模组的厂家型号等,调用该摄像头模组对应的初始化代码,完成摄像头模组的初始化。 [0027] Incidentally, the dual system of the camera module, the same sensor design different camera modules used, and therefore can not be C bus recognize the camera module in this case, the identification camera module the specific process is: when a main processor to set the power of the camera module control operating state the potential of the port, the camera module can receive and respond to commands corresponding operations, general purpose input output port control by resetting the camera module signal ports, start the camera module; then, to read the identifying the port through the general purpose input output port identifier ports connected state recognition of the camera module, in order to identify the camera module manufacturer model number, call the camera corresponding to the initialization code module, initializes the camera module is completed.

[0028] 可见在现有技术中,为了识别出摄像头模组,以调用该摄像头模组对应的初始化代码完成该摄像头模组的初始化,每个摄像头模组的标识端口均需占用一个通用输入输出端口,同时,为了在双摄像头中的主、副摄像头进行切换时,保证即将处于启动的摄像头模组的稳定工作,每个摄像头模组的复位端口还分别需要占用一个通用输入输出端口,导致占用的通用输入输出端口的资源较多。 [0028] In the prior art can be seen in order to identify the camera module, the camera module to invoke the corresponding initialization codes to complete initialization of the camera module, each camera module occupying a required port identification GPIO port, while for the main and sub cameras dual cameras are switched, guaranteed coming in stable operation starts camera module, each camera module reset ports also each take up a general-purpose input and output ports, resulting in occupation more resources in general-purpose input and output ports.

[0029] 为了解决现有技术中存在的问题,参见图2为本发明实施例的一种双摄像头的控制系统的一个实施例的结构示意图,本实施例的系统包括:第一摄像头模组1、第二摄像头模组2和主处理器3 ; System [0029] In order to solve the problems in the prior art, see FIG. 2 is a control system for a two-camera embodiment of the present invention is a schematic structural diagram of the embodiment, the present embodiment comprises: a first camera module 1 The second camera module 2 and a main processor 3;

[0030] 第一摄像头模组I的电源控制端口11及第二摄像头模组2的电源控制端口21分别与该主处理器3中的一个通用输入输出端口相连; [0030] I first camera module and the second power control port 11 to control the power of the camera module 21 is connected to port 2 are a general purpose input output port 3 of the host processor;

[0031] 主处理器3用于控制第一摄像头模组I的电源控制端口11和第二摄像头模组2的电源控制端口21的电位,如,主处理器可以将第一摄像头模组的电源控制端口的电位设置为高电平,将第二摄像头模组的电源控制端口的电位设置为低电平。 [0031] the main processor 3 for controlling the power supply port 2 of the potential 21, e.g., the main processor may be a first power supply control of the camera module of the first camera module I power control port 11 and the second camera module control port is set to the high level potential, the potential of the second power control port of the camera module is set to a low level. 对于摄像头模组的电源控制端口的工作状态电位可以为:设定低电平的电位为工作状态电位;也可以设定当电源控制端口的电位为高电平时为工作状态。 For power control of the camera module ports operating state potential may be as follows: set the low-level potential to the operating state potential; may be set when the potential of the power supply control port is at high level to the operating state. 当然具体设定工作状态的电位为高电平还是低电平,可以根据实际需要进行选择。 Of course, the specific operation state is set to high or low potential, you may be selected according to actual needs.

[0032] 主处理器3的第一通用输入输出端口31通过第一控制开关4与第一摄像头模组I的标识端口12或第二摄像头模组2的标识端口22相连。 [0032] the main processor of the first general-purpose input output port 313 is connected to the first camera module 4 I identification port 12 or the second camera module 222 identifies the port through the first control switch.

[0033] 该第一控制开关4用于控制第一通用输入输出端口31与第一摄像头模组I的标识端口12或第二摄像头模组2的标识端口22连通。 [0033] The first control switch 4 for controlling the first general-purpose input output port 22 communicates with the first port 31 of the camera module identification identifies the I port 12 or the second camera module 2. 也就是说,通过主处理器可以控制第一控制开关的连通方式,进而通过第一控制开关I将第一通用输入输出端口31与第一摄像头模组I的标识端口12间的电路导通,而将第一通用输入输出端口31与第二摄像头模组2的标识端口22间的电路处于断开状态;或者是通过第一控制开关I将第一通用输入输出端口31与第二摄像头模组2的标识端口22间的电路导通,将第一通用输入输出端口31与第一摄像头模组I的标识端口12间的电路断开。 That is, the main processor may control the communication mode of the first control switch, then through a first switch controlling the first general-purpose input I output port 31 and the first camera module I port identification circuit 12 through the guide, input and output port of the first universal identification circuit 31 and the second port 22 of the camera module 2 in an OFF state; a first control switch or by the first general-purpose input I output port 31 and the second camera module 2 identifies the port 22 of the circuit is turned on, the output port 31 of the first general-purpose input circuit 12 is disconnected from the first camera module I port identification.

[0034] 其中,第一控制开关可以为一由处理器控制的单刀双掷开关,该控制过程具体为,当某个摄像头模组的电源控制端口被设定为工作状态后,处理器会通过第一通用输入输出端口(即GPIO接口)向第一控制开关发送一指示该摄像头模组进入工作状态的电信号,第一控制开关接收该电信号后便直接与该摄像头模组的标识端口相连,从而使处理器可以对该摄像头模组进行识别。 [0034] wherein the first control switch may be a single pole double throw switch controlled by a processor, the control procedure specifically, when the power of a camera module control port is set to the operating state, the processor will pass a first general purpose input output port (GPIO i.e. interface) to a first control switch transmits an indication of the operating state of the camera module into the electric signal, is connected to the control port of the first switch receives the electric signal directly after the identifier of the camera module such that the processor can be recognized by the camera module.

[0035] 本发明实施例通过第一控制开关将第一通用输入输出端口与第一摄像头模组的标识端口或第二摄像头模组的标识端口相连。 Embodiment [0035] The present invention is connected via a first control switch identifying a first general purpose input output port and the first port identifier of the camera module of the camera module or the second port. 当第一摄像头模组处于工作状态时,可以由主处理器将第一控制开关与第一摄像头模组的标识端口连通,以便通过第一控制开关将第一通用输入输出端口与第一摄像头模组的标识端口间的电路导通;同样,当第二摄像头模组处于工作状态时,也可以通过第一控制开关将第一通用输入输出端口将第一摄像头模组的标识端口间的电路导通。 When the first camera module in the operating state, the first control switch may be identified with a first communication port of the camera module by the host processor to switch by the first control input of the first output port and the first general-purpose camera mode group identification circuit between the port; Similarly, when the second camera module is active, the switch may be controlled by a first output port of the first general-purpose input circuit is turned between the first identifier of the camera module port through. 由于第一摄像头模组和第二摄像头模组不会同时处于工作状态,因此通过控制开关可以将使第一摄像头模组的标识端口和第二摄像头模组的标识端口共用一个通用输入输出端口,进而节省了通用输入输出端口的数量。 Since the first camera module and a second camera module is not in operation at the same time, it is possible to enable the second port and the identifications of the camera module of the camera module by a first control switch ports share a common input and output ports, thereby saving the number of general purpose input output port.

[0036] 在实际应用中为了在双摄像头模组进行切换时,保证工作状态的摄像头能处于稳定状态,摄像头模组的复位端口还需要与处理器中的通用输入输出端口连接,参见图2,第一摄像头模组I的复位端口13与主处理器3的第二通用输入输出端口32连接;第二摄像头模组2的复位端口23与主处理器3的第三通用输入输出端口33相连。 [0036] In a practical application for when switching dual camera module, to ensure that the camera operating state can be in a steady state, the camera module reset port need general purpose input output port processors, see Figure 2, the first camera module I reset port 13 with the main processor of the second general purpose input output port 323 is connected; a second camera module 23 is connected to the reset port 2 to the main processor of the third general-purpose input and output ports 333 of.

[0037] 需要说明的是,本发明各实施例中的第一通用输入输出端口、第二通用输入输出端口、第三通用输入输出端口都是主处理器中的通用输入输出端口。 [0037] Incidentally, the first general-purpose input and output ports in each example embodiment of the present invention, a second general-purpose input and output ports, a third input and output ports are general purpose host processor general-purpose input and output ports. 在功能作用上没有区另IJ,采用将其区分为第一、第二、第三通用输入输出端口是为了能更清楚的进行描述。 No region of another IJ, which is divided into a first use on a functional role, second, third GPIOs to be more clearly described.

[0038] 为了进一步减少摄像头模组占用的主处理器中通用输入输出端口数量,可以将主处理器的一个通用输入输出端口通过一个控制开关与第一摄像头模组的复位端口或第二摄像头模组的复位端口连接,参见图3,为本发明实施例的一种双摄像头的控制系统的另一个实施例的电路结构示意图,本实施例的系统包括:第一摄像头模组1、第二摄像头模组2和主处理器3 ; [0038] To further reduce the main processor in the camera module occupying general purpose input output port number may be a general purpose input output port of the main processor via a reset switch and a first control port of a camera module or the second camera module the system schematic circuit diagram of another embodiment of a reset port group, see FIG. 3, a control system of the present two-camera according to an embodiment of the invention, embodiment, the present embodiment comprises: a first camera module 1, a second camera 2 and a main processor module 3;

[0039] 第一摄像头模组I的电源控制端口11及第二摄像头模组2的电源控制端口21分别与主处理器3的一个通用输入输出端口相连;主处理器3用于控制第一摄像头模组I的电源控制端口11和第二摄像头模组2的电源控制端口21的电位; Power Control [0039] I first camera module and the second power control port 11 of the camera module 21 is connected to port 2 are respectively input port and a common output 3 of the main processor; a main processor for controlling a first camera 3 I power control port module 11 and the second camera module controls the potential at the power supply port 21;

[0040] 主处理器3的第一通用输入输出端口31通过第一控制开关4与第一摄像头模组I的标识端口12或第二摄像头模组2的标识端口21相连;第一控制开关4用于控制第一通用输入输出纟而口31与弟一摄像头t旲组I的标识纟而口12或弟_■摄像头t旲组2的标识2而口22连通。 [0040] the main processor of the first general-purpose input output port 313 is connected via a first control switch 21 4 I of the first camera module 12 or the second port identifier of the camera module 2 identifies the port; a first control switch 4 for controlling the first GPIO port 31 and brother Si and a camera I t Dae group identification port 12 or Si and Di _ ■ camera 2 t 2 Dae group identifier and port 22 communicates.

[0041] 主处理器3的第二通用输入输出端口32通过第二控制开关5与第一摄像头模组I的复位端口13或第二摄像头模组2的复位端口23相连。 [0041] the main processor of the second general purpose input output port 323 of the switch 5 and the first camera module I or the second reset port 13 of the camera module 2 is connected to a reset port 23 by the second control. 该第二控制开关5用于控制所述第二通用输入输出端口32与所述第一摄像头模组I的复位端口13或所述第二摄像头模组2的复位端口23的连通。 The control switch 5 for the second communication port 23 and the second camera module 13 is reset or the first camera module reset Port 2 I controlling output port of said second general purpose input 32. 换言之,在主处理器的第二通用输入输出端口与第一摄像头模组的复位端口和第二摄像头模组的复位端口间设置第二控制开关,通过处理器控制第二控制开关的连通方式,第二控制开关可以与第一摄像头模组的复位端口连通,使得第一摄像头模组的复位端口与主处理器的第二通用输入输出端口间的电路导通;或者是第二控制开关与第二摄像头模组的复位端口连通,使得第二摄像头模组的复位端口与主处理器的第二通用输入输出端口连通。 In other words, the second control switch is reset during the reset port and the second port of the camera module and a second general purpose input output port of the first camera module main processor, the processor controls the communication mode by a second control switch, the second control switch may reset a first port in communication with the camera module, the camera module such that the first port of the main processor to reset the second general purpose input-output circuit is turned on between the ports; a second control switch, or the first two reset camera module communication port, general purpose input output port such that the second port in communication with the main processor to reset the second camera module. 其中,第二控制开关与第一控制开关相似,该第二控制开关也可以为一由处理器控制的单刀双掷开关。 Wherein the second control switch and a first control switch is similar to the second control switch may be a single pole double throw switch controlled by a processor by a. 当某个摄像头模组的电源控制端口被设定为工作状态后,处理器会通过第二通用输入输出端口向第二控制开关发送一指示该摄像头模组进入工作状态的电信号,第二控制开关接收该电信号后便直接与该摄像头模组的复位端口相连。 When the power to a camera module control port is set to the operating state, the processor will pass a second electrical signal input and output ports to the second common control switch sends an indication that the camera module into an operative state, the second control receiving the electric signal is connected to the switch port directly after the reset of the camera module.

[0042] 本实施例在上一实施例的基础上增设了第二控制开关,第一摄像头模组的复位端口以及第二摄像头的复位端口均通过第二控制开关与主处理器的第二通用输入输出端口相连,并通过第二控制开关来控制第二通用输入输出端口与第一摄像头模组的复位端口或第二摄像头模组的复位端口间的电路导通状态,因此,两个摄像头模组的复位端口可以共用一个通用输入输出端口,从而减少了占用通用输入输出端口的数量。 [0042] In the present embodiment, on the basis of an embodiment of the addition of the second control switch, a reset port of the first camera module and a second reset port through the second camera are controlled switch and a second common main processor input connected to the output port, and a control circuit to a conducting state between the reset port of the second general purpose input output port and the first camera module or the second reset ports of the camera module by the second control switch, thus, two die cameras reset port group may share a common input and output ports, thereby reducing the number of occupied GPIOs.

[0043] 由于在识别摄像头模组之前可能不知道两个摄像头模组中的传感器型号设计是否相同,因此在本发明实施例中还包括:内部集成总线,该内部集成总线连接在主处理器与第一摄像头模组和第二摄像头模组间,即,通过一条内部集成总线将主处理器和第一摄像头模组,以及主处理器和第二摄像头模组相连,内部集成总线的地址用于区分第一摄像头和第二摄像头模组内的传感器。 [0043] Since the camera module before the recognition sensor may not know the model of the design of the two camera modules are the same, so in the present invention embodiment further comprises: an integrated internal bus, the internal bus connected to the main processor integrated with between the first camera module and a second camera module, i.e., integrated by an internal bus connected to the main processor and the first camera module and a main processor and a second camera module, an internal address bus for integration distinguishing the first sensor in the camera and a second camera module. 由于不同摄像头模组中的传感器会对应不同的内部集成总线地址,依次利用内部集成总线地址可以区别出不同摄像头模组内的传感器,从而识别出不同的摄像头模组。 Due to the different sensors in the camera module may correspond to different addresses within the integrated bus, sequentially integrated by the internal bus address of a sensor can be distinguished in the different camera modules, to identify different camera modules.

[0044] 需要说明的是,本发明中的双摄像头控制系统中,对第一摄像头模组和第二摄像头模组进行识别,以及对摄像头模组的电源控制端口的电位进行控制的可以为处理器,也可以为处理器的一部分功能模块。 [0044] Incidentally, dual camera control system according to the present invention, the first camera module and a second camera module identification, and a potential of the power supply control port for controlling the camera module may be processed , a processor may be part of a functional module.

[0045] 以设置在手机中的双摄像头控制系统为例,在处理器中对第一摄像头模组和第二摄像头模组的电源控制端口的电位状态进行控制的可以是处理器中手机模拟基带芯片,也可以是手机模拟基带芯片中一部分。 Dual camera control system [0045] In the example provided in the phone, the power supply control of the potential state of a first camera module and a second camera module in a processor control port of the mobile phone may be an analog baseband processor chip, a mobile phone may be part of an analog baseband chip. 通过设置手机中两个摄像头模组的电位可以实现对第一摄像头模组和第二摄像头模组中的模组图像感应芯片的控制,该模组图像感应芯片与电源控制端口相连。 Control can be achieved for the first camera module and a second module of the camera module in the image sensor chip provided by the potential of two phone camera module, the image sensor chip module is connected to power supply control port.

[0046] 当某个摄像头模组的电源控制端口被设定为工作状态后,处理器中的手机模拟基带芯片可以通过第一通用输入输出端口与该摄像头模组的标识端口相连,从而该模拟基带芯片通过第一通用输入输出端口对该摄像头模组进行识别。 [0046] When the power of a camera module control port is set to the operating state, the processor of the mobile phone analog baseband chip may be connected to a first port through a general purpose input output port identifier of the camera module, so that the analog identify the baseband chip camera module by a first common input and output ports.

[0047] 进一步的,该模拟基带芯片还通过第二通用输入输出端口与该摄像头模组的复位端口相连。 [0047] Further, the analog baseband chip further port is connected to the reset input of the second output port and the common camera module.

[0048] 本发明实施例还提供了一种双摄像头的电子设备,该电子设备内置有如上实施例所述的双摄像头控制系统。 [0048] Embodiments of the present invention further provides an electronic device a dual camera, the built-in electronic device like a camera embodiment of the dual control system embodiment. 该电子设备可以为手机、PDA等带有双摄像头的移动终端,也可以为其他带有双摄像头的电子设备。 The electronic device may be a mobile phone, PDA and other mobile terminal with a two-camera, may also be other electronic devices with dual camera.

[0049]以上所描述的装置或系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0049] The apparatus or system embodiments described above are merely exemplary embodiments, wherein said unit is described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, may be located in one place, or may be distributed to multiple network units. 可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。 You can select some or all of the modules according to actual needs to achieve the object of the solutions of the embodiments. 本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art without creative efforts, can be understood and implemented.

[0050] 基于本发明实施例的双摄像头的控制系统,本发明实施例还提供了一种双摄像头的控制方法,参见图4,为本发明的一种双摄像头的控制方法的一个实施例的流程示意图,本实施例的方法包括: [0050] The control system for a dual camera embodiment of the present invention based on the embodiment of the present invention further provides a method of controlling a two-camera, an embodiment of a control method for a dual camera 4, the present invention flow diagram of the method of the present embodiment comprises:

[0051] 步骤S401:在第一摄像头模组和第二摄像头模组中选择需要启动的摄像头模组作为目标摄像头模组; [0051] Step S401: Select Start camera module as the target of the camera module of the first module and a second camera in the camera module;

[0052] 具有双摄像头的系统,如手机等,在使用摄像头时一般会在两个摄像头选择其中之一进行操作,因此根据用户的需求,主处理器在第一摄像头模组和第二摄像头模组中选择一个待启动的摄像头模组,将该待启动的摄像头模组作为目标摄像头模组。 [0052] The two-camera system, such as mobile phones, when the camera is used in general will choose one of the two cameras operate, so the user needs, the main processor in a first camera module and a second camera module selecting a group to be activated in the camera module, the camera module to be activated as the target of the camera module. 当然,在主处理器在第一摄像头模组和第二摄像头模组中选择目标摄像头前,可能会接收用户的选择指令,主处理器接收该指令,并选择用户所需的摄像头模组,如当第一摄像头模组为拍照用的摄像头模组,当用户需要拍照时,用户会通过按动双摄像头系统中的按钮等操作发出选择摄像头的指令,主处理器会依据用户的指令选择第一摄像头模组作为目标摄像头模组,并将第一摄像头模组的电源控制端口的电位设定为工作状态电位。 Of course, before the main processor to select the target in the first camera and a second camera module in a camera module, the user may receive a selection instruction, the host processor receiving the instruction, and the user to select the desired camera module, such as when the camera module of the first camera module is used to take pictures, when the user needs to take pictures, the user can issue an instruction to select the camera by pressing a button dual camera system and other operations, the main processor selects the first user based on an instruction the camera module as the target of the camera module, the camera module and the power of the first control port is set to the potential of the potential of the working state.

[0053] 步骤S402:将目标摄像头模组的电源控制端口的电位设定为工作状态电位; [0053] Step S402: the target power of the camera module control port is set to the operating state of the potential of the potential;

[0054] 主处理器为第一摄像头模组和第二摄像头模组的电源控制端口设定待机信号的电位,以便设定第一摄像头模组或第二摄像头模组进入工作状态。 [0054] the main processor is a first power source and a second camera module of the camera module control port setting the standby signal potential, in order to set a first or a second camera module of the camera module into operation. 例如,当设定第一摄像头模组的待机信号为工作状态时,第一摄像头模组进行工作状态,并进行初始化等操作;而此时第二摄像头模组则处于待工作状态,直到主处理器设定第二摄像头模组的待机信号为工作状态时,第二摄像头模组才进入工作状态。 For example, when the camera module setting the first standby operating state signal, the first camera module working state, and initialization operations; at a time when the second camera module is ready for operation, the main process until the setting a second camera module is standby operating state signal, the second camera module into operation only.

[0055] 在第一摄像头模组和第二摄像头模组中选择了目标摄像头模组后,主处理器就可以直接将目标摄像头模组的待机信号的电位设为工作状态电位。 After the [0055] target selected in the camera module of the camera module of the first and second camera modules, the main processor can direct the potential to the working state of the standby signal potential target camera module.

[0056] 步骤403:将第一控制开关与所述摄像头模组的标识端口连通,以便通过第一控制开关将第一通用输入输出端口与目标摄像头模组的标识端口间的电路导通。 [0056] Step 403: the identification of the first switch and the control port of the camera module in communication, so as to identify a first circuit between the guide GPIOs camera module and the target port of the first pass through the control switch.

[0057] 当目标摄像头模组的待机信号的电位为工作状态电位时,主处理器会将第一控制开关切换到与目标摄像头模组的标识端口连通的状态,目标摄像头模组的标识端口与第一控制开关间的电路处于导通状态。 [0057] When the standby signal potential target camera module potential operating state, the main processor will control the switch to a first state and a camera module identifies a target communication port, a target port identification camera module and switching between the first control circuit in the oN state. 由于第一控制开关的一端始终与主处理器的第一通用输入输出端口连通,因此,通过第一控制开关可以将主处理器的第一通用输入输出端口与目标摄像头模组的标识端口间的电路导通。 Since the end of the first communication port and the first control switch is always GPIO main processor, therefore, can be controlled by the first switch between the first identification GPIOs camera module and the target port of the host processor conducting circuit.

[0058] 当第一通用输入输出端口与目标摄像头模组的标识端口连通后,主处理器就可以通过第一通用输入输出端口读取目标摄像头模组的标识端口的标识信息,并利用读取的标识信息对目标摄像头模组进行识别。 [0058] After identifying a first port in communication with the general purpose input output port of the target camera module, the main processor can be identified by the port identification information input and output ports of the first universal read target camera module, and the read by identification information for identifying the target of the camera module. 换言之,通过第一通用输入输出端口读取目标摄像头模组的标识端口的标识信息,进而可以识别出该目标摄像头模组的型号信息等,如该第一摄像头模组的厂家型号等,并调用该第一摄像头模组对应的初始化代码,完成第一摄像头模组的初始化。 In other words, reading the identification information identifying the target port of the camera module by a first general-purpose input and output ports, and further can recognize that the target model information of the camera module and the like, such as the first camera module manufacturer model number, and call the first camera module corresponding to the initialization code, completion of the initialization of the first camera module.

[0059] 需要说明的是,摄像头模组的待机信号的工作状态电位可以为:设定电源控制端口的电位为低电平时为工作状态电位;也可以设定当电源控制端口的电位为高电平时为工作状态电位,当然具体设定工作状态电位为高电平还是低电平,可以根据实际需要进行选择。 [0059] Incidentally, the operating state of the standby signal potential of the camera module may be: set the power supply potential of the control port to the operating state at a low level potential; may be set when the potential of the power supply control port is high normal operating state potential, the potential of course, the specific operation state is set high or low, may be selected according to actual needs.

[0060] 为了进一步减少摄像头模组占用的主处理器中通用输入输出端口数量,可以将主处理器的一个通用输入输出端口通过另一个控制开关与第一摄像头模组的复位端口或第二摄像头模组的复位端口连接,参见图5,为本发明一种双摄像头的控制方法的另一个实施例的步骤流程图,本实施例包括以下步骤: [0060] To further reduce the main processor in the camera module occupying general purpose input output port number, the main processor may be a general-purpose input and output ports of the first switch via a further control camera module reset port or the second camera another embodiment of the step module reset port, see FIG. 5, a control method of the present two-camera flowchart invention, the present embodiment includes the following steps:

[0061] 步骤S501:在第一摄像头模组和第二摄像头模组中选择需要启动的摄像头模组作为目标摄像头t吴组; [0061] Step S501: Select the camera module to start the camera as the target t WU camera module in a first and in a second camera module;

[0062] 步骤S502:将所述目标摄像头模组的电源控制端口的电位设定为工作状态电位; [0062] Step S502: the target power of the camera module of the control port is set to the operating state of the potential of the potential;

[0063] 步骤S503:将第二控制开关与目标摄像头模组的复位端口连通,以便通过所述第二控制开关将第二通用输入输出端口与目标摄像头模组的复位端口间的电路导通; [0063] Step S503: the reset port in communication with a second control switch target camera module, in order to guide the circuit between the reset input port of the second output port and the target common camera module on by the second control switch;

[0064] 在通过第二控制开关将第二通用输入输出端口与目标摄像头模组的复位端口间的电路导通后,主处理器通过第二通用输入输出端口启动目标摄像头的复位相关的硬件,以便为进行摄像头模组识别,完成初始化做准备。 [0064] In the rear by the second control switch circuit between the reset input port of the second output port and the target common camera module, the main processor through a second target GPIOs reset the camera to start the relevant hardware, for camera module to identify, prepare complete initialization.

[0065] 步骤S504:将第一控制开关与所述摄像头模组的标识端口连通,以便通过第一控制开关将第一通用输入输出端口与目标摄像头模组的标识端口间的电路导通。 [0065] Step S504: a first control switch with the identification of the camera module of the communication port, so that the circuit is turned between the first identifier and the target port general purpose input output port through the camera module by a first control switch.

[0066] 进一步的,由于在识别摄像头模组之前,主处理器可能不知道两个摄像头模组中的传感器型号设计等是否相同,在将目标摄像头模组的电源控制端口的电位设定为工作状态电位之后,还包括: [0066] Further, since prior to the identification of the camera module, the host processor may not know design type sensor camera modules in the two are the same, the potential at the control port of the target power of the camera module is set to work after the potential state, further comprising:

[0067] 判断通过内部集成电路总线的地址是否能识别目标摄像头模组的传感器型号,如果否,则将第一控制开关与目标摄像头模组的标识端口连通。 [0067] It is determined whether the recognition target type sensor of the camera module through the address bus inside the integrated circuit, if not, the first control switch identifying the target communication port of the camera module. 该过程具体的可以为:当第一摄像头模组的待机信号的电位为工作状态电位时,判断通过内部集成电路总线的地址是否能识别第一摄像头模组的传感器型号,如果否,则将第一控制开关与第一摄像头模组的标识端口连通,以便通过第一用输入输出端口读取标识端口状态来对第一摄像头模组进行识别; The specific process may be: when the standby signal potential of a first camera module potential operating state, determines whether or not the camera module can identify a first type of sensor integrated circuit through an address bus of the interior, if not, the first a first switching control identification camera module communication port to be identified to the camera module by a first input a first output port identifier read port status;

[0068]当第二摄像头模组的待机信号的电位为工作状态电位时,判断通过内部集成电路总线地址是否能识别第一摄像头模组的传感器型号,如果否,则将第一控制开关与第二摄像头模组的标识端口连通,便通过第一通用输入输出端口读取标识端口状态来对第二摄像头模组进行识别。 [0068] When the potential of the standby signal from the second camera module potential operating state, determines whether or not the camera module can identify a first type of sensor integrated circuit through the internal address bus, and if not, then the first and the second control switch two communication port identification camera module, will be identified to the camera module by a second general purpose input and output ports of the first port identification reading state.

[0069] 通过以上的方法实施例的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。 Description of the [0069] By the above method embodiments, those skilled in the art may clearly understand that the present invention may be implemented by software plus a necessary universal hardware platform, also be implemented by hardware, but in most cases the former is better implementation. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 Based on such understanding, the technical solutions of the present invention in essence or the part contributing to the prior art may be embodied in a software product, which computer software product is stored in a storage medium and includes several instructions to enable a a computer device (may be a personal computer, a server, or network device) all or part of steps of the methods of performing various embodiments of the present invention. 而前述的存储介质包括:只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: any medium may store program codes read only memory (ROM), a random access memory (RAM), magnetic disk, or optical disk.

[0070] 在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,在没有超过本申请的精神和范围内,可以通过其他的方式实现。 [0070] In several embodiments provided herein present embodiment, it should be understood that the disclosed system, apparatus and method, is not exceeded within the spirit and scope of the present disclosure may be implemented in other ways. 当前的实施例只是一种示范性的例子,不应该作为限制,所给出的具体内容不应该限制本申请的目的。 The current embodiment is only a example of exemplary embodiments and should not be construed as limiting, given the specific content should not limit the purposes of this application. 例如,所述单元或子单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或多个子单元结合一起。 For example, sub-dividing the unit or units is merely logical function division, there may be other division in actual implementation, for example, a plurality of units or sub-units combined together. 另外,多个单元可以或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 Further, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed.

[0071] 另外,所描述系统,装置和方法以及不同实施例的示意图,在不超出本申请的范围内,可以与其它系统,模块,技术或方法结合或集成。 [0071] Further, the system, apparatus and method, and a schematic view of a different embodiment of the described embodiments, without departing the scope of the present disclosure, may be combined or integrated with other systems, modules, techniques, or methods. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms.

[0072] 以上所述仅是本发明的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 [0072] The above are only specific embodiments of the present invention, it should be noted that those of ordinary skill in the art, in the present invention without departing from the principles of the premise, can make various improvements and modifications, such modifications and modifications should also be regarded as the protection scope of the present invention.

Claims (10)

1.一种双摄像头的控制系统,其特征在于,包括:第一摄像头模组、第二摄像头模组和主处理器; 所述第一摄像头模组的电源控制端口及所述第二摄像头模组的电源控制端口均与所述主处理器相连; 所述主处理器用于控制所述第一摄像头模组的电源控制端口和所述第二摄像头模组的电源控制端口的电位; 所述主处理器的第一通用输入输出端口通过第一控制开关与所述第一摄像头模组的标识端口或所述第二摄像头模组的标识端口相连; 所述第一控制开关用于根据处理器发送的电信号控制所述第一通用输入输出端口与所述第一摄像头模组的标识端口或所述第二摄像头模组的标识端口的连通。 1. A dual control system for a camera, characterized by comprising: a first camera module, the camera module and a second host processor; port of the power control module of the first camera and the second camera module power control port, are connected to the main processor; the master processor for controlling the potential of the power control module port of the first camera and the second camera module power control ports; the main a first general purpose input output port coupled to the processor via a first port identifier identifying the control switch and the first camera module or the camera module of the second port; a first switch for transmitting a control processor according to identifying a second communication port of the camera module of the electrical control of the first port identifier of the general purpose input output port of the first or the camera module.
2.根据权利要求1所述的系统,其特征在于,所述主处理器的第二通用输入输出端口通过第二控制开关与所述第一摄像头模组的复位端口或第二摄像头模组的复位端口相连; 所述第二控制开关用于控制所述第二通用输入输出端口与所述第一摄像头模组的复位端口或所述第二通用输入输出端口的连通。 2. The system according to claim 1, characterized in that, the second GPIO port of the main processor by the second control switch and the first camera module reset port or the second camera module It is connected to the reset port; a second switch for controlling a second communication port general purpose input output port reset control input of the second output port and the common first or the camera module.
3.根据权利要求1或2所述的系统,其特征在于,所述主处理器设定电源控制端口的工作状态电位为低电平。 3. A system according to claim 1 or claim 2, wherein said main processor to set the operating state of the power supply control port of the low level potential.
4.根据权利要求1、2或3所述的系统,其特征在于,还包括:内部集成总线,所述内部集成总线连接在所述主处理器与所述第一摄像头模组和所述第二摄像头模组间;所述内部集成总线的地址用于区分第一摄像头和第二摄像头模组内的传感器型号。 4. The system of claim 1, 2 or 3, characterized in that, further comprising: an integrated internal bus, said internal bus connected to said integrated master processor and the first and the second camera module between two camera module; said internal address bus is integrated for distinguishing a first type sensor and the camera in the second camera module.
5.一种具有双摄像头的电子设备,其特征在于,所述电子设备包括有权利要求1至4任一项所述的双摄像头的控制系统。 An electronic apparatus having a two-camera, wherein said electronic device comprises a control system according to any one of claims 1 to 4 pairs of cameras claims.
6.一种双摄像头的控制方法,其特征在于,包括: 根据用户的选择,在第一摄像头模组和第二摄像头模组中,将需要启动的摄像头模组确定为目标摄像头模组; 将所述目标摄像头模组的电源控制端口的电位设定为工作状态电位; 将第一控制开关与所述目标摄像头模组的标识端口连通,以便所述第一控制开关根据处理器发送的电信号将第一通用输入输出端口与所述目标摄像头模组的标识端口间的电路导通。 A method of controlling a dual camera, characterized by comprising: the user's selection, the first camera module and a second camera module, the camera module to be started is determined as the target camera module; and the potential of the power supply control port of the camera module set target operating state potential; identification control switch port in communication with the target first camera module, so that the first control switch electrical signals sent by the processor the identification circuit is turned between the first port and the general purpose input output target port through the camera module.
7.根据权利要求6所述的方法,其特征在于,所述将所述第一控制开关与所述目标摄像头模组的标识端口连通后,还包括: 通过所述第一通用输入输出端口读取所述标识端口的标识信息,利用读取的标识信息对目标摄像头模组进行识别。 7. The method according to claim 6, characterized in that, after the port identifier of the first control switch in communication with the target camera module, further comprising: said first read GPIOs taking the identification information identifying the port, using the read identification information to identify the target of the camera module.
8.根据权利要求6或7所述的方法,其特征在于,将所述目标摄像头模组的电源控制端口的电位设定为工作状态电位后,还包括: 将第二控制开关与所述目标摄像头模组的复位端口连通,以便通过所述第二控制开关将第二通用输入输出端口与所述目标摄像头模组的复位端口间的电路导通。 8. The method of claim 6 or claim 7, wherein the potential of the power supply control port of the camera module of the target operating state is set to a potential, further comprising: a second control switch with the target reset camera module communication port, through said second control switch so that the circuit between the reset port of the second general purpose input output port of the target camera module.
9.根据权利要求6、7或8任一项所述的方法,其特征在于,当电源控制端口的电位为低电平时,电源控制端口的电位为工作状态电位。 9. A method according to 6, 7 or 8 according to any one of the preceding claims, characterized in that, when the potential of the power supply control port is at low level, the potential of the power supply control port of the operating state potential.
10.根据权利要求6至9任一项所述的方法,其特征在于,在将所述目标摄像头模组的电源控制端口的电位设定为工作状态电位之后,还包括:判断通过内部集成电路总线的地址是否能识别所述目标摄像头模组的传感器型号,如果否,则将所述第一控制开关与所述目标摄像头模组的标识端口连通。 10. The method according to any one of claims 6-9, characterized in that, after the potential of the power supply control port of the camera module to the target operating state is set to a potential, further comprising: an integrated circuit is determined by the internal an address bus to identify whether the target sensor type camera module, and if not, identifying the first switch and the control target of the camera module then communicates the port.
CN 201110236402 2011-08-17 2011-08-17 Method and system for controlling double cameras and electronic equipment with double cameras CN102263904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110236402 CN102263904B (en) 2011-08-17 2011-08-17 Method and system for controlling double cameras and electronic equipment with double cameras

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110236402 CN102263904B (en) 2011-08-17 2011-08-17 Method and system for controlling double cameras and electronic equipment with double cameras

Publications (2)

Publication Number Publication Date
CN102263904A CN102263904A (en) 2011-11-30
CN102263904B true CN102263904B (en) 2013-06-26

Family

ID=45010338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110236402 CN102263904B (en) 2011-08-17 2011-08-17 Method and system for controlling double cameras and electronic equipment with double cameras

Country Status (1)

Country Link
CN (1) CN102263904B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447827A (en) * 2011-12-15 2012-05-09 深圳桑菲消费通信有限公司 Camera module and application method thereof
CN102932599A (en) * 2012-11-09 2013-02-13 北京百纳威尔科技有限公司 Device and method to achieve camera function based on general purpose input/output (GPIO) stimulated data bus
CN103716597A (en) * 2013-12-07 2014-04-09 苏州斯普锐智能系统有限公司 Synchronous multiplexing system comprising single port and multiple imaging modules and synchronous multiplexing method
CN106464795A (en) * 2014-10-22 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Image generation method based on dual camera module and dual camera module
CN107005625A (en) * 2015-04-29 2017-08-01 华为技术有限公司 A kind of camera module
CN107222708B (en) * 2016-03-22 2019-09-17 杭州海康威视数字技术股份有限公司 A kind of image-forming detecting system of front end separation video camera
CN107422819A (en) * 2017-07-12 2017-12-01 广东欧珀移动通信有限公司 A kind of method for reducing temperature rise, computer-readable recording medium, electronic equipment
CN107241541A (en) * 2017-07-31 2017-10-10 重庆三朵蜜生物技术有限公司 A kind of bicamera
CN108170481A (en) * 2017-12-27 2018-06-15 上海传英信息技术有限公司 Electric drive method and electric terminal on camera
CN108170211A (en) * 2017-12-27 2018-06-15 上海传英信息技术有限公司 Electric drive method and electric terminal on camera

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299847B (en) * 2008-06-25 2013-04-10 闻泰通讯股份有限公司 Method for setting, controlling and switching forward and backward CCD camera of mobile terminal
CN201541285U (en) * 2009-10-19 2010-08-04 中兴通讯股份有限公司 Switching circuit for phone camera

Also Published As

Publication number Publication date
CN102263904A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
KR100886049B1 (en) System and method for universal serial bus hub port reversal
EP2988199A1 (en) Clicking control method and terminal
JP5416767B2 (en) Graphics multimedia IC and method of operation thereof
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
KR20160143572A (en) Wireless audio output devices
US8285345B2 (en) Mobile terminal and method for switching states thereof
CN102292687A (en) During sleep portable computing device to power auxiliary equipment
KR101925412B1 (en) Method and apparatus for controlling sleep mode in portable terminal
KR20160064258A (en) Method for voice recognition and an electronic device thereof
US8843177B2 (en) Mobile electronic device accessory and method of providing the same
KR101237763B1 (en) Sharing single host controller with multiple functional devices
US8484394B2 (en) USB device election of becoming a host after receiving information about device capability of the host
US9106553B2 (en) System and method for sharing resources and interfaces amongst connected computing devices
WO2014067256A1 (en) Remote control method, intelligent terminal and intelligent remote control system
EP3223151A1 (en) Hot-handover method and device for operating systems, and mobile terminal
TWI384849B (en) Subscriber identity module card control apparatus and control method
JP5100854B2 (en) Communication apparatus and communication method
US20150317120A1 (en) Method and apparatus for outputting contents using a plurality of displays
EP2402863B1 (en) Wireless internet access device, SD control chip, and method for data communication
WO2013000381A1 (en) Method for controlling state of mobile terminal and mobile terminal
US20060160569A1 (en) Cellular phone and portable storage device using the same
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
US10326861B2 (en) Method for controlling cooperation of multiple intelligent devices and apparatus thereof
US20080246581A1 (en) Electronic machine, connected machine identifying method for electronic machine and control system
KR20150026652A (en) Method and apparatus for offering received information to user in a electronic device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder