CN103777070B - The communication means of the rack ammeter of tool I2C bus contention mechanism - Google Patents
The communication means of the rack ammeter of tool I2C bus contention mechanism Download PDFInfo
- Publication number
- CN103777070B CN103777070B CN201210415850.9A CN201210415850A CN103777070B CN 103777070 B CN103777070 B CN 103777070B CN 201210415850 A CN201210415850 A CN 201210415850A CN 103777070 B CN103777070 B CN 103777070B
- Authority
- CN
- China
- Prior art keywords
- self
- main card
- mode
- subcard
- closes
- 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.)
- Expired - Fee Related
Links
Abstract
The invention provides a kind of tool I2The communication means of the rack ammeter of C bus contention mechanism, described tool I2The rack ammeter of C bus contention mechanism includes: one piece of main card, some subcards, and wherein, described main card and described some subcards use I2C two-wire rule carries out physical connection, described main card and described some subcards and is disposed as slave mode, only just self is set to host mode when self needing and sending data to other cards, simultaneously closes off the slave mode of self.Compared with prior art, owing to main card is the data at each subcard of cyclic query, therefore will be in host mode by only one of which equipment in bus always, thus not have and in bus, occur that two or more equipment is simultaneously in host mode, so that it may ensure being normally carried out of communication.
Description
Technical field
The present invention relates to field industrial control field, particularly relate to a kind of tool I2The communication means of the rack ammeter of C bus contention mechanism.
Background technology
In existing industrial technical field, I2C bus communication technology is widely used, I2C equipment has two kinds of mode of operations: host mode and slave mode.Each I being connected in bus2C equipment both can be as I2The main frame of C again can be as I2C from machine, even can be simultaneously in main frame and slave mode by an equipment, but bus generally has main process equipment to be controlled, if so there are two or more equipment to be in host mode in bus simultaneously, just have multiple equipment controls bus simultaneously like that, cause bus chaotic, impact communication.
It is therefore desirable to provide a kind of new I2C communication means solves the problems referred to above.
Summary of the invention
The present invention relates to a kind of tool I2The communication means of the rack ammeter of C bus contention mechanism.
To achieve the above object of the invention, the invention provides one for having I2The communication means of the rack ammeter of C bus contention mechanism, described tool I2The rack ammeter of C bus contention mechanism includes that one piece of main card, some subcards, described main card and described some subcards use I2C two-wire rule carries out physical connection, the data on described each subcard of main card cyclic query, wherein said main card and some described subcards, in use it is disposed as slave mode, only when needs send data to other cards, self is set to host mode, simultaneously closes off slave mode;When completing data transmission, self is set to slave mode, simultaneously closes off host mode;It is characterized in that, described communication means comprises the following steps, and self is set to host mode by main card, closes slave mode, sends querying command to subcard;It is complete that main card sends querying command, and self is set to slave mode, closes host mode;Subcard receives querying command, and self is set to host mode, closes slave mode, sends corresponding data to main card;It is complete that subcard sends data, and self is set to slave mode, closes host mode.
Compared with prior art, tool I provided by the present invention2The communication means of the rack ammeter of C bus contention mechanism, no matter main card or subcard, it is arranged to slave mode under normal circumstances, only just self is set to host mode when self needing and sending data to other card, simultaneously close off self from machine function, immediately self is set to slave mode after being sent completely, closes the host function of self.Owing to main card is the data at each subcard of cyclic query, therefore will be in host mode by only one of which equipment in bus always, and thus not have and in bus, occur that two or more equipment is simultaneously in host mode, so that it may ensure being normally carried out of communication.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing for the present invention in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structural representation of one embodiment of the invention;
Fig. 2 is the communication means flow chart of the present invention.
Detailed description of the invention
Describe the present invention below with reference to each embodiment shown in the drawings.But these embodiments are not limiting as the present invention, structure, method or conversion functionally that those of ordinary skill in the art is made according to these embodiments are all contained in protection scope of the present invention.
Shown in ginseng Fig. 1 Yu Fig. 2, tool I provided by the present invention2The rack ammeter of C bus contention mechanism, it includes one piece of main card, subcard 1, subcard 2, subcard 3, described main card and described subcard 1, subcard 2, and subcard 3 uses I2C two-wire rule carries out physical connection, data on described each subcard of main card cyclic query, wherein said main card and described subcard 1, subcard 2 and subcard 3 are in use disposed as slave mode, when needs send data to other cards, self is set to host mode, simultaneously closes off slave mode;When completing data transmission, self is set to slave mode, simultaneously closes off host mode.
Concrete, have I2The rack ammeter of C bus contention mechanism, the data on described each subcard of main card cyclic query, described main card first send querying command to described a certain subcard, after described a certain subcard receives querying command, send corresponding data to main card.
Based on above-mentioned rack ammeter, present invention also offers a kind of communication means, comprise the following steps,
S110, self is set to host mode by main card, closes slave mode, sends querying command to subcard;
S120, it is complete that main card sends querying command, and self is set to slave mode, closes host mode;
S130, subcard receives querying command, and self is set to host mode, closes slave mode, sends corresponding data to main card;
S140, it is complete that subcard sends data, and self is set to slave mode, closes host mode.
Tool I provided by the present invention2The rack ammeter of C bus contention mechanism and communication mode, no matter main card or subcard, it is arranged to slave mode under normal circumstances, only just self is set to host mode when self needing and sending data to other card, simultaneously close off self from machine function, immediately self is set to slave mode after being sent completely, closes the host function of self.Owing to main card is the data at each subcard of cyclic query, therefore will be in host mode by only one of which equipment in bus always, and thus not have and in bus, occur that two or more equipment is simultaneously in host mode, so that it may ensure being normally carried out of communication.
It is to be understood that, although this specification is been described by according to embodiment, but the most each embodiment only comprises an independent technical scheme, this narrating mode of description is only for clarity sake, those skilled in the art should be using description as an entirety, technical scheme in each embodiment can also form, through appropriately combined, other embodiments that it will be appreciated by those skilled in the art that.
The a series of detailed description of those listed above is only for illustrating of the feasibility embodiment of the present invention; they also are not used to limit the scope of the invention, and all equivalent implementations or changes made without departing from skill of the present invention spirit should be included within the scope of the present invention.
Claims (1)
1. one kind is used for having I2The communication means of the rack ammeter of C bus contention mechanism, described tool I2The rack ammeter of C bus contention mechanism includes that one piece of main card, some subcards, described main card and described some subcards use I2C two-wire rule carries out physical connection, the data on described each subcard of main card cyclic query, wherein said main card and some described subcards, in use it is disposed as slave mode, only when needs send data to other cards, self is set to host mode, simultaneously closes off slave mode;When completing data transmission, self is set to slave mode, simultaneously closes off host mode;It is characterized in that, described communication means comprises the following steps,
Self is set to host mode by main card, closes slave mode, sends querying command to subcard;
It is complete that main card sends querying command, and self is set to slave mode, closes host mode;
Subcard receives querying command, and self is set to host mode, closes slave mode, sends corresponding data to main card;
It is complete that subcard sends data, and self is set to slave mode, closes host mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210415850.9A CN103777070B (en) | 2012-10-26 | 2012-10-26 | The communication means of the rack ammeter of tool I2C bus contention mechanism |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210415850.9A CN103777070B (en) | 2012-10-26 | 2012-10-26 | The communication means of the rack ammeter of tool I2C bus contention mechanism |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103777070A CN103777070A (en) | 2014-05-07 |
CN103777070B true CN103777070B (en) | 2016-08-03 |
Family
ID=50569548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210415850.9A Expired - Fee Related CN103777070B (en) | 2012-10-26 | 2012-10-26 | The communication means of the rack ammeter of tool I2C bus contention mechanism |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103777070B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108920401B (en) * | 2018-06-04 | 2020-07-28 | 深圳柴火创客教育服务有限公司 | Multi-master multi-slave I2C communication method, system and node equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1123492A (en) * | 1994-11-19 | 1996-05-29 | 张胤微 | Master/slave structure system for power network communication |
US5742512A (en) * | 1995-11-30 | 1998-04-21 | General Electric Company | Electronic electricity meters |
CN101154093A (en) * | 2006-09-26 | 2008-04-02 | 力博特公司 | Method and apparatus for competing for host computer position in parallel system |
CN101261613A (en) * | 2007-03-09 | 2008-09-10 | 南京理工大学 | Image processor team interface bus |
CN201707393U (en) * | 2010-03-12 | 2011-01-12 | 深圳市思达仪表有限公司 | Electricity meter with keyboard |
CN201757758U (en) * | 2010-03-12 | 2011-03-09 | 深圳市思达仪表有限公司 | Antistatic ammeter |
CN102096996A (en) * | 2010-12-01 | 2011-06-15 | 刘晓野 | Centralized meter reading system for electric energy meter |
GB2485000A (en) * | 2010-11-01 | 2012-05-02 | Northern Design Electronics Ltd | Modular utility meter |
-
2012
- 2012-10-26 CN CN201210415850.9A patent/CN103777070B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1123492A (en) * | 1994-11-19 | 1996-05-29 | 张胤微 | Master/slave structure system for power network communication |
US5742512A (en) * | 1995-11-30 | 1998-04-21 | General Electric Company | Electronic electricity meters |
CN101154093A (en) * | 2006-09-26 | 2008-04-02 | 力博特公司 | Method and apparatus for competing for host computer position in parallel system |
CN101261613A (en) * | 2007-03-09 | 2008-09-10 | 南京理工大学 | Image processor team interface bus |
CN201707393U (en) * | 2010-03-12 | 2011-01-12 | 深圳市思达仪表有限公司 | Electricity meter with keyboard |
CN201757758U (en) * | 2010-03-12 | 2011-03-09 | 深圳市思达仪表有限公司 | Antistatic ammeter |
GB2485000A (en) * | 2010-11-01 | 2012-05-02 | Northern Design Electronics Ltd | Modular utility meter |
CN102096996A (en) * | 2010-12-01 | 2011-06-15 | 刘晓野 | Centralized meter reading system for electric energy meter |
Non-Patent Citations (4)
Title |
---|
I2C总线技术探析及其应用;王韧;《电气时代》;20030831(第08期);第88-90页 * |
基于CPLD的I2C总线接口设计;郑采君;《电子设计工程》;20110131;第19卷(第02期);第145-149页 * |
基于I2C串行扩展的并行处理系统设计;王赟等;《无线电工程》;20080831;第38卷(第08期);第55页右栏第1-2段 * |
基于I2C总线的单主多从单片机之间的通信;贾朱红等;《微计算机信息》;20091231;第25卷(第3-2期);第101-102页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103777070A (en) | 2014-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9043528B2 (en) | Bridge between a peripheral component interconnect express interface and a universal serial bus 3.0 device | |
CN102724093A (en) | Advanced telecommunications computing architecture (ATCA) machine frame and intelligent platform management bus (IPMB) connection method thereof | |
CN105446930A (en) | Single selection end SPI (Serial Peripheral Interface) master-slave multi-machine bidirectional communication method | |
CN102098196B (en) | The data transmission method of blade server | |
CN103106113A (en) | Interrupt event processing method and processing equipment | |
US10659536B2 (en) | Method of controlling inverters | |
CN108491337B (en) | Method for realizing group control | |
CN103777070B (en) | The communication means of the rack ammeter of tool I2C bus contention mechanism | |
CN210324188U (en) | Integrated circuit bus IIC master-slave competition automatic switching equipment and system thereof | |
CN110958139B (en) | Network control method, orchestrator, controller, and computer-readable storage medium | |
CN106656711B (en) | A kind of predefined method of token bus time slot | |
CN205320103U (en) | Many interface communication networking system | |
CN205219137U (en) | Multi -axis motion control of bus type robot ware | |
CN102841875A (en) | Host computer with intelligent bus interface and security system | |
CN104683130A (en) | Method for configuring stacking port and equipment | |
CN102609388B (en) | Slave node circuit, communication method and communication device | |
US8549206B2 (en) | Method of establishing virtual USB interface for non-USB apparatus and the non-USB apparatus thereof | |
CN205318153U (en) | Intermediate handing circuit of RS485 signal bus hang -up | |
CN104899164B (en) | Address addressing method for integrated circuit bus, integrated circuit bus device and system | |
CN104133793B (en) | Long range PCIe extends system and data transmission method for uplink | |
CN204229207U (en) | For the dual bus control system of aluminium alloy wheel hub hydraulic forging press | |
CN104133447A (en) | Engineering machine control system and engineering machine | |
WO2016138852A1 (en) | Communication method and apparatus for optical module and system board and optical module | |
CN204408370U (en) | A kind of CAN network monitor diagnostic system | |
CN204028644U (en) | A kind of field instrument communication module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 215126 Suzhou City Industrial Park, Suzhou, Su Sheng Tung Road, Hong Kong Street, No. 88 Applicant after: SUZHOU NEWHONGBO INTELLIGENT TECHNOLOGY CO., LTD. Address before: 215126 Suzhou City Industrial Park, Suzhou, Su Sheng Tung Road, Hong Kong Street, No. 88 Applicant before: Suzhou Industrial Prak New Hongbo Communication Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160803 Termination date: 20171026 |
|
CF01 | Termination of patent right due to non-payment of annual fee |