CN101159814A - Embedded equipment camera software dynamic recognizing method - Google Patents

Embedded equipment camera software dynamic recognizing method Download PDF

Info

Publication number
CN101159814A
CN101159814A CNA200710124567XA CN200710124567A CN101159814A CN 101159814 A CN101159814 A CN 101159814A CN A200710124567X A CNA200710124567X A CN A200710124567XA CN 200710124567 A CN200710124567 A CN 200710124567A CN 101159814 A CN101159814 A CN 101159814A
Authority
CN
China
Prior art keywords
camera
identification number
recognizing method
embedded equipment
sensor
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
CNA200710124567XA
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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CNA200710124567XA priority Critical patent/CN101159814A/en
Publication of CN101159814A publication Critical patent/CN101159814A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a method for dynamically identifying embedded equipment camera software. The invention comprises that: a), a camera drive is initialized when the system is in start-up state; b), a camera sensor to be identified is selected and a corresponding sensor identification number is called to identify function and gain the identification number. The identification number obtained by the program is judged whether it is consistent with that of the selected sensor or not. If yes, then each driven function pointer of the identified camera sensor is valued in a corresponding field of the overall camera driven structure; otherwise, go back to Step b); c), the identified camera sensor initialization function is called. The embedded equipment camera software dynamic identification method of the invention enhances the research and development, manufacture and after-sales service efficiency of the embedded device with the camera, and lowers the product cost of each step.

Description

Embedded equipment camera software dynamic recognizing method
[technical field]
The present invention relates to embedded device, relate in particular to a kind of embedded equipment camera software dynamic recognizing method that is used to mobile phone, video camera etc. with camera function.
[background technology]
Camera need of work driver, and driver mainly is at camera sensor chip embedded in the camera.Sensor chip in external camera generally need be driven by different drivers not simultaneously.The embedded device of band camera function is in research and development, production; in the process of maintenance; because the needs of technology, cost; the equipment of same model often can be used different cameras; and the embedded transducer of these dissimilar cameras often also is different, and this just requires embedded devices such as mobile phone must upgrade whole plug-in.Like this, no matter after being research and development, manufacturing or pin, all very inconvenient; And if the program burning is on scratch pad memory not then can't upgrade, thereby can not upgrade camera.
[summary of the invention]
The invention provides a kind of embedded device with camera does not need newer driver more just can support the embedded equipment camera software dynamic recognizing method of different camera work.
In order to solve above technical problem, the invention provides, a kind of embedded equipment camera software dynamic recognizing method comprises step:
A), system's initialization webcam driver when start;
B), choose a kind of camera transducer that will discern, call corresponding sensor identification number recognition function and obtain identification number; Whether the identification number that determining program obtains is consistent with the camera sensor identification number of choosing, if then each driving function pointer assignment of the transducer that will discern is to the field of webcam driver structure correspondence of overall importance; Otherwise, return step b);
C), call the camera sensor initializing function of having discerned.
Above-described embedded equipment camera software dynamic recognizing method also comprised step before step a): f), define webcam driver data structure of overall importance during software design, call the interface of webcam driver function as the upper strata.
Above-described embedded equipment camera software dynamic recognizing method also comprised step before step f): e), the plug-in that generates embedded device is that driver with each camera of system's support couples together.
Above-described embedded equipment camera software dynamic recognizing method also comprised step before step e): d), during hardware designs with the Interface design of each camera of system's support and mainboard for being complementary.
Embedded equipment camera software dynamic recognizing method of the present invention, make the webcam driver program can dynamically discern camera transducer in the external camera, identification number according to the camera transducer, dynamic loading corresponding sensor driver, the correct camera working sensor that drives, thereby make the embedded device of same type not need refresh routine, support different cameras simultaneously.
Embedded equipment camera software dynamic recognizing method of the present invention has improved research and development, the manufacturing of the embedded device of band camera, and the efficient of after sales service has reduced the cost of product each link.
[description of drawings]
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Fig. 1 is the flow chart of embedded equipment camera software dynamic recognizing method embodiment 1 of the present invention.
[embodiment]
Camera needs its embedded camera sensor chip to drive could to work, and the embedded camera sensor chip of dissimilar cameras is also difference often; The embedded device of band camera is in the process of research and development, production or maintenance, because the needs of technology, cost, the equipment of same model often need be changed different cameras.The present invention utilizes different camera transducers to have these characteristics of different product IDs, a kind of embedded equipment camera software dynamic recognizing method is provided, the camera transducer that the embedded device of feasible band camera causes because of the change camera does not need to upgrade the webcam driver program when changing, but the different camera transducer of Dynamic Recognition, call and load corresponding driver automatically by system scan, just can support different cameras simultaneously thereby make the embedded device of same type not need to upgrade the webcam driver program.
Embedded equipment camera software dynamic recognizing method of the present invention, the Interface design of the various cameras that embedded device need be supported when hardware designs is complementary for the interface with the embedded device mainboard; When generating the plug-in of embedded device, the driver of various types of camera transducers that embedded device is supported couples together; When software design, at first define a webcam driver data structure of overall importance, the main field of this structure is the driving function pointer, calls the interface of webcam driver program as the upper strata; When program is carried out the camera initialization, call different camera sensor identification number recognition functions successively, when the identification number that obtains when program is consistent with the identification number of expectation, illustrate that then this identification number is exactly the camera sensor identification number of external camera; Then with the pointer assignment of each driving function of the camera transducer of this identification number correspondence to webcam driver function pointer array of overall importance, call for upper procedure and to drive camera.
The course of work of embedded equipment camera software dynamic recognizing method of the present invention is: have the characteristics of different identification numbers according to different camera transducers, when the user changes the camera of embedded device, the webcam driver program can dynamically be discerned the camera transducer in the external camera, identification number according to the camera transducer, the camera sensor drive program of dynamic loading correspondence, the correct camera working sensor that drives, thereby make the embedded device of same type not need refresh routine, support different cameras simultaneously.
In embedded equipment camera software dynamic recognizing method of the present invention shown in Figure 1, comprise step:
101. during hardware designs with the Interface design of each camera of embedded device place system support and mainboard for being complementary;
102. the driver that generates the plug-in of embedded device and be each camera of system's support couples together;
103. define webcam driver data structure of overall importance during software design, call the interface of webcam driver function as the upper strata;
104. system begins the initialization webcam driver during start;
105. choose a kind of camera transducer that will discern;
106. call corresponding camera sensor identification number recognition function, obtain identification number;
107. whether the identification number that determining program obtains is consistent with the camera sensor identification number of choosing, if then execution in step 108; Otherwise, return step 105;
108. each driving function pointer assignment of the camera transducer that will discern is to the field of webcam driver structure correspondence of overall importance;
109. call the camera sensor initializing function of having discerned.
Present embodiment makes in the camera that embedded device is supported, arbitrarily change any camera wherein after, the webcam driver program that need not update the equipment, camera can be realized operate as normal.This provides convenience for research and development, manufacturing, after sales service, has improved efficient, has also reduced the cost of each link of product simultaneously.

Claims (4)

1. an embedded equipment camera software dynamic recognizing method is characterized in that, comprises step:
A), system begins the initialization webcam driver when start;
B), choose a kind of camera transducer that will discern, call corresponding sensor identification number recognition function and obtain identification number; Whether the identification number that determining program obtains is consistent with the sensor identification number of choosing, if each driving function pointer assignment of the camera transducer that then will discern is to the field of webcam driver structure correspondence of overall importance; Otherwise, return step b);
C), call the camera sensor initializing function of having discerned.
2. embedded equipment camera software dynamic recognizing method according to claim 1 is characterized in that, also comprises step before step a):
F), define webcam driver data structure of overall importance during software design, call the interface of webcam driver function as the upper strata.
3. embedded equipment camera software dynamic recognizing method according to claim 2 is characterized in that, also comprises step before step f):
E), the plug-in that generates embedded device is that driver with each camera of system's support couples together.
4. embedded equipment camera software dynamic recognizing method according to claim 3 is characterized in that, also comprises step before step e):
D), during hardware designs with the Interface design of each camera of system's support and mainboard for being complementary.
CNA200710124567XA 2007-11-16 2007-11-16 Embedded equipment camera software dynamic recognizing method Pending CN101159814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200710124567XA CN101159814A (en) 2007-11-16 2007-11-16 Embedded equipment camera software dynamic recognizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200710124567XA CN101159814A (en) 2007-11-16 2007-11-16 Embedded equipment camera software dynamic recognizing method

Publications (1)

Publication Number Publication Date
CN101159814A true CN101159814A (en) 2008-04-09

Family

ID=39307719

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200710124567XA Pending CN101159814A (en) 2007-11-16 2007-11-16 Embedded equipment camera software dynamic recognizing method

Country Status (1)

Country Link
CN (1) CN101159814A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082904A (en) * 2010-12-29 2011-06-01 上海华勤通讯技术有限公司 Method for driving mobile phone camera
CN102164245A (en) * 2011-02-23 2011-08-24 惠州Tcl移动通信有限公司 Mobile-phone-based camera module adaptation method
CN102724391A (en) * 2011-03-28 2012-10-10 和硕联合科技股份有限公司 Image acquisition system and driving method of camera module
CN103077040A (en) * 2011-10-26 2013-05-01 康佳集团股份有限公司 Automatic LCD (light crystal display) module identification method and automatic LCD module identification system
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
WO2015117441A1 (en) * 2014-08-19 2015-08-13 中兴通讯股份有限公司 Mobile terminal, and automatic external lens recognition method, device, and storage medium
CN105472249A (en) * 2015-12-24 2016-04-06 惠州Tcl移动通信有限公司 Compatible control method and device for camera
CN109874010A (en) * 2019-02-26 2019-06-11 成都国科微电子有限公司 A kind of automatic testing method and system of camera module
CN114025157A (en) * 2022-01-05 2022-02-08 广州朗国电子科技股份有限公司 Identification method and system of all-in-one machine camera and all-in-one machine

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082904A (en) * 2010-12-29 2011-06-01 上海华勤通讯技术有限公司 Method for driving mobile phone camera
CN102082904B (en) * 2010-12-29 2012-09-19 上海华勤通讯技术有限公司 Method for driving mobile phone camera
CN102164245A (en) * 2011-02-23 2011-08-24 惠州Tcl移动通信有限公司 Mobile-phone-based camera module adaptation method
CN102724391A (en) * 2011-03-28 2012-10-10 和硕联合科技股份有限公司 Image acquisition system and driving method of camera module
CN102724391B (en) * 2011-03-28 2014-12-03 和硕联合科技股份有限公司 Image acquisition system and driving method of camera module
CN103077040A (en) * 2011-10-26 2013-05-01 康佳集团股份有限公司 Automatic LCD (light crystal display) module identification method and automatic LCD module identification system
CN103905611A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Image acquisition unit compatible matching method and electronic device
CN103747167A (en) * 2013-12-26 2014-04-23 惠州华阳通用电子有限公司 System and method for automatically matching vehicle camera with processing unit
CN103747167B (en) * 2013-12-26 2018-03-09 惠州华阳通用电子有限公司 A kind of Cam for automobile and processing unit automatic patching system and method
WO2015117441A1 (en) * 2014-08-19 2015-08-13 中兴通讯股份有限公司 Mobile terminal, and automatic external lens recognition method, device, and storage medium
CN105357360A (en) * 2014-08-19 2016-02-24 中兴通讯股份有限公司 Mobile terminal, and method and device for automatically identifying external camera of mobile terminal
CN105472249A (en) * 2015-12-24 2016-04-06 惠州Tcl移动通信有限公司 Compatible control method and device for camera
CN109874010A (en) * 2019-02-26 2019-06-11 成都国科微电子有限公司 A kind of automatic testing method and system of camera module
CN114025157A (en) * 2022-01-05 2022-02-08 广州朗国电子科技股份有限公司 Identification method and system of all-in-one machine camera and all-in-one machine
CN114025157B (en) * 2022-01-05 2022-07-05 广州朗国电子科技股份有限公司 Identification method and system of all-in-one machine camera and all-in-one machine

Similar Documents

Publication Publication Date Title
CN101159814A (en) Embedded equipment camera software dynamic recognizing method
CN101739363B (en) Apparatus and methods for controlling image sensors
EP1349053A3 (en) Method and system for overloading loop selection
CN102164245A (en) Mobile-phone-based camera module adaptation method
CN104407874A (en) Embedded equipment compatible to a plurality of types of LCD screens
US9727507B2 (en) USB device remote control method and system
US8033469B2 (en) Apparatus for performing multimedia-based data transmission and associated method
CN104991872A (en) Method and apparatus for implementing driving of intelligent device on peripheral device
US20080034135A1 (en) Portable device with embedded identification modules
CN103902480A (en) Android phone driving method and system
CN103761129B (en) Method of implementing SDIO (secure digital input/output) interface drive in Boot loader layer
CN111788820B (en) Method for adaptively controlling low power display mode and electronic device thereof
CN103577224A (en) Method for improving detection on upgrade of Android phone demons by PC terminal
CN101127978A (en) Method for mobile phone to be compatible to different display part
CN107577502B (en) Terminal and fingerprint module compatibility method and storage device thereof
CN103744693A (en) Multi-system switching method and electronic device
CN109002331A (en) Starting method, apparatus, computer equipment and the storage medium of touch screen
CN106919391A (en) Towards the embedded system of the customizable operating system component of smart mobile phone
CN110347455A (en) A kind of quick interface arrangement method and terminal
CN114860321B (en) External device control method, device, equipment and medium based on raspberry pie
CN111008539A (en) Quick bar code scanning device and scanning method
CN101000588A (en) Method for dynamic identifying LCD module
KR20070094167A (en) Method and apparatus for starting multiple operating system using external memory in a mobile station
CN1774110A (en) Mobile telephone terminal, base station, communication system, method of adding/changing operations
CN115145722A (en) System and method for switching micro-service architecture and single architecture

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

Open date: 20080409