CN101645897A - Method and system for realizing competitive mechanism - Google Patents

Method and system for realizing competitive mechanism Download PDF

Info

Publication number
CN101645897A
CN101645897A CN200910092367A CN200910092367A CN101645897A CN 101645897 A CN101645897 A CN 101645897A CN 200910092367 A CN200910092367 A CN 200910092367A CN 200910092367 A CN200910092367 A CN 200910092367A CN 101645897 A CN101645897 A CN 101645897A
Authority
CN
China
Prior art keywords
address
frame
competition
power model
monomer power
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
CN200910092367A
Other languages
Chinese (zh)
Other versions
CN101645897B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910092367XA priority Critical patent/CN101645897B/en
Publication of CN101645897A publication Critical patent/CN101645897A/en
Application granted granted Critical
Publication of CN101645897B publication Critical patent/CN101645897B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a method for realizing competitive mechanism; the method comprises: a monomer power module is connected into a CAN bus line; the monomer power module sends a competitive detection frame to the CAN bus line; afterward, the monomer power module determines whether the relative data frame transmitted from the CAN bus line is received in a setting competitive time period; if therelative data frame is received, whether the monomer power module completes for a competitive object is judged according to the received relative data frame; if the relative data frame is not received, the monomer power module is considered to compete for the competitive object. The invention simultaneously discloses a system for realizing the competitive mechanism which comprises a CAN bus lineand the monomer power module connected into the CAN bus line. The method and the system of the invention can increase the reliability and maintenance of a distributed power system.

Description

A kind of method and system that realize competition mechanism
Technical field
The present invention relates to the distributed power source technology, relate in particular to a kind of method and system that realize competition mechanism.
Background technology
Distributed power supply system has and is easy to expand power output capacity, reliability height, is easy to realize standardized designs, is convenient to advantage such as maintenance, and therefore, replacing the centralized power system by distributed power supply system is one of developing direction of power-supply system.But in the distributed power supply system, during the different monomer power model parallel operation of external characteristic, the load inequality that each monomer power model is shared, the monomer power model that external characteristic is good is born more load, like this, make distributed power supply system have following defective: the power output of the monomer power model that load sharing is few is low, efficient is low, and the utilization of resources is insufficient; And the more monomer power model power output height of load sharing, even may cause overload, reduced the reliability of distributed power supply system.Adopt the parallel current-sharing method can eliminate the above-mentioned defective of distributed power supply system, principal and subordinate's current-equalizing method is one of parallel current-sharing method of using always, at present, principal and subordinate's current-equalizing method adopts simulation control to realize parallel current-sharing, be specially: a monomer power model in a plurality of monomer power models of artificial appointment parallel connection is as main frame, and remaining each monomer power model is called slave, slave is followed the host assignment electric current to realize parallel current-sharing, but adopt aforementioned principal and subordinate's current-equalizing method when the hostdown of artificial appointment, whole distributed power supply system just can not be worked, be the normal operation that the fault of single monomer power model can influence whole distributed power supply system, make all non-constant of reliability and maintainability of distributed power supply system.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and system that realize competition mechanism, adopt these method and system can realize automatic competition address and main frame between monomer power model in parallel, and then can improve the reliability and maintainability of distributed power supply system.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method that realizes competition mechanism, the monomer power model inserts the CAN bus, and this method also comprises:
Described monomer power model sends competition to the CAN bus and detects frame, afterwards, the monomer power model determines whether to receive the related data frame that the CAN bus transfer is come in the competition time period of setting, if receive, according to the related data frame that receives, determine whether this monomer power model competes competitive target; If do not receive, then think and self competed described competitive target.
Further, when this method was used for monomer power model competition address, it was the address detected frame that described competition detects frame; Described competitive target is the competition address;
Described monomer power model sends competition detection frame to the CAN bus:
The monomer power model adds 1 and obtains competing the address on default address;
The monomer power model sends to the CAN bus and carries the address detected frame of the competition address that obtains;
The described related data frame that the monomer power model receives is the competition address and self identical address detected frame and/or the address of carrying and self identical address response frame in competition address in competition address of carrying, and described address detected frame carries the sequence number of the monomer power model that sends this address detected frame;
The related data frame that described basis receives, determine whether this monomer power model is competed described competitive target and be:
Determining to receive is the competition address and self identical address detected frame in competition address of carrying, the competition address of carrying and self identical address detected frame and the address of carrying and self identical address response frame in competition address in competition address, the address of still carrying and self identical address response frame in competition address, if the competition address of carrying and self identical address detected frame in competition address, then the comparison of the sequence number of the sequence number that carries according to this address detected frame of receiving and this monomer power model determines whether this monomer power model competes described competition address; If the competition address of carrying and self identical address detected frame address response frame or the address of carrying and self competition address identical address response frame identical with self competition address with the address of carrying in competition address, then this monomer power model is not competed described competition address.
Further, when competing described competition address, this method further comprises:
This competition flow process is finished as the address of this monomer power model in the competition address that the monomer power model will be competed;
When not competing described competition address, this method further comprises:
The competition address that the monomer power model will not competed adds 1 as the competition address, return step monomer power model and send the address detected frame that carries the competition address to the CAN bus, compete this competition address, up to the competition address, with address, the competition address competed, finish this competition flow process as this monomer power model;
After competing described competition address, when the monomer power model received the address detected frame of CAN bus transfer, this method further comprised:
The competition address that the address detected frame of determining to receive carries is identical with self address, then sends the address response frame that carries self address to the CAN bus, competes the address again.
Further, when this method was used for monomer power model competition main frame, it was that main frame detects frame that described competition detects frame; Described competitive target is to establish certainly as main frame;
Described monomer power model sends competition detection frame to the CAN bus:
The monomer power model sends the main frame carry self sequence number to the CAN bus and detects frame.
The described related data frame that the monomer power model receives is that main frame detects frame and/or response of host frame;
The related data frame that described basis receives, determine whether this monomer power model is competed competitive target and be:
Determining to receive main frame detects frame, main frame and detects frame and response of host frame, or response of host frame, if main frame detects frame, then detect the comparison of sequence number that frame carries and the sequence number of this monomer power model, determine to establish from as main frame, or slave according to this main frame that receives; If main frame detects frame and response of host frame or response of host frame, then this monomer power model is established certainly as slave.
Further, this method further comprises:
Main frame monitoring self output current value, and the output current value that monitors is carried in the current-sharing information frame sends to the CAN bus in real time;
The current value that slave carries the current-sharing information frame that receives is imported the regulon of self, controls the output voltage of self, makes the output current value of self approach the output current value of main frame.
Further, the monomer power model is established certainly as slave, and when not receiving the current-sharing information frame in the monitoring time section of setting, this method further comprises;
Send the main frame carry self sequence number to the CAN bus and detect frame, compete main frame again.
Further, the monomer power model is established oneself as main frame, when receiving the main frame detection frame of CAN bus transfer, further comprises:
Carry self address of host response frame to the transmission of CAN bus.
Further, the monomer power model is established certainly as main frame, and when receiving next response of host frame of CAN bus transfer or current-sharing information frame, this method further comprises:
Send the main frame carry self sequence number to the CAN bus and detect frame, carry out the main frame competition again.
The present invention also provides a kind of system that realizes competition mechanism, and this system comprises: the monomer power model of CAN bus and access CAN bus; Wherein,
The monomer power model, be used for sending competition and detect frame to the CAN bus, afterwards, the monomer power model determines whether receive the related data frame that the CAN bus transfer is come in the competition time period of setting, and when receiving, according to the related data frame that receives, determine whether this monomer power model competes competitive target; When not receiving, think and self competed described competitive target;
The CAN bus is used to transmit competition Frame and the related data frame that the monomer power model is sent.
Further, when the competition address, it is that address detected frame, described competitive target are the competition address that described competition detects frame, and described monomer power model comprises: competition address determination module, first sending module, first receiver module and first be determination module as a result; Wherein,
Competition address determination module is used for adding 1 and obtains competing the address on default address;
First sending module is used for carrying the address detected frame of the competition address that obtains to the transmission of CAN bus, simultaneously, notifies first receiver module to pick up counting;
First receiver module, be used for timing, and in the competition time period of setting, the competition address that the CAN bus transfer is carried with self under during the identical address detected frame in the competition address of monomer power model and/or the address of the carrying address response frame identical with the competition address of self affiliated monomer power model, receive and be sent to first determination module as a result; When transmission comes, notify first as a result determination module compete described competition address;
First determination module as a result, be used to receive the competition address of carrying with self under during the competition address of monomer power model identical address detected frame, the comparison of the sequence number that carries according to this address detected frame that receives and the sequence number of this monomer power model, determine whether this monomer power model competes described competition address, and in definite result when being, with address, the competition address competed as monomer power model under self, in definite result when not being, the competition address of not competing is added 1 as the competition address, trigger described first sending module; Or when receiving the notice of competing described competition address, with the address of described competition address as monomer power model under self.
Further, described monomer power model also comprises:
First monitoring module, be used for after competing described competition address, receive the address detected frame that the CAN bus transfer is come, and the address detected frame of determining the to receive competition address of carrying is identical with self address, then trigger competition address determination module, compete the address again.
Further, when the competition main frame, it is that main frame detects frame, described competitive target is to establish certainly as main frame that described competition detects frame, and described monomer power model comprises: second sending module, second receiver module and second be determination module as a result; Wherein,
Second sending module is used for sending the main frame carry self sequence number to the CAN bus and detects frame, simultaneously, notifies second receiver module to pick up counting;
Second receiver module is used for timing, and in the competition time period of setting, and when the CAN bus transfer comes main frame to detect frame and/or response of host frame, receives and be sent to second determination module as a result; When transmission does not come, indicate second main frame of determination module establishment as a result;
Second determination module as a result is used for receiving main frame when detecting frame, detects the comparison of sequence number that frame carries and the sequence number of this monomer power model according to this main frame that receives, and determines to establish from as main frame, or slave; Or receiving when establishing the main frame indication, establish that the monomer power model is a main frame under self.
Further, establish, also comprise from described monomer power model as main frame:
Current control module is used to monitor the output current value of monomer power model under self, and the output current value that monitors is carried in the current-sharing information frame sends to the CAN bus in real time;
Establish from described monomer power model, also comprise as slave:
Current regulating module, the regulon of monomer power model under current value that the current-sharing information frame that is used for receiving the carries input self is controlled self output voltage, makes the output current value of self approach the output current value of main frame.
Further, establish, also comprise from described monomer power model as main frame:
Second monitoring module is used for when the main frame that receives the CAN bus transfer detects frame, sends to the CAN bus and carries self address of host response frame;
Establish from described monomer power model, also comprise as slave:
The 3rd monitoring module when being used to receive response of host frame that the CAN bus transfer comes or current-sharing information frame, triggering second sending module and sends the main frame that carries self sequence number to the CAN bus and detect frame, carries out the main frame competition again.
The method and system of realization competition mechanism provided by the present invention, the present invention encodes to communication data according to the broadcast frame of CAN agreement, can make the distinct device that inserts the CAN bus receive the feature of identical data simultaneously, provide and adopted the CAN bus to realize the method and system of competition automatically, automatic competition address and main frame between monomer power model in parallel have been realized, like this, after hostdown withdraws from, slave can be competed automatically becomes main frame, can not influence the normal operation of whole distributed power supply system, improve the reliability and maintainability of distributed power supply system.The present invention also has following advantage and characteristics:
1, each the monomer power model that inserts the CAN bus all can adopt the arbitration mode by turn of no damage structure to compete to CAN bus transmission data according to the bus access priority, therefore, prevented that a plurality of monomer power models are simultaneously when the CAN bus sends data, the data congestion phenomenon that may cause has further improved the reliability of distributed power supply system;
2, when having established the main frame of distributed power supply system, by the mutual monitoring of main frame, slave, when finding that distributed power supply system does not have main frame or two above main frames are arranged, compete main frame automatically again, guaranteeing only has a main frame in the distributed power supply system;
3, adopt the output current value of CAN bus transfer main frame, improved the real-time of distributed power supply system parallel current-sharing.
Description of drawings
Fig. 1 realizes the realization flow figure of the method for competition mechanism for the embodiment of the invention;
Fig. 2 competes the structural representation of regulon in the flow process of main frame for employing the present invention realizes the monomer power model;
Fig. 3 realizes the structural representation of the system of competition mechanism for the embodiment of the invention.
Embodiment
The flow process of embodiment of the invention realization competition mechanism method may further comprise the steps as shown in Figure 1:
Step 101: monomer power model access controller local area network (LAN) (CAN, Controller Area Network) bus.
Wherein, described monomer power model access CAN bus is:
Monomer power model and CAN bus connect together.
Step 102: the monomer power model sends competition to the CAN bus and detects frame.
Step 103: the monomer power model determined whether to receive the related data frame that the CAN bus transfer is come in the competition time period of setting, if receive, and execution in step 104; If do not receive, then think and self competed competitive target, execution in step 105.
Wherein, described competition detects frame and the related data frame is broadcast frame, and promptly a monomer power model sends competition to the CAN bus and detects frame or related data frame, all can receive with CAN bus and other monomer power model of connecing in the distributed power supply system; Described related data frame by in the distributed power supply system with CAN bus and other monomer power model of connecing by the CAN bus transfer to described monomer power model; Adopt the arbitration mode by turn of no damage structure to compete with CAN bus and each monomer power model of connecing according to the bus access priority to CAN bus transmission data; Described distributed power supply system comprises the monomer power model of a plurality of parallel connections.
The length of described competition time period can be according to determining with CAN bus and the monomer power model number that connects in competitive target and the distributed power supply system; Wherein, when competitive target is the competition address, since in the distributed power supply system in order to discern each monomer power model, require the address of any two monomer power models all inequality, when needing promptly to guarantee that if existing monomer power model is competed described competition address in the distributed power supply system, the monomer power model of this competition can receive the related data frame of the monomer power model answer of this competition address, even the bus access priority of the monomer power model of this competition address is minimum, the related data frame of its transmission can be transmitted at last when the CAN bus is busy, therefore, the described competition time should be to send a frame data frame to arbitrary monomer power model wherein simultaneously from each monomer power model of distributed power supply system to receive the required time of total data frame at least; And competitive target is for establishing from as main frame the time, in order to guarantee to have only a main frame in the distributed power supply system, if when then needing to guarantee to have main frame in the distributed power supply system, the monomer power model of this competition can receive the related data frame of this host response, even the bus access priority of this main frame is minimum, the related data frame of its transmission can be transmitted at last when the CAN bus is busy, like this, described competition time period should be to send a frame data frame to arbitrary monomer power model wherein simultaneously from each monomer power model of distributed power supply system to receive the required time of total data frame at least.
Step 104:, determine whether this monomer power model competes competitive target according to the related data frame that receives.
Step 105: finish this competition flow process.
Below to adopt the present invention to realize the competition mechanism method, realize that the flow process of monomer power model competition address and the flow process of competition main frame are example, specify the method that the present invention realizes competition mechanism:
Adopt the present invention to realize that the competition mechanism method realizes the flow process of monomer power model competition address, may further comprise the steps:
Steps A 1, monomer power model insert the CAN bus;
Wherein, described monomer power model access CAN bus is:
Monomer power model and CAN bus connect together.
Step B1, monomer power model add 1 and obtain competing the address on default address;
Default address when wherein, the monomer power model inserts the CAN bus is 0.
Step C1, monomer power model send the address detected frame to the CAN bus; Wherein, described address detected frame carries the competition address that obtains.
Step D1, monomer power model determine whether to receive the competition address and self identical address detected frame and/or the address of carrying and self identical address response frame in competition address in competition address of carrying in the competition time period of setting, if receive, execution in step E1; Otherwise thinking does not also have other monomer power model to compete this competition address and does not have other monomer power model to compete this competition address, execution in step H1.
Step e 1, the address detected frame of determining to receive that to be the competition address of carrying identical with self competition address or the competition address of carrying with self competition address identical address detected frame compete the identical address response frame in address, the address of still carrying and self compete the identical address response frame in address with the address of carrying and self, if the competition address of carrying and self the identical address detected frame in competition address, then execution in step F1; If the competition address of carrying and self identical address detected frame address response frame or the address of carrying and self competition address identical address response frame identical with self competition address in competition address with the address of carrying, then this monomer power model is not competed described competition address, execution in step G1; Wherein, the address response frame is sent by the monomer power model of competing described competition address, therefore, as long as receive the address and self identical address response frame in competition address of carrying, show that promptly self competing the address is competed by other monomer power model, then this monomer power model is abandoned self competition address;
Whether the sequence number that step F 1, this address detected frame that relatively receives carry greater than the sequence number of this monomer power model, if greater than, then this monomer power model is competed described competition address, execution in step H1; If less than, then this monomer power model is not competed described competition address, execution in step G1; Wherein, the date and time that described sequence number detects when dispatching from the factory for the monomer power model, for example, the date that the monomer power model detects when dispatching from the factory is that August 10, the time in 2009 was 11: 20, then the sequence number of this monomer power model is that 20,090,810 1 120, sequence number can monomer power model of unique identification; Here, when stipulating that a plurality of monomer power models are competed same competition address, the monomer power model of sequence number minimum obtains this competition address;
The competition address that step G1, monomer power model will not competed adds 1 as the competition address, returns step C1.
This competition flow process is finished as the address of this monomer power model in the competition address that step H1, monomer power model will be competed.
Behind the step H1, when the monomer power model received the address detected frame of CAN bus transfer, the embodiment of the invention further comprised:
Whether the competition address that the address detected frame of determining to receive carries is identical with self address, if it is identical, then send the address response frame carry self address to the CAN bus, to inform the monomer power model of the described competition of competition address, self compete described competition address, prevented the identical situation in address of two above monomer power models; If different, then ignore the address detected frame that receives, be left intact.
Behind the step H1, when the monomer power model received the address response frame of CAN bus transfer, the embodiment of the invention further comprised:
Whether the address that the address response frame of determining to receive carries is identical with self address, if it is identical, the monomer power model that promptly sends this address response frame is identical with this monomer power model address, in order to make that the address of any two monomer power models is all inequality in the distributed power supply system, then the address of this monomer functional module reverts to default address, return step B1, compete the address again; If different, then ignore the address response frame that receives, be left intact.
Behind the step H1, monomer power model fault withdraws from distributed power supply system, does not influence the address of other monomer power model, and other monomer power model needn't be competed the address again.
Adopt the present invention to realize the flow process of monomer power model competition main frame, may further comprise the steps:
Steps A 2, monomer power model insert the CAN bus;
Step B2, monomer power model send the main frame that carries self sequence number to the CAN bus and detect frame;
Step C2, monomer power model determine whether receive main frame detection frame and/or the response of host frame that the CAN bus transfer is come in the competition time period of setting, if receive, and execution in step D2; If do not receive, think that also there is not main frame in distributed power supply system and does not have other monomer power model and the competition of this monomer power model, execution in step F2;
Step D2, what determine to receive is that main frame detects frame or main frame and detects frame and response of host frame, or response of host frame, if main frame detects frame, then execution in step E2; If main frame detects frame and response of host frame or response of host frame,, think that there has been main frame in distributed power supply system, then execution in step G2 because the response of host frame is sent by main frame;
Step e 2, this main frame that relatively receives detect sequence number that frame carries whether greater than the sequence number of this monomer power model, if greater than, execution in step F2; If less than, execution in step G2 then;
Step F 2, this monomer power model are established from as main frame, finish this competition flow process;
Step G2, this monomer power model are established from as slave, finish this competition flow process.
Behind the step G2, the embodiment of the invention further comprises principal and subordinate's current-sharing flow process, is specially:
Main frame monitoring self output current value, and the output current value that monitors is carried in the current-sharing information frame sends to the CAN bus in real time; Wherein, the current-sharing information frame is a broadcast frame.
The current value that slave carries the current-sharing information frame that receives is imported the regulon of self, control the output voltage of self, make the output current value of self approach the output current value of main frame, to realize the current-sharing between each monomer power model in parallel in the distributed power supply system.
Wherein, the structure of described regulon as shown in Figure 2, wherein, the computing formula that flow equalizing ring PI regulates is:
e I ( k ) = I master ( k ) - I out ( k ) Δ U I ( k ) = K pI × e I ( k ) - K iI × e I ( k - 1 ) U I ( k ) = U I ( k - 1 ) + Δ U I ( k )
Wherein, I MasterThe output current value of main frame when (k) being this calculating; I OutThe output current value of slave when (k) being this calculating; e I(k) be current error value during this calculates, e I(k-1) be preceding current error value when once calculating; Δ U I(k) be the output increment that flow equalizing ring PI regulated during this calculated; K PIIt is the proportionality coefficient that flow equalizing ring PI regulates; K IIIt is the integral coefficient that flow equalizing ring PI regulates; U I(k) be that this calculates the output variable that flow equalizing ring PI regulates; U I(1) is the preceding output variable that flow equalizing ring PI regulates of once calculating.
The computing formula that constant voltage ring PI regulates is:
e U ( k ) = U ref - U out ( k ) + U I ( k ) ΔD ( k ) = K pU × e U ( k ) - K iU × e U ( k - 1 ) D ( k ) = D ( k - 1 ) + ΔD ( k )
Wherein, U RefIt is the output voltage set-point; U OutSlave output voltage values when (k) being this calculating; e U(k) be voltage error value during this calculates, e U(k-1) be preceding voltage error value when once calculating; Δ D (k) is the output increment that constant voltage ring PI regulated during this calculated; K PUIt is the proportionality coefficient that constant voltage ring PI regulates; K IUIt is the integral coefficient that constant voltage ring PI regulates; D (k) is the output variable that the constant voltage ring PI of this calculating regulates, and D (k-1) is the output variable that the preceding constant voltage ring PI that once calculates regulates.
Further, the monomer power model is established from as slave the time, behind the step G2, when the monomer power model does not receive the current-sharing information frame in the monitoring time section of setting, then think and hostdown withdrawed from distributed power supply system, then slave execution in step B2~G2, again compete main frame, guarantee to exist in the distributed power supply system main frame.
Further, when the monomer power model was established oneself as main frame, behind the step G2, when the monomer power model received the main frame detection frame of CAN bus transfer, the embodiment of the invention further comprised:
Carry self address of host response frame to the transmission of CAN bus, to inform the monomer power model of competition main frame, the current main frame that existed of distributed power supply system is to prevent occurring two above main frames in distributed power supply system.
Further, the monomer power model is established from as main frame the time, and behind the step G2, when the monomer power model received next response of host frame of CAN bus transfer or current-sharing information frame, the embodiment of the invention further comprised:
Thinking that distributed power supply system is current has existed at least two main frames, and therefore, this monomer functional module execution in step B2~G2 competes main frame again, to reply the state that only has a main frame in the distributed power supply system.Here, because when having the monomer power model to send main frame detection frame, other monomer power model in the distributed power supply system all can receive this main frame in real time and detect frame, the main frame that receives this main frame detection frame then sends the response of host frame, and other monomer power model of the current-sharing information frame that main frame sends in real time also all can receive, therefore, there are two above main frames to occur in the distributed power supply system, then two above main frames can receive response of host frame or the current-sharing information frame that sends each other in real time, therefore, described two above main frames can be competed main frame simultaneously again, to solve the problem that occurs two above main frames in the above-mentioned distributed power supply system.
The structure of the system of embodiment of the invention realization competition mechanism comprises as shown in Figure 3: the monomer power model of CAN bus and access CAN bus; Wherein,
The monomer power model, be used for sending competition and detect frame to the CAN bus, afterwards, the monomer power model determines whether receive the related data frame that the CAN bus transfer is come in the competition time period of setting, and when receiving, according to the related data frame that receives, determine whether this monomer power model competes competitive target; When not receiving, think and self competed described competitive target;
The CAN bus is used to transmit competition Frame and the related data frame that the monomer power model is sent.
Wherein, when the competition address, it is that address detected frame, described competitive target are the competition address that described competition detects frame, and described monomer power model comprises: competition address determination module, first sending module, first receiver module and first be determination module as a result; Wherein,
Competition address determination module is used for adding 1 and obtains competing the address on default address;
First sending module is used for carrying the address detected frame of the competition address that obtains to the transmission of CAN bus, simultaneously, notifies first receiver module to pick up counting;
First receiver module, be used for timing, and in the competition time period of setting, the competition address that the CAN bus transfer is carried with self under during the identical address detected frame in the competition address of monomer power model and/or the address of the carrying address response frame identical with the competition address of self affiliated monomer power model, receive and be sent to first determination module as a result; When transmission comes, notify first as a result determination module compete described competition address;
First determination module as a result, be used to receive the competition address of carrying with self under during the competition address of monomer power model identical address detected frame, the comparison of the sequence number that carries according to this address detected frame that receives and the sequence number of this monomer power model, determine whether this monomer power model competes described competition address, and in definite result when being, with address, the competition address competed as monomer power model under self, in definite result when not being, the competition address of not competing is added 1 as the competition address, trigger described first sending module; Or when receiving the notice of competing described competition address, with the address of described competition address as monomer power model under self.
Further, described monomer power model also comprises:
First monitoring module, be used for after competing described competition address, receive the address detected frame that the CAN bus transfer is come, and the address detected frame of determining the to receive competition address of carrying is identical with self address, then trigger competition address determination module, compete the address again.
Further, when the competition main frame, it is that main frame detects frame, described competitive target is to establish certainly as main frame that described competition detects frame, and described monomer power model comprises: second sending module, second receiver module and second be determination module as a result; Wherein,
Second sending module is used for sending the main frame carry self sequence number to the CAN bus and detects frame, simultaneously, notifies second receiver module to pick up counting;
Second receiver module is used for timing, and in the competition time period of setting, and when the CAN bus transfer comes main frame to detect frame and/or response of host frame, receives and be sent to second determination module as a result; When transmission does not come, indicate second main frame of determination module establishment as a result;
Second determination module as a result is used for receiving main frame when detecting frame, detects the comparison of sequence number that frame carries and the sequence number of this monomer power model according to this main frame that receives, and determines to establish from as main frame, or slave; Or receiving when establishing the main frame indication, establish that the monomer power model is a main frame under self.
Wherein, establish, also comprise from described monomer power model as main frame:
Current control module is used to monitor the output current value of monomer power model under self, and the output current value that monitors is carried in the current-sharing information frame sends to the CAN bus in real time;
Establish from described monomer power model, also comprise as slave:
Current regulating module, the regulon of monomer power model under current value that the current-sharing information frame that is used for receiving the carries input self is controlled self output voltage, makes the output current value of self approach the output current value of main frame.
Further, establish, also comprise from described monomer power model as main frame:
Second monitoring module is used for when the main frame that receives the CAN bus transfer detects frame, sends to the CAN bus and carries self address of host response frame;
Establish from described monomer power model, also comprise as slave:
The 3rd monitoring module when being used to receive response of host frame that the CAN bus transfer comes or current-sharing information frame, triggering second sending module and sends the main frame that carries self sequence number to the CAN bus and detect frame, carries out the main frame competition again.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (14)

1, a kind of method that realizes competition mechanism is characterized in that, the monomer power model inserts the CAN bus, and this method also comprises:
Described monomer power model sends competition to the CAN bus and detects frame, afterwards, the monomer power model determines whether to receive the related data frame that the CAN bus transfer is come in the competition time period of setting, if receive, according to the related data frame that receives, determine whether this monomer power model competes competitive target; If do not receive, then think and self competed described competitive target.
According to the method for the described realization competition mechanism of claim 1, it is characterized in that 2, when this method was used for monomer power model competition address, it was the address detected frame that described competition detects frame; Described competitive target is the competition address;
Described monomer power model sends competition detection frame to the CAN bus:
The monomer power model adds 1 and obtains competing the address on default address;
The monomer power model sends to the CAN bus and carries the address detected frame of the competition address that obtains;
The described related data frame that the monomer power model receives is the competition address and self identical address detected frame and/or the address of carrying and self identical address response frame in competition address in competition address of carrying, and described address detected frame carries the sequence number of the monomer power model that sends this address detected frame;
The related data frame that described basis receives, determine whether this monomer power model is competed described competitive target and be:
Determining to receive is the competition address and self identical address detected frame in competition address of carrying, the competition address of carrying and self identical address detected frame and the address of carrying and self identical address response frame in competition address in competition address, the address of still carrying and self identical address response frame in competition address, if the competition address of carrying and self identical address detected frame in competition address, then the comparison of the sequence number of the sequence number that carries according to this address detected frame of receiving and this monomer power model determines whether this monomer power model competes described competition address; If the competition address of carrying and self identical address detected frame address response frame or the address of carrying and self competition address identical address response frame identical with self competition address with the address of carrying in competition address, then this monomer power model is not competed described competition address.
According to the method for the described realization competition mechanism of claim 2, it is characterized in that 3, when competing described competition address, this method further comprises:
This competition flow process is finished as the address of this monomer power model in the competition address that the monomer power model will be competed;
When not competing described competition address, this method further comprises:
The competition address that the monomer power model will not competed adds 1 as the competition address, return step monomer power model and send the address detected frame that carries the competition address to the CAN bus, compete this competition address, up to the competition address, with address, the competition address competed, finish this competition flow process as this monomer power model;
After competing described competition address, when the monomer power model received the address detected frame of CAN bus transfer, this method further comprised:
The competition address that the address detected frame of determining to receive carries is identical with self address, then sends the address response frame that carries self address to the CAN bus, competes the address again.
According to the method for the described realization competition mechanism of claim 1, it is characterized in that 4, when this method was used for monomer power model competition main frame, it was that main frame detects frame that described competition detects frame; Described competitive target is to establish certainly as main frame;
Described monomer power model sends competition detection frame to the CAN bus:
The monomer power model sends the main frame carry self sequence number to the CAN bus and detects frame;
The described related data frame that the monomer power model receives is that main frame detects frame and/or response of host frame;
The related data frame that described basis receives, determine whether this monomer power model is competed competitive target and be:
Determining to receive main frame detects frame, main frame and detects frame and response of host frame, or response of host frame, if main frame detects frame, then detect the comparison of sequence number that frame carries and the sequence number of this monomer power model, determine to establish from as main frame, or slave according to this main frame that receives; If main frame detects frame and response of host frame or response of host frame, then this monomer power model is established certainly as slave.
According to the method for the described realization competition mechanism of claim 4, it is characterized in that 5, this method further comprises:
Main frame monitoring self output current value, and the output current value that monitors is carried in the current-sharing information frame sends to the CAN bus in real time;
The current value that slave carries the current-sharing information frame that receives is imported the regulon of self, controls the output voltage of self, makes the output current value of self approach the output current value of main frame.
According to the method for the described realization competition mechanism of claim 5, it is characterized in that 6, the monomer power model is established certainly as slave, when not receiving the current-sharing information frame in the monitoring time section of setting, this method further comprises;
Send the main frame carry self sequence number to the CAN bus and detect frame, compete main frame again.
According to the method for the described realization competition mechanism of claim 4, it is characterized in that 7, the monomer power model is established oneself as main frame, when receiving the main frame detection frame of CAN bus transfer, further comprise:
Carry self address of host response frame to the transmission of CAN bus.
According to the method for the described realization competition mechanism of claim 4, it is characterized in that 8, the monomer power model is established certainly as main frame, when receiving next response of host frame of CAN bus transfer or current-sharing information frame, this method further comprises:
Send the main frame carry self sequence number to the CAN bus and detect frame, carry out the main frame competition again.
9, a kind of system that realizes competition mechanism is characterized in that, this system comprises: the monomer power model of CAN bus and access CAN bus; Wherein,
The monomer power model, be used for sending competition and detect frame to the CAN bus, afterwards, the monomer power model determines whether receive the related data frame that the CAN bus transfer is come in the competition time period of setting, and when receiving, according to the related data frame that receives, determine whether this monomer power model competes competitive target; When not receiving, think and self competed described competitive target;
The CAN bus is used to transmit competition Frame and the related data frame that the monomer power model is sent.
10, according to the system of the described realization competition mechanism of claim 9, it is characterized in that, when the competition address, it is that address detected frame, described competitive target are the competition address that described competition detects frame, and described monomer power model comprises: competition address determination module, first sending module, first receiver module and first be determination module as a result; Wherein,
Competition address determination module is used for adding 1 and obtains competing the address on default address;
First sending module is used for carrying the address detected frame of the competition address that obtains to the transmission of CAN bus, simultaneously, notifies first receiver module to pick up counting;
First receiver module, be used for timing, and in the competition time period of setting, the competition address that the CAN bus transfer is carried with self under during the identical address detected frame in the competition address of monomer power model and/or the address of the carrying address response frame identical with the competition address of self affiliated monomer power model, receive and be sent to first determination module as a result; When transmission comes, notify first as a result determination module compete described competition address;
First determination module as a result, be used to receive the competition address of carrying with self under during the competition address of monomer power model identical address detected frame, the comparison of the sequence number that carries according to this address detected frame that receives and the sequence number of this monomer power model, determine whether this monomer power model competes described competition address, and in definite result when being, with address, the competition address competed as monomer power model under self, in definite result when not being, the competition address of not competing is added 1 as the competition address, trigger described first sending module; Or when receiving the notice of competing described competition address, with the address of described competition address as monomer power model under self.
According to the system of the described realization competition mechanism of claim 10, it is characterized in that 11, described monomer power model also comprises:
First monitoring module, be used for after competing described competition address, receive the address detected frame that the CAN bus transfer is come, and the address detected frame of determining the to receive competition address of carrying is identical with self address, then trigger competition address determination module, compete the address again.
12, according to the system of each the described realization competition mechanism in claim 9 or 10 or 11, it is characterized in that, when the competition main frame, it is that main frame detects frame, described competitive target is to establish certainly as main frame that described competition detects frame, and described monomer power model comprises: second sending module, second receiver module and second be determination module as a result; Wherein,
Second sending module is used for sending the main frame carry self sequence number to the CAN bus and detects frame, simultaneously, notifies second receiver module to pick up counting;
Second receiver module is used for timing, and in the competition time period of setting, and when the CAN bus transfer comes main frame to detect frame and/or response of host frame, receives and be sent to second determination module as a result; When transmission does not come, indicate second main frame of determination module establishment as a result;
Second determination module as a result is used for receiving main frame when detecting frame, detects the comparison of sequence number that frame carries and the sequence number of this monomer power model according to this main frame that receives, and determines to establish from as main frame, or slave; Or receiving when establishing the main frame indication, establish that the monomer power model is a main frame under self.
13, according to the system of the described realization competition mechanism of claim 12, it is characterized in that, establish, also comprise from described monomer power model as main frame:
Current control module is used to monitor the output current value of monomer power model under self, and the output current value that monitors is carried in the current-sharing information frame sends to the CAN bus in real time;
Establish from described monomer power model, also comprise as slave:
Current regulating module, the regulon of monomer power model under current value that the current-sharing information frame that is used for receiving the carries input self is controlled self output voltage, makes the output current value of self approach the output current value of main frame.
14, according to the system of the described realization competition mechanism of claim 12, it is characterized in that, establish, also comprise from described monomer power model as main frame:
Second monitoring module is used for when the main frame that receives the CAN bus transfer detects frame, sends to the CAN bus and carries self address of host response frame;
Establish from described monomer power model, also comprise as slave:
The 3rd monitoring module when being used to receive response of host frame that the CAN bus transfer comes or current-sharing information frame, triggering second sending module and sends the main frame that carries self sequence number to the CAN bus and detect frame, carries out the main frame competition again.
CN200910092367XA 2009-09-07 2009-09-07 Method and system for realizing competitive mechanism Expired - Fee Related CN101645897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910092367XA CN101645897B (en) 2009-09-07 2009-09-07 Method and system for realizing competitive mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910092367XA CN101645897B (en) 2009-09-07 2009-09-07 Method and system for realizing competitive mechanism

Publications (2)

Publication Number Publication Date
CN101645897A true CN101645897A (en) 2010-02-10
CN101645897B CN101645897B (en) 2012-06-13

Family

ID=41657617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910092367XA Expired - Fee Related CN101645897B (en) 2009-09-07 2009-09-07 Method and system for realizing competitive mechanism

Country Status (1)

Country Link
CN (1) CN101645897B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516570A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Multi-object competition achieving method and system
CN103984306A (en) * 2014-05-08 2014-08-13 大连英微电气有限公司 Double-communication-port power module and communication system for power module
CN106773862A (en) * 2016-12-30 2017-05-31 深圳市英威腾电气股份有限公司 A kind of rectifier combining system and its control method
CN108259389A (en) * 2017-12-06 2018-07-06 中国航空工业集团公司西安航空计算技术研究所 A kind of serial multi-port data exchange chip priority feature emulation mode
CN111464418A (en) * 2020-04-24 2020-07-28 煤炭科学技术研究院有限公司 Automatic networking method and system for power supply of mining lithium ion storage battery
CN113840015A (en) * 2020-06-08 2021-12-24 复旦大学 Automatic address allocation method based on CAN bus
CN114363112A (en) * 2022-03-21 2022-04-15 佛山科学技术学院 Bus networking system and bus arbitration method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6307763B1 (en) * 1999-12-20 2001-10-23 Powerware Corporation Twelve-pulse rectifiers including separate six-pulse controllers and methods of controlling same
EP2101387A1 (en) * 2008-03-10 2009-09-16 ABB Research Ltd Controlling distribution of electrical power
CN101521454B (en) * 2009-03-31 2012-05-23 中兴通讯股份有限公司 Parallel current sharing implementation method and supply units

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516570A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Multi-object competition achieving method and system
CN103516570B (en) * 2012-06-28 2017-10-27 中兴通讯股份有限公司 multi-object competition method and system
CN103984306A (en) * 2014-05-08 2014-08-13 大连英微电气有限公司 Double-communication-port power module and communication system for power module
CN103984306B (en) * 2014-05-08 2016-07-06 大连英微电气有限公司 A kind of communication system for power module
CN106773862A (en) * 2016-12-30 2017-05-31 深圳市英威腾电气股份有限公司 A kind of rectifier combining system and its control method
CN108259389A (en) * 2017-12-06 2018-07-06 中国航空工业集团公司西安航空计算技术研究所 A kind of serial multi-port data exchange chip priority feature emulation mode
CN111464418A (en) * 2020-04-24 2020-07-28 煤炭科学技术研究院有限公司 Automatic networking method and system for power supply of mining lithium ion storage battery
CN113840015A (en) * 2020-06-08 2021-12-24 复旦大学 Automatic address allocation method based on CAN bus
CN114363112A (en) * 2022-03-21 2022-04-15 佛山科学技术学院 Bus networking system and bus arbitration method

Also Published As

Publication number Publication date
CN101645897B (en) 2012-06-13

Similar Documents

Publication Publication Date Title
CN101645897B (en) Method and system for realizing competitive mechanism
CN101401321B (en) Field device control system and method in low power wireless networks
US20100322267A1 (en) Time synchronization system and time synchronization method in train
JP6178386B2 (en) Energy storage system and method for synchronizing energy storage system
CN104516306B (en) The automated system of redundancy
CN105354159A (en) RS485 distributed bus system based control method
CN101743721A (en) Vehicle-mounted communication system
CN104025421A (en) Method and apparatus of master selection logic in ups parallel system
US10741860B2 (en) Fuel cell apparatus, fuel cell system, and control method for fuel cell system
US9411609B2 (en) Electronic control apparatus
CN104378284A (en) Message processing method of gateway
EP3531709B1 (en) Communication method, central control device and individual control device
US8473609B2 (en) Data transmission method and server for substation monitoring control system
KR101135117B1 (en) METHOD AND APPARATUS OF COMPENSATING DELAY OF MESSAGE TRANSMISSION USING PROCESS PRIORITY ADJUSTMENT IN heterogeneous COMMUNICATION
CN106656711B (en) A kind of predefined method of token bus time slot
CN109274564B (en) CAN bus network control method and CAN bus network
CN101026387A (en) Automatic stream control device, control method and its circuit
US9959231B2 (en) Data bus coupler and method of operation
US8566630B2 (en) Apparatus, methods and computer program products supporting automatic network identification for power supplies
CN111316522B (en) Method based on voltage sag in power transmission system
JP6423308B2 (en) Control device and power consumption control method
US20170177533A1 (en) Communication system with train bus architecture
KR101310100B1 (en) Parallel controller using CAN communication
CN111427830A (en) Data processing method and processor
EP3185485B1 (en) Communication system with train bus architecture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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: 20120613

Termination date: 20170907