CN115103111A - Method for realizing camera compatibility - Google Patents
Method for realizing camera compatibility Download PDFInfo
- Publication number
- CN115103111A CN115103111A CN202210670581.4A CN202210670581A CN115103111A CN 115103111 A CN115103111 A CN 115103111A CN 202210670581 A CN202210670581 A CN 202210670581A CN 115103111 A CN115103111 A CN 115103111A
- Authority
- CN
- China
- Prior art keywords
- camera
- camera module
- module
- place
- compatibility
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0016—Inter-integrated circuit (I2C)
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
Abstract
The invention relates to a method for realizing camera compatibility, which is used for realizing that a camera module and a camera module share the same camera sensor in a compatible way, and comprises the following steps: sending address information of a camera sensor to a camera supply module and a camera supply module; setting corresponding Eeprom addresses for a camera module and a camera module, and receiving Eeprom address information sent by the camera module and the camera module; and performing in-place identification on the first camera module and the second camera module, and returning an instruction of successful identification to the in-place camera module. The compatible method of the invention enables the camera module to send the Eeprom address information of the camera module, and the Eeprom address information of the camera module is the only address code, so that the equipment conflict can not occur in the communication process, and the compatibility of the two camera modules is realized.
Description
Technical Field
The invention relates to the technical field of cameras, in particular to a method for realizing camera compatibility.
Background
There are two i2c devices in the camera module of cell-phone, be camera sensor (sensor) and Eeprom respectively, and Eeprom is a memory bank for carry out the calibration to the image of depositing in the camera sensor. When there are more than two camera modules in a mobile phone, the i2c address of the camera sensor is generally modified when the two camera modules share one camera sensor, but the problem of device collision occurs when modifying the address of the camera sensor in the same i2c channel. Therefore, a new solution is needed.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a method for realizing camera compatibility, which solves the problem that the existing method for modifying the i2c address of a camera sensor has device conflict.
The technical scheme for realizing the purpose is as follows:
the invention provides a method for realizing camera compatibility, which is used for realizing that a camera module and a camera module which are compatible and share the same camera sensor, and comprises the following steps:
sending address information of a camera sensor to a camera supply module and a camera supply module;
setting corresponding Eeprom addresses for a camera module and a camera module, and receiving Eeprom address information sent by the camera module and the camera module; and
and performing in-place identification on the first camera module and the second camera module, and returning an instruction of successful identification to the in-place camera module.
The compatible method of the invention enables the camera module and the camera module to send respective Eeprom address information, and the respective Eeprom address information is a unique address code, so that equipment conflict cannot occur in the communication process, and the compatibility of the two camera modules is realized.
The method for realizing camera compatibility is further improved in that when in-place identification is carried out, if one camera module is in place, an instruction of successful identification is returned to the one camera module, and an instruction of failed identification is returned to the two camera modules;
if the two camera modules are in place, an instruction of successful identification is returned to the two camera modules, and an instruction of failed identification is returned to the one camera module.
The invention further improves the method for realizing camera compatibility, and the method also comprises the following steps: and controlling the one-time camera module and the two-time camera module to send the corresponding Eeprom addresses.
The method for realizing the camera compatibility is further improved in that when the address information of the camera sensor is issued, the address information of the camera sensor is issued to the first camera supply module and the second camera supply module by the main control end of the mobile phone.
The method for realizing camera compatibility is further improved in that the main control end of the mobile phone performs in-place identification when performing in-place identification.
The method for realizing camera compatibility is further improved in that after the command of successful identification is returned to the camera module in place, the camera module in place can call the camera sensor according to the received address information of the camera sensor.
The method for realizing camera compatibility is further improved in that the mobile phone main control end is in communication connection with the first camera supply module and the second camera supply module through an i2c bus.
Drawings
Fig. 1 is a flowchart of a method for implementing camera compatibility according to the present invention.
FIG. 2 is a flowchart of a method for implementing camera compatibility according to the present invention.
FIG. 3 is a flowchart illustrating a method for implementing camera compatibility according to the present invention, in which two camera modules are in place.
Detailed Description
The invention is further described with reference to the following figures and specific examples.
Referring to fig. 1, the present invention provides a method for implementing camera compatibility, and in particular, a method for implementing camera compatibility by setting an Eeprom i2c address, so as to implement compatibility that a camera module uses the same camera sensor, and solve the problem that the same i2c channel may cause device collision due to modification of the i2c address of the camera sensor. The compatible method of the invention sets two corresponding Eeprom addresses for the two camera modules, and controls the camera modules to send the Eeprom addresses of the camera modules when the camera modules communicate with each other, thereby realizing the compatibility of the two camera modules and enabling the two camera modules to share one camera sensor. The method for realizing camera compatibility according to the present invention is described below with reference to the accompanying drawings.
Referring to fig. 1, a flow chart of a method for achieving camera compatibility according to the present invention is shown. The method for realizing camera compatibility according to the present invention is described below with reference to fig. 1.
As shown in fig. 1, the method for realizing camera compatibility of the present invention is used for realizing that one camera module and two camera modules can share the same camera sensor, and the method comprises the following steps:
executing step S11, sending address information of the camera sensor to a first camera supply module and a second camera supply module; then, step S12 is executed;
step S12 is executed, corresponding Eeprom addresses are set for the first camera module and the second camera module, and Eeprom address information sent by the first camera module and the second camera module is received; then, step S13 is executed;
step S13 is executed to perform in-place recognition on the first and second camera modules, and a command of successful recognition is returned to the in-place camera module.
The compatible method of the invention enables the camera module and the camera module to send respective Eeprom address information, and the respective Eeprom address information is a unique address code, so that equipment conflict cannot occur in the communication process, and the compatibility of the two camera modules is realized.
In a specific embodiment of the present invention, when the address information of the camera sensor is sent, the main control terminal of the mobile phone sends the address information of the camera sensor to the first camera supply module and the second camera supply module.
Preferably, as shown in fig. 2 and 3, the MASTER of the mobile phone issues address information of the camera sensor, that is, issues sensor i2c address: 0x20, one for camera module and two for camera module receive the address information of the camera sensor, so that one for camera module and two for camera module can set the same camera sensor address. However, if one camera module and two camera modules use the camera sensor address to communicate with MASTER i2c, the addresses of the camera sensors are incompatible, and address conflict occurs.
Therefore, after the addresses of the camera sensors are set, the corresponding Eeprom addresses are set for the first camera module and the second camera module, specifically, the Eeprom address of the first camera module can be set to 0xA0, the Eeprom address of the second camera module can be set to 0xB0, and when the first camera module and the second camera module communicate with the MASTER in i2c, the corresponding Eeprom addresses can be issued, and the first camera module and the second camera module are distinguished by using the Eeprom addresses, so that the problem of collision cannot occur in the same i2c channel, and the compatibility of the camera modules is realized.
In a specific embodiment of the present invention, when performing in-place recognition, if one camera module is in place, a command of successful recognition is returned to the one camera module, and a command of failed recognition is returned to the two camera modules;
if the two camera modules are in place, an instruction of successful identification is returned to the two camera modules, and an instruction of failed identification is returned to the one camera module.
Further, when in-place identification is carried out, in-place identification is carried out by a main control end of the mobile phone.
In one embodiment of the present invention, the method further comprises: and controlling a camera module and a camera module to issue corresponding Eeprom addresses.
In an embodiment of the present invention, after the instruction of successful recognition is returned to the existing camera module, the existing camera module can call the camera sensor according to the received address information of the camera sensor.
In an embodiment of the present invention, the mobile phone main control terminal is in communication connection with the first camera module and the second camera module through an i2c bus.
By using the i2c communication principle, the master device side sends an i2c signal to the slave device side, and whether the communication is successful is judged according to whether the signal returned by the slave device side is correct.
As shown in fig. 2, an in-place process of the camera module is described below.
The MASTER issues a sensor i2c address: 0x20 for one supply camera module and two supply camera modules. An Eeprom i2c address for the camera module to change to issue 1 for the camera module: 0xA0, and two for the camera module to change to issue 2 for the Eeprom i2c address of the camera module: 0xb 0. The Eeprom receives the i2c signal, and when the signal is successfully received, the identification is carried out on the in-place module, the identification of the camera module is successfully carried out 1, and the identification of the camera module is failed 2, so that the compatibility of the camera module for 1 and 2 is realized.
As shown in fig. 3, the following describes the in-place process of the two camera modules.
The MASTER issues a sensor i2c address: 0x20 for one supply camera module and two supply camera modules. An Eeprom i2c address for the camera module to change to issue 1 for the camera module: 0xA0, the second one for the camera module to change to issue 2 for the Eeprom i2c address of the camera module: 0xb 0. The Eeprom receives the i2c signal, when the signal is successfully received, the in-place module is identified, 2 is used for the camera module to be identified successfully, and 1 is used for the camera module to be identified unsuccessfully, so that the compatibility of 1 and 2 camera modules is realized.
The compatibility method solves the problem that the camera modifies the address of the camera sensor i2c to cause conflict of other devices in the same channel in the compatibility problem.
While the present invention has been described in detail and with reference to the embodiments thereof as illustrated in the accompanying drawings, it will be apparent to one skilled in the art that various changes and modifications can be made therein. Therefore, certain details of the embodiments are not to be interpreted as limiting, and the scope of the invention is to be determined by the appended claims.
Claims (7)
1. A method for realizing camera compatibility is used for realizing that a camera module and a camera module share the same camera sensor, and is characterized by comprising the following steps:
sending address information of a camera sensor to a camera supply module and a camera supply module;
setting corresponding Eeprom addresses for a camera module and a camera module, and receiving Eeprom address information sent by the camera module and the camera module; and
and performing in-place identification on the first camera module and the second camera module, and returning an instruction of successful identification to the in-place camera module.
2. The method according to claim 1, wherein when performing in-place recognition, if one camera module is in place, then returning a command of successful recognition to one camera module and a command of failed recognition to two camera modules;
if the two camera modules are in place, an instruction of successful identification is returned to the two camera modules, and an instruction of failed identification is returned to the one camera module.
3. The method of achieving camera compatibility of claim 1, further comprising: and controlling the one-time camera module and the two-time camera module to send the corresponding Eeprom addresses.
4. The method of claim 1, wherein when sending the address information of the camera sensor, the main control end of the mobile phone sends the address information of the camera sensor to the first camera module and the second camera module.
5. The method for achieving camera compatibility as claimed in claim 1, wherein the in-place recognition is performed by a main control terminal of the mobile phone.
6. The method for realizing camera compatibility according to claim 1, wherein after the instruction of successful recognition is returned to the camera module in place, the camera module in place can call the camera sensor according to the received address information of the camera sensor.
7. The method as claimed in claim 1, wherein the mobile phone host is communicatively connected to the camera module and the camera module via an i2c bus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210670581.4A CN115103111B (en) | 2022-06-14 | 2022-06-14 | Method for realizing camera compatibility |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210670581.4A CN115103111B (en) | 2022-06-14 | 2022-06-14 | Method for realizing camera compatibility |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115103111A true CN115103111A (en) | 2022-09-23 |
CN115103111B CN115103111B (en) | 2023-10-13 |
Family
ID=83291722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210670581.4A Active CN115103111B (en) | 2022-06-14 | 2022-06-14 | Method for realizing camera compatibility |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115103111B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10293346A (en) * | 1997-04-21 | 1998-11-04 | Canon Inc | Camera system |
CN101452439A (en) * | 2008-12-29 | 2009-06-10 | 中国科学院长春光学精密机械与物理研究所 | CompactPCI communication card |
CN102262606A (en) * | 2010-05-28 | 2011-11-30 | 鸿富锦精密工业(深圳)有限公司 | System and method for allocating inter-integrated circuit (I2C) communication address |
CN103338237A (en) * | 2013-06-09 | 2013-10-02 | 张家港市鸿嘉数字科技有限公司 | Environmental monitoring system based on Zigbee technology and Ethernet |
CN103595931A (en) * | 2013-11-05 | 2014-02-19 | 天津大学 | CMOS asynchronous time domain image sensor capable of achieving real-time time stamp |
US20140173013A1 (en) * | 2012-12-19 | 2014-06-19 | Motech Industries, Inc. | Method for setting addresses of slave devices in communication network |
TW201527860A (en) * | 2014-01-02 | 2015-07-16 | Pixart Imaging Inc | Camera device |
CN104802539A (en) * | 2014-01-29 | 2015-07-29 | 珠海艾派克微电子有限公司 | Imaging device supply component and chip and slave address update method thereof |
US20160014319A1 (en) * | 2014-07-11 | 2016-01-14 | Geovision Inc. | Camera system |
KR20190140237A (en) * | 2018-06-11 | 2019-12-19 | 주식회사 이브이랩 | Method and Apparatus for Generating Stereo Image |
CN209881907U (en) * | 2019-07-15 | 2019-12-31 | 南京云格信息技术有限公司 | Image acquisition equipment based on FPGA |
CN111272212A (en) * | 2018-12-05 | 2020-06-12 | 卓望数码技术(深圳)有限公司 | I2C equipment data acquisition method and system thereof |
CN216057174U (en) * | 2021-05-21 | 2022-03-15 | 北京中科慧眼科技有限公司 | Binocular stereo camera and split camera thereof |
-
2022
- 2022-06-14 CN CN202210670581.4A patent/CN115103111B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10293346A (en) * | 1997-04-21 | 1998-11-04 | Canon Inc | Camera system |
CN101452439A (en) * | 2008-12-29 | 2009-06-10 | 中国科学院长春光学精密机械与物理研究所 | CompactPCI communication card |
CN102262606A (en) * | 2010-05-28 | 2011-11-30 | 鸿富锦精密工业(深圳)有限公司 | System and method for allocating inter-integrated circuit (I2C) communication address |
US20140173013A1 (en) * | 2012-12-19 | 2014-06-19 | Motech Industries, Inc. | Method for setting addresses of slave devices in communication network |
CN103338237A (en) * | 2013-06-09 | 2013-10-02 | 张家港市鸿嘉数字科技有限公司 | Environmental monitoring system based on Zigbee technology and Ethernet |
CN103595931A (en) * | 2013-11-05 | 2014-02-19 | 天津大学 | CMOS asynchronous time domain image sensor capable of achieving real-time time stamp |
TW201527860A (en) * | 2014-01-02 | 2015-07-16 | Pixart Imaging Inc | Camera device |
CN104802539A (en) * | 2014-01-29 | 2015-07-29 | 珠海艾派克微电子有限公司 | Imaging device supply component and chip and slave address update method thereof |
US20160014319A1 (en) * | 2014-07-11 | 2016-01-14 | Geovision Inc. | Camera system |
KR20190140237A (en) * | 2018-06-11 | 2019-12-19 | 주식회사 이브이랩 | Method and Apparatus for Generating Stereo Image |
CN111272212A (en) * | 2018-12-05 | 2020-06-12 | 卓望数码技术(深圳)有限公司 | I2C equipment data acquisition method and system thereof |
CN209881907U (en) * | 2019-07-15 | 2019-12-31 | 南京云格信息技术有限公司 | Image acquisition equipment based on FPGA |
CN216057174U (en) * | 2021-05-21 | 2022-03-15 | 北京中科慧眼科技有限公司 | Binocular stereo camera and split camera thereof |
Also Published As
Publication number | Publication date |
---|---|
CN115103111B (en) | 2023-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106598632B (en) | Firmware upgrading method and device for optical module | |
EP2566286B1 (en) | Wireless Internet Access Module, Communication Method for Host and Wireless Internet Access Module, and Data Card | |
JP2010532599A (en) | Apparatus and method for realizing communication protocol adaptation function | |
US7366815B2 (en) | Method and apparatus for serial communication system capable of identifying slave apparatus using half-duplex channel communication method | |
CN102273179A (en) | Method and device for terminal batch upgrading | |
CN110297608B (en) | Data processing method, device and storage medium | |
CN107908589B (en) | I3C communication verification system and method for verifying slave device and master-slave device | |
US9503309B2 (en) | Ethernet communication system and method based on MMC/SD interface | |
CN113608772B (en) | Application program upgrading method and device | |
CN110896372B (en) | I2C link switching method, terminal and storage medium | |
CN100459612C (en) | A communication transmission control device and method for implementing communication protocol control | |
CN115103111A (en) | Method for realizing camera compatibility | |
CN105451215A (en) | Communication method and electronic device | |
CN112243042B (en) | Distribution method, secure communication method, detection device, gateway module and system | |
CN101500325A (en) | Method for implementing mobile phone interconnecting information sharing by USB electric cable | |
CN107748669B (en) | Software upgrading device | |
CN112241279B (en) | Self-adaptive electronic control unit software upgrading method and system and automobile | |
CN112243043B (en) | Distribution method, secure communication method, detection device, gateway module and system | |
WO2010105473A1 (en) | Signal transmission device and method | |
CN102087509B (en) | Integrated circuit and control method thereof | |
CN114221890B (en) | Message simulation device, message sending method and device and computer storage medium | |
US9794197B2 (en) | Method and apparatus for transmitting can frame | |
CN114615722B (en) | Flexible screen terminal and pairing method and storage medium thereof | |
CN114500566B (en) | Communication method and interface device | |
CN117234974B (en) | Communication system, communication method and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |