CN103916498A - Serial port camera and parallel port camera compatible method - Google Patents
Serial port camera and parallel port camera compatible method Download PDFInfo
- Publication number
- CN103916498A CN103916498A CN201410120724.XA CN201410120724A CN103916498A CN 103916498 A CN103916498 A CN 103916498A CN 201410120724 A CN201410120724 A CN 201410120724A CN 103916498 A CN103916498 A CN 103916498A
- Authority
- CN
- China
- Prior art keywords
- camera
- port
- serial ports
- 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.)
- Granted
Links
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
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
Along with the development of mobile phone, mobile phone camera, originally just as its auxiliary function, is used for carrying out static images or short-movie and takes.But along with the continuous progress of science and technology, the development of camera technology, the camera of middle and high end mobile phone has replaced card camera gradually, and the multimedia technology of enriching constantly is applied third party and is had better recreational and expression power.Camera just progressively occupies very important status in mobile phone, and each cell phone apparatus is manufactured commercial city and dropped into more energy at this.
At present present mobile-phone manufacturers expect on same pcb board, make two many moneys mobile phone even, because can save so an appreciable cost.But this design for hardware is a test, especially software has been made to higher requirement.
Summary of the invention
The object of the invention is to provide in order to solve above-mentioned the deficiencies in the prior art a kind of and can on a pcb board, realize compatibility in multiple camera, thus cost-saving serial ports camera and parallel port camera compatibility method.
To achieve these goals, the serial ports camera that the present invention is designed and parallel port camera compatibility method, comprise the hardware of employing and the software coordinating, wherein said hardware comprises serial ports camera, parallel port camera, imageing sensor, serial ports port and parallel port port, and the idiographic flow of described method is:
S1. hardware start, software electrification reset;
S2. confirm to treat compatible camera quantity, and driven and be all correctly added in code;
S3. by I2C bus reading images sensor ID, if the ID reading is different from the ID that supplier in code provides, still carry out S3; If it is identical with the ID that supplier in code provides to read ID, carry out S4;
S4. be serial ports port or parallel port port according to the ID judgement of reading, port arrangement is carried out respectively in corresponding transfer of data position, serial ports port is just configured to corresponding serial port function, and parallel port port is just configured to corresponding parallel port function;
S5. camera carries out the initialization of register, and then preview.
In the idiographic flow of described method, read ID that ID provides from supplier in code when different when duplicating in S3 step, need to check to read with code and input.
Above-mentioned serial ports camera adopts 1 wire serial bus transmission data, and above-mentioned parallel port camera adopts 8 parallel-by-bit bus transfer datas.
This compatibility method requires to need 2 attentions: the first, and the data wire pattern being connected on CPU by I2C bus can switch to serial ports port or parallel port port, and hardware can not wrong; The second, software also can switch to serial ports port or parallel port port according to the selection of imageing sensor ID.Accomplish for 2 could be compatible, indispensable simultaneously.
The serial ports camera that the present invention obtains and parallel port camera compatibility method, its technique effect is by the coordinating of software and hardware, can be on a pcb board, and compatibility when realizing multiple camera, meet the different demand of client's height, farthest cost-saving.
Accompanying drawing explanation
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 the serial ports camera of embodiment 1 and 19 pin of parallel port camera;
Fig. 4 is the schematic diagram of the serial ports camera of embodiment 2 and 24 pin of parallel port camera.
In figure: serial ports camera 1, parallel port camera 2, imageing sensor 3, serial ports port 4 and parallel port port 5.
Embodiment
Below in conjunction with drawings and Examples, the present invention is further described.
Embodiment 1:
As shown in Figure 1 and Figure 2, the serial ports camera that the present embodiment provides and parallel port camera compatibility method, comprise the hardware of employing and the software coordinating, wherein said hardware comprises serial ports camera 1, parallel port camera 2, imageing sensor 3, serial ports port 4 and parallel port port 5, and the idiographic flow of described method is:
S1. hardware start, software electrification reset;
S2. confirm to treat compatible camera quantity, and driven and be all correctly added in code;
S3. by I2C bus reading images transducer 3ID, if the ID reading is different from the ID that supplier in code provides, still carry out S3; If it is identical with the ID that supplier in code provides to read ID, carry out S4;
S4. be serial ports port 4 or parallel port port 5 according to the ID judgement of reading, port arrangement is carried out respectively in corresponding transfer of data position, serial ports port 4 is just configured to corresponding serial port function, and parallel port port 5 is just configured to corresponding parallel port function;
S5. camera carries out the initialization of register, and then preview.
In the idiographic flow of described method, read ID that ID provides from supplier in code when different when duplicating in S3 step, need to check and read and code input, or be exactly to drive not face here, or be exactly that imageing sensor 3 ID have read problem here.
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 bus transfer datas.
In concrete use procedure, as shown in Figure 3, serial ports camera 1 adopts 1 wire serial bus transmission data, and parallel port camera 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 embodiment 1, is identical in the flow process of holistic approach, and different is, and this embodiment adopts in the design of hardware is 24 stitch, to meet client's different needs.
Claims (3)
1. a serial ports camera and parallel port camera compatibility method, comprise the hardware of employing and the software coordinating, wherein said hardware comprises serial ports camera (1), parallel port camera (2), imageing sensor (3), serial ports port (4) and parallel port port (5), it is characterized in that the idiographic flow of described method is:
S1. hardware start, software electrification reset;
S2. confirm to treat compatible camera quantity, and driven and be all correctly added in code;
S3. by I2C bus reading images transducer (3) ID, if the ID reading is different from the ID that supplier in code provides, still carry out S3; If it is identical with the ID that supplier in code provides to read ID, carry out S4;
S4. be serial ports port (4) or parallel port port (5) according to the ID judgement of reading, port arrangement is carried out respectively in corresponding transfer of data position, serial ports port (4) is just configured to corresponding serial port function, and parallel port port (5) is just configured to corresponding parallel port function;
S5. camera carries out the initialization of register, and then preview.
2. serial ports camera according to claim 1 and parallel port camera compatibility method, it is characterized in that: in the idiographic flow of described method, read ID that ID provides from supplier in code when different when duplicating in S3 step, need to check to read with code and input.
3. serial ports camera according to claim 1 and 2 and parallel port camera compatibility method, is characterized in that: 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 bus transfer datas.
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 true CN103916498A (en) | 2014-07-09 |
CN103916498B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105827909A (en) * | 2016-01-25 | 2016-08-03 | 维沃移动通信有限公司 | Dual-camera quick start method and mobile terminal |
CN105824658A (en) * | 2015-07-29 | 2016-08-03 | 维沃移动通信有限公司 | Camera module starting method of electronic equipment and electronic equipment |
CN108170211A (en) * | 2017-12-27 | 2018-06-15 | 上海传英信息技术有限公司 | Electric drive method and electric terminal on camera |
Citations (7)
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 |
US20110242342A1 (en) * | 2010-04-05 | 2011-10-06 | Qualcomm Incorporated | Combining data from multiple image sensors |
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 |
-
2014
- 2014-03-28 CN CN201410120724.XA patent/CN103916498B/en active Active
Patent Citations (7)
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 |
US20110242342A1 (en) * | 2010-04-05 | 2011-10-06 | Qualcomm Incorporated | Combining data from multiple image sensors |
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)
Title |
---|
EJ KIM, HY PARK, CK AHN, SI LIM, S KIM: "Unified Dual Mode Physical Layer for Mobile CMOS Image Sensor Interface", 《CONSUMER ELECTRONICS IEEE TRANSACTIONS ON》, 31 October 2010 (2010-10-31) * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824658A (en) * | 2015-07-29 | 2016-08-03 | 维沃移动通信有限公司 | Camera module starting method of electronic equipment and electronic equipment |
CN105824658B (en) * | 2015-07-29 | 2017-12-26 | 维沃移动通信有限公司 | The camera model of a kind of electronic equipment starts method and electronic equipment |
CN105827909A (en) * | 2016-01-25 | 2016-08-03 | 维沃移动通信有限公司 | Dual-camera quick start method and mobile terminal |
CN105827909B (en) * | 2016-01-25 | 2017-06-23 | 维沃移动通信有限公司 | A kind of dual camera quick start method and mobile terminal |
CN108170211A (en) * | 2017-12-27 | 2018-06-15 | 上海传英信息技术有限公司 | Electric drive method and electric terminal on camera |
CN108170211B (en) * | 2017-12-27 | 2021-04-06 | 上海传英信息技术有限公司 | Camera power-on driving method and electronic terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103916498B (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107111588B (en) | Data transfer using PCIe protocol via USB port | |
CN103105684B (en) | LCD MODULE method of testing, device, system and testing apparatus | |
US9710024B2 (en) | Electronic device | |
US20170068630A1 (en) | Runtime drive detection and configuration | |
CN104407874A (en) | Embedded equipment compatible to a plurality of types of LCD screens | |
CN103916498A (en) | Serial port camera and parallel port camera compatible method | |
CN104331300A (en) | Server capable of directly updating setting by using substrate management controller | |
CN104769565B (en) | The standard coexisted and proprietary connection use | |
CN102164245A (en) | Mobile-phone-based camera module adaptation method | |
US20140250247A1 (en) | Usb storage device | |
CN102955497A (en) | Mainboard provided with solid-state drive | |
TW201201560A (en) | Mobile phone | |
CN104270740A (en) | Slot-sharing T card and SIM card detection method | |
US20150067228A1 (en) | Universal serial bus device | |
WO2017128673A1 (en) | Dual-channel mobile terminal for reusing flash rom | |
WO2018004755A1 (en) | Connection cable with voltage level indicator | |
TWI499145B (en) | Electronic apparatus, base and switching function of pins of a connector | |
CN106030561B (en) | Computing system control | |
US9117392B2 (en) | Direct interfacing of an external graphics card to a data processing device at a motherboard-level | |
CN103810120A (en) | Method for compatibility control over serial port screen | |
CN102033713A (en) | Electronic system, controller and data transmission method | |
CN103729326A (en) | GPIO expansion method based on shifting registers | |
CN103853679B (en) | Peripheral device removes establishing method and the electronic installation at interface | |
CN104123259A (en) | USB resource utilization method | |
CN108874716B (en) | Charging communication connection device and method for portable equipment |
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 |