CN118112452A - A power supply current equalization detection method and computing device - Google Patents

A power supply current equalization detection method and computing device Download PDF

Info

Publication number
CN118112452A
CN118112452A CN202311870412.6A CN202311870412A CN118112452A CN 118112452 A CN118112452 A CN 118112452A CN 202311870412 A CN202311870412 A CN 202311870412A CN 118112452 A CN118112452 A CN 118112452A
Authority
CN
China
Prior art keywords
psu
current
psus
sharing
output
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.)
Pending
Application number
CN202311870412.6A
Other languages
Chinese (zh)
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.)
XFusion Digital Technologies Co Ltd
Original Assignee
XFusion Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XFusion Digital Technologies Co Ltd filed Critical XFusion Digital Technologies Co Ltd
Priority to CN202311870412.6A priority Critical patent/CN118112452A/en
Publication of CN118112452A publication Critical patent/CN118112452A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Algebra (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides a power supply current sharing detection method and computing equipment, wherein the method comprises the following steps: obtaining output currents of a plurality of PSUs according to a preset time interval, and determining average output currents according to the output currents of the PSUs; determining the current sharing deviation degree of each PSU according to the average output current and the output current of each PSU; determining whether the plurality of PSUs are in a heavy load mode; if the PSUs are in the heavy-load mode, determining a target PSU with the current sharing deviation degree larger than or equal to a preset deviation degree threshold value in the PSUs, and outputting non-current sharing alarm information of the target PSU, so that a power supply unit with abnormal current sharing state can be identified efficiently and accurately, and the reliability of a power supply system is improved.

Description

一种电源均流检测方法及计算设备A power supply current equalization detection method and computing device

技术领域Technical Field

本申请涉及电子技术领域,尤其涉及一种电源均流检测方法及计算设备。The present application relates to the field of electronic technology, and in particular to a power supply current sharing detection method and computing equipment.

背景技术Background technique

随着数字经济的快速发展,服务器等计算设备作为数据中心的核心信息处理单元,成为数据中心的主要耗电设备。随着计算设备整机功耗的增加,为了保证供电可靠性,行业通用做法是采用供电系统的多个供电单元(power supply unit,PSU)并联为计算设备供电,多个PSU共同承担计算设备的负载,这其中对PSU工作状态的监测变得尤为重要。With the rapid development of the digital economy, computing devices such as servers, as the core information processing units of data centers, have become the main power-consuming devices in data centers. As the power consumption of computing devices increases, in order to ensure power supply reliability, the general practice in the industry is to use multiple power supply units (PSU) of the power supply system in parallel to power computing devices. Multiple PSUs share the load of computing devices, and monitoring the working status of PSUs becomes particularly important.

目前的监测方式主要是对PSU在工作过程中进行过流监测,也即是判断PSU的输出电流是否达到过流保护点,如果达到过流保护点,则供电系统上报告警信息;如果未达到过流保护点,则供电系统不上报告警信息。然而,这种监测方式对供电系统的一些安全隐患无法识别,例如当一个PSU触发过流保护,短时间内其他PSU也很可能触发过流保护,出现系统下电的风险。因此,如何提高供电系统的可靠性成为一个亟待解决的问题。The current monitoring method mainly monitors the overcurrent of the PSU during operation, that is, to determine whether the output current of the PSU reaches the overcurrent protection point. If it reaches the overcurrent protection point, the power supply system reports an alarm; if it does not reach the overcurrent protection point, the power supply system does not report an alarm. However, this monitoring method cannot identify some potential safety hazards of the power supply system. For example, when one PSU triggers the overcurrent protection, other PSUs are likely to trigger the overcurrent protection in a short period of time, resulting in the risk of system power failure. Therefore, how to improve the reliability of the power supply system has become an urgent problem to be solved.

发明内容Summary of the invention

本申请实施例提供一种电源均流检测方法及计算设备,可以高效、准确地识别出均流状态异常的供电单元,有助于提高供电系统的可靠性。The embodiments of the present application provide a power supply current sharing detection method and a computing device, which can efficiently and accurately identify power supply units with abnormal current sharing status, thereby helping to improve the reliability of the power supply system.

一方面,本申请实施例提供了一种电源均流检测方法,应用于计算设备;计算设备包括多个供电单元PSU;该多个PSU用于为计算设备供电;该方法包括:On the one hand, an embodiment of the present application provides a power supply current sharing detection method, which is applied to a computing device; the computing device includes a plurality of power supply units PSU; the plurality of PSUs are used to power the computing device; the method includes:

按照预设时间间隔获取该多个PSU的输出电流,并根据该多个PSU的输出电流确定平均输出电流。The output currents of the plurality of PSUs are acquired at preset time intervals, and an average output current is determined according to the output currents of the plurality of PSUs.

根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。The current sharing deviation of each PSU is determined according to the average output current and the output current of each PSU.

确定该多个PSU是否处于重载模式。Determine whether the plurality of PSUs are in overload mode.

若该多个PSU处于重载模式,则确定该多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU,并输出目标PSU的不均流告警信息。If the multiple PSUs are in the overload mode, a target PSU whose current sharing deviation is greater than or equal to a preset deviation threshold is determined among the multiple PSUs, and current imbalance alarm information of the target PSU is output.

该实施例通过获取供电单元的均流偏离度可以高效、准确地识别出均流状态异常的供电单元,并及时发出告警信息,特别是在供电系统处于重载模式的情况下,可以提前发现可能存在过流风险的供电单元,有效降低供电系统下电的风险,从而提高供电系统的可靠性。This embodiment can efficiently and accurately identify power supply units with abnormal current sharing status by obtaining the current sharing deviation of the power supply units, and issue alarm information in time. Especially when the power supply system is in overload mode, power supply units that may have overcurrent risks can be discovered in advance, effectively reducing the risk of power failure of the power supply system, thereby improving the reliability of the power supply system.

在一实现方式中,确定多个PSU是否处于重载模式,包括:In one implementation, determining whether a plurality of PSUs are in a heavy load mode includes:

获取PSU的额定输出电流。Get the rated output current of the PSU.

根据多个PSU的输出电流、额定输出电流以及多个PSU的数量,确定负载比例。The load ratio is determined based on the output currents of the multiple PSUs, the rated output currents, and the number of the multiple PSUs.

若负载比例大于或等于预设比例阈值,则确定多个PSU处于重载模式,通过PSU的输出电流、额定输出电流以及数量等多维度的数据可以准确地判定PSU是否处于重载模式。If the load ratio is greater than or equal to the preset ratio threshold, it is determined that multiple PSUs are in overload mode. The output current, rated output current, and quantity of the PSU can be used to accurately determine whether the PSU is in overload mode.

在一实现方式中,根据多个PSU的输出电流、额定输出电流以及多个PSU的数量,确定负载比例,包括:In one implementation, determining the load ratio according to the output currents of the plurality of PSUs, the rated output currents, and the number of the plurality of PSUs includes:

根据多个PSU的输出电流确定总输出电流。The total output current is determined based on the output currents of multiple PSUs.

根据额定输出电流以及多个PSU的数量确定总额定输出电流。Determine the total rated output current based on the rated output current and the number of multiple PSUs.

计算总输出电流以及总额定输出电流的比值,得到负载比例,可以准确地计算得到负载比例,来指示当前的负载大小占总输出能力的比例,有助于准确地判断该多个PSU是否处于重载模式。The ratio of the total output current to the total rated output current is calculated to obtain the load ratio. The load ratio can be accurately calculated to indicate the ratio of the current load size to the total output capacity, which helps to accurately determine whether the multiple PSUs are in overload mode.

在一实现方式中,PSU的数量为两个,计算设备还包括均流母线;两个PSU与均流母线电连接。In one implementation, there are two PSUs, and the computing device further includes a current sharing bus; the two PSUs are electrically connected to the current sharing bus.

在输出目标PSU的不均流告警信息之后,该方法还包括:After outputting the uneven current alarm information of the target PSU, the method further includes:

向第一PSU发送调压指令,调压指令用于指示第一PSU按照预设调整步长增大输出电压,直到第二PSU的输出电流减小到预设电流值;其中,第一PSU为两个PSU中的任意一个,第二PSU为两个PSU中除第一PSU之外的PSU。A voltage regulation instruction is sent to the first PSU, where the voltage regulation instruction is used to instruct the first PSU to increase the output voltage according to a preset adjustment step until the output current of the second PSU decreases to a preset current value; wherein the first PSU is any one of the two PSUs, and the second PSU is the PSU of the two PSUs except the first PSU.

获取响应数据,响应数据包括均流母线的母线电压变化数据、第一PSU的均流转换系数以及第二PSU的输出电压变化数据中的一种或多种;其中,均流转换系数是指将PSU的输出电流转换成输入至均流母线的电压的比例系数。Acquire response data, the response data including one or more of bus voltage change data of the current-sharing bus, the current-sharing conversion coefficient of the first PSU, and output voltage change data of the second PSU; wherein the current-sharing conversion coefficient refers to the proportional coefficient of converting the output current of the PSU into the voltage input to the current-sharing bus.

根据响应数据从两个PSU中确定故障PSU,并输出故障PSU的故障指示信息,在使用两个PSU为计算设备供电的场景中,可以自动化且准确地实现故障PSU的定位,进一步提高供电系统的可靠性以及管理维护效率。The faulty PSU is determined from the two PSUs based on the response data, and the fault indication information of the faulty PSU is output. In the scenario where two PSUs are used to power computing equipment, the faulty PSU can be located automatically and accurately, further improving the reliability of the power supply system and the management and maintenance efficiency.

在一实现方式中,根据响应数据从两个PSU中确定故障PSU,包括:In one implementation, determining the faulty PSU from the two PSUs according to the response data includes:

根据均流母线的母线电压变化数据,或者,均流母线的母线电压变化数据以及第一PSU的均流转换系数,确定第一PSU是否为故障PSU。Whether the first PSU is a faulty PSU is determined based on the bus voltage change data of the current sharing bus, or the bus voltage change data of the current sharing bus and the current sharing conversion coefficient of the first PSU.

若否,则根据第二PSU的输出电压变化数据确定第二PSU是否为故障PSU,从而可以准确判定第一PSU、第二PSU是否故障。If not, it is determined whether the second PSU is a faulty PSU based on the output voltage change data of the second PSU, so that it can be accurately determined whether the first PSU and the second PSU are faulty.

在一实现方式中,根据均流母线的母线电压变化数据,确定第一PSU是否为故障PSU,包括:In one implementation, determining whether the first PSU is a faulty PSU according to bus voltage change data of the current sharing bus includes:

若均流母线的母线电压变化数据指示均流母线的母线电压未发生变化,则确定第一PSU为故障PSU,从而利用均流母线的母线电压变化数据可以准确地判定第一PSU是否故障。If the bus voltage change data of the current-sharing bus indicates that the bus voltage of the current-sharing bus has not changed, the first PSU is determined to be a faulty PSU, so that the bus voltage change data of the current-sharing bus can be used to accurately determine whether the first PSU is faulty.

在一实现方式中,根据均流母线的母线电压变化数据以及第一PSU的均流转换系数,确定第一PSU是否为故障PSU,包括:In one implementation, determining whether the first PSU is a faulty PSU according to bus voltage change data of the current-sharing bus and a current-sharing conversion coefficient of the first PSU includes:

若均流母线的母线电压变化数据指示均流母线的母线电压发生变化,则比较第一PSU的均流转换系数与预设均流转换系数。If the bus voltage change data of the current-sharing bus indicates that the bus voltage of the current-sharing bus has changed, the current-sharing conversion coefficient of the first PSU is compared with the preset current-sharing conversion coefficient.

若第一PSU的均流转换系数与预设均流转换系数不匹配,则确定第一PSU为故障PSU,从而利用均流母线的母线电压变化数据以及第一PSU的均流转换系数可以准确地判定第一PSU是否故障。If the current sharing conversion coefficient of the first PSU does not match the preset current sharing conversion coefficient, the first PSU is determined to be a faulty PSU, so that the bus voltage change data of the current sharing bus and the current sharing conversion coefficient of the first PSU can be used to accurately determine whether the first PSU is faulty.

在一实现方式中,根据所述第二PSU的输出电压变化数据确定第二PSU是否为故障PSU,包括:In one implementation, determining whether the second PSU is a faulty PSU according to the output voltage change data of the second PSU includes:

若第二PSU的输出电压变化数据指示第二PSU的输出电压未升高,则确定第二PSU为故障PSU,从而利用第二PSU的输出电压变化数据可以准确地判定第二PSU是否故障。If the output voltage variation data of the second PSU indicates that the output voltage of the second PSU does not increase, the second PSU is determined to be a faulty PSU, so that whether the second PSU is faulty can be accurately determined using the output voltage variation data of the second PSU.

在一实现方式中,响应数据包括第一PSU的均流转换系数;获取响应数据,包括:In one implementation, the response data includes a current sharing conversion coefficient of the first PSU; acquiring the response data includes:

获取均流母线的母线电压、第一PSU的输出电流、第一PSU的均流电阻以及第二PSU的均流电阻。Obtain a bus voltage of the current-sharing bus, an output current of the first PSU, a current-sharing resistor of the first PSU, and a current-sharing resistor of the second PSU.

根据均流母线的母线电压、第一PSU的输出电流、第一PSU的均流电阻以及第二PSU的均流电阻,计算得到第一PSU的均流转换系数,从而可以准确地获得第一PSU的均流转换系数。The current sharing conversion coefficient of the first PSU is calculated based on the bus voltage of the current sharing bus, the output current of the first PSU, the current sharing resistance of the first PSU and the current sharing resistance of the second PSU, so that the current sharing conversion coefficient of the first PSU can be accurately obtained.

另一方面,本申请实施例提供了一种电源均流检测装置,应用于计算设备;计算设备包括多个供电单元PSU;该多个PSU用于为计算设备供电;该装置包括:On the other hand, an embodiment of the present application provides a power supply current sharing detection device, which is applied to a computing device; the computing device includes a plurality of power supply units PSU; the plurality of PSUs are used to power the computing device; the device includes:

获取单元,用于按照预设时间间隔获取该多个PSU的输出电流。The acquisition unit is used to acquire the output currents of the multiple PSUs at preset time intervals.

确定单元,用于根据该多个PSU的输出电流确定平均输出电流。The determining unit is configured to determine an average output current according to the output currents of the plurality of PSUs.

确定单元,还用于根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。The determination unit is further used to determine the current sharing deviation of each PSU according to the average output current and the output current of each PSU.

确定单元,还用于确定该多个PSU是否处于重载模式。The determination unit is further configured to determine whether the plurality of PSUs are in a heavy load mode.

确定单元,还用于若该多个PSU处于重载模式,则确定该多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU。The determination unit is further configured to determine a target PSU among the multiple PSUs whose current sharing deviation is greater than or equal to a preset deviation threshold if the multiple PSUs are in the overload mode.

输出单元,用于输出目标PSU的不均流告警信息。The output unit is used to output uneven current alarm information of the target PSU.

又一方面,本申请实施例提供了一种计算设备,计算设备包括基板管理控制器BMC、多个供电单元PSU和存储器;BMC分别与该多个PSU和存储器电连接;该多个PSU用于为计算设备供电。On the other hand, an embodiment of the present application provides a computing device, which includes a baseboard management controller BMC, multiple power supply units PSU and a memory; the BMC is electrically connected to the multiple PSUs and the memory, respectively; and the multiple PSUs are used to power the computing device.

存储器用于存储计算机程序指令。The memory is used to store computer program instructions.

BMC用于调用程序指令,以使计算设备执行前述的任意一项电源均流检测方法步骤。The BMC is used to call program instructions to enable the computing device to execute any one of the above-mentioned power current sharing detection method steps.

本申请实施例中,计算设备与多个供电单元PSU电连接,该多个PSU用于为计算设备供电,计算设备按照预设时间间隔获取该多个PSU的输出电流,并根据该多个PSU的输出电流确定平均输出电流。然后,计算设备根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。计算设备确定该多个PSU是否处于重载模式,如果该多个PSU处于重载模式,也即是供电系统的负荷较大,则计算设备确定该多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU,并输出目标PSU的不均流告警信息,通过获取供电单元的均流偏离度可以高效、准确地识别出均流状态异常的供电单元,并及时发出告警信息,特别是在供电系统处于重载模式的情况下,可以提前发现可能存在过流风险的供电单元,有效降低供电系统下电的风险,从而提高供电系统的可靠性。In an embodiment of the present application, a computing device is electrically connected to a plurality of power supply units PSU, and the plurality of PSUs are used to power the computing device. The computing device obtains the output current of the plurality of PSUs at a preset time interval, and determines the average output current according to the output current of the plurality of PSUs. Then, the computing device determines the current sharing deviation of each PSU according to the average output current and the output current of each PSU. The computing device determines whether the plurality of PSUs are in overload mode. If the plurality of PSUs are in overload mode, that is, the load of the power supply system is large, the computing device determines the target PSU whose current sharing deviation is greater than or equal to the preset deviation threshold among the plurality of PSUs, and outputs the target PSU's uneven current alarm information. By obtaining the current sharing deviation of the power supply unit, the power supply unit with abnormal current sharing state can be efficiently and accurately identified, and the alarm information can be issued in time. Especially when the power supply system is in overload mode, the power supply unit with possible overcurrent risk can be found in advance, and the risk of power failure of the power supply system can be effectively reduced, thereby improving the reliability of the power supply system.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1是本申请实施例提供的一种计算设备的结构示意图;FIG1 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

图2是本申请实施例提供的一种电源均流检测方法的流程示意图;FIG2 is a flow chart of a power supply current sharing detection method provided in an embodiment of the present application;

图3是本申请实施例提供的另一种电源均流检测方法的流程示意图;FIG3 is a flow chart of another power supply current sharing detection method provided in an embodiment of the present application;

图4是本申请实施例提供的另一种计算设备的结构示意图;FIG4 is a schematic diagram of the structure of another computing device provided in an embodiment of the present application;

图5是本申请实施例提供的又一种电源均流检测方法的流程示意图;FIG5 is a flow chart of another power supply current sharing detection method provided in an embodiment of the present application;

图6是本申请实施例提供的一种电源均流检测装置的结构示意图。FIG6 is a schematic diagram of the structure of a power supply current sharing detection device provided in an embodiment of the present application.

具体实施方式Detailed ways

为了更好地理解本申请实施例提供的技术方案,下面对本申请的相关实施例进行描述。In order to better understand the technical solutions provided by the embodiments of the present application, the relevant embodiments of the present application are described below.

请参见图1,是本申请实施例提供的一种计算设备的结构示意图,该计算设备可以包括:基板管理控制器(baseboard management controller,BMC)11、多个供电单元12(PSU1、PSU 2、……、PSU n)以及负载13,该多个供电单元12组成计算设备的供电系统。Please refer to Figure 1, which is a structural diagram of a computing device provided in an embodiment of the present application. The computing device may include: a baseboard management controller (BMC) 11, multiple power supply units 12 (PSU1, PSU 2,..., PSU n) and a load 13. The multiple power supply units 12 constitute a power supply system of the computing device.

其中,该多个供电单元12分别与负载13电连接,用于为计算设备供电(Iout 1、Iout2、……、Iout n)。该多个供电单元12分别通过通信母线与BMC 11电连接,供电单元12利用通信母线与BMC 11进行通信,例如向BMC 11上报自身的工作状态信息,工作状态信息可以包括输出电压、输出电流等。The multiple power supply units 12 are electrically connected to the load 13 respectively, and are used to supply power to the computing device (Iout 1, Iout2, ..., Iout n). The multiple power supply units 12 are electrically connected to the BMC 11 respectively through the communication bus. The power supply units 12 communicate with the BMC 11 using the communication bus, for example, reporting their own working status information to the BMC 11. The working status information may include output voltage, output current, etc.

其中,该多个供电单元12分别与均流母线电连接,每个供电单元12根据均流母线的母线电压调整自身的输出电流,使得该多个供电单元12的输出电流相等,实现供电单元之间的均流。Among them, the multiple power supply units 12 are electrically connected to the current-sharing bus respectively, and each power supply unit 12 adjusts its own output current according to the bus voltage of the current-sharing bus, so that the output currents of the multiple power supply units 12 are equal, thereby achieving current sharing between the power supply units.

在一些可实现的实施方式中,通信母线可以采用两线式串行总线(inter-integrated circuit,I2C)通信协议。In some practicable implementations, the communication bus may adopt a two-wire serial bus (inter-integrated circuit, I2C) communication protocol.

示例性,计算设备可以是独立的物理服务器,例如从功能上划分,该物理服务器可以是通用型服务器、图形处理器(graphics processing unit,GPU)服务器等类型的服务器。从形态上划分,该物理服务器可以使机器服务器,还可以是整机柜服务器。负载可以是处理器、内存、网卡或硬盘等。本申请实施例对服务器以及负载的类型不作限定。For example, the computing device may be an independent physical server. For example, in terms of function, the physical server may be a general-purpose server, a graphics processing unit (GPU) server, or other types of servers. In terms of form, the physical server may be a machine server or a whole cabinet server. The load may be a processor, a memory, a network card, or a hard disk. The embodiments of the present application do not limit the types of servers and loads.

请参见图2,是本申请实施例基于图1所示的计算设备提供的一种电源均流检测方法的流程示意图,该电源均流检测方法应用于计算设备,具体可以由计算设备的基板管理控制器BMC执行,具体可以包括如下步骤:Please refer to FIG. 2, which is a flow chart of a power current balancing detection method provided by the computing device shown in FIG. 1 according to an embodiment of the present application. The power current balancing detection method is applied to the computing device and can be specifically executed by the baseboard management controller BMC of the computing device. Specifically, the following steps may be included:

201、按照预设时间间隔获取多个PSU的输出电流,并根据多个PSU的输出电流确定平均输出电流。201. Obtain output currents of a plurality of PSUs at preset time intervals, and determine an average output current according to the output currents of the plurality of PSUs.

其中,预设时间间隔可以是1秒(s),也可以根据需要设置为其他值,本申请实施例不做限定。Among them, the preset time interval can be 1 second (s), or can be set to other values as needed, which is not limited in the embodiment of the present application.

具体的,对于为计算设备供电的多个PSU,每个PSU可以按照预设时间间隔通过通信母线向计算设备的基板管理控制器BMC上报自身的输出电流,或者,BMC按照预设时间间隔通过通信母线向每个PSU发送电流获取指令,每个PSU响应该电流获取指令通过通信母线向BMC上报自身的输出电流。BMC获取到该多个PSU的输出电流之后,根据该多个PSU的输出电流计算该多个PSU的平均输出电流。Specifically, for multiple PSUs that power a computing device, each PSU can report its own output current to a baseboard management controller BMC of the computing device through a communication bus at a preset time interval, or the BMC sends a current acquisition instruction to each PSU through the communication bus at a preset time interval, and each PSU responds to the current acquisition instruction and reports its own output current to the BMC through the communication bus. After the BMC obtains the output currents of the multiple PSUs, it calculates the average output current of the multiple PSUs based on the output currents of the multiple PSUs.

在一些可实现的实施方式中,BMC可以将该多个PSU的输出电流相加,得到总输出电流,然后计算总输出电流与该多个PSU的数量之间的第一比值,将该第一比值作为该多个PSU的平均输出电流。In some feasible implementations, the BMC may add the output currents of the multiple PSUs to obtain a total output current, and then calculate a first ratio between the total output current and the number of the multiple PSUs, and use the first ratio as an average output current of the multiple PSUs.

在一些可实现的实施方式中,为了进行均流检测,BMC在获取该多个PSU的输出电流之前,可以获取该多个PSU的属性参数以及工作模式,属性参数可以包括标识信息以及功率参数,标识信息可以包括品牌、型号等,功率参数可以是额定功率。根据属性参数可以确定该多个PSU是否混插,混插是指不同品牌、型号、功率参数的PSU并联起来为计算设备供电。如果该多个PSU的属性参数相同,且该多个PSU的工作模式为负载均衡模式,负载均衡模式是指各个PSU按照相同的比例承担计算设备的负载,则BMC获取该多个PSU的输出电流,也即是在当前为计算设备供电的各个PSU的属性参数一致(即不存在混插),且处于负载均衡模式的情况下,BMC才会为了进行均流检测而获取该多个PSU的输出电流,可以提高均流控制的有效性以及准确性。In some achievable implementations, in order to perform current sharing detection, before obtaining the output current of the multiple PSUs, the BMC may obtain the attribute parameters and working modes of the multiple PSUs, the attribute parameters may include identification information and power parameters, the identification information may include brand, model, etc., and the power parameter may be rated power. According to the attribute parameters, it can be determined whether the multiple PSUs are mixed plugged in, and mixed plugging refers to PSUs of different brands, models, and power parameters being connected in parallel to power the computing device. If the attribute parameters of the multiple PSUs are the same, and the working mode of the multiple PSUs is a load balancing mode, and the load balancing mode means that each PSU bears the load of the computing device in the same proportion, then the BMC obtains the output current of the multiple PSUs, that is, when the attribute parameters of each PSU currently powering the computing device are consistent (that is, there is no mixed plugging), and in the case of being in the load balancing mode, the BMC will obtain the output current of the multiple PSUs for current sharing detection, which can improve the effectiveness and accuracy of current sharing control.

202、根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。202. Determine the current sharing deviation of each PSU according to the average output current and the output current of each PSU.

其中,均流偏离度也可以称为均流不平衡度,可以用于评价PSU的均流性能。Among them, the current sharing deviation can also be called current sharing imbalance, which can be used to evaluate the current sharing performance of the PSU.

具体的,BMC可以计算每个PSU的输出电流与平均输出电流之间的偏差,根据该偏差确定每个PSU的均流偏离度。例如,BMC计算每个PSU的输出电流与平均输出电流之间的差值,并计算该差值与平均输出电流之间的第二比值,将该第二比值作为PSU的均流偏离度。Specifically, the BMC may calculate the deviation between the output current of each PSU and the average output current, and determine the current sharing deviation of each PSU according to the deviation. For example, the BMC calculates the difference between the output current of each PSU and the average output current, and calculates a second ratio between the difference and the average output current, and uses the second ratio as the current sharing deviation of the PSU.

可以理解的是,由于输出电流与平均输出电流之间的差值可能为正值,也可能为负值,为保证均流偏离度为正值,可以将输出电流与平均输出电流之间的差值取绝对值,然后再将差值的绝对值与平均输出电流计算比值。It can be understood that since the difference between the output current and the average output current may be positive or negative, in order to ensure that the current sharing deviation is a positive value, the absolute value of the difference between the output current and the average output current can be taken, and then the ratio of the absolute value of the difference to the average output current can be calculated.

203、确定多个PSU是否处于重载模式。203. Determine whether multiple PSUs are in overload mode.

其中,重载模式可以是指包括该多个PSU的供电系统的总负载达到预设负载阈值的状态。The heavy load mode may refer to a state where the total load of the power supply system including the multiple PSUs reaches a preset load threshold.

具体的,供电系统在重载模式下,总输出电流较高,很可能超过单个PSU的最大输出能力,此时如果某个PSU的均流偏离度过高,则意味着该PSU或者其他PSU需要承担大部分的负载,当承担的负载超出单个PSU的最大输出能力时,会触发过流保护,进而导致剩余PSU也可能触发过流保护。为避免这种情况发生,BMC可以对该多个PSU的工作状态进行检测,确定该多个PSU是否处于重载模式。Specifically, when the power supply system is in heavy load mode, the total output current is high and may exceed the maximum output capacity of a single PSU. At this time, if the current sharing deviation of a PSU is too high, it means that the PSU or other PSUs need to bear most of the load. When the load exceeds the maximum output capacity of a single PSU, the overcurrent protection will be triggered, and the remaining PSUs may also trigger the overcurrent protection. To avoid this situation, the BMC can detect the working status of the multiple PSUs to determine whether the multiple PSUs are in heavy load mode.

在一些可实现的实施方式中,BMC确定供电系统是否处于重载模式的具体方式可以为:In some practicable implementations, the BMC may determine whether the power supply system is in the heavy load mode in the following specific manners:

BMC获取PSU的额定输出电流,根据该多个PSU的输出电流、额定输出电流以及多个PSU的数量,确定负载比例。若负载比例大于或等于预设比例阈值,则确定供电系统处于重载模式。The BMC obtains the rated output current of the PSU, and determines the load ratio according to the output current, the rated output current and the number of the PSUs, and determines that the power supply system is in heavy load mode if the load ratio is greater than or equal to a preset ratio threshold.

具体的,BMC可以获取PSU的额定输出功率以及额定输出电压,并根据额定输出功率以及额定输出电压确定PSU的额定输出电流,例如将额定输出功率与额定输出电压的比值作为额定输出电流,该多个PSU的属性参数一致时,各个PSU的额定输出电流也相同。然后,BMC可以根据该多个PSU的输出电流确定总输出电流,总输出电流反映了当前的负载大小,并根据额定输出电流以及该多个PSU的数量确定总额定输出电流,总额定输出电流反映了供电系统的总输出能力。BMC计算总输出电流以及总额定输出电流的比值,得到负载比例,也即是当前的负载大小占总输出能力的比例。如果负载比例大于或等于预设比例阈值,则BMC确定供电系统处于重载模式,通过计算负载比例可以准确地判断出供电系统当前是否处于重载模式。其中,预设比例阈值可以是50%,或者,预设比例阈值也可以采用其他数值。Specifically, the BMC can obtain the rated output power and rated output voltage of the PSU, and determine the rated output current of the PSU based on the rated output power and the rated output voltage, for example, taking the ratio of the rated output power to the rated output voltage as the rated output current. When the attribute parameters of the multiple PSUs are consistent, the rated output currents of the various PSUs are also the same. Then, the BMC can determine the total output current based on the output currents of the multiple PSUs, and the total output current reflects the current load size, and determine the total rated output current based on the rated output current and the number of the multiple PSUs, and the total rated output current reflects the total output capacity of the power supply system. The BMC calculates the ratio of the total output current and the total rated output current to obtain the load ratio, that is, the ratio of the current load size to the total output capacity. If the load ratio is greater than or equal to the preset ratio threshold, the BMC determines that the power supply system is in overload mode, and by calculating the load ratio, it can accurately determine whether the power supply system is currently in overload mode. Among them, the preset ratio threshold can be 50%, or the preset ratio threshold can also use other values.

204、若多个PSU处于重载模式,则确定多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU,并输出目标PSU的不均流告警信息。204. If the plurality of PSUs are in the overload mode, a target PSU whose current sharing deviation is greater than or equal to a preset deviation threshold is determined among the plurality of PSUs, and current imbalance alarm information of the target PSU is output.

具体的,如果该多个PSU处于重载模式,BMC可以将每个PSU的均流偏离度与预设偏离度阈值进行比较,如果存在均流偏离度大于或等于预设偏离度阈值的目标PSU,则输出目标PSU的不均流告警信息,从而可以及时对均流偏差较大的PSU发出告警。另外,对于告警的目标PSU可以确认是否需要更换新的PSU,或者启用备用PSU,或者现场检修等操作,从而尽可能提前消除隐患,避免出现PSU过流保护导致系统下电的情况。Specifically, if the multiple PSUs are in overload mode, the BMC can compare the current sharing deviation of each PSU with the preset deviation threshold. If there is a target PSU whose current sharing deviation is greater than or equal to the preset deviation threshold, the target PSU's uneven current alarm information is output, so that the PSU with a large current sharing deviation can be warned in time. In addition, for the target PSU that has been warned, it can be confirmed whether a new PSU needs to be replaced, or a spare PSU needs to be enabled, or on-site maintenance and other operations are performed, so as to eliminate hidden dangers as early as possible and avoid the situation where the PSU overcurrent protection causes the system to power off.

另外,如果该多个PSU未处于重载模式,则结束本次流程。In addition, if the multiple PSUs are not in the heavy load mode, this process ends.

在一些可实现的实施方式中,预设偏离度阈值可以为一个较小值,例如预设偏离度阈值小于或等于一预设比值,该预设比值可以为5%,也即是可以将预设偏离度阈值设置为小于或等于5%。本申请实施例将预设偏离度阈值设置为一个较小值,可以在供电系统出现轻微不均流时即可检测出对应的PSU,可以有效避免出现PSU过流保护的情况。In some achievable implementations, the preset deviation threshold may be a smaller value, for example, the preset deviation threshold is less than or equal to a preset ratio, and the preset ratio may be 5%, that is, the preset deviation threshold may be set to be less than or equal to 5%. The embodiment of the present application sets the preset deviation threshold to a smaller value, and can detect the corresponding PSU when there is a slight uneven current in the power supply system, and can effectively avoid the occurrence of PSU overcurrent protection.

在一些可实现的实施方式中,BMC在输出目标PSU的不均流告警信息之后,如果在后续的检测过程中,例如下一个时间间隔确定的目标PSU的均流偏离度小于预设偏离度阈值,则可以清除目标PSU的不均流告警信息,也即是当目标PSU的均流偏离度恢复正常后,解除对目标PSU的告警。In some feasible implementations, after the BMC outputs the uneven current alarm information of the target PSU, if in the subsequent detection process, for example, the equal current deviation of the target PSU determined in the next time interval is less than a preset deviation threshold, the uneven current alarm information of the target PSU can be cleared, that is, when the equal current deviation of the target PSU returns to normal, the alarm for the target PSU is lifted.

本申请实施例中,计算设备的基板管理控制器BMC与供电系统的多个供电单元PSU电连接,BMC按照预设时间间隔获取该多个PSU的输出电流,并根据该多个PSU的输出电流确定平均输出电流。然后,BMC根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。BMC确定该多个PSU是否处于重载模式,如果该多个PSU处于重载模式,也即是供电系统的负荷较大,则BMC确定该多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU,并输出目标PSU的不均流告警信息,通过获取供电单元的均流偏离度可以高效、准确地识别出均流状态异常的供电单元,并及时发出告警信息,特别是在供电系统处于重载模式的情况下,可以提前发现可能存在过流风险的供电单元,有效降低供电系统下电的风险,从而提高供电系统的可靠性。In an embodiment of the present application, the baseboard management controller BMC of the computing device is electrically connected to multiple power supply units PSU of the power supply system, and the BMC obtains the output current of the multiple PSUs at a preset time interval, and determines the average output current based on the output current of the multiple PSUs. Then, the BMC determines the current sharing deviation of each PSU based on the average output current and the output current of each PSU. The BMC determines whether the multiple PSUs are in overload mode. If the multiple PSUs are in overload mode, that is, the load of the power supply system is large, the BMC determines the target PSU whose current sharing deviation is greater than or equal to the preset deviation threshold among the multiple PSUs, and outputs the target PSU's uneven current alarm information. By obtaining the current sharing deviation of the power supply unit, the power supply unit with abnormal current sharing state can be efficiently and accurately identified, and the alarm information can be issued in time. Especially when the power supply system is in overload mode, the power supply unit that may have an overcurrent risk can be found in advance, effectively reducing the risk of power failure of the power supply system, thereby improving the reliability of the power supply system.

请参见图3,是本申请实施例基于图1所示的计算设备提供的另一种电源均流检测方法的流程示意图,该电源均流检测方法可以应用于计算设备,具体由计算设备的基板管理控制器BMC执行,具体可以包括如下步骤:Please refer to FIG. 3, which is a flow chart of another power current balancing detection method provided by the computing device shown in FIG. 1 according to an embodiment of the present application. The power current balancing detection method can be applied to the computing device and is specifically executed by the baseboard management controller BMC of the computing device. Specifically, the following steps may be included:

301、判断电源是否混插、额定功率是否不一致。301. Determine whether the power supplies are mixed and whether the rated powers are inconsistent.

其中,电源可以是指上述的供电单元PSU。The power supply may refer to the above-mentioned power supply unit PSU.

302、若没有混插,且额定功率一致,则判断电源是否处于负载均衡模式;若存在混插,或者额定功率不一致,则结束本次流程。302. If there is no mixed insertion and the rated powers are consistent, determine whether the power supply is in load balancing mode; if there is mixed insertion or the rated powers are inconsistent, end this process.

303、若处于负载均衡模式,则延时第一时间后处于负载均衡模式的电源数据纳入统计;若未处于负载均衡模式,则结束本次流程。303. If the process is in the load balancing mode, the power data in the load balancing mode after the first delay time is included in the statistics; if the process is not in the load balancing mode, the process ends.

其中,由于电源插拔、主备切换等动作,导致电源新进入负载均衡模式,需要延时一定时间(例如5s),等待电源的工作状态稳定。Among them, due to actions such as power plugging and unplugging, master-slave switching, etc., the power supply newly enters the load balancing mode, which requires a certain delay (for example, 5 seconds) to wait for the working state of the power supply to stabilize.

304、查询电源数量n、额定输出功率Pe、额定输出电压Ve。304. Query the number of power supplies n, the rated output power Pe, and the rated output voltage Ve.

305、计算电源额定输出电流Ie=Pe/Ve。305. Calculate the rated output current of the power supply Ie=Pe/Ve.

306、查询每个电源的输出电流,电流值取5次的平均值滤波,得到I1、I2、……、In。306. Query the output current of each power supply, take the average value of the current value 5 times and filter it to obtain I1, I2, ..., In.

其中,为了提高电流检测的准确度,针对每个电源,可以获取一定次数(例如5次)的输出电流,并将获取的5次电流取平均值,得到PSU 1的电流I1,PSU 2的电流I2,……,PSUn的电流In,In order to improve the accuracy of current detection, for each power supply, the output current can be obtained a certain number of times (for example, 5 times), and the average of the 5 currents obtained is taken to obtain the current I1 of PSU 1, the current I2 of PSU 2, ..., the current In of PSUn,

307、计算电源系统平均输出电流Iavg=(I1+I2+……+In)/n。307. Calculate the average output current of the power supply system Iavg = (I1 + I2 + ... + In) / n.

308、计算每个电源的均流偏离度,In的均流偏离度=(In-Iavg)/Iavg。308. Calculate the current deviation of each power supply, the current deviation of In = (In-Iavg)/Iavg.

309、判断总负载电流(I1+I2+……+In)是否超过总额定输出能力(n*Ie)的设定百分比。309. Determine whether the total load current (I1+I2+…+In) exceeds the set percentage of the total rated output capacity (n*Ie).

310、若是,则判断每个电源的均流偏离度是否小于设定阈值;若否,则结束本次流程。示例性的,设定百分比可以为50%。设定阈值可以为5%。其中,如果总负载电流(I1+I2+……+In)超过总额定输出能力(n*Ie)的50%,则意味着电源系统处于重载模式,为了防止单个电源出现过流保护,需要进行均流检测,也即是判断每个电源的均流偏离度是否小于5%。310. If yes, determine whether the current sharing deviation of each power supply is less than the set threshold; if not, end this process. Exemplarily, the set percentage can be 50%. The set threshold can be 5%. Among them, if the total load current (I1+I2+…+In) exceeds 50% of the total rated output capacity (n*Ie), it means that the power supply system is in overload mode. In order to prevent overcurrent protection of a single power supply, current sharing detection is required, that is, to determine whether the current sharing deviation of each power supply is less than 5%.

311、若均流偏离度小于设定阈值,则清除对应电源的不均流告警信息;若均流偏离度达到设定阈值,则执行步骤312。311. If the current sharing deviation is less than the set threshold, clear the current imbalance alarm information of the corresponding power supply; if the current sharing deviation reaches the set threshold, execute step 312.

312、发出对应电源的不均流告警信息。312. Issue an uneven current alarm message for the corresponding power supply.

在一些可实现的实施方式中,为了提高均流检测的准确度,可以采用一段时间内的检测结果综合判定是否需要发出电源的不均流告警信息。例如,电流检测的预设时间间隔为1s,则可以获取10s内的不均流判定结果,针对某一电源,如果10s内检测到7次或者7次以上均流偏离度大于或等于5%,则发出针对该电源的不均流告警信息。同理,在判定是否可以清除电源的不均流告警信息时,也可以获取接下来10s内的不均流判定结果,如果10s内连续4次检测到均流偏离度小于5%,则清除针对该电源的不均流告警信息。In some feasible implementations, in order to improve the accuracy of current sharing detection, the detection results within a period of time can be used to comprehensively determine whether it is necessary to issue an uneven current alarm message for the power supply. For example, if the preset time interval for current detection is 1s, the uneven current determination result within 10s can be obtained. For a certain power supply, if 7 or more current sharing deviations greater than or equal to 5% are detected within 10s, an uneven current alarm message for the power supply is issued. Similarly, when determining whether the uneven current alarm message of the power supply can be cleared, the uneven current determination result within the next 10s can also be obtained. If the current sharing deviation is less than 5% for 4 consecutive times within 10s, the uneven current alarm message for the power supply is cleared.

需要说明的是,上述的5s、5次、50%、5%、1s、10s、7次、4次等具体数值仅是示例,可以根据需求灵活调整,本申请实施例不做限定。It should be noted that the above-mentioned specific values of 5s, 5 times, 50%, 5%, 1s, 10s, 7 times, 4 times, etc. are only examples and can be flexibly adjusted according to needs, and the embodiments of the present application are not limited thereto.

请参见图4,是本申请实施例提供的另一种计算设备的结构示意图,该计算设备包括两个供电单元12(PSU 1和PSU 2)。Please refer to FIG. 4 , which is a schematic diagram of the structure of another computing device provided in an embodiment of the present application. The computing device includes two power supply units 12 (PSU 1 and PSU 2).

其中,该两个供电单元12用于为计算设备的负载供电。该两个供电单元12分别通过通信母线与计算设备的基板管理控制器BMC 11电连接,该两个供电单元12利用通信母线与BMC 11进行通信。该两个供电单元12分别通过各自对应的均流电阻与均流母线电连接,PSU 1通过均流电阻R1与均流母线电连接,PSU 2通过均流电阻R2与均流母线电连接。The two power supply units 12 are used to supply power to the load of the computing device. The two power supply units 12 are electrically connected to the baseboard management controller BMC 11 of the computing device through the communication bus, and the two power supply units 12 communicate with the BMC 11 using the communication bus. The two power supply units 12 are electrically connected to the current sharing bus through their corresponding current sharing resistors, PSU 1 is electrically connected to the current sharing bus through the current sharing resistor R1, and PSU 2 is electrically connected to the current sharing bus through the current sharing resistor R2.

其中,每个供电单元12具体可以包括功率变换单元1201、控制单元1202、均流信号检测单元1203以及均流信号转换单元1204。Each power supply unit 12 may specifically include a power conversion unit 1201 , a control unit 1202 , a current sharing signal detection unit 1203 and a current sharing signal conversion unit 1204 .

具体的,功率变换单元1201,用于将输入电压转换为供电电压。Specifically, the power conversion unit 1201 is used to convert the input voltage into the supply voltage.

控制单元1202,用于通过通信母线向BMC 11上报所在PSU的属性参数、工作状态信息等,属性参数可以包括PSU的标识(例如品牌、型号)、功率参数等。控制单元1202,还用于利用通信母线向BMC 11上报所在PSU的工作状态信息,工作状态信息可以包括输出电压、输出电流等。The control unit 1202 is used to report the attribute parameters and working status information of the PSU to the BMC 11 through the communication bus. The attribute parameters may include the PSU identification (such as brand, model), power parameters, etc. The control unit 1202 is also used to report the working status information of the PSU to the BMC 11 using the communication bus. The working status information may include output voltage, output current, etc.

控制单元1202,还用于通过通信母线接收BMC 11下发的控制指令。控制指令可以包括电压调整指令,则控制单元1202可以控制功率变换单元1201的输出电压。The control unit 1202 is further configured to receive control instructions sent by the BMC 11 through the communication bus. The control instructions may include voltage adjustment instructions, and the control unit 1202 may control the output voltage of the power conversion unit 1201.

控制单元1202,还用于将所在PSU的功率变换单元1201的输出电流反馈给均流信号转换单元1204。The control unit 1202 is also used to feed back the output current of the power conversion unit 1201 of the PSU to the current sharing signal conversion unit 1204.

均流信号转换单元1204,用于将控制单元1202反馈的输出电流转换为均流电压,并通过所在PSU的均流电阻输入至均流母线。The current sharing signal conversion unit 1204 is used to convert the output current fed back by the control unit 1202 into a current sharing voltage, and input it to the current sharing bus through the current sharing resistor of the PSU.

具体的,PSU 1的均流信号转换单元1204将PSU 1的功率变换单元1201的输出电流转换为均流电压V1,并通过均流电阻R1输入至均流母线,PSU 2的均流信号转换单元1204将PSU 2的功率变换单元1201的输出电流转换为均流电压V2,并通过均流电阻R2输入至均流母线,各个PSU的均流电压(V1、V2)在均流母线上形成母线电压(Vbus)。Specifically, the current sharing signal conversion unit 1204 of PSU 1 converts the output current of the power conversion unit 1201 of PSU 1 into a current sharing voltage V1, and inputs it to the current sharing bus through the current sharing resistor R1. The current sharing signal conversion unit 1204 of PSU 2 converts the output current of the power conversion unit 1201 of PSU 2 into a current sharing voltage V2, and inputs it to the current sharing bus through the current sharing resistor R2. The current sharing voltages (V1, V2) of each PSU form a bus voltage (Vbus) on the current sharing bus.

均流信号检测单元1203,用于将均流母线的母线电压转换为均流电流,并将均流电流反馈给控制单元1202。The current sharing signal detection unit 1203 is used to convert the bus voltage of the current sharing bus into the current sharing current and feed back the current sharing current to the control unit 1202.

控制单元1202,还用于根据均流电流与功率变换单元1201的输出电流的差值调整功率变换单元1201的输出电压,以调整输出电流,实现各个PSU之间的均流。The control unit 1202 is further used to adjust the output voltage of the power conversion unit 1201 according to the difference between the current sharing current and the output current of the power conversion unit 1201, so as to adjust the output current and realize current sharing among the various PSUs.

请参见图5,是本申请实施例基于图4所示的计算设备提供的又一种电源均流检测方法的流程示意图,该电源均流检测方法可以应用于计算设备,具体由计算设备的基板管理控制器BMC,具体可以包括如下步骤:Please refer to FIG. 5, which is a flow chart of another power current balancing detection method provided by the computing device shown in FIG. 4 according to an embodiment of the present application. The power current balancing detection method can be applied to the computing device, specifically by the baseboard management controller BMC of the computing device, and can specifically include the following steps:

501、按照预设时间间隔获取两个PSU的输出电流,并根据两个PSU的输出电流确定平均输出电流。501. Obtain output currents of two PSUs at preset time intervals, and determine an average output current according to the output currents of the two PSUs.

502、根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。502. Determine a current sharing deviation of each PSU according to the average output current and the output current of each PSU.

503、确定两个PSU是否处于重载模式。503. Determine whether both PSUs are in heavy load mode.

504、若两个PSU处于重载模式,则确定两个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU,并输出目标PSU的不均流告警信息。504. If the two PSUs are in the overload mode, determine a target PSU whose current sharing deviation is greater than or equal to a preset deviation threshold value among the two PSUs, and output current imbalance alarm information of the target PSU.

另外,如果该两个PSU未处于重载模式,则结束本次流程。In addition, if the two PSUs are not in heavy load mode, this process ends.

需要说明的是,步骤501-504的具体实现方式可以参见前述实施例中步骤201-204的相关描述,此处不再赘述。It should be noted that the specific implementation of steps 501-504 can refer to the relevant description of steps 201-204 in the above embodiment, which will not be repeated here.

本申请实施例中,由于供电系统包括两个PSU,当其中一个PSU的均流偏离度大于或等于预设偏离度阈值时,意味着另一个PSU的均流偏离度也会大于或等于预设偏离度阈值,此时无法确定具体是哪一个PSU出现故障,因此需要对故障PSU进行准确定位。In the embodiment of the present application, since the power supply system includes two PSUs, when the current sharing deviation of one of the PSUs is greater than or equal to the preset deviation threshold, it means that the current sharing deviation of the other PSU will also be greater than or equal to the preset deviation threshold. At this time, it is impossible to determine which specific PSU has failed, so it is necessary to accurately locate the faulty PSU.

505、向第一PSU发送调压指令,调压指令用于指示第一PSU按照预设调整步长增大输出电压,直到第二PSU的输出电流减小到预设电流值。505. Send a voltage regulation instruction to the first PSU, where the voltage regulation instruction is used to instruct the first PSU to increase the output voltage according to a preset adjustment step until the output current of the second PSU decreases to a preset current value.

其中,第一PSU为该两个PSU中的任意一个,第二PSU为该两个PSU中除第一PSU之外的PSU。例如,第一PSU可以为图4中的PSU 1,第二PSU可以为图4中的PSU 2。The first PSU is any one of the two PSUs, and the second PSU is the PSU other than the first PSU of the two PSUs. For example, the first PSU may be PSU 1 in FIG. 4 , and the second PSU may be PSU 2 in FIG. 4 .

具体的,为了定位故障PSU,BMC可以利用通信母线向两个PSU中的任意一个(例如第一PSU)发送调压指令。调压指令用于指示第一PSU按照预设调整步长增大输出电压,直到第二PSU的输出电流减小到预设电流值。Specifically, in order to locate the faulty PSU, the BMC can use the communication bus to send a voltage regulation instruction to any one of the two PSUs (e.g., the first PSU). The voltage regulation instruction is used to instruct the first PSU to increase the output voltage according to a preset adjustment step until the output current of the second PSU decreases to a preset current value.

在一些可实现的实施方式中,第一PSU的控制单元1202可以响应调压指令,控制第一PSU的功率变换单元1201按照预设调整步长增大输出电压,在调整过程中,可以每调整一次,第一PSU的控制单元1202通过通信母线从BMC获取第二PSU的输出电流,如果第二PSU的输出电流大于预设电流值,则第一PSU的控制单元1202控制第一PSU的功率变换单元1201按照预设调整步长继续增大输出电压,直到第二PSU的输出电流减小到预设电流值。预设电流值可以为一个较小值,例如预设电流值为0。In some achievable implementations, the control unit 1202 of the first PSU may respond to the voltage regulation instruction and control the power conversion unit 1201 of the first PSU to increase the output voltage according to a preset adjustment step. During the adjustment process, the control unit 1202 of the first PSU may obtain the output current of the second PSU from the BMC via the communication bus each time the adjustment is made. If the output current of the second PSU is greater than the preset current value, the control unit 1202 of the first PSU controls the power conversion unit 1201 of the first PSU to continue to increase the output voltage according to the preset adjustment step until the output current of the second PSU is reduced to the preset current value. The preset current value may be a smaller value, such as a preset current value of 0.

506、获取响应数据,响应数据包括均流母线的母线电压变化数据、第一PSU的均流转换系数以及第二PSU的输出电压变化数据中的一种或多种。506. Acquire response data, where the response data includes one or more of bus voltage change data of the current-sharing bus, the current-sharing conversion coefficient of the first PSU, and output voltage change data of the second PSU.

结合图4可知,PSU 1的均流电压V1=k1*I1,PSU 2的均流电压V2=k2*I2,I1为PSU1的输出电流,I2为PSU 2的输出电流,k1为PSU 1的均流信号转换单元1204的预设均流转换系数,k2为PSU 2的均流信号转换单元1204的预设均流转换系数,如果PSU 1与PSU 2的属性参数相同,则k1=k2=K。其中,K为属性参数相同的PSU的预设均流转换系数。均流转换系数是指将PSU的输出电流转换成输入至均流母线的电压的比例系数;对于第一PSU来说,该均流转换系数是指将第一PSU的输出电流转换成输入至均流母线的电压的比例系数;对于第二PSU来说,该均流转换系数是指将第二PSU的输出电流转换成输入至均流母线的电压的比例系数。Combined with Figure 4, it can be seen that the current sharing voltage V1 of PSU 1 is k1*I1, and the current sharing voltage V2 of PSU 2 is k2*I2. I1 is the output current of PSU1, I2 is the output current of PSU 2, k1 is the preset current sharing conversion coefficient of the current sharing signal conversion unit 1204 of PSU 1, and k2 is the preset current sharing conversion coefficient of the current sharing signal conversion unit 1204 of PSU 2. If the attribute parameters of PSU 1 and PSU 2 are the same, then k1=k2=K. Among them, K is the preset current sharing conversion coefficient of PSUs with the same attribute parameters. The current sharing conversion coefficient refers to the proportional coefficient of converting the output current of the PSU into the voltage input to the current sharing bus; for the first PSU, the current sharing conversion coefficient refers to the proportional coefficient of converting the output current of the first PSU into the voltage input to the current sharing bus; for the second PSU, the current sharing conversion coefficient refers to the proportional coefficient of converting the output current of the second PSU into the voltage input to the current sharing bus.

假设V1>V2,则母线电压Vbus=R2*(V1-V2)/(R1+R2)+V2,即:Assuming V1>V2, the bus voltage Vbus=R2*(V1-V2)/(R1+R2)+V2, that is:

Vbus=R2*(K1*I1-K2*I2)/(R1+R2)+K2*I2。Vbus=R2*(K1*I1-K2*I2)/(R1+R2)+K2*I2.

一般地,取R1=R2,则Vbus可以进一步表达为:Generally, if R1=R2, Vbus can be further expressed as:

Vbus=0.5*(K1*I1-K2*I2)+K2*I2。特别的,当预设电流值取0,也即是I2=0时,Vbus=0.5*K1*I1。Vbus=0.5*(K1*I1-K2*I2)+K2*I2. In particular, when the preset current value is 0, that is, I2=0, Vbus=0.5*K1*I1.

具体的,由于第一PSU增大输出电压,则母线电压Vbus会发生变化。母线电压Vbus变化后,第二PSU的均流信号检测单元1203转换得到的均流电流发生变化,则第二PSU的输出电压随之发生变化。另外,预设电流值取0时,Vbus=0.5*K1*I1,由于母线电压Vbus、第一PSU的输出电流I1已知,可以计算第一PSU的均流信号转换单元1204的均流转换系数(即实际的均流转换系数)。由此,在第一PSU按照预设调整步长增大输出电压的过程中,BMC可以获取供电系统的响应数据,响应数据包括均流母线的母线电压变化数据、第一PSU的均流转换系数以及第二PSU的输出电压变化数据中的一种或多种,这些响应数据可以反映第一PSU或者第二PSU的工作状态。Specifically, since the first PSU increases the output voltage, the bus voltage Vbus will change. After the bus voltage Vbus changes, the current sharing current converted by the current sharing signal detection unit 1203 of the second PSU changes, and the output voltage of the second PSU changes accordingly. In addition, when the preset current value is 0, Vbus = 0.5*K1*I1. Since the bus voltage Vbus and the output current I1 of the first PSU are known, the current sharing conversion coefficient (i.e., the actual current sharing conversion coefficient) of the current sharing signal conversion unit 1204 of the first PSU can be calculated. Therefore, in the process of the first PSU increasing the output voltage according to the preset adjustment step, the BMC can obtain the response data of the power supply system, and the response data includes one or more of the bus voltage change data of the current sharing bus, the current sharing conversion coefficient of the first PSU, and the output voltage change data of the second PSU. These response data can reflect the working status of the first PSU or the second PSU.

其中,均流母线的母线电压可以由第一PSU或者第二PSU通过通信母线上报给BMC,第一PSU的输出电流可以由第一PSU通过通信母线上报给BMC,第二PSU的输出电压可以由第二PSU通过通信母线上报给BMC,BMC根据上报的均流母线的母线电压、第一PSU的输出电流、第二PSU的输出电压可以得到上述响应数据。Among them, the bus voltage of the current-sharing bus can be reported to the BMC by the first PSU or the second PSU through the communication bus, the output current of the first PSU can be reported to the BMC by the first PSU through the communication bus, and the output voltage of the second PSU can be reported to the BMC by the second PSU through the communication bus. The BMC can obtain the above-mentioned response data based on the reported bus voltage of the current-sharing bus, the output current of the first PSU, and the output voltage of the second PSU.

507、根据响应数据从两个PSU中确定故障PSU,并输出故障PSU的故障指示信息。507. Determine the faulty PSU from the two PSUs according to the response data, and output fault indication information of the faulty PSU.

具体的,由于响应数据可以反映第一PSU或者第二PSU的工作状态(是否出现故障),BMC根据响应数据可以确定两个PSU中哪一个为故障PSU,并输出故障PSU的故障指示信息,故障指示信息可以用于指示更换新的PSU或者执行主备切换操作,主备切换操作可以是BMC向故障PSU的备用PSU发送启动指令,备用PSU启动后开始为计算设备供电。Specifically, since the response data can reflect the working status of the first PSU or the second PSU (whether a fault occurs), the BMC can determine which of the two PSUs is the faulty PSU based on the response data, and output fault indication information of the faulty PSU. The fault indication information can be used to indicate the replacement of a new PSU or the execution of a master-slave switching operation. The master-slave switching operation can be that the BMC sends a startup command to the backup PSU of the faulty PSU, and the backup PSU starts to supply power to the computing device after startup.

在一些可实现的实施方式中,均流母线的母线电压变化数据可以用于判定第一PSU是否故障,均流母线的母线电压变化数据以及第一PSU的均流转换系数也可以用于判定第一PSU是否故障,第二PSU的输出电压变化数据可以用于判定第二PSU是否故障。具体的,BMC可以根据均流母线的母线电压变化数据,或者,均流母线的母线电压变化数据以及第一PSU的均流转换系数,确定第一PSU是否为故障PSU。如果第一PSU没有故障,则BMC可以根据第二PSU的输出电压变化数据确定第二PSU是否为故障PSU,从而可以从两个PSU中准确找出故障PSU。In some feasible implementations, the bus voltage change data of the current-sharing bus can be used to determine whether the first PSU is faulty, the bus voltage change data of the current-sharing bus and the current-sharing conversion coefficient of the first PSU can also be used to determine whether the first PSU is faulty, and the output voltage change data of the second PSU can be used to determine whether the second PSU is faulty. Specifically, the BMC can determine whether the first PSU is a faulty PSU based on the bus voltage change data of the current-sharing bus, or the bus voltage change data of the current-sharing bus and the current-sharing conversion coefficient of the first PSU. If the first PSU is not faulty, the BMC can determine whether the second PSU is a faulty PSU based on the output voltage change data of the second PSU, thereby accurately finding the faulty PSU from the two PSUs.

在一些可实现的实施方式中,BMC确定第一PSU是否为故障PSU的具体方式可以为:In some practicable implementations, the BMC may determine whether the first PSU is a faulty PSU in the following specific manner:

如果第一PSU的输出电流的增加,均流母线的母线电压变化数据指示均流母线的母线电压未发生变化,则BMC可以确定第一PSU的均流信号转换单元1204或者均流电阻R1故障,此时为第一PSU故障。If the output current of the first PSU increases and the bus voltage change data of the current sharing bus indicates that the bus voltage of the current sharing bus has not changed, the BMC can determine that the current sharing signal conversion unit 1204 or the current sharing resistor R1 of the first PSU is faulty, and the first PSU is faulty at this time.

如果均流母线的母线电压变化数据指示均流母线的母线电压发生变化,也即是均流母线的母线电压Vbus随着第一PSU的输出电流的增加而增加,则比较第一PSU的均流转换系数与预设均流转换系数K,如果第一PSU的均流转换系数与预设均流转换系数不匹配,不匹配可以是指不相等,或者,不匹配可以是指均流转换系数与预设均流转换系数相比偏差度达到预设偏差度阈值(例如2%),则BMC可以确定第一PSU的均流信号转换单元1204故障,也即是第一PSU故障。If the bus voltage change data of the current sharing bus indicates that the bus voltage of the current sharing bus changes, that is, the bus voltage Vbus of the current sharing bus increases with the increase of the output current of the first PSU, then the current sharing conversion coefficient of the first PSU is compared with the preset current sharing conversion coefficient K. If the current sharing conversion coefficient of the first PSU does not match the preset current sharing conversion coefficient, the mismatch may refer to inequality, or the mismatch may refer to the deviation of the current sharing conversion coefficient from the preset current sharing conversion coefficient reaching a preset deviation threshold (for example, 2%), then the BMC can determine that the current sharing signal conversion unit 1204 of the first PSU is faulty, that is, the first PSU is faulty.

而如果均流母线的母线电压变化数据指示均流母线的母线电压发生变化,且第一PSU的均流转换系数与预设均流转换系数匹配,则BMC确定第一PSU非故障PSU,也即是第一PSU没有故障。If the bus voltage change data of the current sharing bus indicates that the bus voltage of the current sharing bus has changed, and the current sharing conversion coefficient of the first PSU matches the preset current sharing conversion coefficient, the BMC determines that the first PSU is not a faulty PSU, that is, the first PSU has no fault.

在一些可实现的实施方式中,BMC确定第二PSU是否为故障PSU的具体方式可以为:In some practicable implementations, the BMC may determine whether the second PSU is a faulty PSU in the following specific manner:

如果第二PSU的输出电压变化数据指示第二PSU的输出电压未升高,则确定第二PSU为故障PSU。由于均流母线的母线电压升高,如果第二PSU的均流信号检测单元1203没有故障,则第二PSU的均流信号检测单元1203将均流母线的母线电压转换得到的均流电流也会升高,将均流电流反馈给第二PSU的控制单元1202后,第二PSU的控制单元1202会控制第二PSU的功率变换单元1201增大输出电压,因此,如果第二PSU的输出电压变化数据指示第二PSU的输出电压未升高,则BMC可以确定第二PSU的均流信号检测单元1203出现故障,也即是第二PSU故障。If the output voltage change data of the second PSU indicates that the output voltage of the second PSU has not increased, the second PSU is determined to be a faulty PSU. Since the bus voltage of the current-sharing bus increases, if the current-sharing signal detection unit 1203 of the second PSU is not faulty, the current-sharing current obtained by converting the bus voltage of the current-sharing bus by the current-sharing signal detection unit 1203 of the second PSU will also increase. After feeding back the current-sharing current to the control unit 1202 of the second PSU, the control unit 1202 of the second PSU will control the power conversion unit 1201 of the second PSU to increase the output voltage. Therefore, if the output voltage change data of the second PSU indicates that the output voltage of the second PSU has not increased, the BMC can determine that the current-sharing signal detection unit 1203 of the second PSU is faulty, that is, the second PSU is faulty.

在一些可实现的实施方式中,PSU的均流转换系数的获取方式可以为:In some feasible implementations, the current sharing conversion coefficient of the PSU may be obtained as follows:

以第一PSU为例,BMC获取均流母线的母线电压(Vbus)、第一PSU的输出电流(I1)、第一PSU的均流电阻以及第二PSU的均流电阻,根据均流母线的母线电压、第一PSU的输出电流、第一PSU的均流电阻以及第二PSU的均流电阻,计算得到第一PSU的均流转换系数(K1)。第一PSU的均流电阻等于第二PSU的均流电阻的情况下,Vbus=0.5*K1*I1,已知Vbus、I1,可以计算得到第一PSU的均流转换系数K1=2*Vbus/I1。Taking the first PSU as an example, the BMC obtains the bus voltage (Vbus) of the current-sharing bus, the output current (I1) of the first PSU, the current-sharing resistance of the first PSU, and the current-sharing resistance of the second PSU, and calculates the current-sharing conversion coefficient (K1) of the first PSU based on the bus voltage of the current-sharing bus, the output current of the first PSU, the current-sharing resistance of the first PSU, and the current-sharing resistance of the second PSU. When the current-sharing resistance of the first PSU is equal to the current-sharing resistance of the second PSU, Vbus = 0.5*K1*I1. If Vbus and I1 are known, the current-sharing conversion coefficient K1 of the first PSU can be calculated to be 2*Vbus/I1.

需要说明的是,按照与第一PSU同样的方式,BMC可以向第二PSU发送调压指令,来执行步骤505-507的流程,以准确、高效地定位故障PSU。It should be noted that, in the same manner as the first PSU, the BMC can send a voltage adjustment instruction to the second PSU to execute the process of steps 505-507 to accurately and efficiently locate the faulty PSU.

本申请实施例中,本申请实施例中,计算设备的基板管理控制器BMC与供电系统的多个供电单元PSU电连接,BMC按照预设时间间隔获取该多个PSU的输出电流,并根据该多个PSU的输出电流确定平均输出电流。然后,BMC根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。如果该多个PSU处于重载模式,也即是供电系统的负荷较大,则BMC确定该多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU,并输出目标PSU的不均流告警信息,通过获取供电单元的均流偏离度可以高效、准确地识别出均流状态异常的供电单元,并及时发出告警信息,特别是在供电系统处于重载模式的情况下,可以提前发现可能存在过流风险的供电单元,有效降低供电系统下电的风险,从而提高供电系统的可靠性。In the embodiment of the present application, in the embodiment of the present application, the baseboard management controller BMC of the computing device is electrically connected to multiple power supply units PSU of the power supply system, and the BMC obtains the output current of the multiple PSUs at preset time intervals, and determines the average output current based on the output current of the multiple PSUs. Then, the BMC determines the current sharing deviation of each PSU based on the average output current and the output current of each PSU. If the multiple PSUs are in overload mode, that is, the load of the power supply system is large, the BMC determines the target PSU whose current sharing deviation is greater than or equal to the preset deviation threshold among the multiple PSUs, and outputs the target PSU's uneven current alarm information. By obtaining the current sharing deviation of the power supply unit, the power supply unit with abnormal current sharing state can be efficiently and accurately identified, and the alarm information can be issued in time. Especially when the power supply system is in overload mode, the power supply unit that may have overcurrent risk can be found in advance, effectively reducing the risk of power failure of the power supply system, thereby improving the reliability of the power supply system.

并且,当具体是两个PSU为计算设备供电时,如果输出了目标PSU的不均流告警信息,则BMC可以向其中的第一PSU发送调压指令,第一PSU按照预设调整步长增大输出电压,直到第二PSU的输出电流减小到预设电流值。BMC获取响应数据,响应数据包括均流母线的母线电压变化数据、第一PSU的均流转换系数以及第二PSU的输出电压变化数据中的一种或多种,然后根据响应数据从两个PSU中确定故障PSU,并输出故障PSU的故障指示信息,从而可以自动化且准确地实现故障PSU的定位,进一步提高供电系统的可靠性以及管理维护效率。Furthermore, when two PSUs are specifically supplying power to a computing device, if the target PSU's uneven current alarm information is output, the BMC can send a voltage adjustment instruction to the first PSU, and the first PSU increases the output voltage according to a preset adjustment step until the output current of the second PSU is reduced to a preset current value. The BMC obtains response data, which includes one or more of the bus voltage change data of the current-sharing bus, the current-sharing conversion coefficient of the first PSU, and the output voltage change data of the second PSU, and then determines the faulty PSU from the two PSUs based on the response data, and outputs the fault indication information of the faulty PSU, so that the faulty PSU can be automatically and accurately located, further improving the reliability of the power supply system and the management and maintenance efficiency.

请参见图6,图6是本申请实施例提供的一种电源均流检测装置的结构示意图。该电源均流检测装置可应用于前述实施例中所提及的计算设备的BMC;计算设备包括多个供电单元PSU;该多个PSU用于为计算设备供电。具体来说,该电源均流检测装置可以是运行于计算设备的BMC中的一个计算机程序(包括程序指令)。该电源均流检测装置具体可以包括:Please refer to Figure 6, which is a schematic diagram of the structure of a power supply current balancing detection device provided in an embodiment of the present application. The power supply current balancing detection device can be applied to the BMC of the computing device mentioned in the aforementioned embodiment; the computing device includes multiple power supply units PSU; the multiple PSUs are used to power the computing device. Specifically, the power supply current balancing detection device can be a computer program (including program instructions) running in the BMC of the computing device. The power supply current balancing detection device can specifically include:

获取单元601,用于按照预设时间间隔获取该多个PSU的输出电流。The acquisition unit 601 is used to acquire the output currents of the multiple PSUs at preset time intervals.

确定单元602,用于根据该多个PSU的输出电流确定平均输出电流。The determining unit 602 is configured to determine an average output current according to the output currents of the plurality of PSUs.

确定单元602,还用于根据平均输出电流以及每个PSU的输出电流确定每个PSU的均流偏离度。The determination unit 602 is further configured to determine the current sharing deviation of each PSU according to the average output current and the output current of each PSU.

确定单元602,还用于确定该多个PSU是否处于重载模式。The determination unit 602 is further configured to determine whether the plurality of PSUs are in a heavy load mode.

确定单元602,还用于若该多个PSU处于重载模式,则确定该多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU。The determining unit 602 is further configured to determine a target PSU among the multiple PSUs whose current sharing deviation is greater than or equal to a preset deviation threshold if the multiple PSUs are in the overload mode.

输出单元603,用于输出目标PSU的不均流告警信息。The output unit 603 is used to output the uneven current alarm information of the target PSU.

在一实现方式中,确定单元602,具体用于:In one implementation, the determining unit 602 is specifically configured to:

获取PSU的额定输出电流。Get the rated output current of the PSU.

根据多个PSU的输出电流、额定输出电流以及多个PSU的数量,确定负载比例。The load ratio is determined based on the output currents of the multiple PSUs, the rated output currents, and the number of the multiple PSUs.

若负载比例大于或等于预设比例阈值,则确定多个PSU处于重载模式。If the load ratio is greater than or equal to the preset ratio threshold, it is determined that the plurality of PSUs are in the heavy load mode.

在一实现方式中,确定单元602,具体用于:In one implementation, the determining unit 602 is specifically configured to:

根据多个PSU的输出电流确定总输出电流。The total output current is determined based on the output currents of multiple PSUs.

根据额定输出电流以及多个PSU的数量确定总额定输出电流。Determine the total rated output current based on the rated output current and the number of multiple PSUs.

计算总输出电流以及总额定输出电流的比值,得到负载比例。Calculate the ratio of the total output current and the total rated output current to obtain the load ratio.

在一实现方式中,PSU的数量为两个,计算设备还包括均流母线;两个PSU与均流母线电连接。该装置还包括:发送单元604,其中:In one implementation, the number of PSUs is two, and the computing device further includes a current sharing bus; the two PSUs are electrically connected to the current sharing bus. The apparatus further includes: a sending unit 604, wherein:

发送单元604,用于在输出目标PSU的不均流告警信息之后,向第一PSU发送调压指令,调压指令用于指示第一PSU按照预设调整步长增大输出电压,直到第二PSU的输出电流减小到预设电流值;其中,第一PSU为两个PSU中的任意一个,第二PSU为两个PSU中除第一PSU之外的PSU。The sending unit 604 is used to send a voltage regulation instruction to the first PSU after outputting the uneven current alarm information of the target PSU, and the voltage regulation instruction is used to instruct the first PSU to increase the output voltage according to a preset adjustment step until the output current of the second PSU is reduced to a preset current value; wherein the first PSU is any one of the two PSUs, and the second PSU is the PSU of the two PSUs other than the first PSU.

获取单元601,还用于获取响应数据,响应数据包括均流母线的母线电压变化数据、第一PSU的均流转换系数以及第二PSU的输出电压变化数据中的一种或多种;其中,均流转换系数是指将PSU的输出电流转换成输入至均流母线的电压的比例系数。The acquisition unit 601 is also used to acquire response data, which includes one or more of the bus voltage change data of the current-sharing bus, the current-sharing conversion coefficient of the first PSU, and the output voltage change data of the second PSU; wherein the current-sharing conversion coefficient refers to the proportional coefficient of converting the output current of the PSU into the voltage input to the current-sharing bus.

确定单元602,还用于根据响应数据从两个PSU中确定故障PSU。The determination unit 602 is further configured to determine the faulty PSU from the two PSUs according to the response data.

输出单元603,还用于输出故障PSU的故障指示信息。The output unit 603 is also used to output fault indication information of the faulty PSU.

在一实现方式中,确定单元602,具体用于:In one implementation, the determining unit 602 is specifically configured to:

根据均流母线的母线电压变化数据,或者,均流母线的母线电压变化数据以及第一PSU的均流转换系数,确定第一PSU是否为故障PSU。Whether the first PSU is a faulty PSU is determined based on the bus voltage change data of the current sharing bus, or the bus voltage change data of the current sharing bus and the current sharing conversion coefficient of the first PSU.

若否,则根据第二PSU的输出电压变化数据确定第二PSU是否为故障PSU。If not, it is determined whether the second PSU is a faulty PSU according to the output voltage variation data of the second PSU.

在一实现方式中,确定单元602,具体用于:In one implementation, the determining unit 602 is specifically configured to:

若均流母线的母线电压变化数据指示均流母线的母线电压未发生变化,则确定第一PSU为故障PSU。If the bus voltage change data of the current-sharing bus indicates that the bus voltage of the current-sharing bus has not changed, it is determined that the first PSU is a faulty PSU.

在一实现方式中,确定单元602,具体用于:In one implementation, the determining unit 602 is specifically configured to:

若均流母线的母线电压变化数据指示均流母线的母线电压发生变化,则比较第一PSU的均流转换系数与预设均流转换系数。If the bus voltage change data of the current-sharing bus indicates that the bus voltage of the current-sharing bus has changed, the current-sharing conversion coefficient of the first PSU is compared with the preset current-sharing conversion coefficient.

若第一PSU的均流转换系数与预设均流转换系数不匹配,则确定第一PSU为故障PSU。If the current sharing conversion coefficient of the first PSU does not match the preset current sharing conversion coefficient, the first PSU is determined to be a faulty PSU.

在一实现方式中,确定单元602,具体用于:In one implementation, the determining unit 602 is specifically configured to:

若第二PSU的输出电压变化数据指示第二PSU的输出电压未升高,则确定第二PSU为故障PSU。If the output voltage variation data of the second PSU indicates that the output voltage of the second PSU does not increase, the second PSU is determined to be a faulty PSU.

在一实现方式中,响应数据包括第一PSU的均流转换系数;获取单元601,具体用于:In one implementation, the response data includes a current sharing conversion coefficient of the first PSU; the acquisition unit 601 is specifically configured to:

获取均流母线的母线电压、第一PSU的输出电流、第一PSU的均流电阻以及第二PSU的均流电阻。Obtain a bus voltage of the current-sharing bus, an output current of the first PSU, a current-sharing resistor of the first PSU, and a current-sharing resistor of the second PSU.

根据均流母线的母线电压、第一PSU的输出电流、第一PSU的均流电阻以及第二PSU的均流电阻,计算得到第一PSU的均流转换系数。The current sharing conversion coefficient of the first PSU is calculated according to the bus voltage of the current sharing bus, the output current of the first PSU, the current sharing resistance of the first PSU and the current sharing resistance of the second PSU.

本领域技术人员还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.

本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序包括程序指令,该程序指令被计算机执行时实现上述任一方法实施例的功能。The present application also provides a computer-readable storage medium on which a computer program is stored. The computer program includes program instructions, and when the program instructions are executed by a computer, the functions of any of the above method embodiments are implemented.

上述计算机可读存储介质包括但不限于快闪存储器、硬盘、固态硬盘。The computer-readable storage medium includes but is not limited to a flash memory, a hard disk, and a solid-state drive.

本申请还提供了一种计算机程序产品,该计算机程序产品被计算机执行时实现上述任一方法实施例的功能。The present application also provides a computer program product, which implements the functions of any of the above method embodiments when executed by a computer.

本申请中的预设(如预设序列)可以理解为定义、预先定义、存储、预存储、预协商、预配置、固化、或预烧制。The preset (such as preset sequence) in the present application can be understood as definition, pre-definition, storage, pre-storage, pre-negotiation, pre-configuration, curing, or pre-burning.

本领域普通技术人员可以理解,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art will appreciate that, for the sake of convenience and brevity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

本申请中各个实施例之间相同或相似的部分可以互相参考。在本申请中各个实施例、以及各实施例中的各个实施方式/实施方法/实现方法中,如果没有特殊说明以及逻辑冲突,不同的实施例之间、以及各实施例中的各个实施方式/实施方法/实现方法之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例、以及各实施例中的各个实施方式/实施方法/实现方法中的技术特征根据其内在的逻辑关系可以组合形成新的实施例、实施方式、实施方法、或实现方法。以上所述的本申请实施方式并不构成对本申请保护范围的限定。The same or similar parts between the various embodiments in this application can refer to each other. In the various embodiments in this application, and the various implementation methods/implementation methods/implementation methods in each embodiment, if there is no special explanation and logical conflict, the terms and/or descriptions between different embodiments and the various implementation methods/implementation methods/implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods/implementation methods/implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The above-described implementation methods of this application do not constitute a limitation on the scope of protection of this application.

Claims (10)

1.一种电源均流检测方法,其特征在于,应用于计算设备;所述计算设备包括多个供电单元PSU;所述多个PSU用于为所述计算设备供电;所述方法包括:1. A power current sharing detection method, characterized in that it is applied to a computing device; the computing device comprises a plurality of power supply units (PSUs); the plurality of PSUs are used to supply power to the computing device; the method comprises: 按照预设时间间隔获取所述多个PSU的输出电流,并根据所述多个PSU的输出电流确定平均输出电流;Acquire output currents of the plurality of PSUs at preset time intervals, and determine an average output current based on the output currents of the plurality of PSUs; 根据所述平均输出电流以及每个所述PSU的输出电流确定每个所述PSU的均流偏离度;Determine the current sharing deviation of each of the PSUs according to the average output current and the output current of each of the PSUs; 确定所述多个PSU是否处于重载模式;determining whether the plurality of PSUs are in a heavy load mode; 若所述多个PSU处于重载模式,则确定所述多个PSU中均流偏离度大于或等于预设偏离度阈值的目标PSU,并输出所述目标PSU的不均流告警信息。If the multiple PSUs are in the overload mode, a target PSU whose current sharing deviation is greater than or equal to a preset deviation threshold is determined among the multiple PSUs, and unbalanced current alarm information of the target PSU is output. 2.根据权利要求1所述的方法,其特征在于,所述确定所述多个PSU是否处于重载模式,包括:2. The method according to claim 1, wherein determining whether the plurality of PSUs are in overload mode comprises: 获取所述PSU的额定输出电流;Obtaining the rated output current of the PSU; 根据所述多个PSU的输出电流、所述额定输出电流以及所述多个PSU的数量,确定负载比例;determining a load ratio according to the output currents of the plurality of PSUs, the rated output currents, and the number of the plurality of PSUs; 若所述负载比例大于或等于预设比例阈值,则确定所述多个PSU处于重载模式。If the load ratio is greater than or equal to a preset ratio threshold, it is determined that the plurality of PSUs are in a heavy load mode. 3.根据权利要求2所述的方法,其特征在于,所述根据所述多个PSU的输出电流、所述额定输出电流以及所述多个PSU的数量,确定负载比例,包括:3. The method according to claim 2, wherein determining the load ratio according to the output currents of the plurality of PSUs, the rated output currents and the number of the plurality of PSUs comprises: 根据所述多个PSU的输出电流确定总输出电流;determining a total output current based on the output currents of the plurality of PSUs; 根据所述额定输出电流以及所述多个PSU的数量确定总额定输出电流;determining a total rated output current based on the rated output current and the number of the plurality of PSUs; 计算所述总输出电流以及所述总额定输出电流的比值,得到负载比例。The ratio of the total output current to the total rated output current is calculated to obtain a load ratio. 4.根据权利要求1-3中任一项所述的方法,其特征在于,所述PSU的数量为两个,所述计算设备还包括均流母线;所述两个PSU与所述均流母线电连接;4. The method according to any one of claims 1 to 3, characterized in that the number of the PSUs is two, the computing device further comprises a current sharing bus; the two PSUs are electrically connected to the current sharing bus; 在所述输出所述目标PSU的不均流告警信息之后,所述方法还包括:After outputting the uneven current alarm information of the target PSU, the method further includes: 向第一PSU发送调压指令,所述调压指令用于指示所述第一PSU按照预设调整步长增大输出电压,直到第二PSU的输出电流减小到预设电流值;其中,所述第一PSU为所述两个PSU中的任意一个,所述第二PSU为所述两个PSU中除所述第一PSU之外的PSU;Sending a voltage regulation instruction to the first PSU, wherein the voltage regulation instruction is used to instruct the first PSU to increase the output voltage according to a preset adjustment step until the output current of the second PSU decreases to a preset current value; wherein the first PSU is any one of the two PSUs, and the second PSU is a PSU of the two PSUs other than the first PSU; 获取响应数据,所述响应数据包括所述均流母线的母线电压变化数据、所述第一PSU的均流转换系数以及所述第二PSU的输出电压变化数据中的一种或多种;其中,所述均流转换系数是指将PSU的输出电流转换成输入至所述均流母线的电压的比例系数;Acquire response data, the response data including one or more of bus voltage change data of the current-sharing bus, the current-sharing conversion coefficient of the first PSU, and output voltage change data of the second PSU; wherein the current-sharing conversion coefficient refers to a proportional coefficient for converting the output current of the PSU into a voltage input to the current-sharing bus; 根据所述响应数据从所述两个PSU中确定故障PSU,并输出所述故障PSU的故障指示信息。A faulty PSU is determined from the two PSUs according to the response data, and fault indication information of the faulty PSU is output. 5.根据权利要求4所述的方法,其特征在于,所述根据所述响应数据从所述两个PSU中确定故障PSU,包括:5. The method according to claim 4, wherein determining the faulty PSU from the two PSUs according to the response data comprises: 根据所述均流母线的母线电压变化数据,或者,所述均流母线的母线电压变化数据以及所述第一PSU的均流转换系数,确定所述第一PSU是否为故障PSU;Determine whether the first PSU is a faulty PSU according to the bus voltage change data of the current sharing bus, or the bus voltage change data of the current sharing bus and the current sharing conversion coefficient of the first PSU; 若否,则根据所述第二PSU的输出电压变化数据确定所述第二PSU是否为故障PSU。If not, determining whether the second PSU is a faulty PSU according to the output voltage variation data of the second PSU. 6.根据权利要求5所述的方法,其特征在于,所述根据所述均流母线的母线电压变化数据,确定所述第一PSU是否为故障PSU,包括:6. The method according to claim 5, characterized in that the determining whether the first PSU is a faulty PSU according to the bus voltage change data of the current sharing bus comprises: 若所述均流母线的母线电压变化数据指示所述均流母线的母线电压未发生变化,则确定所述第一PSU为故障PSU。If the bus voltage change data of the current-sharing bus indicates that the bus voltage of the current-sharing bus has not changed, it is determined that the first PSU is a faulty PSU. 7.根据权利要求5所述的方法,其特征在于,所述根据所述均流母线的母线电压变化数据以及所述第一PSU的均流转换系数,确定所述第一PSU是否为故障PSU,包括:7. The method according to claim 5, characterized in that the determining whether the first PSU is a faulty PSU according to the bus voltage change data of the current sharing bus and the current sharing conversion coefficient of the first PSU comprises: 若所述均流母线的母线电压变化数据指示所述均流母线的母线电压发生变化,则比较所述第一PSU的均流转换系数与预设均流转换系数;If the bus voltage change data of the current-sharing bus indicates that the bus voltage of the current-sharing bus has changed, comparing the current-sharing conversion coefficient of the first PSU with a preset current-sharing conversion coefficient; 若所述第一PSU的均流转换系数与所述预设均流转换系数不匹配,则确定所述第一PSU为故障PSU。If the current sharing conversion coefficient of the first PSU does not match the preset current sharing conversion coefficient, it is determined that the first PSU is a faulty PSU. 8.根据权利要求5-7任一项所述的方法,其特征在于,所述根据所述第二PSU的输出电压变化数据确定所述第二PSU是否为故障PSU,包括:8. The method according to any one of claims 5 to 7, characterized in that determining whether the second PSU is a faulty PSU according to the output voltage change data of the second PSU comprises: 若所述第二PSU的输出电压变化数据指示所述第二PSU的输出电压未升高,则确定所述第二PSU为故障PSU。If the output voltage variation data of the second PSU indicates that the output voltage of the second PSU does not increase, it is determined that the second PSU is a faulty PSU. 9.根据权利要求4-8中任一项所述的方法,其特征在于,所述响应数据包括所述第一PSU的均流转换系数;所述获取响应数据,包括:9. The method according to any one of claims 4 to 8, wherein the response data comprises a current sharing conversion coefficient of the first PSU; and the step of obtaining the response data comprises: 获取所述均流母线的母线电压、所述第一PSU的输出电流、所述第一PSU的均流电阻以及所述第二PSU的均流电阻;Obtaining a bus voltage of the current-sharing bus, an output current of the first PSU, a current-sharing resistor of the first PSU, and a current-sharing resistor of the second PSU; 根据所述均流母线的母线电压、所述第一PSU的输出电流、所述第一PSU的均流电阻以及所述第二PSU的均流电阻,计算得到所述第一PSU的均流转换系数。A current sharing conversion coefficient of the first PSU is calculated according to a bus voltage of the current sharing bus, an output current of the first PSU, a current sharing resistor of the first PSU, and a current sharing resistor of the second PSU. 10.一种计算设备,其特征在于,所述计算设备包括基板管理控制器BMC、多个供电单元PSU和存储器;10. A computing device, characterized in that the computing device comprises a baseboard management controller BMC, a plurality of power supply units PSU and a memory; 所述BMC分别与所述多个PSU和存储器电连接;The BMC is electrically connected to the plurality of PSUs and the memory respectively; 所述多个PSU用于为所述计算设备供电;The plurality of PSUs are used to supply power to the computing device; 所述存储器用于存储计算机程序指令;The memory is used to store computer program instructions; 所述BMC用于调用所述程序指令,以使所述计算设备执行如权利要求1-9任一项所述的方法步骤。The BMC is used to call the program instructions so that the computing device executes the method steps according to any one of claims 1-9.
CN202311870412.6A 2023-12-29 2023-12-29 A power supply current equalization detection method and computing device Pending CN118112452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311870412.6A CN118112452A (en) 2023-12-29 2023-12-29 A power supply current equalization detection method and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311870412.6A CN118112452A (en) 2023-12-29 2023-12-29 A power supply current equalization detection method and computing device

Publications (1)

Publication Number Publication Date
CN118112452A true CN118112452A (en) 2024-05-31

Family

ID=91217998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311870412.6A Pending CN118112452A (en) 2023-12-29 2023-12-29 A power supply current equalization detection method and computing device

Country Status (1)

Country Link
CN (1) CN118112452A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119718041A (en) * 2025-02-27 2025-03-28 苏州元脑智能科技有限公司 Power supply system of server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119718041A (en) * 2025-02-27 2025-03-28 苏州元脑智能科技有限公司 Power supply system of server

Similar Documents

Publication Publication Date Title
US8185753B2 (en) Storage medium for storing power consumption monitor program, power consumption monitor apparatus and power consumption monitor method
US9223394B2 (en) Rack and power control method thereof
TWI506412B (en) Power management method for server system
US20130110926A1 (en) Method for Controlling Rack System
CN105098965A (en) Servo system and power supply switching method thereof
CN103197748A (en) Server cabinet system and power management method thereof
US10942555B2 (en) Power supplying method for computer system
CN111446718A (en) Power supply method, system, power supply device and storage medium
CN118112452A (en) A power supply current equalization detection method and computing device
US7045914B2 (en) System and method for automatically providing continuous power supply via standby uninterrupted power supplies
CN111864885A (en) A hard disk power supply control device and method
WO2024199018A1 (en) Battery pack control method, energy storage device, system, and storage medium
CN116301278A (en) Power supply control method, equipment, device, storage medium and electronic device
CN107506281A (en) A kind of multiple power supplies monitoring system and method
CN109917900B (en) System power management method and computer system
CN113885689A (en) Power supply control method, system, terminal and storage medium for whole cabinet server
CN111309132B (en) A method for server multi-level power supply redundancy
CN117033084B (en) Virtual machine backup method and device, electronic equipment and storage medium
CN110162160B (en) Method for monitoring, controlling and supervised shutdown of a control and/or computer unit
CN117251319A (en) Power failure analysis method and device, electronic equipment and readable storage medium
CN114567034A (en) Control method and device of battery charge-discharge module, terminal and storage medium
CN115879870A (en) Method and device for processing exception of power data and nonvolatile storage medium
CN111381659B (en) Computer system and power management method
JP6036229B2 (en) Battery control device, battery control method, and program
CN111367397A (en) Cloud host migration method, cloud host downtime determination system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination