CN102082904A - Method for driving mobile phone camera - Google Patents

Method for driving mobile phone camera Download PDF

Info

Publication number
CN102082904A
CN102082904A CN201010610560.0A CN201010610560A CN102082904A CN 102082904 A CN102082904 A CN 102082904A CN 201010610560 A CN201010610560 A CN 201010610560A CN 102082904 A CN102082904 A CN 102082904A
Authority
CN
China
Prior art keywords
mobile phone
described mobile
setup code
cell
cam
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
CN201010610560.0A
Other languages
Chinese (zh)
Other versions
CN102082904B (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.)
Huaqin Technology Co Ltd
Original Assignee
Huaqin Telecom Technology 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 Huaqin Telecom Technology Co Ltd filed Critical Huaqin Telecom Technology Co Ltd
Priority to CN201010610560A priority Critical patent/CN102082904B/en
Publication of CN102082904A publication Critical patent/CN102082904A/en
Application granted granted Critical
Publication of CN102082904B publication Critical patent/CN102082904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for driving a mobile phone camera. A memory chip is embedded in a mobile phone camera module, and the memory chip stores first initial codes of the mobile phone camera; a mobile phone software system calls the first initial codes and compares the first initial codes with second initial codes stored in the mobile phone software system, and identifies and stores the initial codes to be used. The method for driving a mobile phone camera reduces the workload of software developers, and the plug and play camera is convenient to use by terminal users.

Description

The cell-phone camera head driving method
Technical field
The present invention relates to a kind of using method of communication apparatus, relate in particular to a kind of cell-phone camera head driving method.
Background technology
The job step of mobile phone cam module of the prior art please refer to Fig. 1, and Fig. 1 is the schematic flow sheet of cell-phone camera head driving method in the prior art, may further comprise the steps: step 21: the camera function menu that enters described mobile phone; Step 22: the cell phone software system reads the light sensor chip id number of described mobile phone cam; Step 23: described cell phone software system searches in the memory of described mobile phone and described ID number corresponding setup code according to described ID number; Step 24: whether judgement searches successful, if not, then changes step 25 over to, if then change step 26 over to; Step 25: provide miscue; Step 26: add corresponding setup code, change step 21 over to; Step 27: the register that described setup code is write described mobile phone cam; Step 28: call described setup code, the light sensor chip of the described mobile phone cam of initialization; Step 29: described mobile phone cam operate as normal, described cell phone software system receives camera data.
From above-mentioned steps as can be seen, when described cell phone software system according to described ID number, when in the memory of described mobile phone, searching the setup code failure corresponding with described ID number, then must add new code by the program development personnel is also debugged, therefore when in cell phone system, increasing a new mobile phone cam module, then must write new code and debugging again, very inconvenient, in addition, the mobile phone terminal user also can't independently change novel camera, has limited the use of this function of mobile phone cam plug and play.
Summary of the invention
The problem that the present invention solves is that existing mobile phone cam driver all needs the research staff to write the problem of new setup code with debugging under the situation of changing camera.
To achieve these goals, the invention provides a kind of cell-phone camera head driving method, may further comprise the steps: step 1: be embedded in a memory chip at described mobile phone cam module, described memory chip stored has first setup code of described mobile phone cam; Step 2: the camera function menu that enters described mobile phone; Step 3: the cell phone software system reads the light sensor chip id number of described mobile phone cam; Step 4: described cell phone software system reads first setup code from the memory chip of described mobile phone cam module; Step 5: described cell phone software system searches in the memory of described mobile phone and the described ID number second corresponding setup code according to described ID number, if search successfully, then changes step 6 over to, if search failure, then changes step 9 over to; Step 6: whether the content of the content of more described first setup code and described second setup code is identical, if not, then changes step 7 over to, if then change step 8 over to; Step 7: change to the content of described second setup code identical with the content of described first setup code; Step 8: call described second setup code, the light sensor chip of the described mobile phone cam of initialization changes step 10 over to; Step 9: store and call described first setup code, the light sensor chip of the described mobile phone cam of initialization; Step 10: described mobile phone cam operate as normal, described cell phone software system receives camera data.
Optionally, described mobile phone links to each other with described mobile phone cam module by three interfaces at least, and described three interfaces are respectively commands for controlling interface, data transmission interface and data read interface.
Optionally, also store the effect parameter of described mobile phone cam in the described memory chip.
Owing to adopted technique scheme, compared with prior art, the present invention has the following advantages: cell-phone camera head driving method of the present invention is deposited in the setup code of mobile phone cam self in the memory chip of mobile phone cam in advance, be convenient to the comparison of the setup code of mobile phone EMS memory storage and directly use, thereby reduced software developer's workload, camera can be accomplished plug and play simultaneously, has made things convenient for terminal use's use; In addition, mobile phone cam manufacturer product inline code can be given full play to the professional speciality of each manufacturer, and the code of devise optimum matter is brought into play the function and the effect of camera to greatest extent; At last, owing to compete, can improve constantly the quality of code between the different vendor, use, so just promote the technological progress of industry, form benign cycle in the hope of obtaining the client.
Description of drawings
Fig. 1 is the schematic flow sheet of cell-phone camera head driving method in the prior art;
Fig. 2 is the schematic flow sheet of cell-phone camera head driving method of the present invention.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in detail.
Please refer to Fig. 2, Fig. 2 is the schematic flow sheet of cell-phone camera head driving method of the present invention, and as can be seen from Figure 2, cell-phone camera head driving method of the present invention comprises:
Step 11: be embedded in a memory chip at described mobile phone cam module, described memory chip stored has first setup code of described mobile phone cam, also store the effect parameter of described mobile phone cam in the described memory chip, first setup code is for writing in advance, be positioned in the memory, conveniently call, effect parameter then is user's parameters of checking mobile phone cam for convenience, for example pixel etc.; Step 12: the camera function menu that enters described mobile phone;
Step 13: the cell phone software system reads the light sensor chip id number of described mobile phone cam;
Step 14: described cell phone software system reads first setup code from the memory chip of described mobile phone cam module, this first initial code is the setup code of described mobile phone cam;
Step 15: described cell phone software system searches in the memory of described mobile phone and the described ID number second corresponding setup code according to described ID number, and this second setup code is in the numerous setup code that originally was stored in the mobile phone;
Step 16: whether judgement searches successful, if search successfully, then change step 17 over to, if search failure, then change step 20 over to, the standard of searching success or not is whether to have the described light sensor chip id number and the setup code of ID correspondence therewith in the mobile phone memory;
Step 17: whether the content of the content of more described first setup code and described second setup code is identical, if not, then changes step 18 over to, if then change step 19 over to;
Step 18: change to the content of described second setup code identical with the content of described first setup code;
Step 19: call described second setup code, the light sensor chip of the described mobile phone cam of initialization changes step 21 over to;
Step 20: store and call described first setup code, the light sensor chip of the described mobile phone cam of initialization;
Step 21: described mobile phone cam operate as normal, described cell phone software system receives camera data.
Described mobile phone links to each other with described mobile phone cam module by three interfaces at least, described three interfaces are respectively commands for controlling interface, data transmission interface and data read interface, the cell phone software system reads the light sensor chip id number of described mobile phone cam by the commands for controlling interface, described cell phone software system receives camera data by described data transmission interface, and described cell phone software system reads first setup code by the data read interface from the memory chip of described mobile phone cam module.
Though the present invention discloses as above with preferred embodiment, the present invention is defined in this.Any those skilled in the art without departing from the spirit and scope of the present invention, all can do various changes and modification, so protection scope of the present invention should be as the criterion with claim institute restricted portion.

Claims (3)

1. a cell-phone camera head driving method is characterized in that, may further comprise the steps:
Step 1: be embedded in a memory chip at described mobile phone cam module, described memory chip stored has first setup code of described mobile phone cam;
Step 2: the camera function menu that enters described mobile phone;
Step 3: the cell phone software system reads the light sensor chip id number of described mobile phone cam;
Step 4: described cell phone software system reads first setup code from the memory chip of described mobile phone cam module;
Step 5: described cell phone software system searches in the memory of described mobile phone and the described ID number second corresponding setup code according to described ID number, if search successfully, then changes step 6 over to, if search failure, then changes step 9 over to;
Step 6: whether the content of the content of more described first setup code and described second setup code is identical, if not, then changes step 7 over to, if then change step 8 over to;
Step 7: change to the content of described second setup code identical with the content of described first setup code;
Step 8: call described second setup code, the light sensor chip of the described mobile phone cam of initialization changes step 10 over to;
Step 9: store and call described first setup code, the light sensor chip of the described mobile phone cam of initialization;
Step 10: described mobile phone cam operate as normal, described cell phone software system receives camera data.
2. cell-phone camera head driving method according to claim 1, it is characterized in that: described mobile phone links to each other with described mobile phone cam module by three interfaces at least, and described three interfaces are respectively commands for controlling interface, data transmission interface and data read interface.
3. cell-phone camera head driving method according to claim 1 is characterized in that: the effect parameter that also stores described mobile phone cam in the described memory chip.
CN201010610560A 2010-12-29 2010-12-29 Method for driving mobile phone camera Active CN102082904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010610560A CN102082904B (en) 2010-12-29 2010-12-29 Method for driving mobile phone camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010610560A CN102082904B (en) 2010-12-29 2010-12-29 Method for driving mobile phone camera

Publications (2)

Publication Number Publication Date
CN102082904A true CN102082904A (en) 2011-06-01
CN102082904B CN102082904B (en) 2012-09-19

Family

ID=44088645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010610560A Active CN102082904B (en) 2010-12-29 2010-12-29 Method for driving mobile phone camera

Country Status (1)

Country Link
CN (1) CN102082904B (en)

Cited By (2)

* 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
CN106843857A (en) * 2016-12-30 2017-06-13 北京五八信息技术有限公司 The method and apparatus that code library changes SDK are realized based on SRP

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2800658Y (en) * 2004-10-25 2006-07-26 康佳集团股份有限公司 Camera mobile phone with computer display function and data transmission function
CN101159814A (en) * 2007-11-16 2008-04-09 康佳集团股份有限公司 Embedded equipment camera software dynamic recognizing method
US20080273096A1 (en) * 2004-12-06 2008-11-06 Sony Corporation Image Pickup Device
CN101344869A (en) * 2008-08-22 2009-01-14 北京中星微电子有限公司 USB cam drive settling scheme on Mac OS X operating system
CN101409741A (en) * 2008-11-19 2009-04-15 闻泰集团有限公司 Method for automatically identifying image sensor model number by mobile phone
CN101593114A (en) * 2008-05-30 2009-12-02 深圳艾科创新微电子有限公司 A kind of UVC application automatic replacing system device driven

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2800658Y (en) * 2004-10-25 2006-07-26 康佳集团股份有限公司 Camera mobile phone with computer display function and data transmission function
US20080273096A1 (en) * 2004-12-06 2008-11-06 Sony Corporation Image Pickup Device
CN101159814A (en) * 2007-11-16 2008-04-09 康佳集团股份有限公司 Embedded equipment camera software dynamic recognizing method
CN101593114A (en) * 2008-05-30 2009-12-02 深圳艾科创新微电子有限公司 A kind of UVC application automatic replacing system device driven
CN101344869A (en) * 2008-08-22 2009-01-14 北京中星微电子有限公司 USB cam drive settling scheme on Mac OS X operating system
CN101409741A (en) * 2008-11-19 2009-04-15 闻泰集团有限公司 Method for automatically identifying image sensor model number by mobile phone

Cited By (3)

* 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
CN106843857A (en) * 2016-12-30 2017-06-13 北京五八信息技术有限公司 The method and apparatus that code library changes SDK are realized based on SRP
CN106843857B (en) * 2016-12-30 2021-02-02 北京五八信息技术有限公司 Method and device for realizing SDK (software development kit) conversion of code base based on SRP (sequence-related protocol)

Also Published As

Publication number Publication date
CN102082904B (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN102129375B (en) Method and equipment for system upgrade of mobile terminal
CN101957807B (en) Method for USB device to recognize version type of Windows operating system
CN103744821B (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN103399761B (en) Firmware burning method and device thereof
EP2546825A1 (en) Method, device and terminal for identifying lcd screen
CN101110039B (en) Terminal unit self-installing and self-starting system and method thereof
CN106020990A (en) Control method for central processing unit and terminal equipment
CN106707848A (en) Control program organization structure of control system and download method
US20080034135A1 (en) Portable device with embedded identification modules
CN101373433A (en) Method for updating BIOS and computer and system using the same
CN102164245A (en) Mobile-phone-based camera module adaptation method
CN102881265A (en) Liquid crystal display (LCD) adaptation device and method
CN101159814A (en) Embedded equipment camera software dynamic recognizing method
CN103761129A (en) Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
CN106919391B (en) Embedded system of customizable operating system component facing smart phone
CN102082904B (en) Method for driving mobile phone camera
CN104182258B (en) A kind of POS terminal update device and its upgrade method
CN102830943A (en) Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform
CN107678984A (en) USB port mapping method and computer-readable recording medium
CN114138333A (en) Program loading method and related device
CN106775897A (en) A kind of driver for Set Top Box starts method and system
CN116431546B (en) Parameter configuration method, electronic device, storage medium, and program product
CN110493646A (en) Method, apparatus, TV and the system of TV upgrading are carried out by external equipment
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
CN101807171A (en) Method and device for setting identifier of household appliance

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
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech Park Keyuan Road No. 399 Building No. 1

Patentee after: HUAQIN TELECOM TECHNOLOGY Co.,Ltd.

Address before: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech Park Keyuan Road No. 399 Building No. 1

Patentee before: SHANGHAI HUAQIN TELECOM TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder

Address after: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech Park Keyuan Road No. 399 Building No. 1

Patentee after: Huaqin Technology Co.,Ltd.

Address before: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech Park Keyuan Road No. 399 Building No. 1

Patentee before: Huaqin Technology Co.,Ltd.

Address after: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech Park Keyuan Road No. 399 Building No. 1

Patentee after: Huaqin Technology Co.,Ltd.

Address before: 201203 Shanghai City, Pudong New Area Zhangjiang hi tech Park Keyuan Road No. 399 Building No. 1

Patentee before: HUAQIN TELECOM TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder