CN103916498B - Serial port camera and parallel port camera compatible method - Google Patents

Serial port camera and parallel port camera compatible method Download PDF

Info

Publication number
CN103916498B
CN103916498B CN201410120724.XA CN201410120724A CN103916498B CN 103916498 B CN103916498 B CN 103916498B CN 201410120724 A CN201410120724 A CN 201410120724A CN 103916498 B CN103916498 B CN 103916498B
Authority
CN
China
Prior art keywords
port
camera
serial
parallel port
parallel
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.)
Active
Application number
CN201410120724.XA
Other languages
Chinese (zh)
Other versions
CN103916498A (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.)
Ningbo Sagereal Communication Co Ltd
Original Assignee
Ningbo Sagereal 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 Ningbo Sagereal Communication Co Ltd filed Critical Ningbo Sagereal Communication Co Ltd
Priority to CN201410120724.XA priority Critical patent/CN103916498B/en
Publication of CN103916498A publication Critical patent/CN103916498A/en
Application granted granted Critical
Publication of CN103916498B publication Critical patent/CN103916498B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Exposure Control For Cameras (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a serial port camera and parallel port camera compatible method which includes the step of match of hardware and software. The method includes the steps that S1, the hardware is started, and the software is powered on and resets; S2, the number of compatible cameras is confirmed, and all drives of the cameras are added into codes correctly; S3, the ID of an image sensor is read through an I2C bus, and reading continues if the read ID is different from an ID provided by a manufacturer in the codes until the read ID is the same as the ID provided by the manufacturer; S4, whether ports are serial ports or parallel ports is judged according to the read ID, port configuration is carried out on corresponding data transmission positions, the serial ports are configured to have corresponding serial port functions, and the parallel ports are configured to have corresponding parallel port functions; S5, registers of the cameras are initialized and previewed. The method has the advantages that through match of the hardware and the software, various cameras can be compatible at the same time on the same PCB, different requirements of customers are met, and cost is saved to the largest extent.

Description

Serial ports camera and parallel port camera compatibility method
Technical field
The present invention relates to a kind of compatibility of mobile phone camera, particularly serial ports camera and parallel port camera compatibility method.
Background technology
With the development of mobile phone, mobile phone camera script is intended only as its auxiliary function, for carrying out static map Piece or short-movie shoot.But be as the continuous progress of science and technology, the development of camera technology, the camera of middle and high end mobile phone by Gradually instead of card camera, the multimedia technology enriched constantly, make third-party application be had preferably recreational and expression power. Camera just progressively occupies very important status in mobile phone, and each cell phone apparatus manufactures the commercial city more energy of input and exists This.
Mobile-phone manufacturers present at present expect, on same pcb board, to make two or even many moneys mobile phone, because this Sample can save an appreciable cost.But this is a test for the design of hardware, even more software is made that Higher requirement.
Content of the invention
The invention aims to solving above-mentioned the deficiencies in the prior art and providing one kind real on a pcb board Compatible while existing multiple camera, thus cost-effective serial ports camera and parallel port camera compatibility method.
To achieve these goals, the serial ports camera designed by the present invention and parallel port camera compatibility method, including adopting Hardware includes serial ports camera, parallel port camera, imageing sensor, serial ports end with the software coordinating, wherein said hardware Mouthful and parallel port port, the idiographic flow of methods described is:
S1. hardware start, software electrification reset;
S2. confirm to treat the camera quantity of compatibility, and drive it and be all correctly added in code;
S3. imageing sensor ID is read by I2C bus, if the ID reading is different from the ID that supplier in code provides, Then still execute S3;If it is identical with the ID that supplier in code provides to read ID, execute S4;
S4. judge it is serial port or parallel port port according to the ID reading, corresponding data transfer position is carried out respectively Port configures, and serial port is configured to corresponding serial port function, and parallel port port is configured to corresponding parallel port function;
S5. camera carries out the initialization of register, and then preview.
In the idiographic flow of methods described, all provide with supplier in code when duplicating reading ID in S3 step ID different when, then need to check and read and code input.
Above-mentioned serial ports camera adopts 1 wire serial bus transmission data, and above-mentioned parallel port camera adopts 8 parallel-by-bit buses to pass Transmission of data.
This compatibility method requires 2 points of needs to note:First, the data ray mode being connected on CPU by I2C bus can To switch to serial port or parallel port port, hardware is unable to wrong;Second, software also may be used according to the selection of imageing sensor ID To switch to serial port or parallel port port.Accomplish for 2 points could be compatible simultaneously, indispensable.
Serial ports camera and parallel port camera compatibility method that the present invention obtains, it has the technical effect that by software and hardware Cooperation, can realize while multiple camera compatible on a pcb board, meet the different demand of client's height, maximum Degree cost-effective.
Brief description
Fig. 1 is the serial ports camera of embodiment 1 and the flow chart of parallel port camera compatibility method;
Fig. 2 is the serial ports camera of embodiment 1 and the block diagram of parallel port camera;
Fig. 3 is the schematic diagram of 19 pin of the serial ports camera of embodiment 1 and parallel port camera;
Fig. 4 is the schematic diagram of 24 pin of the serial ports camera of embodiment 2 and parallel port camera.
In figure:Serial ports camera 1, parallel port camera 2, imageing sensor 3, serial port 4 and parallel port port 5.
Specific embodiment
The present invention is further described with reference to the accompanying drawings and examples.
Embodiment 1:
As shown in Figure 1 and Figure 2, the present embodiment provides serial ports camera and parallel port camera compatibility method, including adopt Hardware includes serial ports camera 1, parallel port camera 2, imageing sensor 3, serial port with the software coordinating, wherein said hardware 4 and parallel port port 5, the idiographic flow of methods described is:
S1. hardware start, software electrification reset;
S2. confirm to treat the camera quantity of compatibility, and drive it and be all correctly added in code;
S3. imageing sensor 3ID is read by I2C bus, if the ID reading is different from the ID that supplier in code provides, Then still execute S3;If it is identical with the ID that supplier in code provides to read ID, execute S4;
S4. judge it is serial port 4 or parallel port port 5 according to the ID reading, corresponding data transfer position is entered respectively Row port configures, and serial port 4 is configured to corresponding serial port function, and parallel port port 5 is configured to corresponding parallel port function;
S5. camera carries out the initialization of register, and then preview.
In the idiographic flow of methods described, all provide with supplier in code when duplicating reading ID in S3 step ID different when, then need to check and read and code input, or being exactly driving not face here, or being exactly imageing sensor 3 ID this side reads problematic.
Above-mentioned serial ports camera 1 adopts 1 wire serial bus transmission data, and above-mentioned parallel port camera 2 adopts 8 parallel-by-bit buses Transmission data.
During specifically used, as shown in figure 3, serial ports camera 1 adopts 1 wire serial bus transmission data, parallel port is taken the photograph Picture 2 adopts 8 parallel-by-bit bus transfer datas, and stitch quantity is 19 pin.
Embodiment 2:
As shown in Fig. 4, embodiment 2 compared with Example 1, is identical, except for the difference that in the flow process of holistic approach This embodiment uses 24 stitch in the design of hardware, to meet the different needs of client.

Claims (3)

1. a kind of serial ports camera and parallel port camera compatibility method, including the software of the hardware adopting and cooperation, wherein said Hardware includes serial ports camera(1), parallel port camera(2), imageing sensor(3), serial port(4)With parallel port port(5), its The idiographic flow being characterised by methods described is:
S1. hardware start, software electrification reset;
S2. confirm to treat the camera quantity of compatibility, and drive it and be all correctly added in code;
S3. imageing sensor is read by I2C bus(3)ID, if the ID reading is different from the ID that supplier in code provides, Still execute S3;If it is identical with the ID that supplier in code provides to read ID, execute S4;
S4. judge it is serial port according to the ID reading(4)Or parallel port port(5), corresponding data transfer position is entered respectively Row port configures, serial port(4)It is configured to corresponding serial port function, parallel port port(5)It is configured to corresponding parallel port function;
S5. camera carries out the initialization of register, and then preview;
Wherein, software is according to imageing sensor(3)The selection of ID can also switch to serial port(4)Or parallel port port (5).
2. the serial ports camera according to claim 1 and parallel port camera compatibility method it is characterised in that:In described side In the idiographic flow of method, when duplicate in S3 step read ID all from code supplier provide ID different when, then Reading and code input need to be checked.
3. the serial ports camera according to claim 1 or 2 and parallel port camera compatibility method it is characterised in that:Above-mentioned Serial ports camera(1)Using 1 wire serial bus transmission data, above-mentioned parallel port camera(2)Using 8 parallel-by-bit bus transfer numbers According to.
CN201410120724.XA 2014-03-28 2014-03-28 Serial port camera and parallel port camera compatible method Active CN103916498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410120724.XA CN103916498B (en) 2014-03-28 2014-03-28 Serial port camera and parallel port camera compatible method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410120724.XA CN103916498B (en) 2014-03-28 2014-03-28 Serial port camera and parallel port camera compatible method

Publications (2)

Publication Number Publication Date
CN103916498A CN103916498A (en) 2014-07-09
CN103916498B true CN103916498B (en) 2017-02-15

Family

ID=51041894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410120724.XA Active CN103916498B (en) 2014-03-28 2014-03-28 Serial port camera and parallel port camera compatible method

Country Status (1)

Country Link
CN (1) CN103916498B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105824658B (en) * 2015-07-29 2017-12-26 维沃移动通信有限公司 The camera model of a kind of electronic equipment starts method and electronic equipment
CN105827909B (en) * 2016-01-25 2017-06-23 维沃移动通信有限公司 A kind of dual camera quick start method and mobile terminal
CN108170211B (en) * 2017-12-27 2021-04-06 上海传英信息技术有限公司 Camera power-on driving method and electronic terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6717618B1 (en) * 1998-08-25 2004-04-06 Canon Kabushiki Kaisha Adapter device for connecting a photographic optical system to a camera
WO2008041064A2 (en) * 2006-10-06 2008-04-10 Freescale Semiconductor, Inc. Detection circuit for detecting the connection of an accessory to a mobile device and method thereof
EP2043357A2 (en) * 2007-09-28 2009-04-01 Fujinon Corporation Television camera system
CN101827219A (en) * 2010-01-22 2010-09-08 中兴通讯股份有限公司 Method and device for controlling two cameras in master/slave mode in wireless terminal
CN202121679U (en) * 2011-01-30 2012-01-18 格科微电子(上海)有限公司 Double-camera device of multiplex data interface
CN103139331A (en) * 2011-12-02 2013-06-05 青岛海信移动通信技术股份有限公司 Mobile phone photographing circuit and mobile terminal with the same

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9001227B2 (en) * 2010-04-05 2015-04-07 Qualcomm Incorporated Combining data from multiple image sensors

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6717618B1 (en) * 1998-08-25 2004-04-06 Canon Kabushiki Kaisha Adapter device for connecting a photographic optical system to a camera
WO2008041064A2 (en) * 2006-10-06 2008-04-10 Freescale Semiconductor, Inc. Detection circuit for detecting the connection of an accessory to a mobile device and method thereof
EP2043357A2 (en) * 2007-09-28 2009-04-01 Fujinon Corporation Television camera system
CN101827219A (en) * 2010-01-22 2010-09-08 中兴通讯股份有限公司 Method and device for controlling two cameras in master/slave mode in wireless terminal
CN202121679U (en) * 2011-01-30 2012-01-18 格科微电子(上海)有限公司 Double-camera device of multiplex data interface
CN103139331A (en) * 2011-12-02 2013-06-05 青岛海信移动通信技术股份有限公司 Mobile phone photographing circuit and mobile terminal with the same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Unified Dual Mode Physical Layer for Mobile CMOS Image Sensor Interface;EJ Kim, HY Park, CK Ahn, SI Lim, S Kim;《Consumer Electronics IEEE Transactions on》;20101031;全文 *

Also Published As

Publication number Publication date
CN103916498A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
EP3113298B1 (en) Connecting device and method for recognizing device
DE102012104747B4 (en) Customizing a Remote Desktop Host User Interface
US10002105B2 (en) Display device
CN103105684B (en) LCD MODULE method of testing, device, system and testing apparatus
WO2016074441A1 (en) Display module detection device
CN110023920B (en) Host computer detects USB concentrator
CN103916498B (en) Serial port camera and parallel port camera compatible method
US8886996B2 (en) Debugging device and method for performing a debugging process to a target system
WO2020057084A1 (en) Display module test platform
CN104407874A (en) Embedded equipment compatible to a plurality of types of LCD screens
CN109298266B (en) Test system, test method, test apparatus, and storage medium
CN104331300A (en) Server capable of directly updating setting by using substrate management controller
CN105096872A (en) Liquid crystal display starting method
CN107678984A (en) USB port mapping method and computer-readable recording medium
CN103455465A (en) USB (universal serial bus) device
CN106200912A (en) Processing method that a kind of self-shooting bar is taken pictures and mobile terminal
CN105336306A (en) Color temperature adjustment method and electronic equipment
TW201505293A (en) Electronic apparatus, base and switching function of pins of a connector
CN103810120A (en) Method for compatibility control over serial port screen
US9117392B2 (en) Direct interfacing of an external graphics card to a data processing device at a motherboard-level
CN101499049A (en) Method for data transfer between memory cards of hand-held electronic equipment
CN105474774B (en) Show the device of data used in electronic part mounting
CN105786685A (en) Mobile terminal online debugging and diagnosis method and terminal
CN103853679B (en) Peripheral device removes establishing method and the electronic installation at interface
CN104793968A (en) Vehicle electronic control unit program programming device and implementation method thereof

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