CN115103111B - Method for realizing camera compatibility - Google Patents

Method for realizing camera compatibility Download PDF

Info

Publication number
CN115103111B
CN115103111B CN202210670581.4A CN202210670581A CN115103111B CN 115103111 B CN115103111 B CN 115103111B CN 202210670581 A CN202210670581 A CN 202210670581A CN 115103111 B CN115103111 B CN 115103111B
Authority
CN
China
Prior art keywords
camera
camera module
compatibility
place
module
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
CN202210670581.4A
Other languages
Chinese (zh)
Other versions
CN115103111A (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.)
Shanghai Simcom Ltd
Original Assignee
Shanghai Simcom 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 Shanghai Simcom Ltd filed Critical Shanghai Simcom Ltd
Priority to CN202210670581.4A priority Critical patent/CN115103111B/en
Publication of CN115103111A publication Critical patent/CN115103111A/en
Application granted granted Critical
Publication of CN115103111B publication Critical patent/CN115103111B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Abstract

The invention relates to a method for realizing camera compatibility, which is used for realizing compatibility and sharing of a camera sensor which is the same as that of a camera module and a camera module, and comprises the following steps: issuing address information of the camera sensor to a camera module and a camera module; setting corresponding ep addresses for the first camera module and the second camera module, and receiving ep address information sent by the first camera module and the second camera module; and carrying out in-situ identification on the first camera module and the second camera module, and returning an instruction of successful identification to the in-situ camera modules. The compatibility method of the invention enables the first camera module and the second camera module to send the respective ep address information, and the respective ep address information is unique address code, so that equipment conflict can not occur in the communication process, and the compatibility of the two camera modules is realized.

Description

Method for realizing camera compatibility
Technical Field
The invention relates to the technical field of cameras, in particular to a method for realizing camera compatibility.
Background
The camera module of the mobile phone has two i2c devices, namely a camera sensor and an Eeprom, wherein the Eeprom is a storage body used for calibrating images stored in the camera sensor. When there are more than two camera modules in the mobile phone, when the more than two camera modules share one camera sensor, the i2c address of the camera sensor is generally modified, but the problem of device collision occurs when the addresses of the camera sensors are modified in the same i2c channel. For this reason, it is highly desirable to provide a new solution.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a method for realizing camera compatibility, and solves the problem that the i2c address of the existing modified camera sensor can generate equipment conflict.
The technical scheme for achieving 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 share the same camera sensor, and comprises the following steps:
issuing address information of the camera sensor to a camera module and a camera module;
setting corresponding ep addresses for the first camera module and the second camera module, and receiving ep address information sent by the first camera module and the second camera module; and
and carrying out in-situ identification on the first camera module and the second camera module, and returning an instruction of successful identification to the in-situ camera modules.
The compatibility method of the invention enables the first camera module and the second camera module to send the respective ep address information, and the respective ep address information is unique address code, so that equipment conflict can not occur in the communication process, and the compatibility of the two camera modules is realized.
The invention further improves the method for realizing camera compatibility, which is characterized in that when in-situ recognition is carried out, if one camera module is in-situ, a successful recognition instruction is returned to the one camera module, and a failure recognition instruction is returned to the two camera modules;
if the two camera modules are in place, an instruction of successful recognition is returned to the two camera modules, and an instruction of failure recognition is returned to the one camera module.
A further improvement of the method for realizing camera compatibility according to the present invention is that the method further comprises: and controlling the first camera module and the second camera module to issue the corresponding ep addresses.
The invention further improves the method for realizing camera compatibility, when the address information of the camera sensor is issued, the main control end of the mobile phone issues the address information of the camera sensor to the first camera module and the second camera module.
The invention further improves the method for realizing camera compatibility in that the main control end of the mobile phone performs the in-situ identification when performing the in-situ identification.
The invention further improves the method for realizing camera compatibility, which is characterized in that after the in-place camera module returns an instruction of successful recognition, the in-place camera module can call the camera sensor according to the received address information of the camera sensor.
The invention further improves the method for realizing camera compatibility, which is characterized in that the mobile phone main control end is in communication connection with the first camera module and the second camera module through an i2c bus.
Drawings
FIG. 1 is a flow chart of a method of implementing camera compatibility in accordance with the present invention.
FIG. 2 is a flow chart of a method for implementing camera compatibility in which a camera module is in place.
FIG. 3 is a flow chart of two camera modules in place in the method for realizing camera compatibility according to the invention.
Detailed Description
The invention will be further described with reference to the drawings and the specific examples.
Referring to fig. 1, the present invention provides a method for implementing camera compatibility, and in particular, to a method for implementing camera compatibility by setting an ep rom i2c address, implementing compatibility of a camera module using the same camera sensor, and solving a problem that the same i2c channel causes device collision due to modifying the i2c address of the camera sensor. The compatibility method of the invention sets two corresponding ep addresses for the two camera modules, and controls the camera modules to send the ep addresses of the camera modules when the camera modules communicate, 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 will be described with reference to the accompanying drawings.
Referring to fig. 1, a flow chart of a method of the present invention for achieving camera compatibility is shown. The method for achieving camera compatibility according to the present invention will be described with reference to fig. 1.
As shown in fig. 1, the method for implementing camera compatibility of the present invention is used for implementing compatibility of a first camera module and a second camera module to share the same camera sensor, and includes the following steps:
step S11 is executed, address information of the camera sensor is issued to a camera module and a camera module; step S12 is then performed;
step S12 is executed, corresponding ep addresses are set for the first camera module and the second camera module, and ep address information sent by the first camera module and the second camera module is received; step S13 is then executed;
step S13 is executed to perform in-place recognition on the first camera module and the second camera module, and return a successful recognition instruction to the in-place camera module.
The compatibility method of the invention enables the first camera module and the second camera module to send the respective ep address information, and the respective ep address information is unique address code, so that equipment conflict can not occur in the communication process, and the compatibility of the two camera modules is realized.
In one embodiment of the present invention, when the address information of the camera sensor is issued, the master control terminal of the mobile phone issues the address information of the camera sensor to the first camera module and the second camera 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 a sensor i2c address: and 0x20, wherein the camera module and the two camera modules receive the address information of the camera sensor, and the camera sensor addresses can be set by the camera module and the two camera modules. However, if the camera sensor address is not compatible with the MASTER when the camera module and the camera modules use the camera sensor address to perform i2c communication, address collision occurs.
Therefore, after the addresses of the camera sensors are set, the first camera module and the second camera module set in the invention set corresponding ep addresses, specifically, the ep address of the first camera module can be set to 0xA0, the ep address of the second camera module can be set to 0xB0, when the first camera module and the second camera module perform i2c communication with the MASTER, the corresponding ep addresses can be issued, and the first camera module and the second camera module are distinguished by using the ep address, so that the problem of collision cannot occur in the same i2c channel, and the compatibility of the camera modules is realized.
In one embodiment of the present invention, when in-place recognition is performed, if one camera module is in place, a successful recognition instruction is returned to the one camera module, and a failure recognition instruction is returned to the two camera modules;
if the two camera modules are in place, an instruction of successful recognition is returned to the two camera modules, and an instruction of failure recognition is returned to the one camera module.
Further, when in-place identification is performed, the main control end of the mobile phone performs in-place identification.
In one embodiment of the present invention, the method further comprises: and controlling the first camera module and the second camera module to issue the corresponding ep addresses.
In one embodiment of the present invention, after an instruction for successful recognition is returned to the in-place camera module, the in-place camera module can call the camera sensor according to the received address information of the camera sensor.
In one 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 the i2c bus.
By utilizing the i2c communication principle, the master equipment end transmits an i2c signal to the slave equipment end, and whether the communication is successful is judged by whether a signal returned by the slave equipment end is correct.
As shown in fig. 2, an in-situ process for the camera module is described below.
MASTER issues a sensor i2c address: 0x20 for one camera module and two camera modules. An ep i2c address for the camera module to change to issue 1 for the camera module: 0xA0, two for camera module to change into 2 for the camera module's ep m i2c address: 0xb0. And when the signal is successfully received, the in-situ module is identified, the camera module is successfully identified 1, and the camera module is failed to identify 2, so that the compatibility of the camera modules 1 and 2 is realized.
As shown in fig. 3, the following describes the bit flow of the two camera modules.
MASTER issues a sensor i2c address: 0x20 for one camera module and two camera modules. An ep i2c address for the camera module to change to issue 1 for the camera module: 0xA0, two for camera module to change into 2 for the camera module's ep m i2c address: 0xb0. And when the signal is successfully received, the in-situ module is identified, the camera module is successfully identified by the in-situ module 2, and the camera module is failed to identify by the in-situ module 1, so that the compatibility of the in-situ module 1 and the in-situ module 2 is realized.
The compatibility method solves the problem that other devices in the same channel collide due to the fact that the camera modifies the camera sensor i2c address in the compatibility problem.
The present invention has been described in detail with reference to the embodiments of the drawings, and those skilled in the art can make various modifications to the invention based on the above description. Accordingly, certain details of the illustrated embodiments are not to be taken as limiting the invention, which is defined by the appended claims.

Claims (6)

1. A method for implementing camera compatibility for implementing compatibility of a first camera module and a second camera module to share a same camera sensor, the method comprising the steps of:
issuing address information of the camera sensor to a camera module and a camera module;
setting corresponding ep addresses for the first camera module and the second camera module;
the method comprises the steps that a main control end of the mobile phone receives the Eeprom address information sent by a camera module and two camera modules; and
when the main control end of the mobile phone performs i2c communication with the camera module group and the two camera module groups, the camera module group and the two camera module groups are distinguished by using the ep address;
the main control end of the mobile phone carries out in-place identification on the first camera module and the second camera module, and returns an instruction of successful identification to the in-place camera module.
2. The method of claim 1, wherein when performing in-place recognition, if one of the camera modules is in place, a successful recognition command is returned to the one camera module, and a failed recognition command is returned to the two camera modules;
if the two camera modules are in place, an instruction of successful recognition is returned to the two camera modules, and an instruction of failure recognition is returned to the one camera module.
3. The method of claim 1, wherein when transmitting the address information of the camera sensor, the master control terminal of the mobile phone transmits the address information of the camera sensor to the first camera module and the second camera module.
4. The method for realizing camera compatibility of claim 1, wherein the master control end of the mobile phone performs the in-place recognition when performing the in-place recognition.
5. The method of claim 1, wherein the camera module in place can call the camera sensor according to the received address information of the camera sensor after the identification success instruction is returned to the camera module in place.
6. The method of claim 1, wherein the mobile phone master control terminal is communicatively connected to the first camera module and the second camera module via an i2c bus.
CN202210670581.4A 2022-06-14 2022-06-14 Method for realizing camera compatibility Active CN115103111B (en)

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 CN115103111A (en) 2022-09-23
CN115103111B true 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 (11)

* Cited by examiner, † Cited by third party
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
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI481245B (en) * 2012-12-19 2015-04-11 Motech Ind Inc Address setting method for slave devices of communication network
US9432566B2 (en) * 2014-07-11 2016-08-30 Geovision Inc. Camera system capable of expanding functions and an amount of video stream

Patent Citations (11)

* Cited by examiner, † Cited by third party
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
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
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
CN115103111A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN105847456B (en) A kind of RS485 distributes address methods, devices and systems automatically
US8260884B2 (en) Address allocation for secure bus subscribers
CN106712904B (en) Data transmission control method and device and terminal
KR20100122759A (en) Method for transferring data between a car and portable terminal, and interface device thereof
HUE028415T2 (en) Serial-peripheral interface with reduced number of connection lines
CN106681777A (en) Quick program updating method for multi-split unit
CN113608772B (en) Application program upgrading method and device
EP2618544A1 (en) Ethernet communication system and method based on mmc/sd interface
CN113434168A (en) Vehicle-mounted network architecture self-adaptive upgrading method based on intelligent hardware computing power
CN115103111B (en) Method for realizing camera compatibility
KR101958477B1 (en) Lin communication system for vehicle and method for driving slave module in the system
CN113147485A (en) Method and device for controlling vehicle charging and vehicle
CN1236637C (en) Radio communication system with function of data changing and renewing
CN100446590C (en) Processing terminal, method and tracing system for short message
CN112243043B (en) Distribution method, secure communication method, detection device, gateway module and system
CN112241279B (en) Self-adaptive electronic control unit software upgrading method and system and automobile
CN102087509B (en) Integrated circuit and control method thereof
CN117135142B (en) Address allocation device and method for performance test of flexible production line of electric automobile motor
US9794197B2 (en) Method and apparatus for transmitting can frame
CN114760322A (en) Vehicle information association method, Internet of vehicles terminal and Internet of vehicles platform
CN100545773C (en) The nothing feedback of identifying information on communication line transmits
CN111554291A (en) Device control method, voice input terminal, voice platform and storage medium
CN112243042B (en) Distribution method, secure communication method, detection device, gateway module and system
CN213342273U (en) Multimedia communication system based on INICnet interaction
CN114221890B (en) Message simulation device, message sending method and device and computer 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