Movatterモバイル変換


[0]ホーム

URL:


CN113970964B - Method, system, equipment and storage medium for detecting power failure of power supply output of server - Google Patents

Method, system, equipment and storage medium for detecting power failure of power supply output of server
Download PDF

Info

Publication number
CN113970964B
CN113970964BCN202111276666.6ACN202111276666ACN113970964BCN 113970964 BCN113970964 BCN 113970964BCN 202111276666 ACN202111276666 ACN 202111276666ACN 113970964 BCN113970964 BCN 113970964B
Authority
CN
China
Prior art keywords
current
power supply
output
output current
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111276666.6A
Other languages
Chinese (zh)
Other versions
CN113970964A (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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co LtdfiledCriticalSuzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111276666.6ApriorityCriticalpatent/CN113970964B/en
Publication of CN113970964ApublicationCriticalpatent/CN113970964A/en
Application grantedgrantedCritical
Publication of CN113970964BpublicationCriticalpatent/CN113970964B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention provides a method, a system, equipment and a storage medium for detecting power failure of a power supply output of a server, wherein the method comprises the following steps: acquiring current sharing bus voltage of the server power supply, and determining the current running condition of the power supply according to the current sharing bus voltage; determining the current sharing busbar voltage and the output current according to the current running condition and the output power of the power supply; acquiring the current actual output current of the power supply, and judging whether the current actual output current is zero or not; and in response to the present actual output current not being zero, continuously comparing the present actual output current with the output current to determine whether an abnormality exists. According to the invention, the output current is obtained through the current-sharing bus voltage of the server power supply and is compared with the actual current, so that an alarm is given for the scene that the output current is zero when the output voltage is in a normal range, and the usability of the system is improved.

Description

Translated fromChinese
检测服务器电源输出掉电的方法、系统、设备和存储介质Method, system, device and storage medium for detecting server power output power failure

技术领域technical field

本发明涉及服务器领域,更具体地,特别是指一种检测服务器电源输出掉电的方法、系统、设备和存储介质。The present invention relates to the field of servers, and more specifically, to a method, system, device and storage medium for detecting power failure of server power output.

背景技术Background technique

服务器系统需要随时从服务器电源(Server PSU)读取各项传感器(Sensor)数值,以便做电源管理与调节系统最佳化。读取内容可分类为电压侦测、电流侦测、温度侦测、功率侦测和风扇侦测等。服务器利用BMC(Baseboard Management Controller)基板管理控制器透过I2C Bus访问服务器电源MCU获取各项传感器数值。其中读取服务器电源电压及电流输出数值来得知服务器电源是否达到均流。在服务器读取电源输出有一种情况,输出仍为正常范围11.4V–12.6V,但输出电流为零(注意:需确认服务器电源不是在A+S模式)。因为没有达到服务器电源关于输出报警OVP、UVP、OCP的场景,因此服务器电源也不会有任何输出报警。因为系统仍正常运转,此时电源也无任何报警。此种场景称之为“服务器电源输出掉电(Zero Output Current)”。The server system needs to read various sensor (Sensor) values from the server power supply (Server PSU) at any time in order to optimize the power management and adjustment system. The reading content can be classified into voltage detection, current detection, temperature detection, power detection and fan detection, etc. The server uses the BMC (Baseboard Management Controller) baseboard management controller to access the server power supply MCU through the I2C Bus to obtain various sensor values. Among them, read the server power supply voltage and current output value to know whether the server power supply has achieved current sharing. There is a situation when the server reads the power supply output, the output is still in the normal range of 11.4V–12.6V, but the output current is zero (note: it is necessary to confirm that the server power supply is not in A+S mode). Because the server power supply has not reached the scene of output alarm OVP, UVP, OCP, so the server power supply will not have any output alarm. Because the system is still running normally, there is no alarm for the power supply at this time. This scenario is called "server power output power failure (Zero Output Current)".

服务器电源输出掉电情况下,因为电压仍正常输出且在正常范围内,电流为零为合法输出值。服务器系统不会报警,因此系统运维人员无法得知此时输出电流为零的服务器电源功能是否仍为正常。如真的是输出电流为零的电源故障,负载将集中到正常工作的电源,会造成该电源寿命下降,使得系统可靠度降低,最严重会造成系统因此宕机或离线。因现行设计并未有一个“服务器电源输出掉电”告警机制,通常都是等到服务器电源功能异常报警或者是服务器突发离线,才会提醒服务器运维人员至现场排除问题,这样会对服务器的使用者造成损失。When the server power output is powered off, because the voltage is still output normally and within the normal range, the current is zero, which is the legal output value. The server system will not alarm, so the system operation and maintenance personnel cannot know whether the function of the server power supply with zero output current is still normal at this time. If it is really a power failure with zero output current, the load will be concentrated on the normal power supply, which will reduce the life of the power supply, reduce the reliability of the system, and most seriously cause the system to go down or go offline. Because the current design does not have a "server power output power failure" alarm mechanism, it usually waits until the server power supply function is abnormal and the server is suddenly offline, and then the server operation and maintenance personnel will be reminded to troubleshoot the problem on site, which will affect the server. user losses.

发明内容Contents of the invention

有鉴于此,本发明实施例的目的在于提出一种检测服务器电源输出掉电的方法、系统、计算机设备及计算机可读存储介质,本发明通过服务器电源的均流总线电压得到输出电流,并与实际电流比较,从而针对输出电压在正常范围而输出电流为零的场景进行告警,提升了系统的可用性。In view of this, the purpose of the embodiments of the present invention is to provide a method, system, computer equipment, and computer-readable storage medium for detecting power failure of the output of the server power supply. The present invention obtains the output current through the current sharing bus voltage of the server power supply, and combines The actual current is compared, so as to give an alarm for the scene where the output voltage is within the normal range and the output current is zero, which improves the availability of the system.

基于上述目的,本发明实施例的一方面提供了一种检测服务器电源输出掉电的方法,包括如下步骤:获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况;根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流;获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零;以及响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常。Based on the above purpose, an aspect of the embodiments of the present invention provides a method for detecting power failure of the server power output, including the following steps: obtaining the current sharing bus voltage of the server power supply, and determining the current voltage of the power supply according to the current sharing bus voltage the operating conditions of the power supply; determine the current-sharing busbar voltage and output current according to the current operating conditions and output power of the power supply; obtain the current actual output current of the power supply, and judge whether the current actual output current is zero; and respond to the The current actual output current is not zero, and the current actual output current is continuously compared with the output current to determine whether it is abnormal.

在一些实施方式中,方法还包括:将服务器电源的均流功能脚位接在一起以使得同一个服务器的电源的均流汇流排电压相同。In some embodiments, the method further includes: connecting the current sharing function pins of the server power supplies together so that the voltages of the current sharing busbars of the power supplies of the same server are the same.

在一些实施方式中,方法还包括:将所述均流汇流排电压接入二次侧微处理器数位类比转换器脚位中以将所述均流汇流排电压转换为电流值。In some embodiments, the method further includes: connecting the voltage of the current sharing bus to a digital-to-analog converter pin of a secondary-side microprocessor to convert the voltage of the current sharing bus into a current value.

在一些实施方式中,所述根据所述均流总线电压确定电源当前的运转情况包括:响应于所述均流总线电压处于第一区间,确定电源当前的运转情况为单一电源运转;以及响应于所述均流总线电压处于其他区间,确定电源当前的运转情况为多个电源并联运转。In some implementations, the determining the current operating condition of the power supply according to the current sharing bus voltage includes: in response to the current sharing bus voltage being in the first interval, determining that the current operating condition of the power supply is single power supply operation; and in response The current-sharing bus voltage is in other intervals, and the current operation status of the power supply is determined as multiple power supplies operating in parallel.

在一些实施方式中,方法还包括:响应于所述当前实际输出电流为零,使用IPMI工具输入指令并获取服务器当前输出信息;以及响应于所述当前输出信息中寄存器值为预设值,则进行告警。In some implementations, the method further includes: in response to the current actual output current being zero, using the IPMI tool to input an instruction and obtain the current output information of the server; and in response to the register value in the current output information being a preset value, then Make an alarm.

在一些实施方式中,所述进行告警包括:基于二次侧微处理器将服务器电源设备警告脚位由高电平转换为低电平。In some implementation manners, the giving an alarm includes: switching the alarm pin of the server power supply device from a high level to a low level based on the secondary side microprocessor.

在一些实施方式中,所述将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常包括:响应于所述当前实际输出电流与所述输出电流相等,确定所述服务器电源正常工作;以及响应于所述当前实际输出电流与所述输出电流不相等,进行告警。In some implementations, the continuously comparing the current actual output current with the output current to determine whether it is abnormal includes: in response to the current actual output current being equal to the output current, determining that the server power supply normal operation; and in response to the fact that the current actual output current is not equal to the output current, an alarm is issued.

本发明实施例的另一方面,提供了一种检测服务器电源输出掉电的系统,包括:采集模块,配置用于获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况;确定模块,配置用于根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流;判断模块,配置用于获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零;以及比对模块,配置用于响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常。Another aspect of the embodiments of the present invention provides a system for detecting a server power supply output power failure, including: an acquisition module configured to acquire the current sharing bus voltage of the server power supply, and determine the current sharing bus voltage according to the current sharing bus voltage The current operating condition of the power supply; the determination module is configured to determine the current-sharing busbar voltage and output current according to the current operating condition and output power of the power supply; the judging module is configured to obtain the current actual output current of the power supply, and determine the current actual output current of the power supply. Whether the current actual output current is zero; and a comparison module configured to continuously compare the current actual output current with the output current in response to the current actual output current being non-zero to determine whether it is abnormal.

本发明实施例的又一方面,还提供了一种计算机设备,包括:至少一个处理器;以及存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现如上方法的步骤。In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory, the memory stores computer instructions executable on the processor, and the instructions are executed by the The steps of the above method are realized when the processor executes.

本发明实施例的再一方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时实现如上方法步骤的计算机程序。In yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, and the computer-readable storage medium stores a computer program for implementing the above method steps when executed by a processor.

本发明具有以下有益技术效果:通过服务器电源的均流总线电压得到输出电流,并与实际电流比较,从而针对输出电压在正常范围而输出电流为零的场景进行告警,提升了系统的可用性。The invention has the following beneficial technical effects: the output current is obtained through the equalizing bus voltage of the server power supply, and compared with the actual current, so as to give an alarm for the scene where the output voltage is within a normal range but the output current is zero, and the availability of the system is improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and those skilled in the art can obtain other embodiments according to these drawings without any creative effort.

图1为本发明提供的检测服务器电源输出掉电的方法的实施例的示意图;FIG. 1 is a schematic diagram of an embodiment of a method for detecting server power output power failure provided by the present invention;

图2为本发明实施例中最大电流自动均流法架构图;Fig. 2 is a structure diagram of the maximum current automatic current sharing method in the embodiment of the present invention;

图3为1600W电源均流汇流排电压与输出功率对照表;Figure 3 is a comparison table of busbar voltage and output power for a 1600W power supply;

图4为本发明提供的检测服务器电源输出掉电的系统的实施例的示意图;4 is a schematic diagram of an embodiment of a system for detecting a server power output power failure provided by the present invention;

图5为本发明提供的检测服务器电源输出掉电的计算机设备的实施例的硬件结构示意图;FIG. 5 is a schematic diagram of the hardware structure of an embodiment of a computer device for detecting a power failure of a server power output provided by the present invention;

图6为本发明提供的检测服务器电源输出掉电的计算机存储介质的实施例的示意图。FIG. 6 is a schematic diagram of an embodiment of a computer storage medium for detecting power failure of a server power output provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”、“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all the expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same. It can be seen that "first" and "second " is only for the convenience of expression, and should not be understood as a limitation to the embodiments of the present invention, and will not be described one by one in the subsequent embodiments.

本发明实施例的第一个方面,提出了一种检测服务器电源输出掉电的方法的实施例。图1示出的是本发明提供的检测服务器电源输出掉电的方法的实施例的示意图。如图1所示,本发明实施例包括如下步骤:According to the first aspect of the embodiments of the present invention, an embodiment of a method for detecting power failure of a server power output is proposed. FIG. 1 is a schematic diagram of an embodiment of a method for detecting power failure of a server power output provided by the present invention. As shown in Figure 1, the embodiment of the present invention includes the following steps:

S1、获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况;S1. Obtain the current sharing bus voltage of the server power supply, and determine the current operating status of the power supply according to the current sharing bus voltage;

S2、根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流;S2. Determine the current equalizing busbar voltage and output current according to the current operating conditions and output power of the power supply;

S3、获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零;以及S3. Obtain the current actual output current of the power supply, and determine whether the current actual output current is zero; and

S4、响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常。S4. In response to the fact that the current actual output current is not zero, continuously compare the current actual output current with the output current to determine whether it is abnormal.

服务器为了提升可靠度,都会采取电源冗余的机制。该机制是配置多个完全一样的电源,由电源进行负载均衡,当一个电源出现故障时,另一个电源马上可以接管其工作,在更换电源后,又是多个电源协同工作。冗余的好处是实现服务器系统的高稳定性。当一个或两个电源丧失功能或不明原因不输出时,系统中其余电源都可持续运转,提供电力给服务器系统,让服务器不因电源因素宕机或关机。In order to improve the reliability of the server, the power supply redundancy mechanism will be adopted. The mechanism is to configure multiple identical power supplies, and the load balancing is carried out by the power supplies. When one power supply fails, another power supply can take over its work immediately. After the power supply is replaced, multiple power supplies work together. The advantage of redundancy is to achieve high stability of the server system. When one or two power supplies lose function or fail to output for unknown reasons, the rest of the power supplies in the system can continue to operate to provide power to the server system, so that the server does not go down or shut down due to power supply factors.

实现冗余功能的电源会有电流多组并连输出,因此平均分配电流相当的重要。因此都需要有均流或称电流均衡功能,确保每台电源的电流均衡输出。均流的目的是不让系统电源长时间高负载操作(满载的80%以上),长时间的高负载工作也会造成服务器电源寿命下降,使得系统可靠度降低。The power supply that realizes the redundant function will have multiple sets of parallel output current, so it is very important to distribute the current evenly. Therefore, it is necessary to have a current sharing or current balancing function to ensure the current balanced output of each power supply. The purpose of current sharing is to prevent the system power supply from operating at high load for a long time (more than 80% of full load). Long-term high-load operation will also reduce the life of the server power supply and reduce the reliability of the system.

服务器为了提升电源冗余机制在轻载时或在待机时的效率,会采取A+S模式(Active-Standby模式)。对于冗余电源系统,可通过PMBUS指令启用冷冗余模式。让设定为PSU0的电源设备设置为活动电源(ACTIVE PSU),其他的电源设备可以设置为待机电源(STANDBY PSU)。当此模式设置启用时,ACTIVE PSU(活动电源)将承担所有输出负载,其他STANDBY PSU(待机电源)处于A+S模式,电源输出(+12VDC)保持电压并停止供电,此功能可以通过PMBUS设置不同的Von/Voff电流来更改命令。如果电源设备处于A+S模式输出电源输出电压及电流为零(+12VDC停止供电)。此时设定为活动模式电源可以更高效率运转。In order to improve the efficiency of the power redundancy mechanism at light load or standby, the server will adopt the A+S mode (Active-Standby mode). For redundant power supply system, cold redundant mode can be enabled by PMBUS command. Let the power supply device set as PSU0 be set as active power supply (ACTIVE PSU), and other power supply equipment can be set as standby power supply (STANDBY PSU). When this mode setting is enabled, ACTIVE PSU (active power supply) will assume all output loads, other STANDBY PSU (standby power supply) is in A+S mode, the power supply output (+12VDC) maintains voltage and stops supplying power, this function can be set via PMBUS Different Von/Voff currents to change commands. If the power supply is in A+S mode, the output voltage and current of the power supply are zero (+12VDC stops power supply). At this time set to active mode power supply can run more efficiently.

所谓A+S模式是在N+N电源供电系统中,将CR/Cold Redundant引脚在用户系统板上连接在一起以实现冷冗余功能。对于N+N电源系统,可以单独使用AC或DC供电,并且可以通过PMBus启用冷冗余模式。主电源用于设置为ACTIVE模式,从机可以设置为STANDBY模式。当此模式设置为OK时,ACTIVE电源将承担所有输出负载,另一个STANDBY电源将处于睡眠模式,输出保持电压并停止电源输出。该功能可以通过PMBus命令设置不同的Von/Voff电流来改变。PSU0/1/2电源在休眠模式下的功耗应小于10W。此时亦有可能发生输出电流为零电压存在场景,因此需要排除。或设计Server PSU在A+S模式完全进入STANDBY mode。此时电源主输出皆关闭,仅有待机电源持续对系通供电。在系统尚未开启时电源皆处于此模式以达省电的目的。The so-called A+S mode is to connect the CR/Cold Redundant pins together on the user system board in the N+N power supply system to realize the cold redundancy function. For N+N power system, AC or DC power supply can be used alone, and cold redundancy mode can be enabled through PMBus. The main power supply is used to set to ACTIVE mode, and the slave can be set to STANDBY mode. When this mode is set to OK, the ACTIVE power supply will take all the output load, and the other STANDBY power supply will be in sleep mode, the output maintains the voltage and stops the power supply output. This function can be changed by setting different Von/Voff current through PMBus command. The power consumption of PSU0/1/2 power supply in sleep mode should be less than 10W. At this time, there may also be a scenario where the output current is zero voltage, so it needs to be ruled out. Or design the Server PSU to completely enter STANDBY mode in A+S mode. At this time, the main output of the power supply is closed, and only the standby power supply continues to supply power to the system. The power supply is in this mode when the system is not turned on to save power.

目前的服务器电源会由MCU来完成电源供应器中的转换器开关控制、风扇控制、LED控制、监控、保护、通讯等功能,根据功能的不同会分为一次侧(PRIMARY Side)MCU及二次侧(SECONDARY Side)MCU。均流及冗余功能皆由二次侧(SECONDARY Side)MCU来控制及功能实现。The current server power supply will be completed by the MCU to complete the converter switch control, fan control, LED control, monitoring, protection, communication and other functions in the power supply. According to different functions, it will be divided into primary side (PRIMARY Side) MCU and secondary side. Side (SECONDARY Side) MCU. Both the current sharing and redundancy functions are controlled and realized by the secondary side (SECONDARY Side) MCU.

在一些实施方式中,方法还包括:将服务器电源的均流功能脚位接在一起以使得同一个服务器的电源的均流汇流排电压相同。服务器电源均流是通过一个硬件提供一个DC准位回馈给电源电路。在并联运转时提供需加载或减载的依据。在应用时会将各PSU均流功能脚位(Ishare pin)接在一起,作为各机均流DC准位参考电压。In some embodiments, the method further includes: connecting the current sharing function pins of the server power supplies together so that the voltages of the current sharing busbars of the power supplies of the same server are the same. Server power supply current sharing is to provide a DC level feedback to the power supply circuit through a piece of hardware. Provides the basis for loading or unloading during parallel operation. In the application, the current sharing function pins (Ishare pin) of each PSU will be connected together as the reference voltage of the current sharing DC level of each machine.

均流的方法有很多种,本发明实施例中采用“最大电流自动均流法”架构。图2为本发明实施例中最大电流自动均流法架构图。这是一种自动、非刻意的设定主模块和从模块的方法,即在所有的电源模块中,如果某一个时刻,有一个模块的输出电流达到所有模块中的最大值,那么这个模块就被默认为主模块,其余剩下的模块就被默认为从模块。它们的电压误差基准,逐个被比较和更正。由于在N个并联的模块中,原先并没有在刻意的确定主模块,最终所谓的主次模块只是根据电路运行过程中按照输出电流的大小而确定的,将电流最大的模块作为主模块。There are many methods of current sharing, and the embodiment of the present invention adopts the architecture of "maximum current automatic current sharing method". Fig. 2 is a structure diagram of the maximum current automatic current sharing method in the embodiment of the present invention. This is an automatic and unintentional method of setting the master module and the slave module, that is, among all the power modules, if at a certain moment, the output current of one module reaches the maximum value among all the modules, then this module will be is defaulted to be the master module, and the remaining modules are defaulted to be slave modules. Their voltage error references are compared and corrected one by one. Since among the N parallel modules, the main module was not deliberately determined at first, the so-called primary and secondary modules are only determined according to the output current during the operation of the circuit, and the module with the largest current is used as the main module.

此方法的特点为均流效果较好,易实现准确均流。在具体使用中,如出现均流母线短路或接在母线上的一个单元不工作时,母线电压下降,将使每个单元输出电压下调,甚至达到下限,以致造成故障。并且当某一模块的电流上升至Io max时,电流放大器输出电流也达到极限值,同时致使其它单元输出电压自动下降。可以构成冗余系统,均流模块数理论上可以不限。The characteristic of this method is that the current sharing effect is better, and it is easy to realize accurate current sharing. In specific use, if there is a short circuit of the current sharing bus or a unit connected to the bus does not work, the bus voltage drops, which will cause the output voltage of each unit to be lowered, or even reach the lower limit, resulting in failure. And when the current of a certain module rises to Io max, the output current of the current amplifier also reaches the limit value, causing the output voltage of other units to drop automatically. A redundant system can be formed, and the number of current sharing modules can theoretically be unlimited.

在一些实施方式中,方法还包括:将所述均流汇流排电压接入二次侧微处理器数位类比转换器脚位中以将所述均流汇流排电压转换为电流值。将均流所得的参考电压(均流汇流排电压)接入二次侧MCU ADC(数位类比转换器)脚位中。可将均流汇流排电压转为电流刻度值,可利用此电流刻度值,来辅助判别电流输出值是否正确。In some embodiments, the method further includes: connecting the voltage of the current sharing bus to a digital-to-analog converter pin of a secondary-side microprocessor to convert the voltage of the current sharing bus into a current value. The reference voltage (current sharing bus voltage) obtained by current sharing is connected to the pin of the secondary-side MCU ADC (Digital-to-Analog Converter). The voltage of the current equalizing busbar can be converted into a current scale value, and the current scale value can be used to assist in judging whether the current output value is correct.

以1600W功率输出的服务器电源为例,最大设定为4个电源并联。图3为1600W电源均流汇流排电压与输出功率对照表。Taking the server power supply with 1600W power output as an example, the maximum setting is 4 power supplies connected in parallel. Figure 3 is a comparison table of busbar voltage and output power for a 1600W power supply.

电源均流功能脚位(Ishare pin)均流汇流排电压(Current share Bus Voltage)与电源输出(Total Power)关系如下:The relationship between the current share bus voltage (Current share Bus Voltage) and the power output (Total Power) of the power supply current sharing pin (Ishare pin) is as follows:

I.900W均流汇流排电压参考位准为1.22V,总输出电流为75A。此时系统应用场景为单PSU(1PSU)输出电流为75A,输出电流为最大载的56%。I.900W current sharing bus voltage reference level is 1.22V, total output current is 75A. At this time, the system application scenario is that the output current of a single PSU (1PSU) is 75A, and the output current is 56% of the maximum load.

II.1800W均流汇流排电压参考位准为2.72V,总输出电流为150A。此时为2个PSU(1+1冗余)在系统,均流后,单PSU电流为75A,输出电流为最大载的56%。II. The voltage reference level of the 1800W current sharing busbar is 2.72V, and the total output current is 150A. At this time, there are 2 PSUs (1+1 redundancy) in the system. After current sharing, the current of a single PSU is 75A, and the output current is 56% of the maximum load.

III.2700W均流汇流排电压参考位准为3.77V,总输出电流为225A。此时为2个PSU(1+1冗余)在系统,均流后,单PSU电流为112.5A,输出电流为最大载的85%。III. The voltage reference level of the 2700W current sharing busbar is 3.77V, and the total output current is 225A. At this time, there are 2 PSUs (1+1 redundancy) in the system. After current sharing, the current of a single PSU is 112.5A, and the output current is 85% of the maximum load.

IV.3600W均流汇流排电压参考位准为4.72V,总输出电流为300A。此时为3个PSU(2+1冗余)在系统,均流后,单PSU电流为100A,输出电流为最大载的75%。IV. The voltage reference level of the IV.3600W current sharing busbar is 4.72V, and the total output current is 300A. At this time, there are 3 PSUs (2+1 redundancy) in the system. After current sharing, the current of a single PSU is 100A, and the output current is 75% of the maximum load.

V.4500W均流汇流排电压参考位准为5.79V,总输出电流为375A。此时为3个PSU(2+1冗余)在系统,均流后,单PSU电流为125A,输出电流为最大载的94%。The V.4500W current sharing bus voltage reference level is 5.79V, and the total output current is 375A. At this time, there are 3 PSUs (2+1 redundancy) in the system. After current sharing, the current of a single PSU is 125A, and the output current is 94% of the maximum load.

VI.5400W均流汇流排电压参考位准为6.72V,总输出电流为450A。此时为4个PSU(2+2冗余)在系统,均流后,单PSU电流为112.5A,输出电流为最大载的85%。The voltage reference level of the VI.5400W current sharing bus is 6.72V, and the total output current is 450A. At this time, there are 4 PSUs (2+2 redundant) in the system. After current sharing, the current of a single PSU is 112.5A, and the output current is 85% of the maximum load.

VII.6400W均流汇流排电压参考位准为7.7V,总输出电流为533A。此时为4个PSU(2+2冗余)在系统,均流后,单PSU电流为133A,为100%输出。VII.6400W current sharing bus voltage reference level is 7.7V, total output current is 533A. At this time, there are 4 PSUs (2+2 redundant) in the system. After current sharing, the current of a single PSU is 133A, which is 100% output.

输出电流并联逻辑关系表设定如下:The output current parallel logic relationship table is set as follows:

I.1个PSU在最大1600W输出,均流汇流排电压为0.25–2V,其最大输出电流为133A。I. 1 PSU has a maximum output of 1600W, the current sharing bus voltage is 0.25–2V, and its maximum output current is 133A.

II.2个PSU在并连输出在最大3200W。均流汇流排电压为2–4V,其最大输出电流为266A,各PSU均流仍约为133A(仍不超出单PSU最大输出电流)。II. The maximum output of 2 PSUs in parallel is 3200W. The current sharing bus voltage is 2–4V, and its maximum output current is 266A, and the current sharing of each PSU is still about 133A (still not exceeding the maximum output current of a single PSU).

III.3个PSU在并连输出在最大4800W。均流汇流排电压为4–6V,其最大输出电流为400A,各PSU均流仍约为133A(仍不超出单PSU最大输出电流)。III.3 PSUs connected in parallel can output a maximum of 4800W. The current sharing bus voltage is 4–6V, and its maximum output current is 400A, and the current sharing of each PSU is still about 133A (still not exceeding the maximum output current of a single PSU).

IV.4个PSU在并连输出在最大6400W。均流汇流排电压为6–8V,其最大输出电流为533A,各PSU均流仍约为133A(仍不超出单PSU最大输出电流)。IV. The maximum output of 4 PSUs in parallel is 6400W. The current sharing bus voltage is 6–8V, and its maximum output current is 533A, and the current sharing of each PSU is still about 133A (still not exceeding the maximum output current of a single PSU).

获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况。Obtain the current sharing bus voltage of the server power supply, and determine the current operation status of the power supply according to the current sharing bus voltage.

在一些实施方式中,所述根据所述均流总线电压确定电源当前的运转情况包括:响应于所述均流总线电压处于第一区间,确定电源当前的运转情况为单一电源运转;以及响应于所述均流总线电压处于其他区间,确定电源当前的运转情况为多个电源并联运转。根据PSU在均流时与输出功率及电流的关系,可以根据所述均流总线电压(Ishare Busvoltage)确定电源当前的运转情况:In some implementations, the determining the current operating condition of the power supply according to the current sharing bus voltage includes: in response to the current sharing bus voltage being in the first interval, determining that the current operating condition of the power supply is single power supply operation; and in response The current-sharing bus voltage is in other intervals, and the current operation status of the power supply is determined as multiple power supplies operating in parallel. According to the relationship between the PSU and the output power and current during current sharing, the current operating status of the power supply can be determined according to the current sharing bus voltage (Ishare Busvoltage):

Ishare Bus voltage=0.25–2V,为单一PSU运转。Ishare Bus voltage=0.25–2V, for single PSU operation.

Ishare Bus voltage=2–4V,为二个PSU并联运转。Ishare Bus voltage=2–4V, for two PSUs to run in parallel.

Ishare Bus voltage=4–6V,为三个PSU并联运转。Ishare Bus voltage=4–6V, for three PSUs running in parallel.

Ishare Bus voltage=6–8V,为四个PSU并联运转。Ishare Bus voltage=6–8V, for parallel operation of four PSUs.

根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流。Determine the current sharing bus voltage and output current according to the current operating conditions and output power of the power supply.

根据回授至二次侧MCU Ishare Bus voltage确定输出电流值。Determine the output current value according to the feedback to the secondary side MCU Ishare Bus voltage.

参考基准如下:The reference benchmarks are as follows:

如单一PSU,均流汇流排电压参考位准为1.22V,总输出电流为75A。For example, with a single PSU, the voltage reference level of the current sharing bus is 1.22V, and the total output current is 75A.

如两个PSU并联,均流汇流排电压参考位准为2.72V,总输出电流为150A。均流后,单PSU电流为75A。If two PSUs are connected in parallel, the voltage reference level of the current-sharing bus is 2.72V, and the total output current is 150A. After current sharing, the single PSU current is 75A.

如两个PSU并联,均流汇流排电压参考位准为3.77V,总输出电流为225A。均流后,单PSU电流为112.5A。If two PSUs are connected in parallel, the voltage reference level of the current sharing bus is 3.77V, and the total output current is 225A. After current sharing, the single PSU current is 112.5A.

如三个PSU并联,均流汇流排电压参考位准为4.72V,总输出电流为300A。均流后,单PSU电流为100A。For example, three PSUs are connected in parallel, the voltage reference level of the current sharing bus is 4.72V, and the total output current is 300A. After current sharing, the current of a single PSU is 100A.

如三个PSU并联,均流汇流排电压参考位准为5.79V,总输出电流为375A。均流后,单PSU电流为125A。For example, three PSUs are connected in parallel, the voltage reference level of the current sharing bus is 5.79V, and the total output current is 375A. After current sharing, the single PSU current is 125A.

如四个PSU并联,均流汇流排电压参考位准为6.72V,总输出电流为450A。均流后,单PSU电流为112.5A。For example, four PSUs are connected in parallel, the voltage reference level of the current sharing bus is 6.72V, and the total output current is 450A. After current sharing, the single PSU current is 112.5A.

如四个PSU并联,均流汇流排电压参考位准为7.7V,总输出电流为533A。均流后,单PSU电流为133A。For example, four PSUs are connected in parallel, the voltage reference level of the current sharing bus is 7.7V, and the total output current is 533A. After current sharing, the single PSU current is 133A.

获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零。响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常。Acquiring the current actual output current of the power supply, and judging whether the current actual output current is zero. In response to the fact that the current actual output current is not zero, the current actual output current is continuously compared with the output current to determine whether it is abnormal.

在一些实施方式中,方法还包括:响应于所述当前实际输出电流为零,使用IPMI工具输入指令并获取服务器当前输出信息;以及响应于所述当前输出信息中寄存器值为预设值,则进行告警。在PMBus1.2指令集中D1h–D3h指令集为预留给功能扩充用。可以取D1h来作为服务器电源输出掉电功能定义及扩充。服务器BMC使用IPMI工具输入指令“D1h”即可获得服务器当前输出信息。此时接受指令为二次侧(SECONDARY Side)MCU,回传Hex值(十六进制)显示目前电流输出状态。如果显示00h表示PSU输出为零,需提出警告;如果显示02h表示PSU均流率在5%以下;如果显示04h表示PSU均流率在10%以下;如果显示06h表示PSU均流率在10%以上。In some implementations, the method further includes: in response to the current actual output current being zero, using the IPMI tool to input an instruction and obtain the current output information of the server; and in response to the register value in the current output information being a preset value, then Make an alarm. In the PMBus1.2 instruction set, the D1h–D3h instruction set is reserved for function expansion. D1h can be used as the server power output power-down function definition and expansion. The server BMC uses the IPMI tool to input the command "D1h" to obtain the current output information of the server. At this time, accepting the instruction is the secondary side (SECONDARY Side) MCU, and returning the Hex value (hexadecimal) to display the current output state. If it displays 00h, it means that the PSU output is zero, and a warning is required; if it displays 02h, it means that the average flow rate of PSU is below 5%; if it displays 04h, it means that the average flow rate of PSU is below 10%; above.

在一些实施方式中,所述进行告警包括:基于二次侧微处理器将服务器电源设备警告脚位由高电平转换为低电平。如此时D1h寄存器值为00h,PSU输出为零,需提出警告。由二次侧MCU将服务器电源设备警告脚位由高电平转换为低电平。此时服务器BMC收到此信号,会发出Server PSU服务器维运人员查看电源状态。此时Server PSU的LED警示会由绿灯转为琥珀色灯号,需更换Server PSU。下表为Server PSU LED灯号表:In some implementation manners, the giving an alarm includes: switching the alarm pin of the server power supply device from a high level to a low level based on the secondary side microprocessor. If the D1h register value is 00h at this time, the PSU output is zero, and a warning is required. The secondary-side MCU switches the warning pin of the server power supply from high level to low level. At this time, the server BMC receives this signal, and will send the Server PSU to the server maintenance personnel to check the power status. At this time, the LED warning light of the Server PSU will change from green to amber, indicating that the Server PSU needs to be replaced. The table below is the LED indicator table of Server PSU:

Figure BDA0003329643950000101
Figure BDA0003329643950000101

在一些实施方式中,所述将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常包括:响应于所述当前实际输出电流与所述输出电流相等,确定所述服务器电源正常工作;以及响应于所述当前实际输出电流与所述输出电流不相等,进行告警。In some implementations, the continuously comparing the current actual output current with the output current to determine whether it is abnormal includes: in response to the current actual output current being equal to the output current, determining that the server power supply normal operation; and in response to the fact that the current actual output current is not equal to the output current, an alarm is issued.

本发明实施例通过服务器电源的均流总线电压得到输出电流,并与实际电流比较,从而针对输出电压在正常范围而输出电流为零的场景进行告警,提升了系统的可用性。In the embodiment of the present invention, the output current is obtained through the current sharing bus voltage of the server power supply, and compared with the actual current, so as to issue an alarm for the scene where the output voltage is within a normal range but the output current is zero, and the availability of the system is improved.

需要特别指出的是,上述检测服务器电源输出掉电的方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于检测服务器电源输出掉电的方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在实施例之上。It should be pointed out that each step in each embodiment of the above-mentioned method for detecting server power output power failure can intersect, replace, increase, or delete each other. The electrical method should also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.

基于上述目的,本发明实施例的第二个方面,提出了一种检测服务器电源输出掉电的系统200。如图4所示,系统200包括如下模块:采集模块,配置用于获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况;确定模块,配置用于根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流;判断模块,配置用于获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零;以及比对模块,配置用于响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常。Based on the above purpose, a second aspect of the embodiments of the present invention proposes asystem 200 for detecting power failure of a server power output. As shown in FIG. 4 , thesystem 200 includes the following modules: an acquisition module configured to obtain the current-sharing bus voltage of the server power supply, and determine the current operating condition of the power supply according to the current-sharing bus voltage; a determination module configured to Determine current-sharing busbar voltage and output current according to the current operating conditions and output power of the power supply; a judging module configured to obtain the current actual output current of the power supply, and judge whether the current actual output current is zero; and compare A module configured to continuously compare the current actual output current with the output current to determine whether it is abnormal in response to the current actual output current being non-zero.

在一些实施方式中,系统还包括设置模块,配置用于:将服务器电源的均流功能脚位接在一起以使得同一个服务器的电源的均流汇流排电压相同。In some embodiments, the system further includes a setting module configured to: connect the current sharing function pins of the server power supplies together so that the current sharing busbar voltages of the same server power supplies are the same.

在一些实施方式中,系统还包括转换模块,配置用于:将所述均流汇流排电压接入二次侧微处理器数位类比转换器脚位中以将所述均流汇流排电压转换为电流值。In some embodiments, the system further includes a conversion module configured to: connect the voltage of the current sharing busbar to the digital-to-analog converter pin of the secondary-side microprocessor to convert the voltage of the current sharing busbar into current value.

在一些实施方式中,所述采集模块进一步配置用于:响应于所述均流总线电压处于第一区间,确定电源当前的运转情况为单一电源运转;以及响应于所述均流总线电压处于其他区间,确定电源当前的运转情况为多个电源并联运转。In some implementations, the acquisition module is further configured to: determine that the current operating condition of the power supply is a single power supply operation in response to the current sharing bus voltage being in the first interval; and in response to the current sharing bus voltage being in another Interval, to determine the current operation of the power supply is multiple power supplies running in parallel.

在一些实施方式中,系统还包括告警模块,配置用于:响应于所述当前实际输出电流为零,使用IPMI工具输入指令并获取服务器当前输出信息;以及响应于所述当前输出信息中寄存器值为预设值,则进行告警。In some implementations, the system further includes an alarm module configured to: respond to the current actual output current being zero, use the IPMI tool to input instructions and obtain the current output information of the server; and respond to the register value in the current output information If it is the default value, an alarm will be issued.

在一些实施方式中,所述告警模块进一步配置用于:基于二次侧微处理器将服务器电源设备警告脚位由高电平转换为低电平。In some implementations, the alarm module is further configured to: switch the alarm pin of the server power supply device from a high level to a low level based on the secondary-side microprocessor.

在一些实施方式中,所述比对模块进一步配置用于:响应于所述当前实际输出电流与所述输出电流相等,确定所述服务器电源正常工作;以及响应于所述当前实际输出电流与所述输出电流不相等,进行告警。In some implementations, the comparison module is further configured to: determine that the server power supply is working normally in response to the current actual output current being equal to the output current; and in response to the current actual output current being equal to the output current If the above output currents are not equal, an alarm will be issued.

基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备,包括:至少一个处理器;以及存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行以实现如下步骤:S1、获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况;S2、根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流;S3、获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零;以及S4、响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常。Based on the above purpose, a third aspect of the embodiments of the present invention proposes a computer device, including: at least one processor; and a memory, the memory stores computer instructions that can run on the processor, and the instructions are executed by the processor to The following steps are implemented: S1. Obtain the current-sharing bus voltage of the server power supply, and determine the current operation status of the power supply according to the current-sharing bus voltage; S2. Determine the current-sharing bus bar according to the current operation status and output power of the power supply voltage and output current; S3. Acquiring the current actual output current of the power supply, and judging whether the current actual output current is zero; and S4. Responding that the current actual output current is not zero, combining the current actual output current with The output current is continuously compared to determine whether it is abnormal.

在一些实施方式中,步骤还包括:将服务器电源的均流功能脚位接在一起以使得同一个服务器的电源的均流汇流排电压相同。In some embodiments, the step further includes: connecting the current sharing function pins of the server power supplies together so that the current sharing busbar voltages of the power supplies of the same server are the same.

在一些实施方式中,步骤还包括:将所述均流汇流排电压接入二次侧微处理器数位类比转换器脚位中以将所述均流汇流排电压转换为电流值。In some embodiments, the step further includes: connecting the voltage of the current sharing bus to a digital-to-analog converter pin of the secondary-side microprocessor to convert the voltage of the current sharing bus into a current value.

在一些实施方式中,所述根据所述均流总线电压确定电源当前的运转情况包括:响应于所述均流总线电压处于第一区间,确定电源当前的运转情况为单一电源运转;以及响应于所述均流总线电压处于其他区间,确定电源当前的运转情况为多个电源并联运转。In some implementations, the determining the current operating condition of the power supply according to the current sharing bus voltage includes: in response to the current sharing bus voltage being in the first interval, determining that the current operating condition of the power supply is single power supply operation; and in response The current-sharing bus voltage is in other intervals, and the current operation status of the power supply is determined as multiple power supplies operating in parallel.

在一些实施方式中,步骤还包括:响应于所述当前实际输出电流为零,使用IPMI工具输入指令并获取服务器当前输出信息;以及响应于所述当前输出信息中寄存器值为预设值,则进行告警。In some embodiments, the steps further include: in response to the current actual output current being zero, using the IPMI tool to input an instruction and obtain the current output information of the server; and in response to the register value in the current output information being a preset value, then Make an alarm.

在一些实施方式中,所述进行告警包括:基于二次侧微处理器将服务器电源设备警告脚位由高电平转换为低电平。In some implementation manners, the giving an alarm includes: switching the alarm pin of the server power supply device from a high level to a low level based on the secondary side microprocessor.

在一些实施方式中,所述将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常包括:响应于所述当前实际输出电流与所述输出电流相等,确定所述服务器电源正常工作;以及响应于所述当前实际输出电流与所述输出电流不相等,进行告警。In some implementations, the continuously comparing the current actual output current with the output current to determine whether it is abnormal includes: in response to the current actual output current being equal to the output current, determining that the server power supply normal operation; and in response to the fact that the current actual output current is not equal to the output current, an alarm is issued.

如图5所示,为本发明提供的上述检测服务器电源输出掉电的计算机设备的一个实施例的硬件结构示意图。As shown in FIG. 5 , it is a schematic diagram of the hardware structure of an embodiment of the above-mentioned computer device for detecting power failure of the server power output provided by the present invention.

以如图5所示的装置为例,在该装置中包括一个处理器301以及一个存储器302。Taking the device shown in FIG. 5 as an example, the device includes aprocessor 301 and amemory 302 .

处理器301和存储器302可以通过总线或者其他方式连接,图5中以通过总线连接为例。Theprocessor 301 and thememory 302 may be connected through a bus or in other ways, and the connection through a bus is taken as an example in FIG. 5 .

存储器302作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的检测服务器电源输出掉电的方法对应的程序指令/模块。处理器301通过运行存储在存储器302中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现检测服务器电源输出掉电的方法。Thememory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the method for detecting power failure of the server power output in the embodiment of the present application. The program instruction/module to which the method corresponds. Theprocessor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in thememory 302, that is, implements a method for detecting power failure of the server power output.

存储器302可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据检测服务器电源输出掉电的方法的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器302可选包括相对于处理器301远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。Thememory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; data etc. In addition, thememory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some embodiments, thememory 302 may optionally include memory that is remotely located relative to theprocessor 301, and these remote memories may be connected to the local module through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

一个或者多个检测服务器电源输出掉电的方法对应的计算机指令303存储在存储器302中,当被处理器301执行时,执行上述任意实施例中检测服务器电源输出掉电的方法。One ormore computer instructions 303 corresponding to the method for detecting power failure of the server power output are stored in thememory 302 , and when executed by theprocessor 301 , execute the method for detecting power failure of the server power output in any of the above embodiments.

执行上述检测服务器电源输出掉电的方法的计算机设备的任何一个实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Any one embodiment of the computer device that executes the above-mentioned method for detecting power failure of the server power output can achieve the same or similar effects as any of the above-mentioned method embodiments corresponding thereto.

本发明还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时执行检测服务器电源输出掉电的方法的计算机程序。The present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program for executing a method for detecting power failure of a server power output when executed by a processor.

如图6所示,为本发明提供的上述检测服务器电源输出掉电的计算机存储介质的一个实施例的示意图。以如图6所示的计算机存储介质为例,计算机可读存储介质401存储有被处理器执行时执行如上方法的计算机程序402。As shown in FIG. 6 , it is a schematic diagram of an embodiment of the computer storage medium for detecting a power failure of a server power output provided by the present invention. Taking the computer storage medium shown in FIG. 6 as an example, the computerreadable storage medium 401 stores acomputer program 402 for executing the above method when executed by a processor.

最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,检测服务器电源输出掉电的方法的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,程序的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, it should be noted that those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the program for detecting the power failure of the server power output can be stored in a In the computer-readable storage medium, when the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), and the like. The foregoing computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.

以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are the exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosed embodiments of the present invention defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in an individual form, they may also be understood as a plurality unless explicitly limited to a singular number.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that as used herein, the singular form "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments disclosed in the above-mentioned embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above-mentioned embodiments can be completed by hardware, or can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned The storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is exemplary only, and is not intended to imply that the scope (including claims) disclosed by the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in details for the sake of brevity. Therefore, within the spirit and principle of the embodiments of the present invention, any omissions, modifications, equivalent replacements, improvements, etc., shall be included in the protection scope of the embodiments of the present invention.

Claims (8)

Translated fromChinese
1.一种检测服务器电源输出掉电的方法,其特征在于,包括如下步骤:1. A method for detecting server power output power failure, characterized in that, comprising the steps:获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况;Obtain the current-sharing bus voltage of the server power supply, and determine the current operating condition of the power supply according to the current-sharing bus voltage;根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流;Determine the current sharing bus voltage and output current according to the current operating conditions and output power of the power supply;获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零;以及Obtaining the current actual output current of the power supply, and judging whether the current actual output current is zero; and响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常,In response to the fact that the current actual output current is not zero, continuously comparing the current actual output current with the output current to determine whether it is abnormal,所述根据所述均流总线电压确定电源当前的运转情况包括:The determining the current operating condition of the power supply according to the current sharing bus voltage includes:响应于所述均流总线电压处于第一区间,确定电源当前的运转情况为单一电源运转;In response to the current sharing bus voltage being in the first interval, determine that the current operating condition of the power supply is the operation of a single power supply;响应于所述均流总线电压处于其他区间,确定电源当前的运转情况为多个电源并联运转,In response to the current sharing bus voltage being in other intervals, determining that the current operating condition of the power supply is that multiple power supplies are operating in parallel,所述将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常包括:The continuously comparing the current actual output current with the output current to determine whether it is abnormal includes:响应于所述当前实际输出电流与所述输出电流相等,确定所述服务器电源正常工作;以及determining that the server power supply is operating normally in response to the current actual output current being equal to the output current; and响应于所述当前实际输出电流与所述输出电流不相等,进行告警。An alarm is issued in response to the fact that the current actual output current is not equal to the output current.2.根据权利要求1所述的方法,其特征在于,方法还包括:2. The method according to claim 1, characterized in that the method further comprises:将服务器电源的均流功能脚位接在一起以使得同一个服务器的电源的均流汇流排电压相同。Connect the current sharing function pins of the server power supplies together to make the current sharing bus voltages of the power supplies of the same server the same.3.根据权利要求1所述的方法,其特征在于,方法还包括:3. The method according to claim 1, characterized in that the method further comprises:将所述均流汇流排电压接入二次侧微处理器数位类比转换器脚位中以将所述均流汇流排电压转换为电流值。The voltage of the current equalizing bus bar is connected to the digital-to-analog converter pin of the secondary side microprocessor to convert the voltage of the current equalizing bus bar into a current value.4.根据权利要求1所述的方法,其特征在于,方法还包括:4. The method according to claim 1, wherein the method further comprises:响应于所述当前实际输出电流为零,使用IPMI工具输入指令并获取服务器当前输出信息;In response to the fact that the current actual output current is zero, use the IPMI tool to input an instruction and obtain the current output information of the server;响应于所述当前输出信息中寄存器值为预设值,则进行告警。In response to the preset value of the register in the current output information, an alarm is issued.5.根据权利要求4所述的方法,其特征在于,所述进行告警包括:5. The method according to claim 4, wherein the giving an alarm comprises:基于二次侧微处理器将服务器电源设备警告脚位由高电平转换为低电平。Based on the secondary side microprocessor, the warning pin of the server power supply equipment is converted from a high level to a low level.6.一种检测服务器电源输出掉电的系统,其特征在于,包括:6. A system for detecting server power output power failure, characterized in that it comprises:采集模块,配置用于获取所述服务器电源的均流总线电压,并根据所述均流总线电压确定电源当前的运转情况;The acquisition module is configured to acquire the current-sharing bus voltage of the server power supply, and determine the current operation status of the power supply according to the current-sharing bus voltage;确定模块,配置用于根据所述电源当前的运转情况和输出功率确定均流汇流排电压和输出电流;A determination module configured to determine the current sharing bus voltage and output current according to the current operating conditions and output power of the power supply;判断模块,配置用于获取所述电源当前实际输出电流,判断所述当前实际输出电流是否为零;以及A judging module configured to obtain the current actual output current of the power supply, and judge whether the current actual output current is zero; and比对模块,配置用于响应于所述当前实际输出电流不为零,将所述当前实际输出电流与所述输出电流进行持续比对以确定是否异常,a comparison module, configured to continuously compare the current actual output current with the output current to determine whether it is abnormal in response to the current actual output current being non-zero,所述采集模块配置用于:The acquisition module is configured for:响应于所述均流总线电压处于第一区间,确定电源当前的运转情况为单一电源运转;In response to the current sharing bus voltage being in the first interval, determine that the current operating condition of the power supply is the operation of a single power supply;响应于所述均流总线电压处于其他区间,确定电源当前的运转情况为多个电源并联运转,In response to the current sharing bus voltage being in other intervals, determining that the current operating condition of the power supply is that multiple power supplies are operating in parallel,所述比对模块配置用于:The comparison module is configured for:响应于所述当前实际输出电流与所述输出电流相等,确定所述服务器电源正常工作;以及determining that the server power supply is operating normally in response to the current actual output current being equal to the output current; and响应于所述当前实际输出电流与所述输出电流不相等,进行告警。An alarm is issued in response to the fact that the current actual output current is not equal to the output current.7. 一种计算机设备,其特征在于,包括:7. A computer device, comprising:至少一个处理器;以及at least one processor; and存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求1-5任意一项所述方法的步骤。A memory, the memory stores computer instructions operable on the processor, and when the instructions are executed by the processor, the steps of the method according to any one of claims 1-5 are implemented.8.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-5任意一项所述方法的步骤。8. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1-5 are implemented.
CN202111276666.6A2021-10-292021-10-29Method, system, equipment and storage medium for detecting power failure of power supply output of serverActiveCN113970964B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111276666.6ACN113970964B (en)2021-10-292021-10-29Method, system, equipment and storage medium for detecting power failure of power supply output of server

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111276666.6ACN113970964B (en)2021-10-292021-10-29Method, system, equipment and storage medium for detecting power failure of power supply output of server

Publications (2)

Publication NumberPublication Date
CN113970964A CN113970964A (en)2022-01-25
CN113970964Btrue CN113970964B (en)2023-06-16

Family

ID=79589033

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111276666.6AActiveCN113970964B (en)2021-10-292021-10-29Method, system, equipment and storage medium for detecting power failure of power supply output of server

Country Status (1)

CountryLink
CN (1)CN113970964B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107765831A (en)*2016-08-182018-03-06中国长城科技集团股份有限公司A kind of computer, computer power supply and its warning circuit
CN108170249A (en)*2018-02-092018-06-15深圳市杰和科技发展有限公司A kind of method of supplying power to and electric power system of server CPU redundant powers
CN111857313A (en)*2020-07-102020-10-30苏州浪潮智能科技有限公司 A current sharing control system and method for a power supply module of a whole cabinet server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10168721B2 (en)*2015-11-022019-01-01Dell Products, L.P.Controlling redundant power supplies in an information handling system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107765831A (en)*2016-08-182018-03-06中国长城科技集团股份有限公司A kind of computer, computer power supply and its warning circuit
CN108170249A (en)*2018-02-092018-06-15深圳市杰和科技发展有限公司A kind of method of supplying power to and electric power system of server CPU redundant powers
CN111857313A (en)*2020-07-102020-10-30苏州浪潮智能科技有限公司 A current sharing control system and method for a power supply module of a whole cabinet server

Also Published As

Publication numberPublication date
CN113970964A (en)2022-01-25

Similar Documents

PublicationPublication DateTitle
US9436249B2 (en)Rack and power controlling method thereof
US7906871B2 (en)Apparatus, system, and method for reducing power consumption on devices with multiple power supplies
KR101458357B1 (en)Rack and power control method thereof
TWI540423B (en)Power distribution system
US20140132070A1 (en)Rack and power control method thereof
TW201526467A (en)Apparatus and method for power supply
US8276000B2 (en)System and method for supplying power to a load using deep-sleep-mode power supplies
US11381107B2 (en)Systems and methods for providing direct current and alternating current from a power supply to a load
CN102183986A (en)Multi-source power supply control method, device and system
CN107196406A (en) A Switching Control Method of Dual Auxiliary Power Supply
WO2016082433A1 (en)Mainframe power management method, apparatus and mainframe system
TWI505076B (en)Power supply system and data center
WO2020113932A1 (en)Circuit, ac/dc conversion module, direct-current microgrid and control method therefor
CN110401260B (en)Server standby power supply and server power supply
TWI497274B (en)Rack and power controlling method thereof
CN118655971B (en)Power supply power conversion unit, power supply system, and power supply method and device of server
CN113970964B (en)Method, system, equipment and storage medium for detecting power failure of power supply output of server
US20140016259A1 (en)Multi-motherboard power data communication architecture for power supplies
CN113471992B (en) A cabinet power supply method, system, equipment and medium
TWI477032B (en)Rack and power controlling method thereof
TWI482395B (en)Rack and power controlling method thereof
CN109905018B (en) Power supply system and control method thereof
CN114498908A (en)Uninterruptible power supply system and control method thereof
US20130154378A1 (en)Method for controlling a parallel line-interactive uninterruptible power supply system
TW201633656A (en)Uninterruptible power supply system for solar controller

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address

Address after:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after:Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after:China

Address before:215000 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee before:SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp