[go: up one dir, main page]

CN102263904A - Dual-camera control method, system, and electronic device with dual-camera - Google Patents

Dual-camera control method, system, and electronic device with dual-camera Download PDF

Info

Publication number
CN102263904A
CN102263904A CN2011102364028A CN201110236402A CN102263904A CN 102263904 A CN102263904 A CN 102263904A CN 2011102364028 A CN2011102364028 A CN 2011102364028A CN 201110236402 A CN201110236402 A CN 201110236402A CN 102263904 A CN102263904 A CN 102263904A
Authority
CN
China
Prior art keywords
camera module
port
camera
output port
control switch
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.)
Granted
Application number
CN2011102364028A
Other languages
Chinese (zh)
Other versions
CN102263904B (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.)
Honor Device Co Ltd
Original Assignee
Huawei Device Co Ltd
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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The embodiment of the invention provides a method and a system for controlling double cameras and electronic equipment with the double cameras. The system for controlling double cameras comprises a first camera module, a second camera module and a main processor, wherein a power control port of the first camera module and a power control port of the second camera module are connected with the main processor; the main processor is used for controlling electric potentials of the power control port of the first camera module and the power control port of the second camera module; a first general-purpose input/output port of the main processor is connected with an identification port of the first camera module and an identification port of the second camera module through a first control switch; and the first control switch is used for controlling communication between the first general-purpose input/output port and the identification port of the first camera module or the identification port of the second camera module. By adopting the same sensor design in different camera modules, the control system can identify different camera modules under the condition that general-purpose input/output (GPIO) resources are saved.

Description

The control method of dual camera, system and have the electronic equipment of dual camera
Technical field
The present invention relates to optics camera technical field, particularly relate to control method, the system of dual camera and have the electronic equipment of dual camera.
Background technology
At present, the optics camera has been widely used in the portable terminals such as mobile phone.Along with the development of 3G technology, had the function of video telephone in the portable terminal, have in the portable terminal of video telephone function and generally can be provided with major and minor two cameras, main camera generally is used to take pictures, and secondary camera generally is used for video calling.
The camera imaging process mainly is the digitized process of light signal, this process is mainly finished by the camera module, and the camera module generally is made up of camera lens (lens), transducer (sensor), rear end picture processing chip (Backend IC) and soft board (FPC) four parts.And having the electronic equipment of dual camera, therefore different camera modules may when camera is worked, need identify producer's model of module from different producers, just can call the setup code of module correspondence, finishes the initialization of module.Have in the electronic equipment of dual camera, transducer in different camera modules is not simultaneously, CPU can pass through internal integrate circuit bus (I2C, Inter-Integrated Circuit) identifies different transducers, and then call the setup code of module correspondence, carry out the initialization of module.
And have in the electronic equipment of dual camera, when adopting identical sensor design in the different camera modules, just need utilize general input GPIO and identify different camera modules and different transducers by drawing high or drag down ID identification port (ID PIN) current potential that can be provided with in conjunction with corresponding software and hardware.That is to say, when the ID of this camera module port is in low level, utilizes the GPIO that links to each other with the ID identification port of this module, and discern this module in conjunction with corresponding software and hardware, and then call the setup code of this module correspondence, finish the initialization of this module.Like this, the ID identification port of each module all needs to be connected with a GPIO, in other words, discern two camera modules and need two GPIO ports at least, but because GPIO resource-constrained, how can discern under the situation of different camera modules, saving the GPIO resource is those skilled in the art's urgent problems.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of control method, system of dual camera and has had the electronic equipment of dual camera, under the situation that adopts identical sensor design in the different camera modules, can adopt the mode of more saving the GPIO resource to realize identification to different camera modules.
For achieving the above object, the invention provides a kind of control system of dual camera, comprising: the first camera module, second camera module and the primary processor;
The power control terminal mouth of the power control terminal mouth of the described first camera module and the described second camera module all links to each other with described primary processor;
Described primary processor is used to control the current potential of the power control terminal mouth of the power control terminal mouth of the described first camera module and the described second camera module;
First universal input and output port of described primary processor links to each other with the sign port of the described first camera module or the sign port of the described second camera module by first control switch;
Described first control switch is used to control being communicated with of sign port of the sign port of described first universal input and output port and the described first camera module or the described second camera module.
On the other hand, the present invention also provides a kind of electronic equipment with dual camera, and described electronic equipment comprises the control system of above-described dual camera.
On the other hand, the present invention also provides a kind of control method of dual camera, comprising:
According to user's selection, in the first camera module and the second camera module, the camera module that needs are started is defined as target camera module;
With the potential setting of the power control terminal mouth of described target camera module is the operating state current potential;
The sign port of first control switch with described target camera module is communicated with, so as by described first control switch with the circuit turn-on between the sign port of first universal input and output port and described target camera module.
Via above-mentioned technical scheme as can be known, compared with prior art, the invention provides a kind of control method of dual camera, system and have the electronic equipment of dual camera, by first control switch first universal input and output port is connected with the sign port of the first camera module with the second camera module, and utilize first control switch to control being communicated with between first input/output port and the first camera module or the second camera module, when a certain camera module is in running order, can be communicated with first universal input and output port by the identification port of first control switch this camera module, so that processor is discerned this camera module by first universal input and output port, the such first camera module and the second camera module can a shared universal input and output port come the identification camera module, have reduced the quantity of using universal input and output port.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do simple the introduction to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the electrical block diagram of identification dual camera module system in the prior art;
Fig. 2 is the structural representation of an embodiment of control system of a kind of dual camera of the embodiment of the invention;
Fig. 3 is the structural representation of another embodiment of control system of a kind of dual camera of the embodiment of the invention;
Fig. 4 is the schematic flow sheet of an embodiment of control method of a kind of dual camera of the embodiment of the invention;
Fig. 5 is the schematic flow sheet of another embodiment of control method of a kind of dual camera of the embodiment of the invention.
Embodiment
For the electronic equipment with dual camera (as, the mobile phone that has dual camera), different camera modules may be from different producers, when adopting identical sensor design in the different camera modules, in the prior art each camera module is linked to each other with a universal input and output port GPIO of primary processor respectively, two camera modules just need two universal input and output port at least, and the universal input and output port GPIO resource that takies is more.
For in the process of identification camera module, reduce and take universal input and output port GPIO resource, the embodiment of the invention provides a kind of control method, system and electronic equipment of dual camera module, when adopting identical sensor design in the different camera modules, can reduce the quantity that the camera module takies the universal input and output port of primary processor.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention at the every other embodiment that is obtained.
Referring to Fig. 1, electrical block diagram for identification dual camera module system in the prior art, this system comprises the first camera module 1, the second camera module 2 and primary processor 3, wherein, the power control terminal mouth 21 of the power control terminal mouth 11 of the first camera module 1 (that is powder Down port) and the second camera module 2 links to each other with a universal input and output port GPIO in the primary processor 3 respectively; The sign port of the first camera module 1 (also claiming sign identification port or ID port) 12 links to each other with first universal input and output port (GPIO port) 31 of primary processor 3; The reseting port 13 of the first camera module 1 links to each other with second universal input and output port 33 of primary processor 3; The sign port 22 of the second camera module 2 links to each other with the 3rd general input/output port 33 of primary processor 3; The reseting port 23 of the second camera module 2 links to each other with input/output port 34 with the four-way of primary processor 3.
Need to prove, in this dual camera module system, adopt identical sensor design in the different camera modules, therefore can not identify this camera module in this case by internal integrate circuit bus, the process of identification camera module is specially: when the current potential of setting the power control terminal mouth of certain camera module when primary processor is operating state, this camera module can receive and respond the corresponding operating order, control the signal of the reseting port of this camera module by universal input and output port, start this camera module; Afterwards, read this camera module of state recognition of sign port by the universal input and output port that links to each other with the sign port, so that identify producer's model of this camera module etc., call the setup code of this camera module correspondence, finish the initialization of camera module.
As seen in the prior art, in order to identify the camera module, finish the initialization of this camera module with the setup code that calls this camera module correspondence, the sign port of each camera module all need take a universal input and output port, simultaneously, when switching for the major and minor camera in dual camera, assurance is about to be in the steady operation of the camera module of startup, the reseting port of each camera module also needs respectively to take a universal input and output port, causes the resource of the universal input and output port that takies more.
In order to solve problems of the prior art, be the structural representation of an embodiment of control system of a kind of dual camera of the embodiment of the invention referring to Fig. 2, the system of present embodiment comprises: the first camera module 1, the second camera module 2 and primary processor 3;
The power control terminal mouth 21 of the power control terminal mouth 11 of the first camera module 1 and the second camera module 2 links to each other with a universal input and output port in this primary processor 3 respectively;
Primary processor 3 is used to control the current potential of the power control terminal mouth 21 of the power control terminal mouth 11 of the first camera module 1 and the second camera module 2, as, primary processor can the first camera module the current potential of power control terminal mouth be set to high level, the current potential of the power control terminal mouth of the second camera module is set to low level.For the operating state current potential of the power control terminal mouth of camera module can for: setting low level current potential is the operating state current potential; In the time of also can setting current potential when the power control terminal mouth for high level is operating state.Certainly the concrete current potential of setting operating state is high level or low level, can select according to actual needs.
First universal input and output port 31 of primary processor 3 links to each other with the sign port one 2 of the first camera module 1 or the sign port 22 of the second camera module 2 by first control switch 4.
This first control switch 4 is used to control first universal input and output port 31 and is communicated with the sign port one 2 of the first camera module 1 or the sign port 22 of the second camera module 2.That is to say, can control the mode of communicating of first control switch by primary processor, and then by the circuit turn-on of first control switch 1 with 2 of the sign port ones of first universal input and output port 31 and the first camera module 1, and the circuit of 22 of the sign ports of first universal input and output port 31 and the second camera module 2 is in off-state; Or by the circuit turn-on of first control switch 1, with the circuit disconnection of 2 of the sign port ones of first universal input and output port 31 and the first camera module 1 with 22 of the sign ports of first universal input and output port 31 and the second camera module 2.
Wherein, first control switch can be a single-pole double-throw switch (SPDT) by processor control, this control procedure is specially, after the power control terminal mouth of certain camera module is set to operating state, processor can send this camera module of indication to first control switch by first universal input and output port (being the GPIO interface) and enter the signal of telecommunication of operating state, first control switch just directly links to each other with the sign port of this camera module after receiving this signal of telecommunication, thereby processor can be discerned this camera module.
The embodiment of the invention links to each other first universal input and output port by first control switch with the sign port of the first camera module or the sign port of the second camera module.When the first camera module is in running order, can the sign port of first control switch with the first camera module be communicated with by primary processor, so that pass through first control switch the circuit turn-on between the sign port of first universal input and output port and the first camera module; Equally, when the second camera module is in running order, also can by first control switch with first universal input and output port with the circuit turn-on between the sign port of the first camera module.Because the first camera module and the second camera module can be simultaneously not in running order, therefore can will make the shared universal input and output port of sign port of the sign port and the second camera module of the first camera module by control switch, and then save the quantity of universal input and output port.
In actual applications for when the dual camera module switches, the camera that guarantees operating state can be in stable state, the reseting port of camera module also needs to be connected with universal input and output port in the processor, referring to Fig. 2, the reseting port 13 of the first camera module 1 is connected with second universal input and output port 32 of primary processor 3; The reseting port 23 of the second camera module 2 links to each other with the 3rd general input/output port 33 of primary processor 3.
Need to prove that first universal input and output port in the various embodiments of the present invention, second universal input and output port, the 3rd general input/output port all are the universal input and output port in the primary processor.As broad as long in function, adopting it is divided into first, second, third universal input and output port is for clearer being described of energy.
In order further to reduce universal input and output port quantity in the primary processor that the camera module takies, a universal input and output port of primary processor can be connected with the reseting port of the first camera module or the reseting port of the second camera module by a control switch, referring to Fig. 3, be the electrical block diagram of another embodiment of the control system of a kind of dual camera of the embodiment of the invention, the system of present embodiment comprises: the first camera module 1, the second camera module 2 and primary processor 3;
The power control terminal mouth 21 of the power control terminal mouth 11 of the first camera module 1 and the second camera module 2 links to each other with a universal input and output port of primary processor 3 respectively; Primary processor 3 is used to control the current potential of the power control terminal mouth 21 of the power control terminal mouth 11 of the first camera module 1 and the second camera module 2;
First universal input and output port 31 of primary processor 3 links to each other with the sign port one 2 of the first camera module 1 or the sign port 21 of the second camera module 2 by first control switch 4; First control switch 4 is used to control first universal input and output port 31 and is communicated with the sign port one 2 of the first camera module 1 or the sign port 22 of the second camera module 2.
Second universal input and output port 32 of primary processor 3 links to each other with the reseting port 13 of the first camera module 1 or the reseting port 23 of the second camera module 2 by second control switch 5.This second control switch 5 is used to control being communicated with of reseting port 23 of the reseting port 13 of described second universal input and output port 32 and the described first camera module 1 or the described second camera module 2.In other words, between the reseting port of the reseting port of second universal input and output port of primary processor and the first camera module and the second camera module, second control switch is set, control the mode of communicating of second control switch by processor, second control switch can be communicated with the reseting port of the first camera module, makes the circuit turn-on between second universal input and output port of the reseting port of the camera module of winning and primary processor; Or second control switch be communicated with the reseting port of the second camera module, make the reseting port of the second camera module be communicated with second universal input and output port of primary processor.Wherein, second control switch is similar to first control switch, and this second control switch also can be a single-pole double-throw switch (SPDT) by processor control.After the power control terminal mouth of certain camera module is set to operating state, processor can send this camera module of indication to second control switch by second universal input and output port and enter the signal of telecommunication of operating state, and second control switch just directly links to each other with the reseting port of this camera module after receiving this signal of telecommunication.
Present embodiment has been set up second control switch on the basis of a last embodiment, the reseting port of the reseting port of the first camera module and second camera all links to each other with second universal input and output port of primary processor by second control switch, and control circuit turn-on state between the reseting port of the reseting port of second universal input and output port and the first camera module or the second camera module by second control switch, therefore, the reseting port of two camera modules can a shared universal input and output port, thereby has reduced the quantity that takies universal input and output port.
Owing to may not know before the identification camera module whether two sensor model number designs in the camera module are identical, therefore also comprise in embodiments of the present invention: inner Integration Bus, this inside Integration Bus is connected between primary processor and the first camera module and the second camera module, promptly, by an inner Integration Bus with the primary processor and the first camera module, and primary processor links to each other with the second camera module, and the address of inner Integration Bus is used to distinguish the transducer in first camera and the second camera module.Because the corresponding different Integration Bus address, inside of the meeting of the transducer in the different camera modules utilizes inner Integration Bus address can distinguish out the interior transducer of different camera modules successively, thereby identifies different camera modules.
Need to prove, in the dual camera control system among the present invention, the first camera module and the second camera module are discerned, and can be processor, also can be the part of functions module of processor what the current potential of the power control terminal mouth of camera module was controlled.
With the dual camera control system that is arranged in the mobile phone is example, what in processor the potential state of the power control terminal mouth of the first camera module and the second camera module is controlled can be mobile phone Analog Baseband chip in the processor, also can be a part in the mobile phone Analog Baseband chip.Can realize that by the current potential that two camera modules in the mobile phone are set this module image induction chip links to each other with the power control terminal mouth to the control of the module image induction chip in the first camera module and the second camera module.
After the power control terminal mouth of certain camera module is set to operating state, mobile phone Analog Baseband chip in the processor can link to each other with the sign port of this camera module by first universal input and output port, thereby this Analog Baseband chip is discerned this camera module by first universal input and output port.
Further, this Analog Baseband chip also links to each other with the reseting port of this camera module by second universal input and output port.
The embodiment of the invention also provides a kind of electronic equipment of dual camera, and this electronic equipment is built-in with the as above described dual camera control system of embodiment.This electronic equipment can have the portable terminal of dual camera for mobile phone, PDA etc., also can have the electronic equipment of dual camera for other.
Device described above or system embodiment only are schematic, wherein said unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
Control system based on the dual camera of the embodiment of the invention, the embodiment of the invention also provides a kind of control method of dual camera, referring to Fig. 4, be the schematic flow sheet of an embodiment of the control method of a kind of dual camera of the present invention, the method for present embodiment comprises:
Step S401: the camera module of selecting to need to start in the first camera module and the second camera module is as target camera module;
System with dual camera, as mobile phone etc., when using camera, generally can select one of them to operate at two cameras, therefore according to user's demand, primary processor is selected a camera module to be started in the first camera module and the second camera module, the camera module that this is to be started is as target camera module.Certainly, at primary processor in the first camera module and the second camera module before the select target camera, may receive user's selection instruction, primary processor receives this instruction, and the required camera module of selection user, as being the camera module of usefulness of taking pictures when the first camera module, when the user need take pictures, the user can send the instruction of selecting camera by the operations such as button of pressing in the dual camera system, primary processor can be according to user's the Instruction Selection first camera module as target camera module, and is the operating state current potential with the potential setting of the power control terminal mouth of the first camera module.
Step S402: with the potential setting of the power control terminal mouth of target camera module is the operating state current potential;
Primary processor is the current potential that the power control terminal mouth of the first camera module and the second camera module is set standby signal, so that set the first camera module or the second camera module enters operating state.For example, when the standby signal of setting the first camera module was operating state, the first camera module carried out operating state, and carried out operation such as initialization; The second camera module then was in and treated operating state this moment, and when the standby signal of setting the second camera module up to primary processor was operating state, the second camera module just entered operating state.
Selected target camera module in the first camera module and the second camera module after, primary processor just can be directly be made as the operating state current potential with the current potential of the standby signal of target camera module.
Step 403: first control switch is communicated with the sign port of described camera module, so that pass through first control switch with the circuit turn-on between the sign port of first universal input and output port and target camera module.
When the current potential of the standby signal of target camera module is the operating state current potential, primary processor can switch to first control switch state that is communicated with the sign port of target camera module, and the sign port of target camera module and the circuit between first control switch are in conducting state.Because an end of first control switch is communicated with first universal input and output port of primary processor all the time, therefore, can be by first control switch with the circuit turn-on between the sign port of first universal input and output port of primary processor and target camera module.
When first universal input and output port with after the sign port of target camera module is communicated with, primary processor just can read the identification information of the sign port of target camera module by first universal input and output port, and utilizes the identification information that reads that target camera module is discerned.In other words, read the identification information of the sign port of target camera module by first universal input and output port, and then can identify type information of this target camera module etc., as producer's model of this first camera module etc., and call the setup code of this first camera module correspondence, finish the initialization of the first camera module.
Need to prove that the operating state current potential of the standby signal of camera module can be for: the current potential of setting the power control terminal mouth is the operating state current potential during for low level; In the time of also can setting current potential when the power control terminal mouth for high level is the operating state current potential, and concrete certainly to set the operating state current potential be high level or low level, can select according to actual needs.
In order further to reduce universal input and output port quantity in the primary processor that the camera module takies, a universal input and output port of primary processor can be connected with the reseting port of the first camera module or the reseting port of the second camera module by another control switch, referring to Fig. 5, be the flow chart of steps of another embodiment of the control method of a kind of dual camera of the present invention, present embodiment may further comprise the steps:
Step S501: the camera module of selecting to need to start in the first camera module and the second camera module is as target camera module;
Step S502: with the potential setting of the power control terminal mouth of described target camera module is the operating state current potential;
Step S503: the reseting port of second control switch with target camera module is communicated with so that by described second control switch with the circuit turn-on between the reseting port of second universal input and output port and target camera module;
By second control switch with the circuit turn-on between the reseting port of second universal input and output port and target camera module after, primary processor starts the relevant hardware that resets of target camera by second universal input and output port, so that, finish initialization and prepare for carrying out the identification of camera module.
Step S504: first control switch is communicated with the sign port of described camera module, so that pass through first control switch with the circuit turn-on between the sign port of first universal input and output port and target camera module.
Further, because before the identification camera module, primary processor may not know whether two sensor model number designs in the camera module etc. are identical, after the potential setting with the power control terminal mouth of target camera module is the operating state current potential, also comprises:
Judge the sensor model number that address by internal integrate circuit bus whether can recognition objective camera module, if not, then the sign port of first control switch with target camera module is communicated with.This process concrete can for: when the current potential of the standby signal of the first camera module is the operating state current potential, whether judgement can discern the sensor model number of the first camera module by the address of internal integrate circuit bus, if not, then the sign port of first control switch with the first camera module is communicated with, comes the first camera module is discerned so that read the sign port status by the first usefulness input/output port;
When the current potential of the standby signal of the second camera module is the operating state current potential, whether judgement can discern the sensor model number of the first camera module by the internal integrate circuit bus address, if not, then the sign port of first control switch with the second camera module is communicated with, just reads the sign port status and come the second camera module is discerned by first universal input and output port.
Description by above method embodiment, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as read-only memory (ROM), random-access memory (ram), magnetic disc or CD.
In several embodiment that the application provided, should be understood that, disclosed system, apparatus and method not surpassing in the application's the spirit and scope, can realize in other way.Current embodiment is a kind of exemplary example, should be as restriction, and given particular content should in no way limit the application's purpose.For example, the division of described unit or subelement only is that a kind of logic function is divided, and during actual the realization other dividing mode can be arranged, and for example a plurality of unit or a plurality of subelement combine.In addition, a plurality of unit can or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.
In addition, institute's descriptive system, the schematic diagram of apparatus and method and different embodiment, in the scope that does not exceed the application, can with other system, module, technology or method in conjunction with or integrated.Another point, the shown or coupling each other discussed or directly to be coupled or to communicate to connect can be by some interfaces, the indirect coupling of device or unit or communicate to connect can be electrically, machinery or other form.
The above only is the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

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

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110236402 CN102263904B (en) 2011-08-17 2011-08-17 Dual-camera control method, system, and electronic device with dual-camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110236402 CN102263904B (en) 2011-08-17 2011-08-17 Dual-camera control method, system, and electronic device with dual-camera

Publications (2)

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

Family

ID=45010338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110236402 Active CN102263904B (en) 2011-08-17 2011-08-17 Dual-camera control method, system, and electronic device with dual-camera

Country Status (1)

Country Link
CN (1) CN102263904B (en)

Cited By (16)

* 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 using 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
CN107222708A (en) * 2016-03-22 2017-09-29 杭州海康威视数字技术股份有限公司 A kind of front end separates the image-forming detecting system of video camera
CN107241541A (en) * 2017-07-31 2017-10-10 重庆三朵蜜生物技术有限公司 A kind of bicamera
CN107422819A (en) * 2017-07-12 2017-12-01 广东欧珀移动通信有限公司 A method for reducing temperature rise, computer-readable storage medium, and electronic device
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
CN109874010A (en) * 2019-02-26 2019-06-11 成都国科微电子有限公司 A kind of automatic testing method and system of camera module
CN110832841A (en) * 2018-04-26 2020-02-21 华为技术有限公司 Signal switching method and terminal
CN111787184A (en) * 2019-04-03 2020-10-16 恒景科技股份有限公司 camera system
CN112118385A (en) * 2019-06-19 2020-12-22 深圳君正时代集成电路有限公司 System for controlling double cameras by single-camera controller
CN112118382A (en) * 2019-06-19 2020-12-22 深圳君正时代集成电路有限公司 System for controlling double-camera module through change-over switch
WO2021013113A1 (en) * 2019-07-23 2021-01-28 华为技术有限公司 Image capture display terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299847A (en) * 2008-06-25 2008-11-05 嘉兴闻泰通讯科技有限公司 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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299847A (en) * 2008-06-25 2008-11-05 嘉兴闻泰通讯科技有限公司 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

Cited By (22)

* 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 using 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
CN107005625B (en) * 2015-04-29 2020-04-14 华为技术有限公司 A camera module
CN107222708B (en) * 2016-03-22 2019-09-17 杭州海康威视数字技术股份有限公司 A kind of image-forming detecting system of front end separation video camera
CN107222708A (en) * 2016-03-22 2017-09-29 杭州海康威视数字技术股份有限公司 A kind of front end separates the image-forming detecting system of video camera
CN107422819A (en) * 2017-07-12 2017-12-01 广东欧珀移动通信有限公司 A method for reducing temperature rise, computer-readable storage medium, and electronic device
CN107241541A (en) * 2017-07-31 2017-10-10 重庆三朵蜜生物技术有限公司 A kind of bicamera
CN107241541B (en) * 2017-07-31 2020-04-07 重庆三朵蜜生物技术有限公司 Double-lens camera
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
CN108170481B (en) * 2017-12-27 2020-12-01 上海传英信息技术有限公司 Camera power-on driving method and electronic terminal
CN108170211B (en) * 2017-12-27 2021-04-06 上海传英信息技术有限公司 Camera power-on driving method and electronic terminal
CN110832841A (en) * 2018-04-26 2020-02-21 华为技术有限公司 Signal switching method and terminal
CN109874010A (en) * 2019-02-26 2019-06-11 成都国科微电子有限公司 A kind of automatic testing method and system of camera module
CN111787184A (en) * 2019-04-03 2020-10-16 恒景科技股份有限公司 camera system
CN112118385A (en) * 2019-06-19 2020-12-22 深圳君正时代集成电路有限公司 System for controlling double cameras by single-camera controller
CN112118382A (en) * 2019-06-19 2020-12-22 深圳君正时代集成电路有限公司 System for controlling double-camera module through change-over switch
WO2021013113A1 (en) * 2019-07-23 2021-01-28 华为技术有限公司 Image capture display terminal
US11711627B2 (en) 2019-07-23 2023-07-25 Honor Device Co., Ltd. Image capture display terminal

Also Published As

Publication number Publication date
CN102263904B (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN102263904A (en) Dual-camera control method, system, and electronic device with dual-camera
US9106553B2 (en) System and method for sharing resources and interfaces amongst connected computing devices
JP6228716B2 (en) Interface circuit, state switching method and apparatus
CN108964187B (en) Terminal and charging method between terminals
US7930463B2 (en) Information processing apparatus
CN107454344B (en) A kind of acquisition parameters setting method and user terminal
EP3706007B1 (en) Electronic device having usb type-c interface, control method, and readable storage medium
CN105224494A (en) Method for handover control and device
US20180097315A1 (en) Power adapter, terminal device, charging system, and charging method
CN112269086B (en) Charging cable identification method and device, charging cable and readable storage medium
CN111246199B (en) Control method and device for camera test, terminal equipment and storage medium
CN107329520B (en) USB interface connection method, device and system of mobile terminal
KR20190084525A (en) Electronic device and method for operation thereof
CN114816788A (en) Equipment control method and device, electronic equipment and storage medium
US11322970B2 (en) Device with power-off charging capability
CN217932695U (en) Control device for working assembly and electronic equipment
CN105183274A (en) Switching control method and device
CN109991866B (en) Electronic equipment and control method
CN116030810A (en) Voice interaction method and device and related equipment
CN115687205A (en) Debugging module, terminal equipment, debugging method and device
CN103092306B (en) Messaging device and power-supply switching method
CN113938558B (en) Communication method, electronic device, and computer-readable storage medium
CN106303061A (en) A kind of means of communication, communicating terminal and terminal system
CN116939085A (en) Method, device and system for testing TypeC equipment and storage medium
CN104270832A (en) Combined communication terminal and communication method

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171027

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: Huawei terminal (Dongguan) Co.,Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: HUAWEI DEVICE Co.,Ltd.

CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: Huawei terminal (Dongguan) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20210420

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address