CN101964724A - Energy conservation method of communication single plate and communication single plate - Google Patents

Energy conservation method of communication single plate and communication single plate Download PDF

Info

Publication number
CN101964724A
CN101964724A CN 201010270089 CN201010270089A CN101964724A CN 101964724 A CN101964724 A CN 101964724A CN 201010270089 CN201010270089 CN 201010270089 CN 201010270089 A CN201010270089 A CN 201010270089A CN 101964724 A CN101964724 A CN 101964724A
Authority
CN
China
Prior art keywords
board
communication single
processor
carry out
state information
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
CN 201010270089
Other languages
Chinese (zh)
Other versions
CN101964724B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2010102700895A priority Critical patent/CN101964724B/en
Publication of CN101964724A publication Critical patent/CN101964724A/en
Application granted granted Critical
Publication of CN101964724B publication Critical patent/CN101964724B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the invention provides an energy conservation method of a communication single plate and a communication method, which aims to save energy while ensuring the stability of communication devices. The method comprises the following steps: when business processing of the communication single plate is in an idle mode, a processor is switched to a dormant state; if the processor in the dormant state is waken up by interrupt signals, the interrupt signals are judged whether to carry out timer interruption or not; if the interrupt signals carry out the timer interruption, then the processor confirms whether fault treatment needs to be carried out on the communication single plate or not, when the fault treatment does not need to be carried out on the communication single plate, the processor is switched back to the dormant state; and when the fault treatment needs to be carried out on the communication single plate, the processor exists from the dormant state and carries out the fault treatment. The method and the communication plate of the invention can find potential faults while being in the dormant state and fast make corresponding response, thereby ensuring the stability of the system.

Description

The power-economizing method of communication single-board and a kind of communication single-board
Technical field
The present invention relates to the communications field, relate in particular to power-economizing method and a kind of communication single-board of communication single-board.
Background technology
Generally speaking, the business function of communication equipment is mainly finished by processor, and power consumption of processing unit accounts for the larger proportion of equipment power dissipation.When traffic carrying capacity is big, the occupancy height of processor, equipment power dissipation is big, on the contrary then equipment power dissipation is little.Because the energy consumption of communication equipment mainly comes from the energy consumption of processor, it is that processor is carried out frequency reducing or dormancy that industry proposes a kind of dynamic energy consumption administrative skill commonly used in view of the above.So-called processor frequency reducing is meant: make the operating frequency of processor follow the traffic carrying capacity variation, when traffic carrying capacity is low, reduce the power consumption of processor by the operating frequency that reduces processor, for example, processor such as x86, PowerPC is all supported this function, and x86 can also reduce voltage simultaneously, and further realization is energy-conservation.So-called processor dormancy is meant: when processor has Business Processing, does not enter resting state, out of service when idle, perhaps, when traffic carrying capacity is very little with business migration to other equipment, and this equipment enters resting state, thereby realizes by a larger margin energy-conservation.For example, the power consumption of a communication equipment when traffic carrying capacity is maximum is 110W, and the power consumption of processor when entering resting state has only 15W, reduced 95W, and the power consumption range of decrease of communication equipment was 86% when the power consumption of communication equipment was worked with respect to processor during processor sleep state.
Except the power consumption index, in the communications field, another index that need pay close attention to is the reliability of equipment.Since the reliability of communication equipment determined communication equipment can be under specified criteria, finish intended function in preset time, therefore, in the communications field, can not be only for energy-conservation and sacrifice reliability.In actual applications, the usually mutual contradiction of the reliability of energy-conservation demand and assurance communication equipment for example, in order to improve the reliability of communication equipment, need do redundancy backup between equipment, yet this way can increase power consumption; Perhaps, in order to save electrical source consumption, may need to improve the temperature of air conditioner in machine room, yet communication equipment can increase failure rate because computer room temperature is high, the result has reduced reliability.
In order to guarantee reliability, require communication equipment in time to detect potential faults, isolate, recover or alarm, and notify the attendant to handle.Conventional means is regularly to carry out the fault example to survey, and promptly the processor of communication equipment is carried out a timed task, will carry out one-time detection to communication equipment at set intervals in the Business Processing process, for example, memory is done readwrite tests.If do not pinpoint the problems, then continue to carry out professional; If found problem, then carry out switching services and report and alarm.
From the relation between communication equipment energy-saving and the reliability, reach method for saving energy for above-mentioned prior art by processor frequency reducing or dormancy, though can also continue operation after the processor frequency reducing, and carry out some regularly faults example survey tasks, but energy-saving effect is obvious inadequately, generally can reduce by 20% to 30% power consumption, though and processor dormancy energy-saving effect highly significant, but processor can not be carried out any instruction this moment, can't carry out example to equipment and survey.If in sleep procedure, fault (for example, needing fault alarm reporting or switching services etc.) has taken place in communication equipment, and then processor can not in time be handled.
Summary of the invention
The embodiment of the invention provides power-economizing method and a kind of communication single-board of communication single-board, to take into account the reliability that guarantees communication equipment in energy-conservation.
The embodiment of the invention provides a kind of power-economizing method of communication single-board, comprising: when the Business Processing of communication single-board was in idle condition, processor changed resting state over to; If the described processor that is in resting state is waken up by interrupt signal, judge then whether described interrupt signal is regularly to interrupt; If being described timing, described interrupt signal interrupts, then described processor interrupts carrying out the survey of fault example according to described timing and/or state information sends, whether make described communication single-board be determined needs to carry out troubleshooting, when described communication single-board does not need to carry out troubleshooting, change resting state once more over to; When described communication single-board need carry out troubleshooting, withdraw from resting state and carry out troubleshooting.
The embodiment of the invention provides a kind of communication single-board, comprises processor and interrupt generator; Described processor, when the Business Processing of communication single-board is in idle condition, change resting state over to, if the described processor that is in resting state is waken up by interrupt signal, judge then whether described interrupt signal is regularly to interrupt, if being described timing, described interrupt signal interrupts, then described processor interrupts carrying out the survey of fault example according to described timing and/or state information sends, whether make described communication single-board be determined needs to carry out troubleshooting, when described communication single-board does not need to carry out troubleshooting, change resting state once more over to, when described communication single-board need carry out troubleshooting, withdraw from resting state and carry out troubleshooting; Described interrupt generator is used to produce interrupt signal.
From the invention described above embodiment as can be known, owing to the timing interruption is that artificial the setting produces, therefore, regularly can be provided with longlyer the blanking time of interruption generation; On the other hand, it is very short that processor is carried out the required by task time of regularly interrupting correspondence, and processor can be in resting state for a long time, thereby makes that the power consumption of communication single-board is very little.Meanwhile, carry out the task of regularly interrupting correspondence and can in time find potential faults, make respective response fast, thereby guaranteed the reliability of system.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, to do to introduce simply to the accompanying drawing of required use in prior art or the embodiment description below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing from these accompanying drawings.
Fig. 1 is the power-economizing method basic procedure schematic diagram of a kind of communication single-board of providing of the embodiment of the invention;
Fig. 2 is the simple contrast schematic diagram of the communication single-board that provides of embodiment of the invention power consumption in resting state and when regularly interrupting;
Fig. 3 is the power-economizing method basic procedure schematic diagram of a kind of communication single-board of providing of another embodiment of the present invention;
Fig. 4 is the power-economizing method basic procedure schematic diagram of a kind of communication single-board of providing of another embodiment of the present invention;
Fig. 5 is a kind of communication single-board basic logical structure schematic diagram that the embodiment of the invention provides;
Fig. 6 is a kind of communication single-board basic logical structure schematic diagram that another embodiment of the present invention provides;
Fig. 7 is that the embodiment of the invention adopts PLD to realize interrupting the logical construction schematic diagram of convergence module;
Fig. 8 is that another embodiment of the present invention adopts PLD to realize interrupting the logical construction schematic diagram of convergence module.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Seeing also accompanying drawing 1, is the power-economizing method basic procedure schematic diagram of a kind of communication single-board of providing of the embodiment of the invention, mainly comprises step:
S101, when the Business Processing of communication single-board was in idle condition, processor changed resting state over to.
In embodiments of the present invention, processor (CPU) can regularly obtain the CPU usage of oneself by operating system, and then judges whether the Business Processing of communication single-board is in idle condition.For example, if CPU usage is 0, can judge that then the Business Processing of communication single-board is in idle condition, processor does not need to carry out and professional related task (for example, call treatment, routing forwarding etc.), and at this moment, processor can change resting state over to.
Need to prove that in embodiments of the present invention, the resting state of processor is that finger processor stops to carry out any instruction, the closing internal function unit, and must be by interrupting just waking and get back to normal operating condition up.Therefore, from the power consumption angle, the resting state of processor is a kind of power save mode of low-power consumption.
S102 is waken up by interrupt signal if be in the processor of resting state, judges then whether this interrupt signal is regularly to interrupt.
In embodiments of the present invention, interrupt signal source that processor receives or the reason that produces are varied, wherein, regularly interrupt being considered as a kind of artificial controlled interruption.In embodiments of the present invention, can be by the default time value of timer, for example, some seconds, this default time value of every interval then produced an interruption, sends an interrupt signal to processor, and this interruption is exactly regularly to interrupt.Need to prove that the blanking time that default generation is regularly interrupted is generally much larger than handling the time (being generally several milliseconds) that spent of regularly interrupting, so, be unlikely to one and regularly interrupt still being untreated and and then need to respond next regularly interruption.In other words, the time that the timing interruption needs processor to handle is very short, processor can be in resting state for a long time, thereby makes that the power consumption of communication single-board is very little, can consult the simple contrast schematic diagram of communication single-board that Fig. 2 provides power consumption in resting state and when regularly interrupting.
In embodiment provided by the invention, regularly interrupt and can trigger by the processor timer internal, also can trigger by external timer.Before changing resting state over to, processor can interrupt the moment of generation so that timing to be set to its timer internal time-write interval, also can interrupt the moment of generation to the external timer time-write interval so that timing to be set by local bus.Timer for example, with the timing of subtraction mode, when the value of timer is kept to 0, triggers regularly and interrupts with subtraction counting or the timing of plus coujnt mode; With the timing of plus coujnt mode, when the value of timer increases to the value of setting, trigger regularly and interrupt.
S103, if interrupt signal is regularly interruption, then processor interrupts carrying out survey of fault example and/or state information transmission according to timing, and whether make communication single-board be determined needs to carry out troubleshooting, when communication single-board does not need to carry out troubleshooting, change resting state once more over to; When communication single-board need carry out troubleshooting, withdraw from resting state and carry out troubleshooting.
As previously mentioned, in order to guarantee the reliability of communication single-board communication, need processor that communication single-board is carried out predetermined example and survey task, this predetermined example survey behavior is exactly that the fault example is surveyed, for example, memory is carried out readwrite tests, clock, temperature, voltage are carried out some state verifications; Also can be that the back test is read and write in certain some position, perhaps also can be that network interface detects.In embodiments of the present invention, processor is exactly to survey according to regularly interrupting carrying out the fault example.
Because it is a kind of active behavior of processor that the fault example is surveyed, and will inevitably not find the fault of communication single-board, therefore, the possibility of result that the fault example is surveyed is that communication single-board is normal, also may be that communication single-board is unusual.The result who surveys when fault example is for just often, and then processor changes resting state once more over to; If when the result that the fault example is surveyed was unusual, then processor withdrawed from resting state and carries out troubleshooting, meanwhile, reports fault warning immediately.
In another embodiment of the present invention, be regularly to interrupt if judge interrupt signal, processor also can send according to regularly interrupting execution state information, and whether this communication single-board is determined needs to carry out troubleshooting.
Concrete grammar can be, the communication single-board to the opposite end transmits the special message of a class, and for example, heartbeat message is with the state (for example, whether also working) of the communication single-board oneself of notice opposite end; Also can in message (can not limit heartbeat message), transmit some state informations, allow the opposite end communication single-board know the state of oneself.State information can be the information that obtains after being surveyed by the fault example.When the local terminal communication single-board does not need to carry out troubleshooting, change resting state once more over to; When communication single-board need carry out troubleshooting, withdraw from resting state and carry out troubleshooting.
In another embodiment of the present invention, can also be with two kinds of method combinations, promptly processor had not only carried out that the fault example is surveyed but also send state information is given another communication single-board (also can add the result after the fault example is surveyed in the state information).When processor interrupts carrying out the survey of fault example according to described timing and execution state information sends simultaneously, when carrying out the fault routine test result is another communication single-board of undesired or receiving status information when determining that according to state information communication single-board breaks down, and determines to carry out troubleshooting; When carrying out the fault routine test result and determine that according to state information described communication single-board does not break down, determine not need to carry out troubleshooting for another communication single-board normal and that receive described state information.
In other embodiment provided by the invention, judging interrupt signal when processor is not when regularly interrupting, and then processor directly changes normal operating conditions over to, and is specific as follows:
If being the transmitting-receiving of equipment, interrupt signal interrupts, for example, the interruption that communication single-board transmitting-receiving message produces, then showing has service needed to handle, and processor can be return normal condition, begins to handle the communication single-board business;
If interrupt signal is because the outside interruption that produces unusually, for example, the interruption that ambient temperature produces above the opposite end communication single-board fault of threshold value, any one road loss of clock or communication single-board, then processor returns to normal condition, reports fault warning.
As previously mentioned, the interrupt source that can produce interruption is more, therefore, in another embodiment of the present invention, the processor that is in resting state is waken up by interrupt signal, is judging that whether this interrupt signal is also to comprise the priority of judging interrupt signal when regularly interrupting, promptly, when a plurality of interrupt signals were sent to processor simultaneously, then processor was further judged the priority of these interrupt signals, the interrupt signal that priority treatment priority is high.
Need to prove, in the above-described embodiments, interrupt signal can be received by a plurality of interruption input pins (promptly can receive the pin of handling interrupt signal) by processor, and interrupt signal also can be interrupted input pin by one of processor and be received after interrupting convergence module (as being realized by programmable logic device).Interrupt signal is interrupted input pin by one of processor and is received the pin resource that can save processor after converging, interrupt the situation of input pin inadequate resource (it is not enough promptly to interrupt input pin) with reply.
From the invention described above embodiment as can be known, because processor is being in resting state in the long period relatively, therefore can significantly reduce the power consumption of communication single-board, meanwhile, regularly interrupt mechanism is taken into account the fault example survey of communication single-board, in time finds potential faults, has guaranteed the reliability of system.And when problem such as loss of clock, ambient temperature are too high, opposite end communication single-board fault occurring, processor is waken up immediately, response fast, thus further improved the reliability of system.
Seeing also accompanying drawing 3, is the power-economizing method of a kind of communication single-board of providing of another embodiment of the present invention.In the present embodiment, interrupt signal is sent to processor after being converged by programmable logic device (PLD, Programmable Logic Device), can reduce like this processor is interrupted taking of input pin, perhaps, when processor interruption input pin is not enough, still can realize the present invention.Method shown in Figure 3 mainly comprises following flow process:
S301 judges whether the Business Processing of communication single-board is in idle condition.
For example, can judge whether the Business Processing of current communication single-board is in idle condition by the occupancy of checking processor.
S302, processor changes resting state over to.
If the Business Processing of communication single-board is in idle condition, then processor changes resting state over to.The length of dormancy can be determined to the timer time-write interval by processor.In the present embodiment, timer can be a timing unit in the PLD, in case the time-write interval then is equivalent to be provided with the moment of regularly interrupting generation.Particularly, processor to the timer time-write interval of PLD data, is provided with the moment of waking up by local bus, and timer picks up counting then; Perhaps, regularly interrupt also can realizing, set timing, regularly processor is waken up from resting state by the value of the register that is provided with by the processor timer internal.Timer can be counted (time-write interval is not) with subtraction at 0 o'clock or the plus coujnt mode picks up counting.
S303 has judged whether to interrupt producing, if then execution in step S304 if not, then continues to wait for and interrupts producing.
Particularly, can set to be judged as when high level (" 1 ") occurring on the interruption input pin of processor and interrupt producing, be judged as during low level (" 0 ") and do not interrupt producing, perhaps, be judged as when low level (" 0 ") occurring on the interruption input pin of setting processor and interrupted producing, be judged as during high level (" 1 ") and do not interrupt producing, the present invention does not add restriction to this.
S304, wake up process device, beginning handling interrupt.
S305 reads the value of register among the PLD.
In the present embodiment, different register value among the corresponding PLD of different interruption.For example, can for regularly interrupt, because the interruption that communication single-board transmitting-receiving message produces, because loss of clock, ambient temperature are provided with different register values above the interruption that the opposite end communication single-board fault of threshold value or communication single-board produces.
S306 judges whether to regularly interrupting.
S307, if, then carry out routine survey task, if not, change S309 over to.
S308 surveys by example, and judging has fault-free, if do not have, then changes S302 over to, that is, processor changes resting state over to, otherwise, change S309 over to.
S309 handles the professional of communication single-board or reports fault warning.
Particularly, if example is surveyed the result who carries out fault (the "Yes" branch of S308) is arranged, then processor is carried out report and alarm;
If not regularly interrupt (the "No" branch of S307), then may be because the interruption that communication single-board transmitting-receiving message produces on the one hand, then processor need be handled the communication single-board business, may be that then processor need report fault warning owing to loss of clock, ambient temperature surpass the interruption that the opposite end communication single-board fault of threshold value or communication single-board produces on the other hand.
Seeing also accompanying drawing 4, is the power-economizing method of a kind of communication single-board of providing of another embodiment of the present invention.In the present embodiment, the inner integrated timer of processor, except can to wherein write timing at interval, when processor entered resting state, timer still can be worked, and need be at PLD indoor design timer.
And, in the present embodiment, the interruption input pin of processor is more, can distribute to a plurality of different exterior interrupt, for example, because the interruption that communication single-board transmitting-receiving message produces, because the interruption that loss of clock, ambient temperature produce above the opposite end communication single-board fault of threshold value or communication single-board etc.Each interrupt source can be corresponding to different interrupt handling routines, so, only need directly with the said external interrupt signal one by one the external interrupt input pin of input processor get final product, do not need PLD that interrupt signal is converged.Method shown in Figure 4 mainly comprises following flow process:
S401 judges whether the Business Processing of communication single-board is in idle condition.
For example, can judge whether the Business Processing of current communication single-board is in idle condition by the occupancy of checking processor.
S402, processor changes resting state over to.
If the Business Processing of communication single-board is in idle condition, then processor changes resting state over to.The length of dormancy can be determined to the time interval that its inner integrated timer writes by processor.In case the time-write interval then is equivalent to be provided with the moment of regularly interrupting generation.Timer can be counted (time-write interval is not) with subtraction at 0 o'clock or the plus coujnt mode picks up counting.
S403 has judged whether interrupt to produce, interrupts producing if having, and execution in step S404 then, otherwise, continue to wait for the generation of interrupting.
Particularly, can set and occur high level (" 1 ") Shi Weiyou on the middle fracture of processor and interrupt producing, for interrupting generation, processor can be judged in view of the above during low level (" 0 ").
S404, wake up process device, beginning handling interrupt.
S405 judges whether to regularly interrupting.
S406, if, then carry out routine survey task, if not, change S408 over to.
S407 surveys by example, and judging has fault-free, if do not have, then changes S402 over to, that is, processor changes resting state over to, if having, changes S408 over to.
S408 handles the professional of communication single-board or reports fault warning.
Particularly, if example is surveyed the result who carries out fault (the "Yes" branch of S407) is arranged, then processor is carried out report and alarm;
If not regularly interrupt (the "No" branch of S406), then may be because the interruption that communication single-board transmitting-receiving message produces on the one hand, then processor need be handled the communication single-board business, may be that then processor need report fault warning owing to loss of clock, ambient temperature surpass the interruption that the opposite end communication single-board fault of threshold value or communication single-board produces on the other hand.
See also Fig. 5, a kind of communication single-board basic logical structure schematic diagram that the embodiment of the invention provides.For convenience of explanation, only show the part relevant with the embodiment of the invention.This communication single-board comprises processor 501 and interrupt generator 502, wherein:
Interrupt generator 502 is used to produce interrupt signal;
Particularly, interrupt generator 502 also can be understood as an interrupt source for producing the unit component of interrupt signal.For example, interrupt generator 502 can be timer (being used for producing regularly interrupt signal), perhaps clock detection unit when breaking down (be used to detect clock produce interrupt signal), perhaps temperature detecting unit (be used to detect temperature and interrupt signal occurs producing when unusual), perhaps professional performance element (being used for when detecting business, producing interrupt signal), perhaps other unit components.
Need to prove, in the above-mentioned interrupt generator some can be that processor is inner integrated, perhaps be independent of the unit component of processor, for example, can produce the timer that regularly interrupts if processor is inner integrated, then can produce regularly and interrupt (can certainly not use inner timer) as interrupt generator by this timer; If the inner not integrated timer (perhaps not wanting to use timer internal) of processor, then can pass through external devices, for example, programmable logic device (PLD, Programmable Logic Device) produce, perhaps the integrated timer of other chip internals produces.In like manner, other interrupt generators also can be that processor is inner integrated or by other and independently unit component generation of processor.
Processor 501, when the Business Processing of communication single-board is in idle condition, change resting state over to, if being in the processor of resting state is waken up by interrupt signal, judge then whether this interrupt signal is regularly to interrupt, if interrupt signal is regularly to interrupt, then processor 501 regularly interrupts carrying out survey of fault example and/or state information transmission according to this, whether communication single-board is determined needs to carry out troubleshooting, when communication single-board does not need to carry out troubleshooting, change resting state once more over to, when communication single-board need carry out troubleshooting, withdraw from resting state and carry out troubleshooting.
In the present embodiment, interrupt signal can be the interrupt signal that produces when regularly interrupting generation, it also can be the interruption that communication single-board transmitting-receiving message produces, or owing to external fault or the unusual interruption that produces, for example, loss of clock, ambient temperature surpass the opposite end communication single-board fault of threshold value or communication single-board and the interruption that produces.
If the pin aboundresources of processor 501 or do not consider the situation that takies of pin resource, processor 501 can directly link to each other with interrupt generator, receives interrupt signals by a plurality of pins.
At processor interruption input pin inadequate resource or in order to save the interruption input pin resource of processor, so that processor is vacateed more interruption input pin resource and is carried out under the situation of other tasks (being multiplexed with common I/O pin as interrupting input pin), interrupt generator 502 also can with interrupt convergence module 601 and link to each other, the communication single-board that provides of another embodiment of the present invention as shown in Figure 6.Interrupt being sent to processor 501 after convergence module 601 is used to converge the interrupt signal that interrupt generator 502 produces.
Interrupt convergence module 601 and can adopt PLD to realize that simultaneously, PLD also can realize the function of some interrupt generators, the logical construction during specific implementation as shown in Figure 7, wherein:
Clock detection module 701 is used to detect each the road clock on the communication single-board, finds that any one road loss of clock then produces interrupt signal, it can be considered as an interrupt generator;
Opposite end communication single-board state detection module 702 is used for the status signal level from the opposite end communication single-board is detected, and finds that the level saltus step then produces interrupt signal;
Clock detection module 701 and opposite end communication single-board state detection module 702 can be an equipment fault detection module in practice, and the equipment fault detection module can also comprise other detection module, for example voltage detection module etc.
Interrupt status register 703, be used to write down the state of each road interrupt source, for example, interrupt signal that recording clock detection module 701, opposite end communication single-board state detection module 702 produce or the outside unusual interrupt signal that produces (interruption that for example, the interruption that produces owing to described communication single-board transmitting-receiving message, the opposite end communication single-board fault that ambient temperature surpasses threshold value or communication single-board produce).Interrupt status register 703 can use " 0 " this register value to represent not have interruption, uses " 1 " this register value to represent to have and interrupts producing.
OIER 704 is used to shield interrupt source, for example, uses " 0 " expression not have the output of interruption, uses " 1 " expression to interrupt and can export.Can stipulate to have only when interrupting externally to produce interruption when the corresponding bit position of status register 703 with OIER 704 all is 1.
When the communication single-board operate as normal, network interface is is normally received and dispatched message, temperature sensor and is constantly detected the communication single-board temperature, interrupts each road clock on 601 pairs of communication single-boards of convergence module and the state of opposite end communication single-board detects, in case have interrupt signal or abnormal conditions to produce, interrupt convergence module 601 and will converge above-mentioned interrupt signal, report processor 501.Processor 501 is carried out interrupt handling routine.When processor 501 enters interrupt handling routine, must close OIER 704 earlier, avoid in the process of Interrupt Process, being interrupted disturbing by other, after finishing, current Interrupt Process opens OIER 704 again.
Interrupt convergence module 601 and also comprise timer 801, the interruption convergence module shown in another embodiment of Fig. 8.Timer 801 comprises time interval register and control module, wherein:
Time interval register can preset time at interval, according to increasing/subtract counting mode work.Control module is used to control the start and stop that increase/subtract counting.With the subtraction counting mode is example, and when the content of time interval register was not 0, control module allowed it to do the subtraction counting, and control module stops it and continues counting when reducing to 0, and produces interrupt signal.
In another embodiment of the present invention, timer 801 also can can't help to interrupt convergence module 601 to be provided.Processor 501 can comprise timer internal, and this timer internal is used to receive time interval of writing and regularly interrupts moment of taking place to be provided with.Before changing resting state over to, processor can interrupt the moment of generation so that timing to be set to its timer internal time-write interval, also can interrupt the moment of generation to the external timer time-write interval so that timing to be set by local bus.Timer for example, with the timing of subtraction mode, when the value of timer is kept to 0, triggers regularly and interrupts with subtraction counting or the timing of plus coujnt mode; With the timing of plus coujnt mode, when the value of timer increases to the value of setting, trigger regularly and interrupt.
Need to prove, contents such as the information interaction between each module/unit of said apparatus, implementation, since with the inventive method embodiment based on same design, its technique effect that brings is identical with the inventive method embodiment, particular content can repeat no more referring to the narration among the inventive method embodiment herein.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, RandomAccess Memory), disk or CD etc.
More than power-economizing method and a kind of communication single-board of communication single-board that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. the power-economizing method of a communication single-board is characterized in that, comprising:
When the Business Processing of communication single-board was in idle condition, processor changed resting state over to;
If the described processor that is in resting state is waken up by interrupt signal, judge then whether described interrupt signal is regularly to interrupt;
If being described timing, described interrupt signal interrupts, then described processor interrupts carrying out the survey of fault example according to described timing and/or state information sends, whether make described communication single-board be determined needs to carry out troubleshooting, when described communication single-board does not need to carry out troubleshooting, change resting state once more over to; When described communication single-board need carry out troubleshooting, withdraw from resting state and carry out troubleshooting.
2. the method for claim 1, it is characterized in that, if described described interrupt signal is that described timing is interrupted, and then described processor interrupts carrying out that the fault example is surveyed and/or state information sends according to described timing, makes described communication single-board be determined whether to need to carry out troubleshooting to comprise:
When described processor interrupts carrying out the survey of fault example according to described timing, be normal when carrying out the fault routine test result, then described communication single-board is determined and does not need to carry out troubleshooting; When fault routine test result when being undesired, described communication single-board is determined and need carries out troubleshooting;
Perhaps,
When described processor interrupts the execution state information transmission according to described timing, when another communication single-board that receives described state information determines that according to described state information described communication single-board breaks down, then need to carry out troubleshooting, otherwise, do not need to carry out troubleshooting;
Perhaps,
When described processor interrupts carrying out the survey of fault example according to described timing and execution state information sends simultaneously, when another communication single-board that to carry out the fault routine test result be undesired or receive described state information determines that according to described state information described communication single-board breaks down, determine to carry out troubleshooting; When carrying out the fault routine test result and determine that according to described state information described communication single-board does not break down, determine not need to carry out troubleshooting for another communication single-board normal and that receive described state information.
3. the method for claim 1 is characterized in that, is that then described processor withdraws from resting state and begins to handle the communication single-board business because described communication single-board is received and dispatched the interruption that message produces if judge described interrupt signal; Perhaps
If judging described interrupt signal is the interruption that produces owing to unusually outside or fault, then described processor withdraws from resting state and reports fault warning.
4. as any described method of claim 1 to 3, it is characterized in that described interrupt signal is received by a plurality of interruption input pins by described processor; Perhaps
Described interrupt signal is interrupted input pin by one of described processor and is received after converging.
5. the method for claim 1 is characterized in that, described timing is interrupted being triggered by the timer of described processor inside, and perhaps described timing is interrupted being triggered by external timer.
6. method as claimed in claim 5 is characterized in that, described processor also comprises before changing resting state over to:
Described processor interrupts the moment of generation to described timer time-write interval so that described timing to be set, and described timer is with subtraction counting or the timing of plus coujnt mode.
7. a communication single-board is characterized in that, comprises processor and interrupt generator;
Described interrupt generator is used to produce interrupt signal;
Described processor, when the Business Processing of communication single-board is in idle condition, change resting state over to, if the described processor that is in resting state is waken up by described interrupt signal, judge then whether described interrupt signal is regularly to interrupt, if being described timing, described interrupt signal interrupts, then described processor interrupts carrying out the survey of fault example according to described timing and/or state information sends, whether make described communication single-board be determined needs to carry out troubleshooting, when described communication single-board does not need to carry out troubleshooting, change resting state once more over to, when described communication single-board need carry out troubleshooting, withdraw from resting state and carry out troubleshooting.
8. communication single-board as claimed in claim 7, it is characterized in that, if described described interrupt signal is that described timing is interrupted, and then described processor interrupts carrying out that the fault example is surveyed and/or state information sends according to described timing, makes described communication single-board be determined whether to need to carry out troubleshooting to comprise:
When described processor interrupts carrying out the survey of fault example according to described timing, be normal when carrying out the fault routine test result, then described communication single-board is determined and does not need to carry out troubleshooting; When fault routine test result when being undesired, described communication single-board is determined and need carries out troubleshooting;
Perhaps,
When described processor interrupts the execution state information transmission according to described timing, when another communication single-board that receives described state information determines that according to described state information described communication single-board breaks down, then need to carry out troubleshooting, otherwise, do not need to carry out troubleshooting;
Perhaps,
When described processor interrupts carrying out the survey of fault example according to described timing and execution state information sends simultaneously, when another communication single-board that to carry out the fault routine test result be undesired or receive described state information determines that according to described state information described communication single-board breaks down, determine to carry out troubleshooting; When carrying out the fault routine test result and determine that according to described state information described communication single-board does not break down, determine not need to carry out troubleshooting for another communication single-board normal and that receive described state information.
9. as claim 7 or 8 described communication single-boards, it is characterized in that described processor receives described interrupt signal by a plurality of interruption input pins.
10. as claim 7 or 8 described communication single-boards, it is characterized in that described communication single-board also comprises the interruption convergence module, be sent to described processor after being used to converge the described interrupt signal that described interrupt generator produces.
CN2010102700895A 2010-08-30 2010-08-30 Energy conservation method of communication single plate and communication single plate Active CN101964724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102700895A CN101964724B (en) 2010-08-30 2010-08-30 Energy conservation method of communication single plate and communication single plate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102700895A CN101964724B (en) 2010-08-30 2010-08-30 Energy conservation method of communication single plate and communication single plate

Publications (2)

Publication Number Publication Date
CN101964724A true CN101964724A (en) 2011-02-02
CN101964724B CN101964724B (en) 2012-07-04

Family

ID=43517470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102700895A Active CN101964724B (en) 2010-08-30 2010-08-30 Energy conservation method of communication single plate and communication single plate

Country Status (1)

Country Link
CN (1) CN101964724B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012126396A1 (en) * 2011-03-23 2012-09-27 华为技术有限公司 Energy saving method for service board, master control board, service board, and access apparatus
CN103853605A (en) * 2012-11-28 2014-06-11 宏达国际电子股份有限公司 Thread management method and electronic device thereof
CN103973201A (en) * 2013-01-25 2014-08-06 立锜科技股份有限公司 Motor controller with shared pins and relevant control method
US9465655B2 (en) 2012-11-28 2016-10-11 Htc Corporation Method for managing threads using executing time scheduling technique and electronic device using the same method
CN109298887A (en) * 2018-10-24 2019-02-01 北京卫星制造厂有限公司 Program control command based on callback function independently executes system and method
CN110554979A (en) * 2018-05-31 2019-12-10 瑞昱半导体股份有限公司 time-piece device and method for operating same
WO2020000324A1 (en) * 2018-06-28 2020-01-02 海能达通信股份有限公司 State control method for processor, control circuit, and mobile terminal
CN112235171A (en) * 2020-09-15 2021-01-15 广州河东科技有限公司 Bus collision detection method, device, detection equipment and storage medium
CN113467220A (en) * 2021-07-06 2021-10-01 北京合锐赛尔电力科技股份有限公司 Laser time synchronization device, time synchronization method and time synchronization network system for fault indicator

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008059577A (en) * 2006-08-03 2008-03-13 Matsushita Electric Ind Co Ltd Network chip and network transmission/reception device
CN101364993A (en) * 2008-09-09 2009-02-11 北京时代凌宇科技有限公司 Method and apparatus for reducing sensor node dormancy power consumption
CN101719013A (en) * 2009-11-19 2010-06-02 中兴通讯股份有限公司 Method and device for reducing power consumption of single board with multiple processing units

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008059577A (en) * 2006-08-03 2008-03-13 Matsushita Electric Ind Co Ltd Network chip and network transmission/reception device
CN101364993A (en) * 2008-09-09 2009-02-11 北京时代凌宇科技有限公司 Method and apparatus for reducing sensor node dormancy power consumption
CN101719013A (en) * 2009-11-19 2010-06-02 中兴通讯股份有限公司 Method and device for reducing power consumption of single board with multiple processing units

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012126396A1 (en) * 2011-03-23 2012-09-27 华为技术有限公司 Energy saving method for service board, master control board, service board, and access apparatus
CN103853605A (en) * 2012-11-28 2014-06-11 宏达国际电子股份有限公司 Thread management method and electronic device thereof
US9465655B2 (en) 2012-11-28 2016-10-11 Htc Corporation Method for managing threads using executing time scheduling technique and electronic device using the same method
CN103853605B (en) * 2012-11-28 2017-06-09 宏达国际电子股份有限公司 Thread management method and its electronic installation
CN103973201A (en) * 2013-01-25 2014-08-06 立锜科技股份有限公司 Motor controller with shared pins and relevant control method
CN103973201B (en) * 2013-01-25 2016-05-25 立锜科技股份有限公司 Tool is shared motor controller and the corresponding control methods of pin position
CN110554979A (en) * 2018-05-31 2019-12-10 瑞昱半导体股份有限公司 time-piece device and method for operating same
WO2020000324A1 (en) * 2018-06-28 2020-01-02 海能达通信股份有限公司 State control method for processor, control circuit, and mobile terminal
CN109298887A (en) * 2018-10-24 2019-02-01 北京卫星制造厂有限公司 Program control command based on callback function independently executes system and method
CN112235171A (en) * 2020-09-15 2021-01-15 广州河东科技有限公司 Bus collision detection method, device, detection equipment and storage medium
CN112235171B (en) * 2020-09-15 2021-10-29 广州河东科技有限公司 Bus collision detection method, device, detection equipment and storage medium
CN113467220A (en) * 2021-07-06 2021-10-01 北京合锐赛尔电力科技股份有限公司 Laser time synchronization device, time synchronization method and time synchronization network system for fault indicator

Also Published As

Publication number Publication date
CN101964724B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN101964724B (en) Energy conservation method of communication single plate and communication single plate
US5283905A (en) Power supply for computer system manager
CN101800675B (en) Failure monitoring method, monitoring equipment and communication system
CN101976217B (en) Anomaly detection method and system for network processing unit
US5367670A (en) Computer system manager for monitoring events and operating parameters and generating alerts
US5402431A (en) Innate bus monitoring system for computer system manager
CN102315966B (en) Service single board, fault detection and reporting method and system thereof
CN100397353C (en) System and method for raising single-board exception handling ability
CN102741775A (en) Method, apparatus and system to transition system power state of a computer platform
CN102520300B (en) A kind of circuit short-circuit fault detection method and system
CN105955444A (en) Aligned wakeup method and apparatus
CN101894060A (en) Fault detection method and modular device
CN112083755A (en) Clock control circuit, chip and clock control method
US20050114723A1 (en) Interruption control system and method
CN101431763A (en) Method and apparatus for implementing base station power-down alarm by using interrupt
CN107807630A (en) A kind of method for handover control of master/slave device, its handover control system and device
CN106897177A (en) A kind of method and system based on mobile terminal system of fingerprints short-circuit detecting and protection
CN102402272B (en) There is the electronic installation of network connecting function and be applied to the method for this electronic installation
CN103840956A (en) Backup method for gateway device of Internet of Things
CN101605076B (en) Testing access point and data link monitoring method
CN103376877A (en) Multi core processor clock control device and method
CN103197981B (en) Storage space method for early warning and system
CN112148535B (en) Double monitoring system for rack-mounted equipment
CN100539716C (en) The method that a kind of main and standby boards is monitored and switched automatically
CN213659588U (en) Information leakage prevention circuit and POS machine

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