Summary of the invention
In view of above problem, the object of the present invention is to provide a kind for the treatment of apparatus and method of voltage error, use process elasticity when booster tension mistake occurs.
The disposal route of a kind of voltage error of the present invention, is suitable for a computer system, and this disposal route comprises the following steps.Obtain a voltage error signal.According to voltage error signal, utilize the mode that tables look-up, obtain an operating state of computer system corresponding to voltage error signal, and produce a control signal according to this.According to control signal, computer system is restarted.
In one embodiment, aforementioned processing methods also comprises the following steps.Judge whether computer system restarts successful.It is unsuccessful if judge, computer system restarts, and judges that whether a number that computer system restarts is more than a preset times.If judge, number of times exceedes preset times, then computer system shut down.Whether successfully if judge, number of times does not exceed preset times, then get back to and judge computer system step.
In one embodiment, aforementioned processing methods also comprises the following steps.Detect and whether have voltage error signal.If voltage error signal do not detected, then get back to the step whether detection has voltage error signal, to continue to detect.If voltage error signal detected, then enter the step obtaining voltage error signal.
In one embodiment, aforementioned operating state comprises computer system and is in idle state (idle state refers to: system to be in off-mode and continuous wait period of being triggered of starting-up signal again.Now only to prepare Power supply, this pre-stand-by power source still will need the pick-up unit or the chip that maintain running when providing electric power to give system closedown) before or after, power supply unit state, voltage type and computer system be in stage start-up time or stage working time.
In one embodiment, aforementioned control signals comprises the time delay restarted and the number of times of computer system.
The present invention also provides a kind for the treatment of apparatus of voltage error, is suitable for a computer system.Treating apparatus comprises detecting unit, comparing unit and control module.Whether detecting unit makes a mistake in order to a voltage of detection computations machine system, to produce a voltage error signal.Comparing unit couples detecting unit, receiver voltage rub-out signal, the mode of tabling look-up with, obtains an operating state of this computer system corresponding to voltage error signal, and produces a control signal according to this.Control module couples comparing unit, receives and according to control signal, controls this computer system and restart.
In one embodiment, aforementioned control unit also judges whether computer system restarts successful, it is unsuccessful if judge, computer system restarts, control module judges that whether a number that computer system restarts is more than a preset times, if judge, number of times exceedes preset times, then control module computer for controlling system closedown, if judge, number of times does not exceed preset times, control module can judge whether computer system restarts successful, until computer system restarts successfully or computer system shut down again.
In one embodiment, aforementioned operating state comprise computer system be in idle state before or after, power supply unit state, voltage type and computer system be in stage start-up time or stage working time.
In one embodiment, aforementioned control signals comprises the time delay restarted and the number of times of computer system.
The treating apparatus of a kind of voltage error of the present invention and method, during by obtaining voltage error signal, obtain the operating state of the computer system of corresponding voltage rub-out signal in the mode of tabling look-up, and generation control signal and then computer for controlling system restart according to this.Thus, can effectively booster tension mistake occur time process elasticity.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Embodiment
Below in conjunction with accompanying drawing, structural principle of the present invention and principle of work are described in detail:
Please refer to shown in Fig. 1, it is the block scheme of the treating apparatus of voltage error of the present invention.The treating apparatus 100 of the voltage error of the present embodiment is suitable for a computer system.The treating apparatus 100 of voltage error comprises detecting unit 110, comparing unit 120 and control module 130.
Whether detecting unit 110 produces mistake in order to the voltage of detection computations machine system, and produces voltage error signal according to this.Comparing unit 120 couples detecting unit 110, and in order to receiver voltage rub-out signal, the mode of tabling look-up with, obtains the operating state of computer system corresponding to voltage error signal, and produce control signal according to this.In the present embodiment, the operating state of computer system comprise computer system be in idle mode before or after, power supply unit state, voltage kenel and computer system be in stage start-up time or stage working time.
Control module 130 couples comparing unit 120, and in order to receive and foundation control signal, computer for controlling system restarts.Wherein, control signal comprises the time delay and number of times that computer system restarts.That is, it is which operating state occurring in computer system that control module 130 can go out voltage error according to comparing unit 120 comparisons, and the time delay that corresponding computer for controlling system reboot moves and number of times.Thus, the operating state of computer system when the present embodiment can occur according to voltage error, and provide corresponding controlling mechanism to carry out computer for controlling to restart, and then the process elasticity when voltage error promoting computer system occurs.
The impact caused for computer system due to various voltage is different, and the resistivity that voltage made a mistake in each stage of computer system also difference to some extent.Therefore, treatment mechanism when voltage makes a mistake, should have different delay on time settings for different mistake.
In order to more know the operation of the treating apparatus 100 of the voltage error of the present embodiment, below act one example is illustrated.
Please refer to shown in Fig. 2, it is computer system of the present invention stage start-up time before idle state and afterwards and the pre-stand-by power source in stage working time and the corresponding relation figure of main power source.As seen from Figure 2, in the left side of idle state be computer system before idle state, that is computer system has just been connected with the mains supply, and now power supply unit only supplies pre-stand-by power source.Be that computer system is after idle state on the right side of idle state, that is computer system leaves idle mode, the unloading phase of entering and the actual motion stage, and power supply unit provides pre-stand-by power source and main power source respectively in stage start-up time and stage working time.
Suppose the operating state of computer system comprise computer system be in idle (Idle) state before or after, power supply unit (Power Supply Unit, PSU) state, voltage kenel (such as voltage is pre-stand-by power source or main power source) and computer system be in startup (Start up) time phase or (Run Time) stage working time.
For example, computer system represents with " 0 " after being in idle (Idle) state, and computer system represents with " 1 " before being in idle state; Power supply unit mistake (PSU Fault) represents with " 0 ", and power supply unit good (PSU GOOD) represents with " 1 "; Voltage kenel is that pre-stand-by power source (AUXPower) represents with " 0 ", and voltage kenel is that main power source (Main Power) represents with " 1 "; Start mistake (Start up Fault) to represent with " 0 ", mistake working time (Run time Fault) represents with " 1 ".
After idle state |
0 |
Before idle state |
1 |
Power supply unit mistake |
0 |
Power supply unit is good |
1 |
Pre-stand-by power source |
0 |
Main power source |
1 |
Start-up time phase error |
0 |
Working time phase error |
1 |
After table 1 is idle state, before idle state, good, the pre-stand-by power source of power supply unit mistake, power supply unit, main power source, startup mistake, working time mistake mapping table.
Table 2 is idle state, power supply unit state, voltage kenel, error phase, voltage error result, restart time delay and restart the mapping table of number of retries.
In table 2, " 0000 " represents computer system stage start-up time after idle state, and the pre-stand-by power source of power supply unit makes a mistake, then T1 represents time delay that computer system restarts, C1 represents the number of times that computer system restarts." 0001 " represents computer system stage working time after idle state, and the pre-stand-by power source of power supply unit makes a mistake, then T2 represents time delay that computer system restarts, C2 represents the number of times that computer system restarts." 0010 " represents computer system stage start-up time after idle state, and the main power source of power supply unit makes a mistake, then T3 represents time delay that computer system restarts, C3 represents the number of times that computer system restarts.
" 0011 " represents computer system stage working time after idle state, and the main power source of power supply unit makes a mistake, then T4 represents time delay that computer system restarts, C4 represents the number of times that computer system restarts." 0100 " represents the start-up time stage of computer system after idle state, voltage modulation module supply or be supplied to the pre-stand-by power source of assembly to make a mistake, then T5 represents time delay that computer system restarts, C5 represents the number of times that computer system restarts." 0101 " represents the working time stage of computer system after idle state, voltage modulation module supply or be supplied to the pre-stand-by power source of assembly to make a mistake, then T6 represents time delay that computer system restarts, C6 represents the number of times that computer system restarts.
" 0110 " represents the start-up time stage of computer system after idle state, voltage modulation module supply or be supplied to the main power source of assembly to make a mistake, then T7 represents time delay that computer system restarts, C7 represents the number of times that computer system restarts." 0111 " represents the working time stage of computer system after idle state, voltage modulation module supply or be supplied to the main power source of assembly to make a mistake, then T8 represents time delay that computer system restarts, C8 represents the number of times that computer system restarts." 1000 " represent computer system stage start-up time before idle state, and the pre-stand-by power source of power supply unit makes a mistake, then T9 represents time delay that computer system restarts, C9 represents the number of times that computer system restarts.
" 1100 " represent computer system stage start-up time before idle state, and the pre-stand-by power source that voltage modulation module is supplied makes a mistake, then T10 represents time delay that computer system restarts, T10 represents the number of times that computer system restarts." 1111 " represent power supply, and all are normal.And above-mentioned table 2 can be preset by user and be stored in a memory body of comparing unit 120, make when voltage error produces, can effective ratio to the operating state going out current computer systems, and the corresponding control signal that produces, to carry out suitable treatment mechanism.
First, when detecting unit 110 detects that the voltage of computer system produces mistake, then corresponding generation voltage error signal, such as " 0101 ".Then, comparing unit 120 can according to voltage error signal " 0101 ", the operating state of the computer system corresponding to voltage error signal is found in table 2, namely the stage after computer system is in idle mode and operationally, voltage modulation module supply or be supplied to the pre-stand-by power source of assembly to produce mistake.Now, comparing unit 120 according to aforementioned fortune state, and can provide corresponding control signal, the T6 and number of times C6 time delay that such as computer system restarts.Afterwards, control module 130 can restart computer system according to control signal (T6 and number of times C6 time delay).
For example, if be supplied to the voltage of assembly to make a mistake, such as central processing unit (CentralProcessing Unit; CPU); in order to protect significant components, therefore the number of times that computer system restarts can only be arranged once, causes assembly to damage to avoid too much restarting.Further, in order to protect the data in assembly, therefore the time delay that computer system restarts can be long.But if provide the voltage modulation module of 6.5V to make a mistake, or provide the voltage modulation module of 3.3V to make a mistake, the ability that the device affected can resist voltage error is higher, therefore the number of times that computer system restarts can set twice or higher than twice.Thus, the treating apparatus 100 of the voltage error of the present embodiment effectively can increase the voltage error process elasticity of computer system.
By the explanation of previous embodiment, a kind of disposal route of voltage error can be summarized.Please refer to shown in Fig. 3, it is the process flow figure of voltage error of the present invention.The disposal route of the voltage error of the present embodiment is suitable for a computer system.In step S310, obtain voltage error signal.In step s 320, according to voltage error signal, utilize the mode of tabling look-up, obtain the operating state of computer system corresponding to voltage error signal, and produce control signal according to this.In step S330, according to control signal, computer system is restarted.
In the present embodiment, aforementioned operating state comprise computer system be in idle state before or after, power supply unit state, voltage type and computer system be in stage start-up time or stage working time.Aforementioned control signals comprises the time delay and number of times that computer system restarts.
Please refer to shown in Fig. 4, it is the process flow figure of another voltage error of the present invention.The disposal route of the voltage error of the present embodiment is suitable for a computer system.In step S410, detect whether there is voltage error signal.If voltage error signal do not detected, then continue to detect.If voltage error signal detected, then enter step S420, obtain voltage error signal.In step S430, according to voltage error signal, utilize the mode of tabling look-up, obtain the operating state of computer system corresponding to voltage error signal, and produce control signal according to this.In step S440, according to control signal, computer system is restarted.In step S450, judge whether computer system restarts successful.
If judge computer system starting success, then terminate the treatment scheme of this voltage error.On the other hand, if judge, computer system does not start successfully, then enter in step S460, judges whether the number of times that computer system restarts exceedes preset times.If judge, the number of times that computer system restarts exceedes preset times, then enter in step S470, computer system is shut down.In addition, if judge, the number of times that computer system restarts does not exceed preset times, then get back to step S440, again carries out computer system and restarts, and enter step S450, judges whether computer system restarts successful.Then, perform step S460 ~ S470, until computer system restarts successfully, or until computer system is shut down.
In the present embodiment, aforementioned operating state comprise computer system be in idle state before or after, power supply unit state, voltage type and computer system be in stage start-up time or stage working time.Aforementioned control signals comprises the time delay and number of times that computer system restarts.
The treating apparatus of the voltage error of embodiments of the invention and method, when it is by obtaining voltage error signal, obtain the operating state of the computer system of corresponding voltage rub-out signal in the mode of tabling look-up, and produce control signal (time delay that such as computer system restarts and number of times) according to this and then computer for controlling system restarts.Thus, the present invention according to the operating state of different computer systems, can provide the processing mode of different correspondences, and then process elasticity when booster tension mistake occurs.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.