[go: up one dir, main page]

CN103176581B - Power management device and power management method - Google Patents

Power management device and power management method Download PDF

Info

Publication number
CN103176581B
CN103176581B CN201110435544.7A CN201110435544A CN103176581B CN 103176581 B CN103176581 B CN 103176581B CN 201110435544 A CN201110435544 A CN 201110435544A CN 103176581 B CN103176581 B CN 103176581B
Authority
CN
China
Prior art keywords
replacement
computer system
request
reset
time
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.)
Expired - Fee Related
Application number
CN201110435544.7A
Other languages
Chinese (zh)
Other versions
CN103176581A (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.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CN201110435544.7A priority Critical patent/CN103176581B/en
Publication of CN103176581A publication Critical patent/CN103176581A/en
Application granted granted Critical
Publication of CN103176581B publication Critical patent/CN103176581B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

A power management device and a power management method are provided. The power management device suitable for a computer system comprises a reset counting unit, an interval recording unit and a comparison unit. The reset counting unit receives the reset request and counts the reset times of the computer system according to the reset request. The interval recording unit receives the reset request to record the interval time between the reset request and the previous reset request enable. The comparing unit is coupled to the reset counting unit and the interval recording unit and is used for comparing the reset times and the interval time with an original setting so as to judge whether the computer system is reset or shut down and judge whether the reset time of the computer system is set. Therefore, the power management device can avoid repeated and continuous resetting of the computer system so as to protect the computer system.

Description

电源管理装置及电源管理方法Power management device and power management method

技术领域 technical field

本发明涉及一种电脑系统的电源管理技术,且特别涉及一种电源管理装置及其电源管理方法。The invention relates to a power management technology of a computer system, and in particular to a power management device and a power management method thereof.

背景技术 Background technique

现今的电脑系统中大部分皆会在主机板上设置有电源管理装置,电源管理装置会随时监测电脑系统中各个装置的相应信号,藉以进行电脑系统的启动或重置。Most of today's computer systems are equipped with a power management device on the motherboard, and the power management device will monitor the corresponding signals of each device in the computer system at any time, so as to start or reset the computer system.

举例而言,若要将电脑系统进行开机,可以通过电脑系统内的电源开关、晶片组或是通过网路配合主板管理控制器(BMC),将开机信号、重置(reset)信号...等电源相关信号发送到电源管理装置中,藉由电源管理装置来进行相对应的电脑系统开机、重置程序。或是,当电脑系统中的部分装置发生异常时,例如:中央处理器(CPU)过热、某个周边装置发出设定错误信号而需要重新启动/重置电脑系统...等情况,上述这些装置亦会通过其正常路径来发出相应的信号给予电源管理装置,电源管理装置也将会依据这些信号而忠实且立即地执行开机、重置程序。For example, if the computer system is to be turned on, the power-on signal, reset signal, etc. and other power-related signals are sent to the power management device, and the corresponding computer system startup and reset procedures are performed by the power management device. Or, when some devices in the computer system are abnormal, such as: the central processing unit (CPU) is overheated, a peripheral device sends a setting error signal and the computer system needs to be restarted/reset...etc., the above The device will also send corresponding signals to the power management device through its normal path, and the power management device will faithfully and immediately execute the boot and reset procedures according to these signals.

然而,当电脑系统部分装置的跳线并没有连接完整、基本输出输入系统的设定有误、电脑系统内的部份装置在进行初始化时并没有设定好…等的情况下,将会导致电脑系统的周边装置会持续发出异常的错误信号,并通过正常路径提供到电源管理装置。However, when the jumpers of some devices in the computer system are not connected completely, the settings of the basic input and input system are incorrect, and some devices in the computer system are not properly set during initialization... etc., it will lead to The peripheral devices of the computer system will continuously send out abnormal error signals, and provide them to the power management device through normal paths.

当发生上述情况时,由于上述开机、重置信号皆是通过正常的路径传送到电源管理装置,电源管理装置必须立即执行电脑系统的重置程序。因此,电源管理装置便会因为缺乏保护与判断机制,导致电脑系统持续且密集地进行重置/重新开机,电脑系统中的装置可能因此而缩短使用寿命,使得损毁机率大增。When the above situation occurs, since the above-mentioned booting and reset signals are transmitted to the power management device through a normal path, the power management device must immediately execute the reset procedure of the computer system. Therefore, the lack of protection and judging mechanism of the power management device will cause the computer system to reset/reboot continuously and intensively, which may shorten the service life of the devices in the computer system and greatly increase the probability of damage.

发明内容 Contents of the invention

本发明提供一种电源管理装置及电源管理方法,其在接收到电脑系统的重置请求时,会依据各个装置的种类、电脑系统的重置次数以及每次重置请求使能的间隔时间来判断是否执行电脑系统的重启程序,以保护电脑系统中的各个装置,避免重复不断地进行重置程序。The present invention provides a power management device and a power management method. When receiving a reset request from a computer system, it will perform the reset according to the type of each device, the reset times of the computer system, and the interval time between each reset request. It is judged whether to execute the restart procedure of the computer system, so as to protect each device in the computer system and avoid repeated reset procedures.

本发明提出一种电源管理装置,此电源管理装置适用于电脑系统中。电源管理装置包括重置计数单元、间隔记录单元以及比较单元。重置计数单元接收并依据一重置请求以计数电脑系统的重置次数。间隔记录单元接收并依据重置请求以记录本次重置请求与前次重置请求使能之间的一间隔时间。比较单元耦接至重置计数单元与间隔记录单元。比较单元将重置次数及间隔时间与一原始设定进行比较,以判断是否重置或是关闭所述电脑系统,并判断是否设定电脑系统的重置时间。The invention provides a power management device, which is suitable for computer systems. The power management device includes a reset counting unit, an interval recording unit and a comparing unit. The reset counting unit receives and counts the reset times of the computer system according to a reset request. The interval recording unit receives and records an interval time between the current reset request and the previous reset request according to the reset request. The comparing unit is coupled to the reset counting unit and the interval recording unit. The comparison unit compares the reset times and the interval time with an original setting to determine whether to reset or shut down the computer system, and to determine whether to set the reset time of the computer system.

在本发明的一实施例中,上述的比较单元判断所述重置请求是否为一正常重置请求。当重置请求并不是正常重置请求时,比较单元设定一安全预设值并延长重置时间,以依据此重置时间重置电脑系统,且当电脑系统的重置次数大于安全预设值时,关闭此电脑系统。In an embodiment of the present invention, the above comparison unit determines whether the reset request is a normal reset request. When the reset request is not a normal reset request, the comparison unit sets a safety default value and prolongs the reset time, so as to reset the computer system according to the reset time, and when the reset times of the computer system are greater than the safety preset value, shut down the computer system.

在本发明的一实施例中,上述的比较单元判断重置请求是正常重置请求时,比较单元将会正常重置电脑系统。In an embodiment of the present invention, when the comparison unit determines that the reset request is a normal reset request, the comparison unit will normally reset the computer system.

在本发明的一实施例中,上述的重置请求由电源开关、基本输入输出系统、晶片组、基板管理控制器、温度感测装置和/或电压调节模块所产生。In an embodiment of the present invention, the above-mentioned reset request is generated by the power switch, the BIOS, the chipset, the baseboard management controller, the temperature sensing device and/or the voltage regulation module.

另一方面,本发明提出一种电源管理方法,此电源管理方法适用于电脑系统。电源管理方法包括下列步骤:接收一重置请求。依据此重置请求计数电脑系统的重置次数。依据此重置请求以记录本次重置请求与前次重置请求使能之间的一间隔时间。将重置次数及使能时间与一原始设定进行比较,以判断是否重置或是关闭电脑系统,并判断是否设定电脑系统的一重置时间。On the other hand, the invention provides a power management method, which is suitable for computer systems. The power management method includes the following steps: receiving a reset request. Count the reset times of the computer system according to the reset request. According to the reset request, an interval time between the current reset request and the previous reset request is recorded. Comparing the reset times and enabling time with an original setting, it is judged whether to reset or shut down the computer system, and it is judged whether to set a reset time of the computer system.

本电源管理方法的其余实施细节请参照上述说明,在此不加赘述。For the rest of the implementation details of the power management method, please refer to the above description, and will not be repeated here.

基于上述,本发明实施例的电源管理装置在接收到电脑系统的重置请求时,将会依据电脑系统的重置次数以及每次重置请求使能的间隔时间,来判断是否重置或是关闭电脑系统,并视比对结果来决定是否延长电脑系统再次进行重置的时间。藉此,本发明实施例通过将电脑系统再次重置的时间加以延长,并且在重置次数超过预设值时关闭电脑系统,以避免重复不断地进行重置程序,保护电脑系统中的各个装置。Based on the above, when the power management device of the embodiment of the present invention receives a computer system reset request, it will judge whether to reset or Shut down the computer system, and decide whether to extend the time for the computer system to reset again depending on the comparison result. In this way, the embodiment of the present invention prolongs the time for resetting the computer system, and shuts down the computer system when the number of reset times exceeds a preset value, so as to avoid repeated reset procedures and protect each device in the computer system .

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.

附图说明 Description of drawings

图1是根据本发明一实施例说明电脑系统的示意图。FIG. 1 is a schematic diagram illustrating a computer system according to an embodiment of the invention.

图2是根据本发明一实施例说明电源管理装置的方块图。FIG. 2 is a block diagram illustrating a power management device according to an embodiment of the invention.

图3是根据本发明一实施例说明电源管理装置及比较单元的详细方块图。FIG. 3 is a detailed block diagram illustrating a power management device and a comparison unit according to an embodiment of the invention.

图4是根据本发明一实施例说明电脑管理方法的流程图。FIG. 4 is a flowchart illustrating a computer management method according to an embodiment of the present invention.

主要元件符号说明:Description of main component symbols:

100:电脑系统100: Computer Systems

110:电源管理装置110: power management device

120:电源开关120: Power switch

130:基本输入输出系统130: Basic Input Output System

140:晶片组140: chipset

150:基板管理控制器150: Baseboard Management Controller

160:温度感测装置160: temperature sensing device

170:错误信号产生装置170: Error signal generating device

180:电路装置180: circuit device

190:电压调节模块190: Voltage regulation module

210:重置计数单元210: Reset counting unit

220:间隔记录单元220: interval recording unit

230:比较单元230: Comparison unit

240:电压模块控制单元240: Voltage module control unit

250:电压调节模块250: voltage regulation module

310:比对模块310: Comparison module

320:安全模块320: Security Module

330:正常模块330: normal module

332:电源状态判读模块332: Power status interpretation module

334:电源错误程序模块334: Power Error Program Module

340:电压模块控制开关340: Voltage module control switch

S410-S490:步骤S410-S490: Steps

RR:重置请求RR: reset request

RN:重置次数RN: number of resets

P1:间隔时间P1: interval time

SWS:开关信号。SWS: switch signal.

具体实施方式 detailed description

现将详细参考本发明的示范性实施例,在附图中说明所述示范性实施例的实例。另外,凡可能之处,在附图及具体实施方式中使用相同标号的元件/构件/符号代表相同或类似部分。Reference will now be made in detail to the exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. In addition, wherever possible, elements/members/symbols with the same reference numerals are used in the drawings and the detailed description to represent the same or similar parts.

请参照图1,图1是根据本发明一实施例说明电脑系统100的示意图。如图1所示,在电脑系统100的电源管理技术中,电脑系统100在主机板上设置有电源管理装置110以及其他众多的装置。而其他装置需要让电脑系统100开机/重置时,则会通过相应的信号通知电源管理装置110,使电源管理装置110执行电脑系统100的开机/重置程序。Please refer to FIG. 1 , which is a schematic diagram illustrating a computer system 100 according to an embodiment of the present invention. As shown in FIG. 1 , in the power management technology of the computer system 100 , the computer system 100 is provided with a power management device 110 and many other devices on the motherboard. When other devices need to start/reset the computer system 100 , they will notify the power management device 110 through a corresponding signal, so that the power management device 110 executes the start/reset procedure of the computer system 100 .

例如,若要将电脑系统进行开机/重置,使用者可以通过装设在外部的电源开关120、基本输入输出系统(BIOS)130、晶片组140,或是利用网路并配合基板管理控制器(BMC)150,将相应的开机请求、重置(reset)请求...等信号发送到电源管理装置110中,藉由电源管理装置110来进行相应的电脑系统100的开机、重置程序。若是电脑系统100中的电路装置180在正常情况下需要重置电脑系统100时,可通过晶片组140或是BMC150,以正常路径来通知电源管理装置110。For example, to start/reset the computer system, the user can use the external power switch 120, the basic input output system (BIOS) 130, the chipset 140, or use the network and cooperate with the baseboard management controller. The (BMC) 150 sends corresponding boot request, reset (reset) request... and other signals to the power management device 110, and the power management device 110 performs corresponding boot and reset procedures of the computer system 100. If the circuit device 180 in the computer system 100 needs to reset the computer system 100 under normal circumstances, the power management device 110 can be notified through a normal path through the chipset 140 or the BMC 150 .

另一方面,当电脑系统中的部分装置发生异常而需要重置电脑系统100时,例如,温度感测装置160发现中央处理器(CPU)或是部份的电路装置180过热而发出的过热重置请求、错误信号产生装置170或晶片组140或BMC150在发现部份电路装置180发生错误而无法运行所产生的错误请求、部分装置的跳线没有连接完整而导致连续输出的错误请求、BIOS130的设定有误、部份装置在进行初始化时并没有设定好、电压调节模块190所产生的电源错误信号...等情况下,这些装置皆会利用其正常路径来发出相应的重置请求给予电源管理装置110。On the other hand, when some devices in the computer system are abnormal and the computer system 100 needs to be reset, for example, the temperature sensing device 160 finds that the central processing unit (CPU) or a part of the circuit device 180 is overheated and sends an overheating signal. set request, error signal generating device 170 or chipset 140 or BMC150 finds that some circuit devices 180 have errors and cannot operate, error requests generated by jumpers of some devices are not connected completely, resulting in continuous output error requests, BIOS130 In case of incorrect settings, some devices are not properly set during initialization, power supply error signal generated by the voltage regulation module 190, etc., these devices will use their normal paths to send corresponding reset requests Given to the power management device 110 .

在以往的电源管理技术中,电源管理装置110将会依据这些信号而忠实且立即地执行开机、重置程序。如此一来,将导致电脑系统100持续且密集地进行重置程序,电脑系统100中的装置可能因此而缩短使用寿命,使得损毁机率大增。In the conventional power management technology, the power management device 110 will faithfully and immediately execute the boot and reset procedures according to these signals. In this way, the computer system 100 will be continuously and intensively reset, and the service life of the devices in the computer system 100 may be shortened, which greatly increases the probability of damage.

于此,本发明实施例的精神在于,在电源管理装置110中加入了异常重置请求的判断机制,避免电脑系统100会重复不断地进行重置程序,进而保护电脑系统100中的各个装置。换句话说,电源管理装置110在接收到电脑系统100的重置请求时,将会依据电脑系统100的重置次数、前一个重置请求与本次重置请求之间的间隔时间、甚至是各个装置的种类,来判断此次的重置请求是否为异常重置请求。电源管理装置110进而依据上述判断结果来决定是否重置或是关闭电脑系统100,并视判断结果来决定是否延长电脑系统100再次进行重置的时间。Here, the spirit of the embodiment of the present invention is to add a judging mechanism for an abnormal reset request in the power management device 110 , so as to prevent the computer system 100 from repeatedly performing reset procedures, thereby protecting each device in the computer system 100 . In other words, when the power management device 110 receives the reset request from the computer system 100, it will base on the reset times of the computer system 100, the interval between the previous reset request and the current reset request, or even the The type of each device is used to determine whether the current reset request is an abnormal reset request. The power management device 110 further determines whether to reset or shut down the computer system 100 according to the above judgment result, and decides whether to extend the time for the computer system 100 to reset again according to the judgment result.

在此举一实例以实现本发明实施例的精神。图2是根据本发明一实施例说明电源管理装置110的方块图。于本实施例中,电源管理装置110可利用复杂可编程逻辑装置(CPLD)来进行实现,但本发明实施例并不受限于此。请参照图2,适用于电脑系统100的电源管理装置110包括重置计数单元210、间隔记录单元220以及比较单元240。于本实施例中,电源管理装置110还包括电压模块控制单元240。An example is given here to realize the spirit of the embodiment of the present invention. FIG. 2 is a block diagram illustrating a power management device 110 according to an embodiment of the invention. In this embodiment, the power management device 110 can be realized by a complex programmable logic device (CPLD), but the embodiment of the present invention is not limited thereto. Referring to FIG. 2 , the power management device 110 suitable for the computer system 100 includes a reset counting unit 210 , an interval recording unit 220 and a comparing unit 240 . In this embodiment, the power management device 110 further includes a voltage module control unit 240 .

重置计数单元210与间隔记录单元220同时接收由电脑系统100中各个装置所产生的重置请求RR(resetrequest)。重置请求RR可以由图1中的电源开关120、BIOS130、晶片组140、BMC150、温度感测装置160、错误信号产生装置170、电路装置180和/或电压调节模块190所产生。重置计数单元210可依据此重置请求RR以计数及储存电脑系统100的重置次数RN,RN可以是不小于零的整数。间隔记录单元220依据本次使能的重置请求RR,并通过前次使能的重置请求,计算本次重置请求与前次重置请求使能之间的间隔时间(intervalperiod)P1,并记录间隔时间P1。The reset counting unit 210 and the interval recording unit 220 simultaneously receive a reset request RR (reset request) generated by each device in the computer system 100 . The reset request RR can be generated by the power switch 120 , BIOS 130 , chipset 140 , BMC 150 , temperature sensing device 160 , error signal generating device 170 , circuit device 180 and/or voltage regulation module 190 in FIG. 1 . The reset counting unit 210 can count and store the reset times RN of the computer system 100 according to the reset request RR, and RN can be an integer not less than zero. The interval recording unit 220 calculates the interval period (intervalperiod) P1 between the current reset request and the previous reset request based on the current enabled reset request RR and the previous enabled reset request, And record the interval time P1.

比较单元230耦接至重置计数单元210与间隔记录单元220。比较单元230接收间隔记录单元220所计数的重置次数RN以及间隔记录单元220所记录的间隔时间P1。然后,比较单元230利用重置次数RN、间隔时间P1与使用者在比较单元230所预先记录好的原始设定(originalsetting)进行比较,藉以判断本次的重置请求RR是否是正常的重置请求,还是异常的重置请求,进而判断是否重置或是关闭电脑系统100。换句话说,预先记录好的原始设定系为定义正常的重置请求及/或异常的重置请求,以于符合正常的重置请求及/或异常的重置请求决定重置或是关闭电脑系统100。The comparing unit 230 is coupled to the reset counting unit 210 and the interval recording unit 220 . The comparing unit 230 receives the reset times RN counted by the interval recording unit 220 and the interval time P1 recorded by the interval recording unit 220 . Then, the comparison unit 230 compares the reset times RN and the interval time P1 with the original setting (original setting) recorded in advance by the user in the comparison unit 230, so as to judge whether the reset request RR is a normal reset. request, or an abnormal reset request, and then determine whether to reset or shut down the computer system 100 . In other words, the pre-recorded original setting is to define the normal reset request and/or the abnormal reset request, so as to determine whether to reset or close in accordance with the normal reset request and/or the abnormal reset request Computer system 100.

于本发明的其他实施例中,比较单元230除了利用重置次数RN、间隔时间P1与原始设定进行比较以外,比较单元230还可以依据此重置请求的来源装置来对原始设定进行比较,使其能够更为容易地判断出每个来源装置是否在正常情况下来发出重置请求RR。例如,当电脑系统100刚开始重新开机时,由于各个装置皆没有进行初始化,如果此时侦测到已经有电脑系统100的周边装置发出了重置请求RR,则此重置请求RR应该是异常的重置请求。In other embodiments of the present invention, in addition to using the reset number RN and the interval time P1 to compare with the original setting, the comparing unit 230 can also compare the original setting according to the source device of the reset request , making it easier to determine whether each source device sends out a reset request RR under normal conditions. For example, when the computer system 100 is restarted, since each device has not been initialized, if it is detected that a peripheral device of the computer system 100 has sent a reset request RR, the reset request RR should be abnormal. reset request.

此外,若比对单元230判断需重置电脑系统100而不是关闭电脑系统100时,比对单元230亦需判断是否重新设定电脑系统100在两次重置之间的重置时间。In addition, if the comparison unit 230 determines that the computer system 100 needs to be reset instead of shutting down the computer system 100, the comparison unit 230 also needs to determine whether to reset the reset time of the computer system 100 between two resets.

电压模块控制单元240则耦接至比较单元230。电压模块控制单元240接收比较单元230因判断是否重置或关闭电脑系统100而产生的开关信号SWS,并依据此开关信号SWS来控制电压调节模块(VolatgeRegulatorModule;VRM)250,以决定是否对电脑系统100进行供电。于本实施例中,电压调节模块250应配置于主机板上,并且独立于电源管理装置110之外。电源管理装置110通过电压模块控制单元240来控制电压调节模块250。The voltage module control unit 240 is coupled to the comparison unit 230 . The voltage module control unit 240 receives the switch signal SWS generated by the comparison unit 230 to determine whether to reset or shut down the computer system 100, and controls the voltage regulation module (VolatgeRegulatorModule; VRM) 250 according to the switch signal SWS to determine whether to reset or shut down the computer system 100. 100 for power supply. In this embodiment, the voltage regulation module 250 should be configured on the motherboard and independent from the power management device 110 . The power management device 110 controls the voltage regulation module 250 through the voltage module control unit 240 .

图3是根据本发明一实施例说明电源管理装置110及比较单元230的详细方块图,图4是根据本发明一实施例说明电脑管理方法的流程图。于本实施例中,图2与图3相似,其不同处在于,本实施例的比较单元230包括设定比对模块310、安全模块320以及正常模块330。电压模块控制单元240则以电压模块控制开关340进行实现。本实施例中未提及的元件及说明可参考上述实施例。FIG. 3 is a detailed block diagram illustrating the power management device 110 and the comparison unit 230 according to an embodiment of the present invention, and FIG. 4 is a flowchart illustrating a computer management method according to an embodiment of the present invention. In this embodiment, FIG. 2 is similar to FIG. 3 , the difference is that the comparison unit 230 of this embodiment includes a setting comparison module 310 , a security module 320 and a normal module 330 . The voltage module control unit 240 is realized by a voltage module control switch 340 . For elements and descriptions not mentioned in this embodiment, reference may be made to the foregoing embodiments.

请同时参照图3及图4,于步骤S410中,电源管理装置110的重置计数单元210与间隔记录单元220接收电脑系统100各个重置请求RR。于步骤S420中,重置计数单元210依据重置请求RR以计数并储存电脑系统100的重置次数RN。于步骤S430中,间隔记录单元220依据本次使能的重置请求RR,并通过前次使能的重置请求来计算本次重置请求与前次重置请求使能之间的间隔时间P1,并记录间隔时间P1。由图3可知,重置计数单元210以及间隔记录单元220可同时接收重置请求RR,因此步骤S420与步骤S430可以同时执行。Please refer to FIG. 3 and FIG. 4 at the same time. In step S410 , the reset counting unit 210 and the interval recording unit 220 of the power management device 110 receive each reset request RR of the computer system 100 . In step S420 , the reset counting unit 210 counts and stores the reset times RN of the computer system 100 according to the reset request RR. In step S430, the interval recording unit 220 calculates the interval time between the current reset request and the previous reset request according to the current enabled reset request RR and the previous enabled reset request. P1, and record the interval time P1. It can be seen from FIG. 3 that the reset counting unit 210 and the interval recording unit 220 can receive the reset request RR at the same time, so step S420 and step S430 can be executed simultaneously.

比较单元230的设定比对模块310会先行储存一预设的或是使用者可以经由原始设定控制信号OSCS加以调整设定的原始设定,并于步骤S440中,设定比对模块310利用重置次数RN以及间隔时间P1,与此原始设定进行比较,以判断此本次的重置请求RR是否为正常重置请求。于本实施例中,如果电脑系统100的重置次数在5次以内,并且重置次数RN以及间隔时间P1皆符合原始设定的范围区间时,则认为重置请求RR是正常重置请求,反之则为异常重置请求。于其他实施例中,设定比对模块310还可以依据各个装置的种类来判断此本次的重置请求RR是否为正常重置请求,在此不再赘述。The setting comparison module 310 of the comparison unit 230 will first store a preset or an original setting that the user can adjust and set through the original setting control signal OSCS, and in step S440, the setting comparison module 310 The reset number RN and the interval time P1 are used to compare with the original setting to determine whether the current reset request RR is a normal reset request. In this embodiment, if the reset times of the computer system 100 are within 5 times, and both the reset times RN and the interval time P1 are within the originally set range, the reset request RR is considered to be a normal reset request, Otherwise, it is an abnormal reset request. In other embodiments, the configuration comparison module 310 may also determine whether the current reset request RR is a normal reset request according to the type of each device, which will not be repeated here.

于步骤S440中,当重置请求RR是正常重置请求时,则会进入步骤S450-460的正常模式中,利用正常模块330中的电源状态判读模块332及电源错误程序模块334来正常重置电脑系统100。因此,于本实施例的步骤S450中,正常模块330利用电源状态判读模块332来执行电脑系统100的正常重置程序。并且,于步骤S455中,判断是否发生电源错误。当电源发生错误时,则进入步骤S460,以利用电源错误程序模块334来执行电源错误时的处理程序。In step S440, when the reset request RR is a normal reset request, it will enter the normal mode of steps S450-460, and use the power state judgment module 332 and power error program module 334 in the normal module 330 to reset normally Computer system 100. Therefore, in the step S450 of this embodiment, the normal module 330 utilizes the power state judging module 332 to execute a normal reset procedure of the computer system 100 . And, in step S455, it is determined whether a power error occurs. When an error occurs in the power supply, go to step S460 to use the power error program module 334 to execute a processing program for power error.

另一方面,于步骤S440中,当重置请求RR并不是正常重置请求,换句话说,重置请求RR为异常重置请求时,则会进入步骤S470-490的安全模式中,利用安全模块320来重置或关闭电脑系统100。详言之,于步骤S470中,比较单元230中的安全模块320设定一安全预设值,并且重新设定电脑系统再次重置的时间(在此将“电脑系统再次重置的时间”称为“重置时间”),将重置时间加以延长。藉此,安全模块320便依据此重置时间来重置电脑系统100。于步骤S480中,如果电脑系统100已经正常开机完毕,则进入步骤S482,重置计数单元210以及间隔记录单元220分别将其记录的重置次数RN与间隔时间P1归零,安全模块320也可将安全预设值以及重置时间归零。On the other hand, in step S440, when the reset request RR is not a normal reset request, in other words, when the reset request RR is an abnormal reset request, it will enter into the security mode of steps S470-490, using security module 320 to reset or shut down the computer system 100. Specifically, in step S470, the security module 320 in the comparison unit 230 sets a security default value, and resets the time for the computer system to be reset again (herein, "the time for the computer system to be reset again" is referred to as is "reset time") to extend the reset time. Thus, the security module 320 resets the computer system 100 according to the reset time. In step S480, if the computer system 100 has been turned on normally, then enter step S482, the reset counting unit 210 and the interval recording unit 220 respectively reset the reset times RN and the interval time P1 recorded by them to zero, and the security module 320 can also Reset security presets and reset time to zero.

如果电脑系统100无法正常开机,则由步骤S480进入步骤S485,计数并判断电脑系统100的重置次数是否大于安全预设值。如果电脑系统100的重置次数没有大于安全预设值时,则回到步骤S480继续依据延长后的重置时间来重置电脑系统100。相对地,如果电脑系统100的重置次数大于安全预设值时,则由步骤S485进入步骤S490,安全模块320发出信号,以使电压模块控制开关340停止供电给电脑系统100,藉以关闭电脑系统100,或是停止运行电脑系统100。If the computer system 100 cannot be turned on normally, proceed from step S480 to step S485 to count and determine whether the number of resets of the computer system 100 is greater than a security preset value. If the reset times of the computer system 100 are not greater than the safety preset value, then return to step S480 to continue to reset the computer system 100 according to the extended reset time. In contrast, if the number of resets of the computer system 100 is greater than the security preset value, then step S485 enters step S490, and the security module 320 sends a signal to make the voltage module control switch 340 stop supplying power to the computer system 100, thereby shutting down the computer system 100, or stop running the computer system 100.

综上所述,本发明实施例的电源管理装置110在接收到电脑系统100的重置请求时,将会依据电脑系统100的重置次数以及每次重置请求使能的间隔时间,来判断是否重置或是关闭电脑系统100,并视比对结果来决定是否延长电脑系统100再次进行重置的时间。藉此,电源管理装置110通过将电脑系统100再次重置的时间(“重置时间”)加以延长,并且在重置次数RN超过安全预设值时关闭电脑系统100,以避免重复不断地进行重置程序,保护电脑系统100中的各个装置。To sum up, when the power management device 110 of the embodiment of the present invention receives a reset request from the computer system 100, it will judge according to the number of reset times of the computer system 100 and the interval between each reset request Whether to reset or shut down the computer system 100, and determine whether to extend the time for the computer system 100 to reset again depending on the comparison result. In this way, the power management device 110 prolongs the time for resetting the computer system 100 ("reset time"), and shuts down the computer system 100 when the number of resets RN exceeds a safe preset value, so as to avoid repeated Reset the program to protect each device in the computer system 100 .

此外,使用者可通过原始设定控制信号OSCS来调整原始设定,也就是可以先行预设出何谓“正常重置请求”的标准对照信息,以更易于使用者或是检测电脑系统100的稳定性的测试人员能够更为容易检错。In addition, the user can adjust the original setting through the original setting control signal OSCS, that is, the standard comparison information of "normal reset request" can be preset in advance, so as to make it easier for the user or to check the stability of the computer system 100 Proactive testers can more easily detect errors.

虽然本发明已以实施例揭示如上,然其并非用以限定本发明,任何所属技术领域中的普通技术人员,当可作些许的更动与润饰,而不脱离本发明的精神和范围。Although the present invention has been disclosed above with the embodiments, it is not intended to limit the present invention, and any person skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention.

Claims (8)

1. an electric power controller, is applicable to a computer system, and this electric power controller comprises:
One replacement counting unit, receives also and resets inferior according to the request of resetting to count one of this computer systemNumber;
One interval record cell, receive and according to this replacement ask to record this this replacement request with last timeAn interval time between this replacement request enables; And
One comparing unit, couples this replacement counting unit and this interval record cell, in order to this replacement is inferiorNumber and this interval time and an original start compare, to judge whether replacement or to close this computer systemSystem, and judge whether to extend the replacement time of this computer system, with this electricity of resetting according to this replacement timeBrain system, wherein this comparing unit judges whether this replacement request is a normal request of resetting, when this replacementRequest is not this normal replacement while request, and this comparing unit is set a safe preset value and extended this replacementTime, and in the time that this replacement number of times is greater than this safe preset value, close this computer system.
2. electric power controller according to claim 1, in the time of this computer system normal boot-strap,This comparing unit makes zero this replacement time.
3. electric power controller according to claim 1, in the time of this computer system normal boot-strap,This replacement counting unit makes zero this replacement number of times.
4. electric power controller according to claim 1, wherein this comparing unit judges this replacementWhether be normal a reset request, in the time that this replacement request is this normal replacement request, this is more single if askingNormal this computer system of resetting of unit.
5. electric power controller according to claim 1, wherein this replacement request is opened by a power supplyPass, a basic input output system, a wafer set, a baseboard management controller, a temperature-sensing deviceAnd/or one VRM Voltage Regulator Module produce.
6. electric power controller according to claim 1, also comprises:
One voltage module control module, couples this comparing unit, produces because judging institute according to this comparing unitA switching signal to control a VRM Voltage Regulator Module.
7. a method for managing power supply, is applicable to a computer system, and this method for managing power supply comprises:
Receive a replacement request;
Count a replacement number of times of this computer system according to this replacement request;
According to this replacement ask to record this this replacement request and last time this replacement request enable between oneInterval time; And
This replacement number of times and this interval time and an original start are compared, reset judging whether orBe to close this computer system, and judge whether to extend the replacement time of this computer system, with heavy according to thisThe time of putting this computer system of resetting, wherein carries out this replacement number of times and this interval time and this original startMore also comprise the following steps:
Set a replacement preset value;
Judge whether this replacement request is a normal request of resetting; And
When this replacement request is not this normal replacement when request, set a safe preset value and extend that this is heavyPut the time, and in the time that this replacement number of times is greater than this safe preset value, close this computer system.
8. method for managing power supply according to claim 7, enables the time by this replacement number of times and thisAlso compare and comprise the following steps: with this original start
When this replacement request is this normal replacement when request, comparing unit this computer system of normally resetting.
CN201110435544.7A 2011-12-22 2011-12-22 Power management device and power management method Expired - Fee Related CN103176581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110435544.7A CN103176581B (en) 2011-12-22 2011-12-22 Power management device and power management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110435544.7A CN103176581B (en) 2011-12-22 2011-12-22 Power management device and power management method

Publications (2)

Publication Number Publication Date
CN103176581A CN103176581A (en) 2013-06-26
CN103176581B true CN103176581B (en) 2016-05-25

Family

ID=48636520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110435544.7A Expired - Fee Related CN103176581B (en) 2011-12-22 2011-12-22 Power management device and power management method

Country Status (1)

Country Link
CN (1) CN103176581B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699215A (en) * 2013-12-04 2015-06-10 鸿富锦精密电子(天津)有限公司 Power supply protection system and power supply protection method
CN105700863B (en) * 2014-11-27 2019-03-26 英业达科技有限公司 Null packets processing method
CN105700954B (en) * 2014-11-27 2019-02-22 英业达科技有限公司 The mainboard control method of blade server
CN105022629B (en) * 2015-06-29 2018-02-23 浪潮电子信息产业股份有限公司 Start-up control method, device and server
CN108279663B (en) * 2018-01-24 2019-12-20 广汽丰田汽车有限公司 Control system and control method for vehicle error signal, and storage medium
CN111858239B (en) * 2020-06-30 2022-06-10 浪潮电子信息产业股份有限公司 A server hard disk monitoring method, device, equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000493A (en) * 2006-01-13 2007-07-18 爱信艾达株式会社 Power management system for in-vehicle apparatus and in-vehicle apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7472291B2 (en) * 2005-04-15 2008-12-30 Shuttle Inc. Method and apparatus for integrating ACPI functionality and power button functionality into a single power key

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000493A (en) * 2006-01-13 2007-07-18 爱信艾达株式会社 Power management system for in-vehicle apparatus and in-vehicle apparatus

Also Published As

Publication number Publication date
CN103176581A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN103176581B (en) Power management device and power management method
TWI490682B (en) Server protecting system
US9317104B2 (en) Server cluster and control mechanism thereof
US20150113309A1 (en) Rogue Hardware Detection Through Power Monitoring
CN104639380A (en) Server monitoring method
CN107145410A (en) After a kind of system exception power down it is automatic on establish the method, system and equipment of machine by cable
KR101169124B1 (en) Updating a power supply microcontroller
TWI670952B (en) Network switching system
EP2798428B1 (en) Apparatus and method for managing operation of a mobile device
CN104636221A (en) Method and device for processing computer system fault
US9722414B2 (en) Power distribution and information handling
US10216249B2 (en) Electrical power control and fault protection
US20140379162A1 (en) Server system and monitoring method
CN110873829B (en) Apparatus, system, and method for detecting electrical faults within a computing device
US20250045406A1 (en) Hash look-up table to triage catastrophic system failures
TWI635401B (en) Arm-based server and managenent method thereof
CN108629185B (en) Server trusted platform measurement control system and operation method thereof
JP2020009398A (en) Method for controlling fan in electronic system
CN110389643B (en) Server and remote control method thereof
CN110781517B (en) Method for realizing data interaction by BIOS and BMC communication
US20220398152A1 (en) Custom baseboard management controller (bmc) firmware stack monitoring system and method
US11314867B2 (en) Determinations of compromise of controller code images
JP6285123B2 (en) Power supply monitoring apparatus, power supply apparatus, information processing system, and power supply monitoring method
CN114490200A (en) Memory test method and device, computer equipment and storage medium
US20190250685A1 (en) Computer system, operational method for a microcontroller, and computer program product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160525

Termination date: 20201222