CN104950829B - A kind of bus system power consumption control method and device - Google Patents
A kind of bus system power consumption control method and device Download PDFInfo
- Publication number
- CN104950829B CN104950829B CN201410125689.0A CN201410125689A CN104950829B CN 104950829 B CN104950829 B CN 104950829B CN 201410125689 A CN201410125689 A CN 201410125689A CN 104950829 B CN104950829 B CN 104950829B
- Authority
- CN
- China
- Prior art keywords
- node
- working group
- packet
- working
- dormancy
- 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.)
- Active
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
- Power Sources (AREA)
- General Engineering & Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Bus Control (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention relates to distributed communication system technical field, there is provided a kind of bus system power consumption control method and device, include when this method is used for bus control equipment:Initial settings information is sent with broadcast mode, so that the packet of each node starts to alternately enter working status or into resting state;With broadcast mode periodicity sending time synchronization information, so that the node in working group corrects the dormancy countdown of itself according to received time synchronization information.The present invention makes respectively to be grouped between working status and resting state by above-mentioned timesharing dormancy mechanism to be switched over, ensure that only some node is in running order in synchronization, remaining node enters resting state, and by receiving time synchronization information realization and the time synchronization of bus control device of bus control device, the time error that generation is accumulated on each node is eliminated with this Time Synchronization Mechanism, time synchronization is ensure that, so as to reach the beneficial effect for not only reducing total system power consumption but also having ensured communication quality.
Description
Technical field
The embodiment of the present invention relates generally to distributed communication system technical field, more particularly, to a kind of bus system power consumption
Control method and device.
Background technology
In distributed communication system, such as 485 bus systems, the quantity of node and the general power of system are often a pair
Contradiction:On the one hand, in order to realize predetermined function, generally require to be distributed many nodes;And on the other hand, the general power of system
Usually there are rated value, namely the summation of node power consumption to be restricted, so the quantity of node again cannot be too many, otherwise can band
Carry out the problem of system load is excessive.
In the prior art, in order to overcome above-mentioned contradiction, a kind of method is:The rated power of increase system, so as to hold
More nodes are received, however, this solution is under many practical application scenes(Such as because it is safe the reason for)It is to be difficult
With realization;Another method is:Individual node power is reduced, to ensure the node total work on the premise of number of nodes is not reduced
Consumption is limited without departing from system power dissipation, or perhaps more nodes can be accommodated on the premise of system power dissipation is certain, however, this
Communication quality can be reduced by reducing the way of individual node power, or even cause to communicate.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of bus system power consumption control method and device, with solution
Certainly on the premise of not reducing communication quality and not increasing system power dissipation, the problem of how accommodating more nodes, or perhaps
On the premise of not reducing communication quality and not reducing number of nodes, the problem of how reducing node total power consumption.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solution:
In a first aspect, an embodiment of the present invention provides a kind of bus system power consumption control method, the bus system includes
Multiple nodes on bus control equipment and bus, the multiple node are divided into two or more packets;The method is used
In the bus control equipment;The described method includes:
Initial settings information is sent with broadcast mode so that each packet start to alternately enter working status as working group or
Become dormancy group into resting state, wherein the initial settings information includes:Each packet is compiled as the order of working group successively
Number, the quantity of the default operating time of working group and the packet;
With broadcast mode periodicity sending time synchronization information, so that the node in working group is according to the received time
Synchronizing information corrects the dormancy count down information of itself, wherein the time synchronization information includes at least:Currently it is used as working group
The mark of packet, the remaining operating time of working group.
Preferably, the method further includes:
Data access is carried out to the node being currently in working group, wherein the working group only includes within the same time
One packet.
Preferably, the described pair of node being currently in working group carries out data access, including:
The node being currently in working group is inquired about in a manner of traversal;
In the query process, when finding effective node, the continuous of predetermined number of times is carried out to the effectively node and is looked into
Ask, wherein the effectively node is that there are the node of effective data transmit-receive;
After node traverses in a working group complete wheel, continue to inquire about effective node in last round of,
When the effectively node no longer there are during effective data transmit-receive, then start a new wheel to the node that is currently in working group into
The process of row inquiry.
Preferably, the described pair of node being currently in working group carries out data access, further includes:
If the node inquired during traversal is non-effective node, institute is no longer inquired about in section of default first specified time
State non-effective node.
Second aspect, an embodiment of the present invention provides a kind of bus system power consumption control method, the bus system includes
Multiple nodes on bus control equipment and bus, the multiple node are divided into two or more packets;The method is used
In the node;The described method includes:
The initial settings information that bus control equipment is sent is received, wherein the initial settings information includes:Each packet according to
The secondary quantity as the serial number of working group, the default operating time of working group and the packet;
The duration that this node should be at resting state is obtained according to the initial settings information;
The sequence being grouped according to belonging to this node in the serial number, and the default operating time of the working group
It should be at the duration of resting state with this node, this node is alternately entered working status or resting state, and according to described total
The actual duration that should be at working status of time synchronization information revised version node that line traffic control device periodically is sent, wherein described
Time synchronization information includes at least:The mark of the current packet as working group, the remaining operating time of working group.
Preferably, it is described this node is alternately entered working status or resting state, including:
When this node is in running order, dormancy countdown is carried out according to the default operating time, and stop described
This node is switched into resting state after the completion of dormancy countdown;
When this node in a dormant state when, the duration that should be at resting state according to described node, which is waken up, to be counted
When, and this node is switched into working status after the completion of the wake-up countdown.
Preferably, the time synchronization information revised version node according to bus control equipment transmission is actual should be at
The duration of working status, including:
The remaining operating time of working group in the time synchronization information received every time, falls the dormancy
Timing is modified.
Preferably, it is described to obtain the duration that this node should be at resting state according to the initial settings information, including:
According to
T2=T1·(n-1)
The duration T2 that described node should be at resting state is obtained, when wherein T1 is the default work of the working group
Long, n is the quantity of the packet.
The third aspect, an embodiment of the present invention provides a kind of bus system power consumption control apparatus, the bus system includes
Multiple nodes on bus control equipment and bus, the multiple node are divided into two or more packets;Described device is used
In the bus control equipment;Described device includes:
Initial settings information transmitting element, for sending initial settings information with broadcast mode, so that each packet starts to hand over
For becoming working group into working status or becoming dormancy group into resting state, wherein the initial settings information includes:Respectively
Packet becomes serial number, the default operating time of working group and the quantity of the packet of working group successively;
Time synchronization information transmitting element, for broadcast mode periodicity sending time synchronization information, so that working group
In node the dormancy count down information of itself is corrected according to the received time synchronization information, wherein the time synchronization believe
Breath includes at least:The mark of the current packet as working group, the remaining operating time of working group.
Preferably, described device further includes:
Data access unit, for carrying out data access to the node being currently in working group, wherein the working group
Only include a packet within the same time.
Preferably, the data access unit includes:
Single ergodic subelement, for being inquired about in a manner of traversal the node being currently in working group, in institute
State in query process, effective querying node subelement is triggered when finding effective node, wherein the effectively node is that there are
Imitate the node of data transmit-receive;
Effective querying node subelement, for carrying out the continuous-query of predetermined number of times to the effectively node;
Subelement is controlled, for after single ergodic subelement takes turns the node traverses complete one in the working group, continuing
Effective querying node subelement is triggered to inquire about effective node in last round of, when the effectively node no longer exist it is effective
During data transmit-receive, then trigger single ergodic subelement and the node being currently in working group is inquired about in a manner of traveling through.
Preferably, the single ergodic subelement is additionally operable to:The node inquired when traversal is non-effective node, then exists
The non-effective node is no longer inquired about in default first specified time section.
Fourth aspect, an embodiment of the present invention provides a kind of bus system power consumption control apparatus, the bus system includes
Multiple nodes on bus control equipment and bus, the multiple node are divided into two or more packets;Described device is used
In the node;Described device includes:
Initial settings information receiving unit, for receiving the initial settings information of bus control equipment transmission, wherein described
Initial settings information includes:Each packet serial number as working group, the default operating time of working group and described successively
The quantity of packet;
Sleep time acquiring unit is answered, resting state is should be at for obtaining this node according to the initial settings information
Duration;
Work and sleep replaces control unit, for the sequence being grouped according to belonging to this node in the serial number, with
And the default operating time of the working group and this node should be at the duration of resting state, this node is alternately entered work shape
State or resting state,
Operating time synchronization unit, for the time synchronization information amendment according to the bus control equipment periodicity sending
This node actually should be at the duration of working status, wherein the time synchronization information includes at least:Currently as working group
The mark of packet, the remaining operating time of working group.
Preferably, when work and sleep alternating control unit is used to make this node alternately enter working status or dormancy shape
During state, it is specifically used for:
When this node is in running order, dormancy countdown is carried out according to the default operating time, and stop described
This node is switched into resting state after the completion of dormancy countdown;When this node in a dormant state when, according to described node should
Duration in a dormant state carries out wake-up countdown, and this node is switched to work shape after the completion of the wake-up countdown
State
Preferably, the operating time synchronization unit is used for:
The remaining operating time of working group in the time synchronization information received every time, falls the dormancy
Timing is modified.
5th aspect, an embodiment of the present invention provides a kind of bus system, the bus system includes bus control equipment
And multiple nodes in bus, the multiple node are divided into two or more packets;
The bus control equipment is used for:
Initial settings information is sent with broadcast mode so that each packet start to alternately enter working status as working group or
Become dormancy group into resting state, wherein the initial settings information includes:Each packet is compiled as the order of working group successively
Number, the quantity of the default operating time of working group and the packet;
With broadcast mode periodicity sending time synchronization information, so that the node in working group is according to the received time
Synchronizing information corrects the dormancy count down information of itself, wherein the time synchronization information includes at least:Currently it is used as working group
The mark of packet, the remaining operating time of working group;
The node is used for:
Receive the initial settings information that bus control equipment is sent;
The duration that this node should be at resting state is obtained according to the initial settings information;
The sequence being grouped according to belonging to this node in the serial number, and the default operating time of the working group
It should be at the duration of resting state with this node, this node is alternately entered working status or resting state, and according to described total
The actual duration that should be at working status of time synchronization information revised version node that line traffic control device periodically is sent.
Technical solution provided in an embodiment of the present invention can include the following benefits:
In embodiments of the present invention, node is divided into multiple packets, and bus control device is sent out by broadcast mode when initial
Initial settings information is sent, each packet is started to alternately enter working status becomes dormancy as working group or into resting state
Group, subsequent bus control device make node in working group according to receiving again with broadcast mode periodicity sending time step information
The time synchronization information correct the dormancy countdown of itself.The embodiment of the present invention makes each point by above-mentioned timesharing dormancy mechanism
Group switches between working status and resting state, ensures that only some node is in running order in synchronization,
Remaining node enters resting state, and is realized and bus control device by receiving the time synchronization information of bus control device
Time synchronization, the time error for accumulating generation on each node because of reasons such as dormancy is eliminated with this Time Synchronization Mechanism, it is ensured that
Time synchronization, so that being finally reached not only reduces total system power consumption, but also has ensured the beneficial effect of communication quality.Particularly exist
Such as under the occasion high to security requirement of colliery, the technical solution that the embodiment of the present invention is provided can meet associated safety
Authentication requesting.
In addition, in embodiments of the present invention, bus control equipment only carries out the node in working group data access, and takes turns
Received and dispatched during inquiry according to node with the presence or absence of valid data and accordingly take different access strategies, to the section for there are valid data to receive and dispatch
The strategy that point is accessed using continuous-query, so as to save bandwidth resources, improves communication quality.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited
Invention.
Brief description of the drawings
Attached drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and for explaining the principle of the present invention together with specification.
Fig. 1 is the exemplary process diagram for the bus system power consumption control method that the embodiment of the present invention one provides;
Fig. 2 is the exemplary process diagram of bus system power consumption control method provided by Embodiment 2 of the present invention;
Fig. 3 is the exemplary process diagram for the bus system power consumption control method that the embodiment of the present invention three provides;
Fig. 4 is the schematic diagram for the bus system power consumption control apparatus that the embodiment of the present invention four is provided;
Fig. 5 is the schematic diagram for the bus system power consumption control apparatus that the embodiment of the present invention five is provided;
Fig. 6 is the schematic diagram for the bus system that the embodiment of the present invention six is provided.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment, belongs to the scope of protection of the invention.
For the comprehensive understanding present invention, numerous concrete details are refer in the following detailed description, but this area skill
Art personnel are it should be understood that the present invention may not need these details and realize.In other embodiments, it is not described in detail known
Method, process, component and circuit, obscured in order to avoid undesirably resulting in embodiment.
Embodiment one
Fig. 1 is the exemplary process diagram for the bus system power consumption control method that the embodiment of the present invention one is provided.The bus
System includes multiple nodes in bus control equipment and bus, and multiple nodes are divided into two or more packets;This method
For bus control equipment.
Shown in Figure 1, this method can include:
S101, with broadcast mode send initial settings information, so that each packet starts to alternately enter working status and becomes work
Make group or become dormancy group into resting state, wherein the initial settings information includes:Each packet is successively as working group
The quantity of serial number, the default operating time of working group and the packet.
The basic ideas of the present embodiment are:Be first multiple packets by all node divisions in bus, these packet alternately into
Enter working status and resting state, total system power consumption is reduced with this.In running order packet is properly termed as working group, place
Dormancy group is properly termed as in the packet of resting state.Meanwhile doze output is set on each node and wakes up timer, lead to
Crossing these timers makes node be changed between working status and resting state.Bus control equipment is used to control all extensions
Node in bus, broadcasts initial settings information at the beginning, to realize to when when each packet work
Dormancy is configured.
After node receives initial configuration information, according to the default operating time of working group, number of packet and from suitable
Sequence numbering in sequence, can be calculated itself work dormancy cycle.For example, it is assumed that there are 3 packets, divide in sequence
It is not packet 1, packet 2 and packet 3, it is 50ms that working group, which presets the efforts time,., then should first work so for packet 1
Make 50ms, then be grouped 2 work when dormancy, be grouped 3 work when also dormancy, so packet 1 work dormancy period it is as follows
Shown in table 1:
Table 1
Work | Dormancy | Dormancy | Work | Dormancy | Dormancy | … |
50ms | 50ms | 50ms | 50ms | 50ms | 50ms | … |
Namely work 50ms, dormancy 2x50ms, then work again 50ms, dormancy 2x50ms ... are so circulated.
Similarly, then should first dormancy 50ms for packet 2(The work of packet 1 at this time), then work 50ms, secondary dormancy
50ms(The work of packet 3 at this time), secondary dormancy 50ms(Take turns to the work of packet 1 again at this time), so packet 2 work dormancy period
It is as shown in table 2 below:
Table 2
Dormancy | Work | Dormancy | Dormancy | Work | Dormancy | … |
50ms | 50ms | 50ms | 50ms | 50ms | 50ms | … |
Namely dormancy 50ms, work 50ms, dormancy 50ms, then secondary dormancy 50ms, work 50ms, dormancy 50ms ... are such
Circulation.
Similarly, be grouped 3 work dormancy period it is as shown in table 3 below:
Table 3
Dormancy | Dormancy | Work | Dormancy | Dormancy | Work | … |
50ms | 50ms | 50ms | 50ms | 50ms | 50ms | … |
Namely dormancy 2x50ms, work 50ms, then secondary dormancy 2x50ms, work 50ms ... are so circulated.
S102, with broadcast mode periodicity sending time synchronization information so that the node in working group is according to received institute
State time synchronization information and correct the dormancy count down information of itself, wherein the time synchronization information includes at least:Current conduct
The mark of the packet of working group, the remaining operating time of working group.
Two timers can be set on node, i.e. doze output and wake-up timer, wherein doze output is saving
Point works when in running order, for carrying out countdown to entering resting state, namely the remaining working time is fallen
Timing;Timer is waken up then on the contrary, working in node dormancy, and countdown is carried out for coming back to working status to node,
Namely countdown is carried out to remaining dormancy time.
Under normal circumstances, the timer of node may produce some accumulated errors, cause the working time not by ideal
Situation realization, or perhaps it is not up to synchronous with system, the remaining operating time information to node is just needed at this time, namely is stopped
Dormancy count down information is modified.The dormancy count down information can be a duration, be, for example,:Node should be laggard in 25ms
Enter resting state;It can also be a moment, be, for example,:Node should divide Z seconds W milliseconds of this moment to enter dormancy by Y in X, right
This present embodiment is simultaneously not limited.
After node in working group receives the time synchronization information of broadcast, when the mark by comparing packet can know this
Between synchronizing information whether be intended for packet belonging to this node, if so, then utilizing the working group in time synchronization information remaining
Dormancy count down information of the operating time to itself is modified.For example, the also surplus 18ms of dormancy countdown that this node is original, and
The work residual time length of time synchronization information instruction is 21ms, then dormancy countdown should be revised as 21ms by this node from 18ms.
The present embodiment makes respectively to be grouped between working status and resting state by above-mentioned timesharing dormancy mechanism to be switched over,
Ensure to only have in synchronization that a collection of node is in running order, remaining enters resting state, and is filled by receiving bus marco
The time synchronization information put realizes the time synchronization with bus control device, with this Time Synchronization Mechanism eliminate on each node because
The reasons such as dormancy and accumulate the time error of generation, it is ensured that time synchronization so that being finally reached both reduces total system power consumption,
The beneficial effect of communication quality has been ensured again.Particularly such as under the occasion high to security requirement such as colliery, the present embodiment
The technical solution provided can meet associated safety authentication requesting.
In addition, in the present embodiment or other some embodiments of the invention, the method can also include:
Data access is carried out to the node being currently in working group, wherein the working group only includes within the same time
There is a packet.In other words, i.e., the same time only has one and is grouped into the working group.
At most only having a packet to enter working status in synchronization under some scenes, in bus becomes working group,
Other packets enter low power operation state as dormancy group;And under other scene, the packet in working group can also
Have it is multiple, i.e., at the same time have it is multiple packet enter working status.In the present embodiment, the preferably same time only has one and is grouped into
The working group.
In the present embodiment or other of the invention some embodiments, the described pair of node being currently in working group is into line number
According to access, may further include:
The node being currently in working group is inquired about in a manner of traversal;
In the query process, when finding effective node, the continuous of predetermined number of times is carried out to the effectively node and is looked into
Ask, wherein the effectively node is that there are the node of effective data transmit-receive;
After node traverses in a working group complete wheel, continue to inquire about effective node in last round of,
When the effectively node no longer there are during effective data transmit-receive, then start a new wheel to the node that is currently in working group into
The process of row inquiry.
In addition, in the present embodiment or other some embodiments of the invention, the described pair of node being currently in working group
Data access is carried out, can also be included:
If the node inquired during traversal is non-effective node, institute is no longer inquired about in section of default first specified time
State non-effective node.Non-effective node is that there is no the node of valid data transmitting-receiving.
In this way, bus control equipment only in working group node carry out data access, and during poll according to node whether
Different access strategies is accordingly taken there are effective data transmit-receive, so as to save bandwidth resources, improves communication news quality.
Embodiment two
Fig. 2 is the exemplary process diagram for the bus system power consumption control method that the embodiment of the present invention two is provided.The bus
System includes multiple nodes in bus control equipment and bus, and multiple nodes are divided into two or more packets;This implementation
Example is corresponding with a upper embodiment, and this method is used for node.
Shown in Figure 2, this method can include:
S201, receive the initial settings information that bus control equipment is sent, wherein the initial settings information includes:Each point
Group becomes serial number, the default operating time of working group and the quantity of the packet of working group successively.
S202, obtain the duration that this node should be at resting state according to the initial settings information.
Such as a upper embodiment for " packet 1, packet 2 and be grouped 3 " example, the node in packet can be according to this
Initial settings information calculates the duration that this node should be at dormancy(2x50ms).
S203, the sequence being grouped according to belonging to this node in the serial number, and the default work of the working group
Make duration and this node should be at the duration of resting state, this node is alternately entered working status or resting state, and according to
The actual duration that should be at working status of time synchronization information revised version node of the bus control equipment periodicity sending, its
Described in time synchronization information include at least:The mark of the current packet as working group, the remaining operating time of working group.
According to serial number, node understands, from the sequence worked alternatively in dormancy mechanism in whole system, to add
The sleep time of the duration that should be at working status known from initial settings information and this node calculated, can
This node is set to alternately enter working status or resting state.Meanwhile when node is in running order, according to time synchronization information
The actual duration that should be at working status of revised version node, that is, correct doze output, to keep synchronous with system.
It is described this node is alternately entered working status or dormancy in the present embodiment or other some embodiments of the invention
State, can include:
When this node is in running order, dormancy countdown is carried out according to the default operating time, and stop described
This node is switched into resting state after the completion of dormancy countdown;
When this node in a dormant state when, the duration that should be at resting state according to described node, which is waken up, to be counted
When, and this node is switched into working status after the completion of the wake-up countdown.
In the present embodiment or other some embodiments of the invention, the time sent according to the bus control equipment
The actual duration that should be at working status of synchronizing information revised version node, can include:
The remaining operating time of working group in the time synchronization information received every time, falls the dormancy
Timing is modified.
It is described that this node is obtained according to the initial settings information in the present embodiment or other some embodiments of the invention
The duration of resting state is should be at, can be included:
According to
T2=T1·(n-1)(a)
The duration T2 that described node should be at resting state is obtained, when wherein T1 is the default work of the working group
Long, n is the quantity of the packet.
Still by embodiment one for " packet 1, packet 2 and exemplified by being grouped 3 " example, n=3 at this time, so each point
Group answer dormancy when it is a length of:(n-1)x50ms=100ms.
In addition it should be pointed out that formula above(a)It is to take turns work-sleep procedure generally speaking for each packet more
, and for first run work-sleep procedure, then there are some particularity, because the dormancy time of some packets may compare T2
It is short, at this time can be according to the following formula
T2’=T1·(m-1)(b)
The duration T2 ' of described node first in a dormant state is obtained, wherein m is this node in the serial number
Sequence.Still by taking table 1~3 as an example, 2 are grouped as seen from Table 2 in dormancy first, not dormancy 100ms, but only dormancy
50ms(But since second wheel work-dormancy, packet 2 will normal dormancy 100ms every time).Packet 2 is grouped successively each
It is 2 as the sequence in the serial number of working group, so according to formula(b)Finally must be grouped 2 first in a dormant state when
A length of 50ms, is consistent with table 2;And for packet 1, according to formula(b)Finally its first in a dormant state when a length of 0,
I.e. packet 1 will take the lead in, as working group, also with table 1 being consistent in each packet first run work-sleep procedure;For packet 3, root
According to formula(b)Finally its when a length of 100ms first in a dormant state is obtained, is also consistent with table 3.
The present embodiment makes respectively to be grouped between working status and resting state by above-mentioned timesharing dormancy mechanism to be switched over,
Ensure to only have in synchronization that a collection of node is in running order, remaining enters resting state, and is filled by receiving bus marco
The time synchronization information put realizes the time synchronization with bus control device, with this Time Synchronization Mechanism eliminate on each node because
The reasons such as dormancy and accumulate the time error of generation, it is ensured that time synchronization so that being finally reached both reduces total system power consumption,
The beneficial effect of communication quality has been ensured again.Particularly such as under the occasion high to security requirement such as colliery, the present embodiment
The technical solution provided can meet associated safety authentication requesting.
Embodiment three
With reference to concrete scene, the present invention will be further described.
Fig. 3 is the exemplary process diagram for the bus system power consumption control method that the embodiment of the present invention three is provided.This implementation
Example is corresponding with above-described embodiment.In the present embodiment, bus system is specially 485 bus systems, and bus control equipment is specific
For host computer.
S301, host computer are grouped the node in bus system.
For example, can be m groups by many node divisions, each node is owned by the identity recognition number of oneself, according to from upper
The distance of machine is from closely to far successively plus one.Rule of classification can be:1st group includes identity recognition number for the 1, section of 1+m, 1+2m ...
Point, the 2nd group includes identity recognition number for the 2, node of 2+m, 2+2m ..., and the 3rd group includes identity recognition number for 3,3+m, 3+2m ...
Node, m groups are m, 2m, 3m ... including identity recognition number.Until all nodes have the ownership packet of oneself.Certainly at it
Every group of number of nodes can not also wait under his scene, it is allowed to occur per the different situation of group node quantity.
S302, host computer broadcast initial settings information.
S303, node receive initial settings information, configuration doze output and wake-up timer.
S304, node enter working status.Pay attention to it being so that node is introduced into working status as an example in the present embodiment.In work
Doze output can be opened by making state lower node.
S305, host computer carry out data access in running order node.
S306, host computer periodic broadcast time synchronization information.
S307, when node time of receipt (T of R) synchronizing information, according to the time synchronization information correct doze output.
Whether then S308, judge doze output, if so, then entering S309, if it is not, then returning to S304.
S309, node enter resting state.Node can open wake-up timer in the dormant state.
S310, judge whether then to wake up timer, if so, S304 is then skipped to, if otherwise returning to S309.
In addition, in the present embodiment, the process that host computer carries out the node in working group data access can be as follows:
(1) it is T3 that host computer, which sets node maximum polling interval timer,.T3, that is, section of default first specified time.If time
It is non-effective node to last the node inquired, then the non-effective node is no longer inquired about within the T3 times.
(2) host computer inquires about the node in working group successively, if having valid data transmitting-receiving when node is queried to, i.e.,
The node belongs to effective node, then preferential inquiry mark will be set to the node.
(3) for there is the node of preferential inquiry mark, continuous-query is carried out by pause poll and to the node.It can set most
It is n times more by the number of continuous-query, N can carry out value, adjustment according to practical situations.
(4) after the node of working group was all queried once, host computer has the section of preferential inquiry mark by inquiry is continued
Point.
(5) host computer determines whether the node of the working group was all queried, if working in the last inquiry
Node in group is all without occurring valid data transmitting-receiving behavior, then host computer will be inquired about successively again within the working time of the group
All nodes of the group, until T3 time-out.
Example IV
Fig. 4 is the schematic diagram for the bus system power consumption control apparatus 400 that the embodiment of the present invention four is provided.The present embodiment with
Embodiment one is corresponding.The bus system includes multiple nodes in bus control equipment and bus, the multiple node quilt
It is divided into two or more packets;Shown in Figure 4, which is used for the bus control equipment, including:
Initial settings information transmitting element 401, for sending initial settings information with broadcast mode, so that each packet starts
Alternately enter working status becomes dormancy group as working group or into resting state, wherein the initial settings information includes:
Each packet becomes serial number, the default operating time of working group and the quantity of the packet of working group successively;
Time synchronization information transmitting element 402, for broadcast mode periodicity sending time synchronization information, so that work
Node in group corrects the dormancy count down information of itself according to the received time synchronization information, wherein the time synchronization
Information includes at least:The mark of the current packet as working group, the remaining operating time of working group.
In the present embodiment or other some embodiments of the invention, described device can also include:
Data access unit, for carrying out data access to the node being currently in working group, wherein the working group
Only comprising a packet within the same time.
In the present embodiment or other some embodiments of the invention, the data access unit can include:
Single ergodic subelement, for being inquired about in a manner of traversal the node being currently in working group, in institute
State in query process, effective querying node subelement is triggered when finding effective node, wherein the effectively node is that there are
Imitate the node of data transmit-receive;
Effective querying node subelement, for carrying out the continuous-query of predetermined number of times to the effectively node;
Subelement is controlled, for after single ergodic subelement takes turns the node traverses complete one in the working group, continuing
Effective querying node subelement is triggered to inquire about effective node in last round of, when the effectively node no longer exist it is effective
During data transmit-receive, then trigger single ergodic subelement and the node being currently in working group is inquired about in a manner of traveling through.
In the present embodiment or other some embodiments of the invention, the single ergodic subelement can be also used for:When time
It is non-effective node to last the node inquired, then no longer inquires about the non-effective section in section of default first specified time
Point.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Embodiment five
Fig. 5 is the schematic diagram for the bus system power consumption control apparatus 500 that the embodiment of the present invention five is provided.The present embodiment with
Embodiment two is corresponding.The bus system includes multiple nodes in bus control equipment and bus, the multiple node quilt
It is divided into two or more packets.Shown in Figure 5, which is used for the node, including:
Initial settings information receiving unit 501, for receiving the initial settings information of bus control equipment transmission, wherein institute
Stating initial settings information includes:Each packet becomes the serial number of working group, the default operating time of working group and institute successively
State the quantity of packet;
Sleep time acquiring unit 502 is answered, dormancy shape is should be at for obtaining this node according to the initial settings information
The duration of state;
Work and sleep replaces control unit 503, for the sequence being grouped according to belonging to this node in the serial number,
And the default operating time of the working group and this node should be at the duration of resting state, this node is alternately entered work
State or resting state;
Operating time synchronization unit 504, for the time synchronization information according to the bus control equipment periodicity sending
The actual duration that should be at working status of revised version node, wherein the time synchronization information includes at least:Currently it is used as work
The mark of the packet of group, the remaining operating time of working group.
In the present embodiment or other some embodiments of the invention, when work and sleep alternating control unit is used to make this
When node alternately enters working status or resting state, it is specifically used for:
When this node is in running order, dormancy countdown is carried out according to the default operating time, and stop described
This node is switched into resting state after the completion of dormancy countdown;When this node in a dormant state when, according to described node should
Duration in a dormant state carries out wake-up countdown, and this node is switched to work shape after the completion of the wake-up countdown
State.
In the present embodiment or other some embodiments of the invention, the operating time synchronization unit can be used for:
The remaining operating time of working group in the time synchronization information received every time, falls the dormancy
Timing is modified.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Embodiment six
Fig. 6 is the schematic diagram for the bus system that the embodiment of the present invention six is provided.Present embodiments provide a kind of total linear system
System, the bus system include multiple nodes 602 in bus control equipment 601 and bus, and the multiple node is divided into
Two or more packets;
The bus control equipment 601 is used for:
Initial settings information is sent with broadcast mode so that each packet start to alternately enter working status as working group or
Become dormancy group into resting state, wherein the initial settings information includes:Each packet is compiled as the order of working group successively
Number, the quantity of the default operating time of working group and the packet;
With broadcast mode periodicity sending time synchronization information, so that the node in working group is according to the received time
Synchronizing information corrects the dormancy count down information of itself, wherein the time synchronization information includes at least:Currently it is used as working group
The mark of packet, the remaining operating time of working group;
The node 602 is used for:
Receive the initial settings information that bus control equipment is sent;
The duration that this node should be at resting state is obtained according to the initial settings information;
The sequence being grouped according to belonging to this node in the serial number, and the default operating time of the working group
It should be at the duration of resting state with this node, this node is alternately entered working status or resting state, and according to described total
The actual duration that should be at working status of time synchronization information revised version node that line traffic control device periodically is sent.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.It is contemplated that cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and including undocumented common knowledge in the art of the invention
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.
Claims (12)
1. a kind of bus system power consumption control method, it is characterised in that the bus system includes bus control equipment and bus
On multiple nodes, the multiple node is divided into two or more packets;The method is used for the bus control equipment;
The described method includes:
Initial settings information is sent with broadcast mode, so that each packet starts to alternately enter working status and becomes working group or entrance
Resting state becomes dormancy group, wherein the initial settings information includes:Each packet becomes serial number, the work of working group successively
The default operating time of work group and the quantity of the packet;
With broadcast mode periodicity sending time synchronization information, so that the node in working group is according to the received time synchronization
The dormancy count down information of Information revision itself, wherein the time synchronization information includes at least:Current point as working group
The mark of group, the remaining operating time of working group;
The method further includes:
Data access is carried out to the node being currently in working group, wherein the working group only includes one within the same time
Packet;
The described pair of node being currently in working group carries out data access, including:
The node being currently in working group is inquired about in a manner of traversal;
In the query process, when finding effective node, the continuous-query of predetermined number of times is carried out to the effectively node, its
Described in effectively node be that there are the node of effective data transmit-receive;
After node traverses in a working group complete wheel, continue to inquire about effective node in last round of, work as institute
Stating effective node, no longer there are during effective data transmit-receive, then start a new wheel to look into the node being currently in working group
The process of inquiry.
2. according to the method described in claim 1, it is characterized in that, the described pair of node being currently in working group carries out data
Access, further include:
If the node inquired during traversal is non-effective node, no longer inquired about in section of default first specified time described non-
Effective node.
3. a kind of bus system power consumption control method, it is characterised in that the bus system includes bus control equipment and bus
On multiple nodes, the multiple node is divided into two or more packets;The method is used for the node;The method
Including:
The initial settings information that bus control equipment is sent is received, wherein the initial settings information includes:Each packet successively into
The default operating time of serial number, working group for working group and the quantity of the packet;
The duration that this node should be at resting state is obtained according to the initial settings information;
The sequence being grouped according to belonging to this node in the serial number, and the default operating time of the working group and sheet
Node should be at the duration of resting state, this node is alternately entered working status or resting state, and according to total line traffic control
The actual duration that should be at working status of time synchronization information revised version node of control equipment periodicity sending, wherein the time
Synchronizing information includes at least:The mark of the current packet as working group, the remaining operating time of working group.
4. according to the method described in claim 3, it is characterized in that, described make this node alternately enter working status or dormancy shape
State, including:
When this node is in running order, dormancy countdown is carried out according to the default operating time, and fall in the dormancy
This node is switched into resting state after the completion of timing;
When this node in a dormant state when, the duration that resting state is should be at according to described node carries out wake-up countdown,
And this node is switched into working status after the completion of the wake-up countdown.
5. according to the method described in claim 4, it is characterized in that, it is described according to the bus control equipment send time it is same
This node of step Information revision actually should be at the duration of working status, including:
The remaining operating time of working group in the time synchronization information received every time, to the dormancy countdown
It is modified.
6. according to the method described in claim 3, it is characterized in that, it is described according to the initial settings information obtain this node should
Duration in a dormant state, including:
According to
T2=T1 (n-1)
The duration T2 that described node should be at resting state is obtained, wherein T1 is the default operating time of the working group, and n is
The quantity of the packet.
7. a kind of bus system power consumption control apparatus, it is characterised in that the bus system includes bus control equipment and bus
On multiple nodes, the multiple node is divided into two or more packets;Described device is used for the bus control equipment;
Described device includes:
Initial settings information transmitting element, for sending initial settings information with broadcast mode so that each packet start alternately into
Enter working status becomes dormancy group as working group or into resting state, wherein the initial settings information includes:Each packet
Become serial number, the default operating time of working group and the quantity of the packet of working group successively;
Time synchronization information transmitting element, for broadcast mode periodicity sending time synchronization information, so that in working group
Node corrects the dormancy count down information of itself according to the received time synchronization information, wherein the time synchronization information is extremely
Include less:The mark of the current packet as working group, the remaining operating time of working group;
Described device further includes:
Data access unit, for carrying out data access to the node being currently in working group, wherein the working group is same
Only include a packet in one time;
The data access unit includes:
Single ergodic subelement, for being inquired about in a manner of traversal the node being currently in working group, is looked into described
During inquiry, effective querying node subelement is triggered when finding effective node, wherein the effectively node is there are significant figure
According to the node of transmitting-receiving;
Effective querying node subelement, for carrying out the continuous-query of predetermined number of times to the effectively node;
Subelement is controlled, for after single ergodic subelement takes turns the node traverses complete one in the working group, continuing to trigger
Effective querying node subelement inquires about effective node in last round of, and no longer there are valid data for node when described effectively
During transmitting-receiving, then trigger single ergodic subelement and the node being currently in working group is inquired about in a manner of traveling through.
8. device according to claim 7, it is characterised in that the single ergodic subelement is additionally operable to:Looked into when traversal
The node ask is non-effective node, then no longer inquires about the non-effective node in section of default first specified time.
9. a kind of bus system power consumption control apparatus, is characterized in that, the bus system is included in bus control equipment and bus
Multiple nodes, the multiple node is divided into two or more packets;Described device is used for the node;Described device bag
Include:
Initial settings information receiving unit, for receiving the initial settings information of bus control equipment transmission, wherein described initial
Configuration information includes:Each packet serial number as working group, the default operating time of working group and packet successively
Quantity;
Answer sleep time acquiring unit, for according to the initial settings information obtain this node should be at resting state when
It is long;
Work and sleep replaces control unit, for the sequence being grouped according to belonging to this node in the serial number, Yi Jisuo
State the default operating time of working group and this node should be at the duration of resting state, make this node alternately enter working status or
Resting state;
Operating time synchronization unit, for correcting this section according to the time synchronization information of the bus control equipment periodicity sending
Point actually should be at the duration of working status, wherein the time synchronization information includes at least:The currently packet as working group
Mark, the remaining operating time of working group.
10. device according to claim 9, it is characterised in that when work and sleep alternating control unit is used to make this
When node alternately enters working status or resting state, it is specifically used for:
When this node is in running order, dormancy countdown is carried out according to the default operating time, and fall in the dormancy
This node is switched into resting state after the completion of timing;When this node in a dormant state when, should be at according to described node
The duration of resting state carries out wake-up countdown, and this node is switched to working status after the completion of the wake-up countdown.
11. device according to claim 10, it is characterised in that the operating time synchronization unit is used for:According to each
The remaining operating time of working group in the time synchronization information received, is modified the dormancy countdown.
12. a kind of bus system, it is characterised in that the bus system includes multiple sections in bus control equipment and bus
Point, the multiple node are divided into two or more packets;
The bus control equipment is used for:
Initial settings information is sent with broadcast mode, so that each packet starts to alternately enter working status and becomes working group or entrance
Resting state becomes dormancy group, wherein the initial settings information includes:Each packet becomes serial number, the work of working group successively
The default operating time of work group and the quantity of the packet;
With broadcast mode periodicity sending time synchronization information, so that the node in working group is according to the received time synchronization
The dormancy count down information of Information revision itself, wherein the time synchronization information includes at least:Current point as working group
The mark of group, the remaining operating time of working group;
The bus control equipment is additionally operable to:
Data access is carried out to the node being currently in working group, wherein the working group only includes one within the same time
Packet;
The described pair of node being currently in working group carries out data access, including:
The node being currently in working group is inquired about in a manner of traversal;
In the query process, when finding effective node, the continuous-query of predetermined number of times is carried out to the effectively node, its
Described in effectively node be that there are the node of effective data transmit-receive;
After node traverses in a working group complete wheel, continue to inquire about effective node in last round of, work as institute
Stating effective node, no longer there are during effective data transmit-receive, then start a new wheel to look into the node being currently in working group
The process of inquiry;
The node is used for:
Receive the initial settings information that bus control equipment is sent;
The duration that this node should be at resting state is obtained according to the initial settings information;
The sequence being grouped according to belonging to this node in the serial number, and the default operating time of the working group and sheet
Node should be at the duration of resting state, this node is alternately entered working status or resting state, and according to total line traffic control
The actual duration that should be at working status of time synchronization information revised version node of control equipment periodicity sending.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410125689.0A CN104950829B (en) | 2014-03-31 | 2014-03-31 | A kind of bus system power consumption control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410125689.0A CN104950829B (en) | 2014-03-31 | 2014-03-31 | A kind of bus system power consumption control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104950829A CN104950829A (en) | 2015-09-30 |
CN104950829B true CN104950829B (en) | 2018-04-27 |
Family
ID=54165553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410125689.0A Active CN104950829B (en) | 2014-03-31 | 2014-03-31 | A kind of bus system power consumption control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104950829B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106330641B (en) * | 2016-08-30 | 2019-10-22 | 深圳供电局有限公司 | Ultra-low power consumption CAN network communication method |
CN107249210B (en) * | 2017-06-26 | 2023-06-09 | 欧普照明股份有限公司 | Wireless device communication method and system |
CN108768573B (en) * | 2018-04-13 | 2020-02-21 | 北京东土科技股份有限公司 | Clock synchronization method and device |
CN110443375B (en) * | 2019-08-16 | 2021-06-11 | 深圳前海微众银行股份有限公司 | Method and device for federated learning |
CN113985837B (en) * | 2021-09-27 | 2023-10-13 | 上海钧正网络科技有限公司 | Bus control method, device and equipment |
CN113986803B (en) * | 2021-10-21 | 2024-05-28 | 山东云海国创云计算装备产业创新中心有限公司 | I2C bus control method, device and storage medium |
CN117176200A (en) * | 2022-05-26 | 2023-12-05 | 华为技术有限公司 | Node scheduling method and device based on PLC and PLC system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1376960A1 (en) * | 2002-06-29 | 2004-01-02 | Deutsche Thomson-Brandt Gmbh | Data link layer device with two transmission modes for a serial communication bus |
CN100356325C (en) * | 2005-03-30 | 2007-12-19 | 中国人民解放军国防科学技术大学 | Large-scale parallel computer system sectionalized parallel starting method |
US8266466B2 (en) * | 2007-05-21 | 2012-09-11 | Cisco Technology, Inc. | Globally synchronized timestamp value counter |
CN101494900A (en) * | 2009-01-09 | 2009-07-29 | 吴鑫 | Method of synchronization of wireless sensing network node |
CN103327586B (en) * | 2013-05-29 | 2019-03-01 | 东南大学 | The synchronous method of wireless sensing net node suspend mode low power consumption protocol |
-
2014
- 2014-03-31 CN CN201410125689.0A patent/CN104950829B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104950829A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104950829B (en) | A kind of bus system power consumption control method and device | |
CN103369597B (en) | The sending method and device of radio frames | |
CN105657639B (en) | Dual-mode equipment and its method realized while communicated | |
CN103096439B (en) | Dispatching method, data transmission method, access control website and the website of website | |
US8423657B2 (en) | Time slot allocation method for reducing consumption of energy in wireless sensor network | |
CN105532065B (en) | System and method for OFDMA PS-Poll transmission | |
WO2014074071A1 (en) | Access points, radio communication devices, methods for controlling an access point, and method for controlling a radio communication device | |
CN102946631B (en) | A kind of based on beacon frame synchronously with the MAC node layer dispatching method of communicating by letter asynchronous | |
CN1520100A (en) | Appts. and method for reducing power consumption in ad-hoc network | |
CN102076067A (en) | Sleeping method, device and equipment of station and communication system | |
CN103874172B (en) | Data transmission method and system in wireless body area network | |
CN107135534A (en) | Communication means and device for WLAN | |
CN107027161A (en) | The method of data transfer, access point and website in a kind of WLAN | |
CN107231648A (en) | A kind of information processing method and terminal | |
CN102006670B (en) | Dynamic polling medium access control method of emergency response supported sensor network | |
CN103298038A (en) | IEEE 802.11 WLAN (wireless local area network) low-delay energy-saving method | |
CN103619057B (en) | 802.15.4e wireless device low-power consumption network-building methods based on 4 20mA loops power takings | |
CN114650612A (en) | LoRa networking method based on carrier sensing technology | |
US9462463B2 (en) | Method of controlling states of mobile node and verifier therein for receiving secret key | |
CN106330641B (en) | Ultra-low power consumption CAN network communication method | |
CN106922035A (en) | A kind of transmission opportunity control method and device | |
CN104660524B (en) | The channel access control method of a kind of power line communication network and system | |
CN105578609A (en) | Method and system for realizing unauthorized carrier wave utilization right competition, and competition rollback method | |
Vazquez‐Gallego et al. | Combining distributed queuing with energy harvesting to enable perpetual distributed data collection applications | |
Mohiuddin et al. | EEDF-MAC: An energy efficient MAC protocol for wireless sensor networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder |
Address after: 100176 room 502-1, floor 5, building 2, courtyard 10, keguyi street, Beijing Economic and Technological Development Zone, Daxing District, Beijing Patentee after: NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co.,Ltd. Address before: 100081, Beijing, Haidian District sorghum Bridge oblique Street No. 34, building 212, room 19 Patentee before: NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co.,Ltd. |
|
CP02 | Change in the address of a patent holder |