CN109495603A - A kind of method that generating set parallel controller quickly distributes communication id automatically - Google Patents
A kind of method that generating set parallel controller quickly distributes communication id automatically Download PDFInfo
- Publication number
- CN109495603A CN109495603A CN201811535563.5A CN201811535563A CN109495603A CN 109495603 A CN109495603 A CN 109495603A CN 201811535563 A CN201811535563 A CN 201811535563A CN 109495603 A CN109495603 A CN 109495603A
- Authority
- CN
- China
- Prior art keywords
- equipment
- distribution
- address
- unique code
- bus
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5038—Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5092—Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides the method for fast automatic distribution communication ID of generating set parallel controller a kind of, and method includes the following steps: (1) then to enter the address ID when device power and distribute state;Step 2, the cpu factory of each equipment are preceding internal provided with the unique code in the whole world 64bit, and when equipment enters address distribution state Shi Huixiang bus sending ID application order, which includes unique codes;Step 3, after all devices in bus receive the order that this contains unique code, had the equipment of ID that can issue the respective address ID;Step 4 without the equipment of the address ID then will record the address ID, while can be compared with the unique code received and the unique code of oneself, and the priority distributed if the code of oneself is relatively more preferential can obtain ID distribution;After preference faciltiy obtains ID, the ID shared by oneself can be issued to bus to make to confirm, while the equipment for notifying other unallocated ID can enter next ID assignment period.
Description
Technical field
The present invention relates to a kind of methods that generating set parallel controller quickly distributes communication id automatically, are applied to generator
Group parallel controller.
Background technique
1, due to Sciences productivity progress, large capacity electrical equipment is more and more, and small power generator group is difficult to meet life
Production demand is powered so more generating sets need to be often together in parallel, together in addition with to power supply reliability and economical operation
Property require, be usually also required to more parallel operation of generator get up use, so generating set it is used in parallel meeting it is more and more.So
It when unit is used in parallel, needs to control it using parallel controller, needs to carry out by communication modes between controller
Data transmission and shared, if ID setting is not right, will cause to communicate ID conflict, lead to data corruption and mistake, can not identify institute
Belong to controller, further result in power distribution and the control of unit Automatic dispatching, so commissioning staff will before carrying out equipment debugging
ID is set, and confirms whether there is identical ID in bus.
2, to solve the above-mentioned problems, later people increase ID collision alert function in parallel module, prevent from being equipped with phase
With ID, if having identical ID if module issue ID collision alert, remind people's parallel system in have ID conflict, need to re-start
ID is set.Although a possibility that identical this solves setting ID, need to increase unit when having unit running in bus
Or maintenance replacement parallel controller, it is possible to which ID has on the unit or the maintenance more ID of parallel controller module and bus newly increased
Conflict will lead to go out ID collision alert using unit in bus in this way, compressor emergency shutdown operation made to lead to power failure accident.
3, later someone has invented one kind and has been randomly assigned ID method: as " a kind of unit parallel controller is randomly assigned ID
Method " the patent No.: 201610775805.2, such method may be implemented when single unit controller puts into communication bus in 0-3S
ID distribution is carried out in time, but it is not due to having arbitration mechanism, when more generator set controllers put into communication bus simultaneously, nothing
Method carries out quickly distribution ID, and is possible to by can not also be distributed for a long time, because sending ID at random, everybody has can
It all can send out ID identical always, and be difficult to obtain the distribution of ID.
Summary of the invention
1, the purpose of the present invention is being directed to the deficiency of currently available technology, so that bus time can be occupied by providing one kind
It is short, without waiting for the time, fast automatic distribution ID can be carried out at any time under any state of bus.
2, the present invention is realized by following technical solution: a kind of fast automatic point of generating set parallel controller
Method with communication ID, this method comprises:
Step 1, when device power, then enter the address ID distribute state;
Step 2, the cpu factory of each equipment are preceding internal provided with the unique code in the whole world 64bit, when equipment enters address distribution
State Shi Huixiang bus issues ID application order, and which includes unique codes;
Step 3, after all devices in bus receive the order that this contains unique code, had the equipment meeting of ID
Issue the respective address ID;
Step 4 without the equipment of the address ID then will record the address ID, while can use the unique code received and oneself
Oneself unique code compares, and the priority distributed if the code of oneself is relatively more preferential can obtain ID distribution, other
Equipment will then wait until the distribution arbitration cycle of next round;
After step 5, preference faciltiy obtain ID, the ID shared by oneself can be issued to bus to make to confirm, while notifying other
The equipment of unallocated ID can enter next ID assignment period;
Step 6 repeats 2-5 step, the ID distribution of multiple equipment can be rapidly completed, into normal operating status.
2. it is internal before the CPU factory of each equipment to be provided with the unique code in the whole world 64bit in step 3 based on above-mentioned, to set
It is standby to carry out providing secondary load condition when automatic distribution ID.
3. ID application order is issued to communication bus when equipment enters address distribution state based on above-mentioned, wherein application life
It include unique code.
4. based on above-mentioned, the equipment of ID is not received after unique codes of other equipment and unique code is compared self, secondary
Carry the priority of ID distribution.
5. based on above-mentioned, each equipment distributes the time to obtaining ID again to secondary carry of ID priority after issuing ID apply order
﹤ 0.01S.
Detailed description of the invention
Fig. 1 is implementation flow chart of the invention;
Specific embodiment
1, logical below that charger of the present invention is described in further detail in conjunction with attached drawing:
The method of the fast automatic distribution communication ID of a kind of generating set parallel controller as shown in Figure 1:, this method comprises:
Step 1, when device power, then enter the address ID distribute state;
Step 2, the cpu factory of each equipment are preceding internal provided with the unique code in the whole world 64bit, when equipment enters address distribution
State Shi Huixiang bus issues ID application order, and which includes unique codes;
Step 3, after all devices in bus receive the order that this contains unique code, had the equipment meeting of ID
Issue the respective address ID;
Step 4 without the equipment of the address ID then will record the address ID, while can use the unique code received and oneself
Oneself unique code compares, and the priority distributed if the code of oneself is relatively more preferential can obtain ID distribution.Other
Equipment will then wait until the distribution arbitration cycle of next round;
After step 5, preference faciltiy obtain ID, the ID shared by oneself can be issued to bus to make to confirm.Notify other simultaneously
The equipment of unallocated ID can enter next ID assignment period;
Step 6 repeats 2-5 step, the ID distribution of multiple equipment can be rapidly completed, into normal operating status.
2, when stating step on the implementation, the unique code in the whole world 64bit is provided with before the CPU of each equipment factory, be equipment into
Row provides secondary load condition when distributing ID automatically.
3, illustrate the time required to when revolving above-mentioned steps in fact: above method controller is communicated with CANBUS to be implemented, and setting is total
Line communication baud rate is 250Kps, then the time of every transmission 1Bit is 1/250000=0.000004 seconds, transmits a byte
The time of (1byte) is 0.000004 × 10=0.00004 seconds, and each CAN data packet shares 8 bytes, so transmission one
Packet time is 0.00004 × 8=0.00032 seconds.3 data packets need to only be received and dispatched by completing ID distribution address, referring to implementation stream
Cheng Tu is to issue ID application order to bus, obtain ID and unique code, the distribution address ID respectively, completes a controller and obtain
The time of ID distribution is 0.00032 × 3=0.00096 seconds, is less than 0.01S, it is believed that controller can be quickly obtained ID points
Match.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention, for this field skill
For art personnel, it is clear that invention is not limited to the details of the above exemplary embodiments, and without departing substantially from spirit of the invention or
In the case where essential characteristic, the present invention can be realized in other specific forms.Therefore, in all respects, should all incite somebody to action
Embodiment regards exemplary as, and is non-limiting, the scope of the present invention by appended claims rather than on state
Bright restriction, it is intended that including all changes that fall within the meaning and scope of the equivalent elements of the claims in the present invention
It is interior.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped
Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should
It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art
The other embodiments being understood that.
Claims (5)
1. a kind of generating set parallel controller method that quickly distribution communicates ID automatically, it is characterised in that: this method comprises:
Step 1, when device power, then enter the address ID distribute state;
Step 2, the cpu factory of each equipment are preceding internal provided with the unique code in the whole world 64bit, when equipment enters address distribution state
Shi Huixiang bus issues ID application order, and which includes unique codes;
Step 3, after all devices in bus receive the order that this contains unique code, had the equipment of ID that can issue
The respective address ID;
Step 4 without the equipment of the address ID then will record the address ID, at the same can with the unique code received and oneself
Unique code compares, and the priority distributed if the code of oneself is relatively more preferential can obtain ID distribution, other equipment
Then to wait until the distribution arbitration cycle of next round;
After step 5, preference faciltiy obtain ID, the ID shared by oneself can be issued to bus to make to confirm, while other being notified not divide
Equipment with ID can enter next ID assignment period;
Step 6 repeats 2-5 step, the ID distribution of multiple equipment can be rapidly completed, into normal operating status.
2. according to the method that quickly distribution communicates ID automatically of generating set parallel controller described in right 1, it is characterised in that: step
It is internal before the CPU factory of each equipment to be provided with the unique code in the whole world 64bit in rapid 2, it is provided when carrying out automatic distribution ID for equipment
Secondary load condition.
3. according to the method that quickly distribution communicates ID automatically of generating set parallel controller described in right 1, it is characterised in that: set
It is standby to enter when state is distributed in address to communication bus sending ID application order, wherein application order includes unique code.
4. according to the method that quickly distribution communicates ID automatically of generating set parallel controller described in right 1, it is characterised in that: do not have
Unique code is compared after having the equipment of ID to receive unique code of other equipment and self, the secondary priority for carrying ID distribution.
5. according to the method that quickly distribution communicates ID automatically of generating set parallel controller described in right 1, it is characterised in that: every
A equipment from issue ID apply order after to obtain ID distribute time ﹤ 0.01S.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535563.5A CN109495603A (en) | 2018-12-14 | 2018-12-14 | A kind of method that generating set parallel controller quickly distributes communication id automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535563.5A CN109495603A (en) | 2018-12-14 | 2018-12-14 | A kind of method that generating set parallel controller quickly distributes communication id automatically |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109495603A true CN109495603A (en) | 2019-03-19 |
Family
ID=65710384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811535563.5A Pending CN109495603A (en) | 2018-12-14 | 2018-12-14 | A kind of method that generating set parallel controller quickly distributes communication id automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109495603A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102364970A (en) * | 2011-11-29 | 2012-02-29 | 常熟理工学院 | Implementation method for automatically configuring address of mobile ad hoc network |
CN104516851A (en) * | 2014-12-31 | 2015-04-15 | 福州瑞芯微电子有限公司 | Address distribution system and method for RS485 slave equipment |
CN105119793A (en) * | 2015-07-20 | 2015-12-02 | 电子科技大学 | Identifier distribution method of sensor network CAN bus frame format |
CN106375528A (en) * | 2016-10-27 | 2017-02-01 | 上海斐讯数据通信技术有限公司 | Mobile phone ID determining method and abnormal detection and processing method |
CN108316975A (en) * | 2018-02-06 | 2018-07-24 | 天地(常州)自动化股份有限公司 | A kind of coal mine safety monitoring system sensor address auto-allocation method |
-
2018
- 2018-12-14 CN CN201811535563.5A patent/CN109495603A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102364970A (en) * | 2011-11-29 | 2012-02-29 | 常熟理工学院 | Implementation method for automatically configuring address of mobile ad hoc network |
CN104516851A (en) * | 2014-12-31 | 2015-04-15 | 福州瑞芯微电子有限公司 | Address distribution system and method for RS485 slave equipment |
CN105119793A (en) * | 2015-07-20 | 2015-12-02 | 电子科技大学 | Identifier distribution method of sensor network CAN bus frame format |
CN106375528A (en) * | 2016-10-27 | 2017-02-01 | 上海斐讯数据通信技术有限公司 | Mobile phone ID determining method and abnormal detection and processing method |
CN108316975A (en) * | 2018-02-06 | 2018-07-24 | 天地(常州)自动化股份有限公司 | A kind of coal mine safety monitoring system sensor address auto-allocation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2557657B1 (en) | Emergency lighting system and method for supplying it with power | |
EP1731977B1 (en) | Communication master station startup period control method | |
CN106253363A (en) | Battery control system and method | |
CN106877370A (en) | Energy storage cluster control system and energy-storage system | |
CN104811339A (en) | Intelligent networking method based on arbitration-free bus | |
CN102724030A (en) | Stacking system with high reliability | |
KR102064327B1 (en) | Power management system and management control apparatus of the power management system | |
CN103057572A (en) | Control switch method of main machine and standby machine | |
CN108521474A (en) | The address challenges method of multiple control system | |
CN111182086A (en) | CAN bus address allocation method and device based on one-master multi-slave module | |
JP5611611B2 (en) | Elevator emergency power supply system | |
CN104753707B (en) | A kind of system maintenance method and the network switching equipment | |
CN106302032A (en) | A kind of point-to-multipoint poll means of communication | |
CN110830967A (en) | LoRa communication equipment with one-key networking function and networking method | |
CN104317679A (en) | Communication fault-tolerant method based on thread redundancy for SCADA (Supervisory Control and Data Acquisition) system | |
CN116708374A (en) | Address allocation method for energy storage system | |
CN109495603A (en) | A kind of method that generating set parallel controller quickly distributes communication id automatically | |
CN104298567B (en) | A kind of system and method for ensureing Message Processing uniformity | |
CN1555622B (en) | Method and device for producing program interruptions in subscribers to a bus system, and corresponding bus system | |
WO2016031755A1 (en) | Electricity-generation control system, control device, electricity-generation control method, and program | |
CN102347878A (en) | Multi-point communication system, method and equipment | |
CN102480497A (en) | Remote main board controller and method for remotely controlling main board | |
JP2016529872A (en) | Shared standby power for data centers | |
CN107026919A (en) | Method for determining network address of node equipment, node equipment and control system | |
CN103825781B (en) | System communication scheduling algorithm based on Canbus |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190319 |