CN102164245A - Mobile-phone-based camera module adaptation method - Google Patents

Mobile-phone-based camera module adaptation method Download PDF

Info

Publication number
CN102164245A
CN102164245A CN201110043627.1A CN201110043627A CN102164245A CN 102164245 A CN102164245 A CN 102164245A CN 201110043627 A CN201110043627 A CN 201110043627A CN 102164245 A CN102164245 A CN 102164245A
Authority
CN
China
Prior art keywords
camera module
mobile phone
information
reads
adaptive method
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.)
Pending
Application number
CN201110043627.1A
Other languages
Chinese (zh)
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201110043627.1A priority Critical patent/CN102164245A/en
Publication of CN102164245A publication Critical patent/CN102164245A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The invention provides a mobile-phone-based camera module adaptation method, which comprises the following steps of: acquiring the identification (ID) information of a camera module; and setting a corresponding camera module drive according to the ID information of the camera module. By the method, the drive configuration of the camera module of a mobile phone can be automatically matched, the production efficiency can be improved, and the maintenance cost can be reduced.

Description

A kind of adaptive method of camera module based on mobile phone
[technical field]
The present invention relates to camera module technical field, particularly a kind of adaptive method of camera module based on mobile phone.
[background technology]
Along with the development of video technique, more and more universal to camera module The Application of Technology in the mechanics of communication, particularly wireless communication technique, the standard that the camera module has become mobile phone one of is equipped with.
During mobile phones design, the model of mobile phone cam module is determined basically.But during the mobile phone volume production, consider the reason of price and supplier's production capacity, may require to switch to the camera module of other models temporarily, perhaps switched module supplier, with the camera module of the size of taking pictures, so just the problem of the camera module of different model has not appearred using even on same model mobile phone.Traditional method is to revise software in addition to adapt to new camera module, but like this to producers and get the raw materials ready and brought inconvenience, for example producers must know that the camera module that assembles on the current phone is the camera module of which kind of model, need to use the software of which version, increased producers' workload, also as easy as rolling off a log causing obscured.
How the camera module is enhanced productivity, and reducing maintenance cost is one of direction of camera module mobile phone production research.
[summary of the invention]
Technical problem to be solved by this invention provides a kind of adaptive method of camera module based on mobile phone, it can drive the mobile phone cam module automatically and mate, thereby can adopt corresponding driving adaptively according to camera module self-information, enhance productivity and reduce maintenance cost.
The invention provides a kind of adaptive method of camera module, said method comprising the steps of based on mobile phone:
Obtain the id information of camera module;
Setting corresponding camera module according to the id information of camera module drives.
According to one preferred embodiment of the present invention, obtain before the id information of camera module, also comprise the powering on of described camera module, reset process.
According to one preferred embodiment of the present invention, the step of obtaining the id information of camera module further comprises:
ID according to first kind of predetermined camera module reads the ID that mode reads the camera module;
Thereby whether the camera module ID that judgement is read and the actual ID of described first kind of camera module mate the id information camera module of determining the camera module.
According to one preferred embodiment of the present invention, when the camera module ID that reads is consistent with the actual ID of described first kind of camera module, sets the camera module according to the type of drive of described first kind of camera module and drive.
According to one preferred embodiment of the present invention, further confirm the supplier information of described first kind of camera module, and give corresponding camera module effect parameter according to described supplier information by the height of judging predefine pin current potential in described first kind of camera module.
According to one preferred embodiment of the present invention, when the actual ID of the camera module ID that reads and described first kind of camera module is inconsistent, further comprise step:
ID according to second kind of predetermined camera module reads the ID that mode reads the camera module;
Judge thereby whether the camera module ID and the described second kind of camera module ID that read mate the id information of determining the camera module.
According to one preferred embodiment of the present invention, when the camera module ID that reads is consistent with the actual ID of described second kind of camera module, sets the camera module according to the type of drive of described second kind of camera module and drive.
According to one preferred embodiment of the present invention, further confirm the supplier information of described second kind of camera module, and give corresponding camera module effect parameter according to described supplier information by the height of judging predefine pin current potential in described second kind of camera module.
According to one preferred embodiment of the present invention, when the actual ID of the camera module ID that reads and second kind of camera module is inconsistent, feedback error information.
According to one preferred embodiment of the present invention, the step that drives according to the corresponding camera module of the id information setting of camera module comprises:
Driving function pointer to the camera module carries out assignment.
By above embodiment, the present invention with camera module ID as judgment basis, mate from when starting shooting, automatically the mobile phone cam module being driven by mobile phone, can carry out self adaptation by ID to size camera module of the same race, different size camera module, further, to different module manufacturer with a kind of camera module, also can be by carrying out self adaptation with module manufacturer self-defined module part pin current potential, thereby reach the purpose of supporting multiple camera module in the software of same version, enhance productivity and reduce maintenance cost.
[description of drawings]
Fig. 1 is a kind of adaptive method flow diagram of camera module based on mobile phone provided by the invention;
Fig. 2 is the flow chart of a specific embodiment of a kind of adaptive method of camera module based on mobile phone provided by the invention.
Fig. 3 is the flow chart of another specific embodiment of a kind of adaptive method of camera module based on mobile phone provided by the invention.
[embodiment]
The present invention is described in detail below in conjunction with drawings and Examples.
Fig. 1 shows the flow chart of a kind of adaptive approach based on the camera module provided by the invention, and concrete steps are as follows:
Step S10 reads the ID of camera module;
Because every kind of camera module all can have one's own product ID (ID), and this identification number is unique, in the chip register that is solidificated in each camera module or some particular storage that can not change, discern the information of this camera module by searching product ID.
Step S11 is according to the corresponding setting of the ID camera module driving of camera module;
In this step,, mate the driving of camera module correspondence automatically according to the id information that step S11 is obtained.Particularly, can carry out assignment to the pointer of the driving function of camera module according to this id information.
See also Fig. 2, the flow chart of a specific embodiment of a kind of adaptive method of camera module based on mobile phone that Fig. 2 shows that the embodiment of the invention provides, present embodiment is that example describes to adopt first kind of camera module and second kind of camera module.The concrete operation method of present embodiment is as follows:
Step S100, start-up system;
In the step of start-up system,, also comprise the startup that some guarantee necessary soft, the hardware of system's operate as normal except opening the power supply of necessity.Here system is for using the mobile phone of camera module, certainly, in mobile phone, also have some as communication module, input/output module etc. and the non-directly related functional module of camera module, in this step, can set as required and whether start, do not do concrete restriction at this.
Step S101, by first kind of camera module power on, reset mode operates;
In this step, the operation that the requirement that powers on, resets that limits in the operation manual according to first kind of camera module powers on, resets the camera module is so that the camera module can be in states such as debugging, test, work.
Step S102 reads the ID that mode reads the camera module by the ID of first kind of camera module;
Every kind of camera all can have one's own product ID (ID), because this identification number is unique, that can not change is solidificated in each camera chip register, we can find this register address according to the chip data handbook, and read value in the camera ID register by the IIC communication interface.In this step, read the ID that mode reads the camera module according to the ID of first kind of camera module.
Step S103, whether the ID that judgement is read and the ID of reality mate;
In this step, the first kind of camera module ID reading and the actual ID of first kind of camera module are compared, if the camera module ID that reads is consistent with the actual ID of the first camera module, what then show the employing of camera module is first kind of camera module, carry out step S104 then, camera module driving function pointer is carried out assignment; If the actual ID of the camera module ID that reads and the first camera module is inconsistent, what show then that design camera module adopts is not first kind of camera module, then carries out step S111: by second kind of camera module power on, reset mode operates.Carry out step S112 then, ID by second kind of camera module reads the ID that mode reads the camera module, then at step S113, whether the ID that judgement is read and the ID of reality mate, that is: the second kind of camera module ID that will read and the actual ID of second kind of camera module compare.If coupling is carried out step S114, to webcam driver function pointer assignment.Otherwise, enter step S116, produce the error message feedback, show that camera does not exist or not in the scope of compatibility.
Should be understood that the foregoing description among Fig. 2 only enumerated the situation of two kinds of camera modules,, only need corresponding as required expansion step S101, S102, S103, S104 to get final product, do not repeat them here for the situation of more kinds of camera modules.
For compatibility is the different suppliers' of same model module, because the difference of camera lens needs different camera effect parameter, can consult to define a pinout with supplier to this and solve compatibling problem, to realize adaptive purpose.See also Fig. 3, the flow chart of another specific embodiment of a kind of adaptive method of camera module based on mobile phone that Fig. 3 shows that the embodiment of the invention provides.With the OV9660 of 1,300,000 pixels that may use the module vendor A on same hardware plate and the OV7690 module of 300,000 pixels, also having the OV9660 of 1,300,000 pixels of the B of module manufacturer and the OV7690 module of 300,000 pixels is that example describes.Because what different module supplier used is different camera lenses, causes the camera effect parameter inconsistent.Therefore, can draw high module into supplier A with the 24th pin built-in potential of supplier A and supplier B agreement module, built-in potential drags down the module into supplier B.
The concrete operation method of present embodiment is as follows:
Step S20, start-up system;
In the step of start-up system,, also comprise the startup that some guarantee necessary soft, the hardware of system's operate as normal except opening the power supply of necessity.Here system is for using the mobile phone of camera module, certainly, in mobile phone, also have some as communication module, input/output module etc. and the non-directly related functional module of camera module, in this step, can set as required and whether start, do not do concrete restriction at this.
Step S21, the camera module powers on, resets;
In this step, the operation that the requirement that powers on, resets that limits in the operation manual according to the camera module powers on, resets the camera module is so that the camera module can be in states such as debugging, test, work.
Step S22 obtains the product ID of camera module;
In this step, adopt certain software set to obtain the product ID information of camera module.For example, in the camera module of giving an example, product ID leaves in 0x0Ah and the 0x0Bh register, can obtain the product indicia information of camera module by the value that the IIC communication interface reads these two registers, and the setting read value is Val.
Step S231 judges whether Val equals an ID value;
In this step, a value Val and an ID value with the register that reads, as 0x7690h, compare, judgement is whether the two equates, is "Yes" as judged result, judges that then this camera module adopts the camera module of first kind of camera module chip (being the OV7690 module in the present embodiment), carry out step S241 then, further judge the current potential height of the 24th pin of camera module.
As detect the 24th pin current potential of camera module for high, and then carry out step S251, confirm first kind of camera module that the camera module provides for supplier A, camera module driving function pointer is carried out settings such as assignment, and compose corresponding effect parameter; Finish this step, then can represent to finish, enter step S27, end setup this camera module adaptive setting.
As to detect the 24th pin current potential of camera module be low, then carries out step S252, confirms the OV7690 module that the camera module provides for supplier B, camera module driving function pointer carried out settings such as assignment, and compose corresponding effect parameter; Finish this step, then can represent to finish to this camera module adaptive setting performing step S27 end setup.
In abovementioned steps S231, as judging that Val is not equal to an ID value, then enter step S232, judge whether Val equals the 2nd ID value.In this step, if the value Val and the 2nd ID value of the register that reads as 0x9663h, compare, judgement is whether the two equates.As judged result is "Yes", judges that then this camera module adopts the camera module of second kind of camera module chip (being the OV9660 module in the present embodiment), carries out step S242, further judges the current potential height of the 24th pin of camera module.
As detect the 24th pin current potential of camera module for high, and then carry out step S253, confirm second kind of camera module that the camera module provides for supplier A, camera module driving function pointer is carried out settings such as assignment, and compose corresponding effect parameter; Finish this step, then can represent to finish, enter step S27, end setup this camera module adaptive setting.
As to detect the 24th pin current potential of camera module be low, then carries out step S254, confirms the OV9660 module that the camera module provides for supplier B, camera module driving function pointer carried out settings such as assignment, and compose corresponding effect parameter; Finish this step, then can represent to finish, enter step S27, end setup this camera module adaptive setting.
In abovementioned steps S232,, then enter step S26 as judging that Val is not equal to the 2nd ID value.
In this step, because the value Val of the register that reads both had been not equal to an ID value, also be not equal to the 2nd ID value, that is: the camera module information that reads is not in predetermined information, expression camera module does not exist or the camera module can't compatible known drive, feedback error information.
It is the two (A of family that the foregoing description has only been enumerated supplier, B), and every supplier of family provides two kinds of camera module (OV7690, OV9660) situation, situation for a plurality of suppliers, multiple camera module, only need corresponding as required expansion step S231, S232, S241, S242, S251, S252, S253, S254 to get final product, do not repeat them here.
In sum, the present invention, is mated from automatically the mobile phone cam module being driven when starting shooting by mobile phone as judgment basis with camera module ID, can carry out self adaptation by ID to size camera module of the same race, different size camera module.Further, to different module manufacturer with a kind of camera module, also can be by carrying out self adaptation with module manufacturer self-defined module part pin current potential, thus reach the purpose of supporting multiple camera module in the software of same version, enhance productivity and reduce maintenance cost.
In the above-described embodiments, only the present invention has been carried out exemplary description, but those skilled in the art can carry out various modifications to the present invention after reading present patent application under the situation that does not break away from the spirit and scope of the present invention.

Claims (10)

1. the adaptive method of camera module based on mobile phone is characterized in that, said method comprising the steps of:
Obtain the id information of camera module;
Setting corresponding camera module according to the id information of camera module drives.
2. the adaptive method of camera module based on mobile phone as claimed in claim 1 is characterized in that, obtains before the id information of camera module, also comprises the powering on of described camera module, reset process.
3. the adaptive method of camera module based on mobile phone as claimed in claim 2 is characterized in that the step of obtaining the id information of camera module further comprises:
ID according to first kind of predetermined camera module reads the ID that mode reads the camera module;
Thereby whether the camera module ID that judgement is read and the actual ID of described first kind of camera module mate the id information of determining the camera module.
4. the adaptive method of camera module based on mobile phone as claimed in claim 3, it is characterized in that, when the camera module ID that reads is consistent with the actual ID of described first kind of camera module, sets the camera module according to the type of drive of described first kind of camera module and drive.
5. the adaptive method of camera module based on mobile phone as claimed in claim 4, it is characterized in that, further confirm the supplier information of described first kind of camera module, and give corresponding camera module effect parameter according to described supplier information by the height of judging predefine pin current potential in described first kind of camera module.
6. the adaptive method of camera module based on mobile phone as claimed in claim 3 is characterized in that, when the actual ID of the camera module ID that reads and described first kind of camera module is inconsistent, further comprises step:
ID according to second kind of predetermined camera module reads the ID that mode reads the camera module;
Judge thereby whether the camera module ID and the described second kind of camera module ID that read mate the id information of determining the camera module.
7. the adaptive method of camera module based on mobile phone as claimed in claim 6, it is characterized in that, when the camera module ID that reads is consistent with the actual ID of described second kind of camera module, sets the camera module according to the type of drive of described second kind of camera module and drive.
8. the adaptive method of camera module based on mobile phone as claimed in claim 7, it is characterized in that, further confirm the supplier information of described second kind of camera module, and give corresponding camera module effect parameter according to described supplier information by the height of judging predefine pin current potential in described second kind of camera module.
9. the adaptive method of camera module based on mobile phone as claimed in claim 6 is characterized in that, when the actual ID of the camera module ID that reads and second kind of camera module is inconsistent, and feedback error information.
10. as each described adaptive method of camera module in the claim 1 to 10, it is characterized in that the step of setting corresponding camera module driving according to the id information of camera module comprises based on mobile phone:
Driving function pointer to the camera module carries out assignment.
CN201110043627.1A 2011-02-23 2011-02-23 Mobile-phone-based camera module adaptation method Pending CN102164245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110043627.1A CN102164245A (en) 2011-02-23 2011-02-23 Mobile-phone-based camera module adaptation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110043627.1A CN102164245A (en) 2011-02-23 2011-02-23 Mobile-phone-based camera module adaptation method

Publications (1)

Publication Number Publication Date
CN102164245A true CN102164245A (en) 2011-08-24

Family

ID=44465182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110043627.1A Pending CN102164245A (en) 2011-02-23 2011-02-23 Mobile-phone-based camera module adaptation method

Country Status (1)

Country Link
CN (1) CN102164245A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747167A (en) * 2013-12-26 2014-04-23 惠州华阳通用电子有限公司 System and method for automatically matching vehicle camera with processing unit
CN103905611A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Image acquisition unit compatible matching method and electronic device
CN105376481A (en) * 2015-10-08 2016-03-02 珠海全志科技股份有限公司 Camera device driving method and camera device driving unit
CN105472249A (en) * 2015-12-24 2016-04-06 惠州Tcl移动通信有限公司 Compatible control method and device for camera
CN105554257A (en) * 2015-12-11 2016-05-04 惠州Tcl移动通信有限公司 Compass fast initialization setting method, system and mobile terminal
CN106304032A (en) * 2016-08-08 2017-01-04 周奇 Mobile phone configuration compatibility method and system
CN107817987A (en) * 2016-09-13 2018-03-20 腾讯科技(深圳)有限公司 A kind of hardware configuration method, system, terminal and server
CN109547698A (en) * 2018-12-19 2019-03-29 上海创功通讯技术有限公司 A kind of image preview method and device
CN109874010A (en) * 2019-02-26 2019-06-11 成都国科微电子有限公司 A kind of automatic testing method and system of camera module
CN110297793A (en) * 2018-03-22 2019-10-01 杭州海康威视数字技术股份有限公司 Chip recognition methods, device and electronic equipment
CN112689083A (en) * 2020-11-27 2021-04-20 深兰科技(上海)有限公司 Vehicle-mounted camera configuration method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645957A (en) * 2005-01-12 2005-07-27 宁波大学 Modular mobile phone and module automatic identifying method
US20060107296A1 (en) * 2004-11-16 2006-05-18 Motorola, Inc. Remote image tracking and methods thereof
CN101159814A (en) * 2007-11-16 2008-04-09 康佳集团股份有限公司 Embedded equipment camera software dynamic recognizing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060107296A1 (en) * 2004-11-16 2006-05-18 Motorola, Inc. Remote image tracking and methods thereof
CN1645957A (en) * 2005-01-12 2005-07-27 宁波大学 Modular mobile phone and module automatic identifying method
CN101159814A (en) * 2007-11-16 2008-04-09 康佳集团股份有限公司 Embedded equipment camera software dynamic recognizing method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905611A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Image acquisition unit compatible matching method and electronic device
CN103747167B (en) * 2013-12-26 2018-03-09 惠州华阳通用电子有限公司 A kind of Cam for automobile and processing unit automatic patching system and method
CN103747167A (en) * 2013-12-26 2014-04-23 惠州华阳通用电子有限公司 System and method for automatically matching vehicle camera with processing unit
CN105376481A (en) * 2015-10-08 2016-03-02 珠海全志科技股份有限公司 Camera device driving method and camera device driving unit
CN105376481B (en) * 2015-10-08 2018-11-09 珠海全志科技股份有限公司 The driving device of driving method for video camera and photographic device
CN105554257A (en) * 2015-12-11 2016-05-04 惠州Tcl移动通信有限公司 Compass fast initialization setting method, system and mobile terminal
CN105472249A (en) * 2015-12-24 2016-04-06 惠州Tcl移动通信有限公司 Compatible control method and device for camera
CN106304032A (en) * 2016-08-08 2017-01-04 周奇 Mobile phone configuration compatibility method and system
CN107817987A (en) * 2016-09-13 2018-03-20 腾讯科技(深圳)有限公司 A kind of hardware configuration method, system, terminal and server
CN110297793A (en) * 2018-03-22 2019-10-01 杭州海康威视数字技术股份有限公司 Chip recognition methods, device and electronic equipment
CN109547698A (en) * 2018-12-19 2019-03-29 上海创功通讯技术有限公司 A kind of image preview method and device
CN109874010A (en) * 2019-02-26 2019-06-11 成都国科微电子有限公司 A kind of automatic testing method and system of camera module
CN112689083A (en) * 2020-11-27 2021-04-20 深兰科技(上海)有限公司 Vehicle-mounted camera configuration method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102164245A (en) Mobile-phone-based camera module adaptation method
CN101957807B (en) Method for USB device to recognize version type of Windows operating system
CN102685283B (en) A kind of device module identification method, device and a kind of mobile terminal
US20130007289A1 (en) Remote control system and remote control method of the same
CN102662697B (en) Software upgrading method and device
CN109947482B (en) Loading method of USB (universal serial bus) equipment, storage medium and smart television
CN104199706A (en) Firmware upgrade method and device for eMMC
CA2562776C (en) Apparatus and method to support usb enumeration of a bus powered handheld device
CN103399840A (en) Out-of-band altering method of configuration file of computer and computer
CN102184158B (en) Daughter board with two-stage FPGA chip and collocation method of two-stage FPGA chip
CN101840317A (en) Device and method for automatically configuring print driver
JP2011530850A (en) Interface system and method between terminal and smart card, and smart card applied thereto
CN104407874A (en) Embedded equipment compatible to a plurality of types of LCD screens
CN104220958A (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
CN103064812B (en) Method and device for quickly connecting mobile equipment and computer
CN101159814A (en) Embedded equipment camera software dynamic recognizing method
CN109217419B (en) Quick charging system and method
CN103902480A (en) Android phone driving method and system
CN103761129A (en) Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
CN103412832A (en) Automatic WIFI (Wireless Fidelity) adaptation method
CN104053030A (en) Combined television starting method and combined television
CN106774769B (en) Terminal working mode switching method and device and handheld terminal
CN205620994U (en) Embedded equipment processing apparatus
US7996697B2 (en) Matching system of electronic device and peripheral device and matching method thereof
CN100403285C (en) Semicondustor storage device having host system operation function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110824