CN103777070A - Rack-type electricity meter possessing I2C bus competitive mechanism - Google Patents

Rack-type electricity meter possessing I2C bus competitive mechanism Download PDF

Info

Publication number
CN103777070A
CN103777070A CN201210415850.9A CN201210415850A CN103777070A CN 103777070 A CN103777070 A CN 103777070A CN 201210415850 A CN201210415850 A CN 201210415850A CN 103777070 A CN103777070 A CN 103777070A
Authority
CN
China
Prior art keywords
main card
subcard
self
bus
data
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
Application number
CN201210415850.9A
Other languages
Chinese (zh)
Other versions
CN103777070B (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.)
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 CN201210415850.9A priority Critical patent/CN103777070B/en
Publication of CN103777070A publication Critical patent/CN103777070A/en
Application granted granted Critical
Publication of CN103777070B publication Critical patent/CN103777070B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention provides a rack-type electricity meter possessing an I2C bus competitive mechanism. The rack-type electricity meter possessing the I2C bus competitive mechanism comprises a main card and a plurality of sub-cards, wherein the main card and the plurality of sub-cards are in physical connection via an I2C double-line rule, and are all arranged as slave modes. Only when the main card and the plurality of sub-cards need to send data to other cards, the own modes of the main card and the plurality of sub-cards are arranged as the master modes, at the same time, the own slave modes are closed. Compared with the prior art, the main card queries the data of the sub-cards circularly, so that only one device is always located in the master mode on a bus, and accordingly, the situation that two or more than two devices are located in the master mode simultaneously does not occur, and the normal communication can be guaranteed.

Description

Tool I 2the rack ammeter of C bus contention mechanism
Technical field
The present invention relates to field industrial control field, relate in particular to a kind of tool I 2the rack ammeter of C bus contention mechanism.
Background technology
In existing industrial technology field, I 2c bus communication technology is widely used, I 2c equipment has two kinds of mode of operations: host mode and slave mode.Be connected to each I in bus 2c equipment both can be used as I 2the main frame of C can be used as again I 2the slave of C, even can one equipment simultaneously in main frame and slave mode, but bus has main process equipment to control conventionally, if so have two or more equipment in bus in host mode simultaneously, like that just have multiple equipment control bus simultaneously, cause bus confusion, impact communication.
Therefore be necessary to provide a kind of new I 2c communication mode solves the problems referred to above.
Summary of the invention
The present invention relates to a kind of tool I 2the rack ammeter of C bus contention mechanism.
To achieve the above object of the invention, the invention provides a kind of tool I 2the rack ammeter of C bus contention mechanism, it comprises a main card, some subcards, described main card and described some subcards adopt I 2c two-wire rule is carried out physical connection, the data on described each subcard of main card cyclic query, wherein said main card and described some subcards, in use all be set to slave mode, only, in the time that needs send data to other cards, self is set to host mode, closes slave mode simultaneously; While completing data transmission, self is set to slave mode, simultaneously Shutdown Hosts pattern.
As a further improvement on the present invention, tool I 2the rack ammeter of C bus contention mechanism, the data on described each subcard of main card cyclic query, first send querying command to described a certain subcard by described main card, and described a certain subcard is received after querying command, sends corresponding data to main card.
The present invention also provides a kind of communication means, and a kind of communication means based on claim 1, comprises the following steps, and self is set to host mode 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, Shutdown Hosts pattern; Subcard is received 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, Shutdown Hosts pattern.
Compared with prior art, tool I provided by the present invention 2rack ammeter and the communication mode of C bus contention mechanism, no matter main card or subcard, all be arranged under normal circumstances slave mode, only have in the time that self need to send data to other card and just self be set to host mode, close the slave function of self simultaneously, after being sent completely, self is set to slave mode immediately, closes the host function of self.Because main card is the data at each subcard of cyclic query, therefore in bus, will only have an equipment in host mode always, so just there will not be in bus and occur that two or more equipment, simultaneously in host mode, just can ensure normally carrying out of communication.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing relevant of the present invention in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the structural representation of one embodiment of the invention;
Fig. 2 is communication mode process flow diagram of the present invention.
Embodiment
Describe the present invention below with reference to each embodiment shown in the drawings.But these embodiment do not limit the present invention, the conversion in structure, method or function that those of ordinary skill in the art makes according to these embodiment is all included in protection scope of the present invention.
Shown in ginseng Fig. 1 and Fig. 2, tool I provided by the present invention 2the rack ammeter of C bus contention mechanism, it comprises a main card, subcard 1, subcard 2, subcard 3, described main card and described subcard 1, subcard 2, subcard 3 adopts I 2c two-wire rule is carried 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 all set to slave mode, in the time that needs send data to other cards, self is set to host mode, closes slave mode simultaneously; While completing data transmission, self is set to slave mode, simultaneously Shutdown Hosts pattern.
Concrete, tool I 2the rack ammeter of C bus contention mechanism, the data on described each subcard of main card cyclic query, first send querying command to described a certain subcard by described main card, and described a certain subcard is received after querying command, sends corresponding data to main card.
Based on above-mentioned rack ammeter, the present invention also provides a kind of communication means, comprise the following steps,
S110, self is set to host mode 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, Shutdown Hosts pattern;
S130, subcard is received querying command, 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, Shutdown Hosts pattern.
Tool I provided by the present invention 2rack ammeter and the communication mode of C bus contention mechanism, no matter main card or subcard, all be arranged under normal circumstances slave mode, only have in the time that self need to send data to other card and just self be set to host mode, close the slave function of self simultaneously, after being sent completely, self is set to slave mode immediately, closes the host function of self.Because main card is the data at each subcard of cyclic query, therefore in bus, will only have an equipment in host mode always, so just there will not be in bus and occur that two or more equipment, simultaneously in host mode, just can ensure normally carrying out of communication.
Be to be understood that, although this instructions is described according to embodiment, but be not that each embodiment only comprises an independently technical scheme, this narrating mode of instructions is only for clarity sake, those skilled in the art should make instructions as a whole, technical scheme in each embodiment also can, through appropriately combined, form other embodiments that it will be appreciated by those skilled in the art that.
Listed a series of detailed description is above only illustrating for feasibility embodiment of the present invention; they are not in order to limit the scope of the invention, all do not depart from the equivalent embodiment that skill spirit of the present invention does or change and all should be included in protection scope of the present invention within.

Claims (3)

1. a tool I 2the rack ammeter of C bus contention mechanism, comprises a main card, some subcards, and described main card and described some subcards adopt I 2c two-wire rule is carried out physical connection, the data on described each subcard of main card cyclic query, wherein said main card and described some subcards, in use all be set to slave mode, only, in the time that needs send data to other cards, self is set to host mode, closes slave mode simultaneously; While completing data transmission, self is set to slave mode, simultaneously Shutdown Hosts pattern.
2. have as claimed in claim 1 an I 2the rack ammeter of C bus contention mechanism, is characterized in that, the data on described each subcard of main card cyclic query first send querying command to described a certain subcard by described main card, and described a certain subcard is received after querying command, sends corresponding data to main card.
3. the communication means based on claim 1, is characterized in that, comprise the following steps,
Self is set to host mode 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, Shutdown Hosts pattern;
Subcard is received 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, Shutdown Hosts pattern.
CN201210415850.9A 2012-10-26 2012-10-26 The communication means of the rack ammeter of tool I2C bus contention mechanism Expired - Fee Related CN103777070B (en)

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 true CN103777070A (en) 2014-05-07
CN103777070B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920401A (en) * 2018-06-04 2018-11-30 深圳柴火创客教育服务有限公司 It is more main mostly from I2C communication means, system and node device

Citations (8)

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

Patent Citations (8)

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

* Cited by examiner, † Cited by third party
Title
王赟等: "基于I2C串行扩展的并行处理系统设计", 《无线电工程》 *
王韧: "I2C总线技术探析及其应用", 《电气时代》 *
贾朱红等: "基于I2C总线的单主多从单片机之间的通信", 《微计算机信息》 *
郑采君: "基于CPLD的I2C总线接口设计", 《电子设计工程》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920401A (en) * 2018-06-04 2018-11-30 深圳柴火创客教育服务有限公司 It is more main mostly from I2C communication means, system and node device

Also Published As

Publication number Publication date
CN103777070B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN204833236U (en) Support memory system of hybrid storage
CN102724093A (en) Advanced telecommunications computing architecture (ATCA) machine frame and intelligent platform management bus (IPMB) connection method thereof
CN105279130A (en) Method for operating multiple I2C devices with same address
CN105095037A (en) Wire card, backboard of wire card and wire card test method
CN102098196B (en) The data transmission method of blade server
CN102253872A (en) Method for implementing redundant management module in compact peripheral component interconnect (CPCI) blade server
CN104571294A (en) Server system
CN105094037A (en) Expansion module for programmable logic controller using usb communication
US20090240859A1 (en) Automatic address setting system
CN102841634A (en) Server mainboard
CN210324188U (en) Integrated circuit bus IIC master-slave competition automatic switching equipment and system thereof
CN103777070A (en) Rack-type electricity meter possessing I2C bus competitive mechanism
CN205320103U (en) Many interface communication networking system
CN204068425U (en) Intelligent substation telecontrol communication machine
CN102841875A (en) Host computer with intelligent bus interface and security system
CN102609388B (en) Slave node circuit, communication method and communication device
CN103546138A (en) Touch key control circuit
CN205318153U (en) Intermediate handing circuit of RS485 signal bus hang -up
CN104867374B (en) It is a kind of from plate ID learning systems and method
CN104243256A (en) RS485 bus star-shaped extension device and method
US20140351483A1 (en) Motherboard with peripheral component interconnect express slots
CN205229717U (en) A man -machine interface device for industrial equipment
CN204229207U (en) For the dual bus control system of aluminium alloy wheel hub hydraulic forging press
CN204576495U (en) A kind of dual bus arbitration control device
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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160803

Termination date: 20171026