CN103793352A - I2C (Inter-Integrated Circuit) bus address conflict preventable communication device - Google Patents

I2C (Inter-Integrated Circuit) bus address conflict preventable communication device Download PDF

Info

Publication number
CN103793352A
CN103793352A CN201210423060.5A CN201210423060A CN103793352A CN 103793352 A CN103793352 A CN 103793352A CN 201210423060 A CN201210423060 A CN 201210423060A CN 103793352 A CN103793352 A CN 103793352A
Authority
CN
China
Prior art keywords
bus
slave
address
main frame
identification code
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
CN201210423060.5A
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.)
Suzhou Industrial Park New Hongbo Communication Technology Co Ltd
Original Assignee
Suzhou Industrial Park New Hongbo Communication Technology 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 Suzhou Industrial Park New Hongbo Communication Technology Co Ltd filed Critical Suzhou Industrial Park New Hongbo Communication Technology Co Ltd
Priority to CN201210423060.5A priority Critical patent/CN103793352A/en
Publication of CN103793352A publication Critical patent/CN103793352A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses an I2C (Inter-Integrated Circuit) bus address conflict preventable communication device. The I2C bus address conflict preventable communication device is connected with a microcontroller and a peripheral device circuit of the microcontroller through an I2C bus; the I2C bus is provided with a host and a plurality of from machine addresses; read-write operation can be performed on the from machines through the host; a unique identification code is configured on every from machine; when the host needs to be communicated and interacted with one of the from machines, the address of the from machine and the identification code of the from machine are sent together to the bus through the host and the from machine needs to further determine whether the identification code sent from the host is consistent with the self-identification-code or not when the condition that the address sent from the host is consistent with the self-address is monitored by the from machine to further respond.

Description

Can prevent the communication apparatus of I2C bus address conflict
Technical field
The invention belongs to domain of communication equipment, be specifically related to a kind of communication apparatus of the I2C of preventing bus address conflict.
Background technology
Communication apparatus of the prior art is for connecting the common employing I2C((Inter-Integrated Circuit of microcontroller and peripheral line thereof)) bus, I2C bus communication all needs to use in a lot of occasions, in synchronization, in I2C bus, only allow a main frame, can have multiple slaves, main frame can carry out read-write operation to slave.Each slave has the slave addresses of seven, when main frame carries out read-write operation to a certain slave, all the address of this slave is sent in bus together at every turn, and each slave is being monitored bus, in the time that slave finds that the slave addresses of the slave addresses and slave self sent of main frame is consistent, main frame is responded, otherwise do not respond, so require the address of each slave not identical.If there is two or more slave addresses identical in I2C bus, multiplely respond together main frame from chance, and now main frame cannot be differentiated two slaves that address is identical, thereby easily cause communication data to make mistakes, especially support on the equipment of hot plug at some, I2C slave can access or depart from bus at any time, now just easily occurs because of misoperation or other reason, and two identical I2C slaves in address are accessed to bus simultaneously.Therefore, need to improve existing communication equipment I 2C bus.
Summary of the invention
The object of this invention is to provide a kind of communication apparatus of the I2C of preventing bus address conflict.
For achieving the above object, the technical solution used in the present invention is:
The communication apparatus that prevents the conflict of I2C bus address of the present invention, this communication apparatus connects the employing I2C bus of microcontroller and peripheral line thereof, in I2C bus, have a main frame and dispose respectively the multiple slaves in address, main frame can carry out read-write operation to slave; Each slave disposes unique identification code, in the time that main frame need communicate interaction with a certain slave, main frame sends to the identification code of the address of this slave and this slave in bus together, slave listens to address that main frame sends when consistent with self address, needs further to judge that whether identification code that main frame sends and self identification code be consistent just can do further response.
It has following beneficial effect to the communication apparatus of the I2C of preventing bus address of the present invention conflict compared to existing technology: in use procedure, realize the function that can prevent the conflict of I2C bus address by the judgement that increases slave self unique identification code.
Accompanying drawing explanation
Fig. 1 is communication apparatus I2C principle of work schematic diagram of the present invention.
Embodiment
Further describe detailed technology content of the present invention below in conjunction with accompanying drawing.
The common employing I2C((Inter-Integrated Circuit of the connection microcontroller of communication apparatus of the present invention and peripheral line thereof)) bus, in I2C bus, there are a main frame and multiple slave, main frame can carry out read-write operation to slave.Each slave all disposes the address of seven and unique identification code, in the time that main frame need communicate interaction with a certain slave, main frame sends to the identification code of the address of this slave and this slave in bus together, slave listens to address that main frame sends when consistent with self address, the identification code again main frame being sent and self identification code contrast, if consistent, respond main frame, otherwise, do not respond main frame; Increase the whether consistent judgement of slave identification code when interactive with main frame, solved in bus when slave addresses repeats the problem of communication data entanglement.
The announcement of book and instruction according to the above description, those skilled in the art in the invention can also carry out suitable change and modification to above-mentioned embodiment.Therefore, the present invention is not limited to embodiment disclosed and described above, also should fall in the protection domain of claim of the present invention modifications and changes more of the present invention.

Claims (1)

1. one kind can prevent the communication apparatus of I2C bus address conflict, this communication apparatus connects the employing I2C bus of microcontroller and peripheral line thereof, in I2C bus, have a main frame and dispose respectively the multiple slaves in address, main frame can carry out read-write operation to slave; It is characterized in that: each slave disposes unique identification code, in the time that main frame need communicate interaction with a certain slave, main frame sends to the identification code of the address of this slave and this slave in bus together, slave listens to address that main frame sends when consistent with self address, needs further to judge that whether identification code that main frame sends and self identification code be consistent just can do further response.
CN201210423060.5A 2012-10-30 2012-10-30 I2C (Inter-Integrated Circuit) bus address conflict preventable communication device Pending CN103793352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210423060.5A CN103793352A (en) 2012-10-30 2012-10-30 I2C (Inter-Integrated Circuit) bus address conflict preventable communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210423060.5A CN103793352A (en) 2012-10-30 2012-10-30 I2C (Inter-Integrated Circuit) bus address conflict preventable communication device

Publications (1)

Publication Number Publication Date
CN103793352A true CN103793352A (en) 2014-05-14

Family

ID=50669043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210423060.5A Pending CN103793352A (en) 2012-10-30 2012-10-30 I2C (Inter-Integrated Circuit) bus address conflict preventable communication device

Country Status (1)

Country Link
CN (1) CN103793352A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704870A (en) * 2019-09-16 2020-01-17 合肥星空物联信息科技有限公司 Separated file isolation reading system
CN113970362A (en) * 2020-07-09 2022-01-25 成都秦川物联网科技股份有限公司 Electronic temperature conversion type diaphragm gas meter verification method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255027A (en) * 1998-11-23 2000-05-31 朗迅科技公司 Method and device for determining unique address to recognize hardware unit on common bus
US20060123173A1 (en) * 2004-11-15 2006-06-08 Ying-Lang Chuang Multimedia playback system and method of detecting an extended device thereof
CN101208679A (en) * 2005-04-29 2008-06-25 皇家飞利浦电子股份有限公司 Device identification coding of inter-integrated circuit slave devices
CN101539900A (en) * 2008-03-18 2009-09-23 英业达股份有限公司 Device for solving conflict generated between two I<2>C slave devices with same addressing address
US20120191889A1 (en) * 2011-01-24 2012-07-26 Digital Imaging Systems Gmbh Method to differentiate identical devices on a two-wire interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255027A (en) * 1998-11-23 2000-05-31 朗迅科技公司 Method and device for determining unique address to recognize hardware unit on common bus
US20060123173A1 (en) * 2004-11-15 2006-06-08 Ying-Lang Chuang Multimedia playback system and method of detecting an extended device thereof
CN101208679A (en) * 2005-04-29 2008-06-25 皇家飞利浦电子股份有限公司 Device identification coding of inter-integrated circuit slave devices
CN101539900A (en) * 2008-03-18 2009-09-23 英业达股份有限公司 Device for solving conflict generated between two I<2>C slave devices with same addressing address
US20120191889A1 (en) * 2011-01-24 2012-07-26 Digital Imaging Systems Gmbh Method to differentiate identical devices on a two-wire interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704870A (en) * 2019-09-16 2020-01-17 合肥星空物联信息科技有限公司 Separated file isolation reading system
CN113970362A (en) * 2020-07-09 2022-01-25 成都秦川物联网科技股份有限公司 Electronic temperature conversion type diaphragm gas meter verification method

Similar Documents

Publication Publication Date Title
CN107111588A (en) The data transfer of PCIe protocol is used via USB port
JP2017511937A (en) Method, apparatus, and computer program product for transitioning to USB Type-C accessory device docking mode
CN107491148A (en) A kind of server hard disc attachment structure
CN102724093B (en) A kind of ATCA machine frame and IPMB method of attachment thereof
US9529758B1 (en) Multiple port configuration
CN106603359B (en) The communicating control method and device of PLC system
CN105516386A (en) Method and system for detecting and processing MAC address conflict of server management system
WO2020125041A1 (en) Network switching method and device
TW201129044A (en) Master/slave device communication circuit and ID address assigning method thereof
US20150113187A1 (en) Server System
CN107506323B (en) Hot plug processing method and device
CN103793352A (en) I2C (Inter-Integrated Circuit) bus address conflict preventable communication device
CN103412838B (en) A kind of expanding system, communication means, address configuration method, equipment and device
CN103970696A (en) Monobus circuit interface used for batch test and calibration of sensor system
CN104899177A (en) I2C (inter-integrated circuit) equipment control method and system
CN102158382A (en) RS485 star-shaped bus system
CN202495044U (en) USB interface isolation control system for multi-security-domain computer
CN102929767B (en) The acquisition cuicuit of memory bar insert state and the management system of memory bar information
CN103546138A (en) Touch key control circuit
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and system
CN105446654A (en) Server control method and rack controller
CN205123779U (en) Support card to carry USB storage device&#39;s network security isolating device
CN204066400U (en) A kind of distributed traffic lamp system
CN107395475B (en) CAN communication polarity control method, device and system and multi-connected air conditioning unit
CN107241252B (en) CAN communication polarity control circuit and system and multi-connected air conditioning system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140514