Method, system and device for detecting power supply state of server

CN116401106BActive Publication Date: 2026-09-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310265721.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2026-09-11
Estimated Expiration
2043-03-17

AI Technical Summary

Technical Problem

[0004]本申请实施例提供了一种服务器的供电状态的检测方法、系统及装置,以至少解决相关技术中对服务器的供电状态进行检测的检测准确率低的问题

Benefits of technology

[0015]通过本申请,由于可以通过目标控制器获取第一供电状态,以及通过第二供电单元在第一供电单元的供电状态为供电异常时,对目标控制器进行供电,达到了可以及时准确的对第一供电单元的供电状态进行检测的目的,因此,可以解决对服务器的供电状态进行检测的检测准确率低的问题,达到了提高对服务器的供电状态进行检测的检测准确率的效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116401106B_ABST
    Figure CN116401106B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method, system and device for detecting a power supply state of a server, wherein the method comprises: obtaining, by a target controller, a first power supply state of a first power supply unit supplying power to the server; in response to the first power supply state being a power supply abnormal state, controlling a second power supply unit to supply power to the target controller; in response to a power supply state of the second power supply unit supplying power to the target controller being a power supply success state, obtaining, by the target controller, power supply abnormal information corresponding to the power supply abnormal state; and in response to the first power supply state being converted from the power supply abnormal state to the power supply success state, controlling the target controller to detect the power supply abnormal information to obtain a detection result. Through the present application, the problem of low detection accuracy of detecting the power supply state of the server is solved, thereby achieving the effect of improving the detection accuracy of detecting the power supply state of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server data processing, and more specifically, to a method, system, and apparatus for detecting the power supply status of a server. Background Technology

[0002] In server systems, the Power Supply Unit (PSU) is the power source for the server and is crucial for its normal operation. No server can operate without a power supply unit, so the PSU has always played a very important role in servers and has been constantly evolving with the development of servers.

[0003] However, in the existing technology, when detecting the PSU in the server, it is impossible to make an accurate and timely response when the PSU is abnormal, which leads to a low detection accuracy of the server's power supply status. Summary of the Invention

[0004] This application provides a method, system, and apparatus for detecting the power supply status of a server, so as to at least solve the problem of low detection accuracy in the related art for detecting the power supply status of a server.

[0005] According to one embodiment of this application, a method for detecting the power supply status of a server is provided. The method may include: obtaining a first power supply status through a target controller where a first power supply unit supplies power to the server; controlling a second power supply unit to supply power to the target controller in response to the first power supply status being an abnormal power supply status; obtaining power supply anomaly information corresponding to the abnormal power supply status through the target controller in response to the second power supply unit supplying power to the target controller being a successful power supply status; and controlling the target controller to detect the power supply anomaly information and obtain a detection result in response to the first power supply status changing from an abnormal power supply status to a successful power supply status.

[0006] In an exemplary embodiment, after obtaining power supply abnormality information corresponding to the power supply abnormality state through the target controller, the method further includes: in response to the target controller successfully obtaining the power supply abnormality information, controlling the target controller to store the power supply abnormality information.

[0007] In one exemplary embodiment, controlling the target controller to store power supply anomaly information includes: controlling the target communication clock to timestamp the power supply anomaly information to obtain target power supply anomaly information; and controlling the target controller to store the target power supply anomaly information.

[0008] In an exemplary embodiment, obtaining the first power supply state of the first power supply unit supplying power to the server through the target controller includes: in response to successfully obtaining the power supply parameters of the first power supply unit through the target controller, controlling the target controller to analyze the power supply parameters and obtain the analysis results; and determining the first power supply state of the first power supply unit supplying power to the server based on the analysis results.

[0009] In one exemplary embodiment, the method further includes: in response to obtaining power supply parameters through the target controller, controlling a preset controller to obtain power supply parameters through the target controller, wherein the preset controller is used to analyze server anomalies.

[0010] In one exemplary embodiment, the method further includes: in response to a first power supply state being a power supply abnormality state, controlling a target switch to switch the power supply unit of the target controller to a second power supply unit.

[0011] According to another embodiment of this application, a power supply status detection system for a server is provided, comprising: a first power supply unit for supplying power to the server; a target controller connected to the first power supply unit and a second power supply unit for detecting the power supply status of the first power supply unit; a second power supply unit connected to the target controller for supplying power to the target controller when the power supply of the first power supply unit is abnormal; and a target switch connected to the first power supply unit, the target controller, and the second power supply unit for switching the power supply unit of the target controller.

[0012] According to another embodiment of this application, a device for detecting the power supply status of a server is provided, comprising: a first acquisition module, configured to acquire a first power supply status in which a first power supply unit supplies power to the server via a target controller; a first control module, configured to control a second power supply unit to supply power to the target controller in response to the first power supply status being a power supply abnormality status; a second acquisition module, configured to acquire power supply abnormality information corresponding to the power supply abnormality status via the target controller in response to the second power supply unit supplying power to the target controller being a power supply successful status; and a second control module, configured to control the target controller to detect the power supply abnormality information and obtain a detection result in response to the first power supply status changing from a power supply abnormality status to a power supply successful status.

[0013] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the steps in the above embodiments of the method for detecting the power supply status of a server.

[0014] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above embodiments of the method for detecting the power supply status of a server.

[0015] By means of this application, since the first power supply status can be obtained through the target controller, and the target controller can be powered by the second power supply unit when the power supply status of the first power supply unit is abnormal, the purpose of timely and accurate detection of the power supply status of the first power supply unit can be achieved. Therefore, the problem of low detection accuracy of server power supply status can be solved, and the effect of improving the detection accuracy of server power supply status can be achieved. Attached Figure Description

[0016] Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of detecting the power supply status of a server according to an embodiment of this application.

[0017] Figure 2 This is a flowchart of a method for detecting the power supply status of a server according to an embodiment of this application;

[0018] Figure 3 This is a topology diagram of an optional system for detecting the power supply status of a server according to an embodiment of this application;

[0019] Figure 4 This is a structural block diagram of a server power supply status detection system according to an embodiment of this application;

[0020] Figure 5 This is a structural block diagram of a server power supply status detection device according to an embodiment of this application. Detailed Implementation

[0021] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.

[0022] To facilitate a better understanding of this solution by those skilled in the art, the proprietary abbreviations used in this solution will first be explained:

[0023] The Universal Serial Bus (USB) interface is used for transmitting signals;

[0024] Switch, this invention is used for power switching;

[0025] Server out-of-band management chip: Baseboard Management Controller, or BMC for short, is used to perform monitoring and control functions on system hardware;

[0026] Intel I / O processing unit: Platform Controller Hub, or PCH for short, is used to manage the engine;

[0027] Complex Programming Logic Device (CPLD): A device used to execute combinational or sequential logic.

[0028] Serial General Purpose Input / Output (SGPIO) is used for communication between the initiator and the target.

[0029] System Management Bus / Power Management Bus: Inter-Integrated Circuit bus / Power Management Bus, abbreviated as I2C / PMBUS, are both two-wire management buses used for signal transmission;

[0030] Real-time communication clock (RTC) is used to provide clock and calendar functions.

[0031] The server's power supply unit, or PSU for short, is used to supply power to the server.

[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0033] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a server power supply status detection method according to an embodiment of this application. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0034] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the server power supply status detection method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0035] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0036] This embodiment provides a method that runs on the aforementioned mobile terminal. Figure 2 This is a flowchart of a method for detecting the power supply status of a server according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0037] Step S202: Obtain the first power supply status of the first power supply unit supplying power to the server through the target controller.

[0038] In the technical solution provided in step S202 of this application, the server can be any type of server capable of processing business, such as a local server or a cloud server. The specific server type is not limited in this embodiment, and the user can determine it according to actual usage needs. The target controller can be any independent controller that can detect the power supply status of the server's first power supply unit, as preset by the user. In this embodiment, it can be represented as an independent Sub-Complex Programming Logic Device (Sub-CPLD), but it is not limited to this; the user can set it according to actual usage needs.

[0039] It should be noted that because the target controller is designed independently within the server, it can remain unaffected and continue acquiring the first power supply status of the first power supply unit even when the first power supply unit malfunctions. The aforementioned first power supply unit can be at least one power supply unit within the server that supplies power to all devices; it can be represented as a power supply unit, but is not limited to this. The aforementioned first power supply status can be a normal power supply status or a power supply malfunction status of the first power supply unit.

[0040] In one optional embodiment, when it is necessary to detect the power supply status of the server during server operation, the first power supply status of the first power supply unit supplying power to the server can be obtained through the target controller. The first power supply status can be that the first power supply unit is in a normal power supply state or that the first power supply unit is in an abnormal power supply state.

[0041] Step S204: In response to the first power supply state being an abnormal power supply state, control the second power supply unit to supply power to the target controller.

[0042] The aforementioned second power supply unit can be any type of power supply unit that can independently power the target controller, pre-configured by the user. In this embodiment, it can be represented as an independent power supply unit (Sub-PSU), but it is not limited to this. The user can configure it according to actual usage needs. It should be noted that the second power supply unit is independently integrated into the server. Therefore, when the first power supply unit malfunctions, the target controller can be powered independently through the second power supply unit, so that the target controller can continuously obtain the first power supply status of the first power supply unit.

[0043] In one optional embodiment, after obtaining the first power supply state, the target controller can determine the first power supply state. In response to the first power supply state being an abnormal power supply state, the second power supply unit can be controlled to supply power to the target controller.

[0044] Step S206: In response to the power supply status of the second power supply unit supplying power to the target controller being a successful power supply status, the power supply abnormality information corresponding to the power supply abnormality status is obtained through the target controller.

[0045] The aforementioned power supply anomaly information may include, but is not limited to: the voltage (V) power supply signal (PSU1_P12V power supply) of the first power supply unit is abnormal; the alternating current (AC) input status signal (AC_OK_PSU1) of the first power supply unit is abnormal; the output status indicator signal (POWER_OK_PSU1) of the first power supply unit is abnormal; the enable signal (PS_ON#_PSU1) output by the first power supply unit is abnormal; the power management bus interrupt signal (PMBUS_ALERT_PSU1) of the first power supply unit is abnormal; the power management bus signal (PMBUS_PSU1) of the first power supply unit is abnormal; and the presence signal (PRSNT#_PSU1) of the first power supply unit is abnormal.

[0046] In one optional embodiment, after switching the second power supply unit to supply power to the target controller, it can be determined whether the second power supply unit has successfully supplied power to the target controller. In response to the second power supply unit successfully supplying power to the target controller, power supply abnormality information corresponding to the power supply abnormality status can be obtained through the target controller.

[0047] In step S208, in response to the first power supply state changing from a power supply abnormal state to a power supply successful state, the target controller is controlled to detect the power supply abnormality information and obtain the detection result.

[0048] In an optional embodiment, in response to the first power supply state changing from a power supply abnormal state to a power supply successful state, the target controller can be controlled to detect abnormal power supply information. For example, the target controller can be controlled to detect the PSU1_P12V power signal to obtain the detection result of abnormal power supply of the first power supply unit.

[0049] In another optional embodiment, in response to the first power supply state changing from an abnormal power supply state to a successful power supply state, the target controller can be controlled to detect abnormal power supply information. For example, the target controller can be controlled to detect the PSU1_P12V power signal and the AC_OK_PSU1 signal to obtain the detection results of abnormal power supply of the first power supply unit and normal AC input of the first power supply unit.

[0050] The above-mentioned detection results may include, but are not limited to: abnormal power supply of the first power supply unit, abnormal AC power input of the first power supply unit, abnormal output of indication signal of the first power supply unit, abnormal output of enable signal of the first power supply unit, abnormal output of interrupt signal of the power management bus of the first power supply unit, abnormal power management bus of the first power supply unit, and the first power supply unit not being in place.

[0051] In one optional embodiment, after the first power supply state changes from a power supply abnormality state to a power supply success state, the target controller can be controlled to detect the power supply abnormality information, and thus obtain the detection result.

[0052] In another optional embodiment, after the first power supply state changes from a power supply abnormality state to a power supply success state, the target controller can be controlled to detect the power supply abnormality information, and the detection result of the power supply abnormality of the first power supply unit can be obtained.

[0053] In another optional embodiment, after the first power supply state changes from a power supply abnormal state to a power supply successful state, the target controller can be controlled to detect the power supply abnormality information, and the detection results of the first power supply unit not receiving AC power normally and the first power supply unit not outputting an indication signal normally can be obtained.

[0054] The above steps solve the problem of low accuracy in detecting the power supply status of servers, thus improving the accuracy of detecting the power supply status of servers.

[0055] The entities that perform the above steps can be servers, terminals, etc., but are not limited to these.

[0056] In an exemplary embodiment, after obtaining power supply abnormality information corresponding to the power supply abnormality state through the target controller, the method further includes: in response to the target controller successfully obtaining the power supply abnormality information, controlling the target controller to store the power supply abnormality information.

[0057] In one optional embodiment, after the target controller obtains the power supply abnormality information corresponding to the power supply abnormality state, in order to enable the target controller to detect the power supply abnormality information, it can also control the target controller to store the obtained power supply abnormality information so that the power supply abnormality information can be detected and analyzed in the future.

[0058] It should be noted that the existing technology involves the BMC obtaining information from the PSU via I2C through an input / output (IO) expansion chip, using a polling method at time intervals, which has poor timeliness. The target controller in this application can greatly improve the management and monitoring of the PSU, and can obtain the internal status of the PSU in real time, such as over-temperature and over-voltage, and can transmit power supply abnormality information to the motherboard (CPLD), so that the server can take timely actions such as frequency reduction and protection.

[0059] In one exemplary embodiment, controlling the target controller to store power supply anomaly information includes: controlling the target communication clock to timestamp the power supply anomaly information to obtain target power supply anomaly information; and controlling the target controller to store the target power supply anomaly information.

[0060] The target communication clock mentioned above can be any communication clock that can mark the timestamp of power supply abnormality information, which can be set by the user in advance. In this embodiment, it can be represented as RTC, but it is not limited to this. The user can set it according to the actual usage needs.

[0061] In one optional embodiment, when the target controller stores the acquired power supply anomaly information, it can first mark the power supply anomaly information with a timestamp using the target communication clock to obtain the target power supply anomaly information, so as to facilitate the subsequent capture and debugging of the target power supply anomaly information; secondly, it can control the target controller to store the target power supply anomaly information so that the target controller can detect the target power supply anomaly information.

[0062] In another alternative embodiment, the PSU cannot determine whether the AC input is normal (AC_OK) or the DC input is normal (DC_OK) signal is abnormal, and therefore cannot save valid fault information. However, the target controller in this embodiment can comprehensively determine whether the above two signals are abnormal by combining its own logic with the overall system status, and promptly collect PSU and overall system information and store it in the independent control unit register. It should be noted that when a fault occurs, such as PSU AC power failure or DC_OK anomaly, the CPLD can save the fault information for a long time and print a timestamp according to the response time given by the RTC, which facilitates log capture and debugging.

[0063] In an exemplary embodiment, obtaining the first power supply state of the first power supply unit supplying power to the server through the target controller includes: in response to successfully obtaining the power supply parameters of the first power supply unit through the target controller, controlling the target controller to analyze the power supply parameters and obtain the analysis results; and determining the first power supply state of the first power supply unit supplying power to the server based on the analysis results.

[0064] The aforementioned power supply parameters may include, but are not limited to: the internal state parameters of the first power supply unit, the temperature of the first power supply unit, and the pressure of the first power supply unit. The analysis results may show partial anomalies in the power supply parameters, complete anomalies in the power supply parameters, or complete normal power supply parameters, but are not limited to these.

[0065] In one optional embodiment, the power supply parameters of the first power supply unit can first be obtained through the target controller. In response to the successful acquisition of the power supply parameters of the first power supply unit through the target controller, the target controller can be controlled to analyze the power supply parameters to obtain the analysis results of whether the power supply parameters are normal. Finally, based on the analysis results of the power supply parameters, the first power supply state of the first power supply unit supplying power to the server can be determined. The first power supply state can be that the first power supply unit is in a normal power supply state or that the first power supply unit is in a power supply abnormal state.

[0066] In one exemplary embodiment, the method further includes: in response to obtaining power supply parameters through the target controller, controlling a preset controller to obtain power supply parameters through the target controller, wherein the preset controller is used to analyze server anomalies.

[0067] The aforementioned preset controller can be any controller that can detect and analyze server anomalies, which can be set by the user in advance. In this embodiment, it can be represented as BMC, but it is not limited to this. Users can set it themselves according to their actual needs.

[0068] In one optional embodiment, after the power supply parameters are obtained through the target controller, if the preset controller needs to analyze the power supply anomaly information, it can control the preset controller to obtain the power supply parameters through the target controller, and then enable the preset controller to analyze the power supply parameters to obtain the first power supply state.

[0069] In one exemplary embodiment, the method further includes: in response to a first power supply state being a power supply abnormality state, controlling a target switch to switch the power supply unit of the target controller to a second power supply unit.

[0070] The target switch mentioned above can be any switch that can switch the power supply unit, which can be set by the user in advance. In this embodiment, it can be represented as a switch, but it is not limited to this. The user can set it according to the actual usage needs.

[0071] In an optional embodiment, when the first power supply state is an abnormal power supply state, the target switch can be controlled to switch the power supply unit of the target controller to the second power supply unit. Therefore, the second power supply unit can continue to supply power to the target controller. Furthermore, the target controller can continuously acquire the first power supply state of the first power supply unit.

[0072] This application employs an independent control unit (Sub-CPLD), which differs from traditional designs. The independent control unit connects to various signals of the PSU, perfectly integrating the monitoring and status information of the PSU into the server system, making monitoring and management more detailed and real-time. Furthermore, this application employs an independent power supply unit (Sub-Battery), so even if the PSU experiences an abnormal power failure, the independent control unit can still be powered by the server's built-in power supply unit. Since the CPLD has very low power consumption, the battery capacity of this power supply unit does not need to be large, making it easy to integrate into the system.

[0073] Figure 3 This is a topology diagram of an optional system for detecting the power supply status of a server according to an embodiment of this application, such as... Figure 3 As shown, the system includes: a debug header (DH) 30 connected to an independent control unit 32; an indicator light 31 connected to the independent control unit 32; an independent control unit (Sub-CPLD) 32 connected to the debug header 30, indicator light 31, first sub-unit 33 of the first power supply unit, second sub-unit 34 of the first power supply unit, switch 35, power conversion unit 36, real-time clock (RTC) 37, motherboard control unit (CPLD) 38, and BMC subsystem 39; switch 35 connected to power conversion unit 36 ​​and independent power supply unit 310; power conversion unit 36 ​​connected to independent control unit 32 and switch 35; real-time clock 37 connected to independent control unit 32 and real-time clock power supply unit 311; and motherboard CPLD. 38, connected to the independent control unit 32 and the server bandgap management (BMC) subsystem 39; Charger 312, connected to the independent power supply unit 310; Sub-Battery 310, connected to the switch 35 and the Charger 312; Real-time clock power supply unit 311, connected to the real-time clock (RTC) 37; Central Processing Unit (CPU) subsystem 313, connected to the BMC subsystem 39; BMC subsystem 39, connected to the motherboard CPLD 38 and the CPU subsystem 313.

[0074] It should be noted that the aforementioned independent control unit can be understood as the target controller in this application embodiment, the independent power supply unit can be understood as the second power supply unit in this application embodiment, the motherboard CPLD can be understood as the preset controller in this application embodiment, the switch can be understood as the target switch in this application embodiment, and the communication real-time clock can be understood as the target communication clock in this application embodiment.

[0075] Depend on Figure 3 As can be seen, the debugging connector can debug independent control units through the debugging interface (Join Test Action Group, JTAG); the indicator light can use JTAG to alert users of the debugging results of independent control units. For example, when the debugging result is all normal, the indicator light can be green; when the debugging result is partially abnormal, the indicator light can be yellow; and when the debugging result is all abnormal, the indicator light can be red. However, this is not the only option; users can set the specific colors according to their actual needs.

[0076] The first subunit of the first power supply unit is used to supply power to the server. It can output a 12V power supply signal (PSU1_P12V power supply), an AC input normal signal (AC_OK_PSU1), a normal output indicator signal (POWER_OK_PSU1), a power management bus interrupt signal (PMBUS_ALERT_PSU1), a power management bus signal (PMBUS_PSU1), and a PSU1 presence signal (PRSNT#_PSU1) to an independent control unit, so that the independent control unit can detect the power supply status of the first subunit of the first power supply unit.

[0077] The second subunit of the first power supply unit is used to supply power to the server. It can transmit 12V power supply signal (PSU2_P12V power supply), AC input normal signal (AC_OK_PSU2), normal output indicator signal (POWER_OK_PSU2), power management bus interrupt signal (PMBUS_ALERT_PSU2), power management bus signal (PMBUS_PSU2), and PSU1 present signal (PRSNT#_PSU2) to an independent control unit, so that the independent control unit can detect the power supply status of the second subunit of the first power supply unit.

[0078] An independent control unit is used to detect the power supply status of the first sub-unit and the second sub-unit of the first power supply unit. It can output PMBUS_ALERT_PSU1 and an enable signal (PS_ON#_PSU1) to the first sub-unit of the first power supply unit. Similarly, the independent control unit can also output PMBUS_ALERT_PSU2 and an enable signal (PS_ON#_PSU2) to the second sub-unit of the first power supply unit. The independent control unit can also transmit the abnormal power supply status (PSU monitoring) to the motherboard CPLD via SGPIO, and the independent control unit can also transmit the abnormal power supply status (PSU monitoring) to the BMC subsystem via PMBUS.

[0079] The switch is used to switch the power supply unit. When the switch receives the input 12V power supply signal and the signal provided by the independent power supply unit, in response to the abnormal power supply of the first sub-unit of the first power supply unit or the second sub-unit of the first power supply unit, the independent power supply unit is switched to charge the independent control unit, so that the independent control unit can detect the abnormal power supply status of the first sub-unit of the first power supply unit or the second sub-unit of the first power supply unit independently.

[0080] The power conversion unit is used for switching the power supply unit. In response to the switching of the switch, the power conversion unit can switch the power supply from the first power supply unit to the second power supply unit.

[0081] The communication real-time clock receives power from the communication real-time clock power supply unit, and can mark the abnormal power supply status parameters with timestamps and store them in an independent control unit;

[0082] The motherboard CPLD can obtain power supply abnormal status (PSU monitoring) from an independent control unit via SGPIO, and send motherboard monitoring status to the independent control unit;

[0083] The motherboard CPLD and BMC subsystem transmit signals via SGPIO and I2C; the BMC subsystem and CPU subsystem transmit signals via PCIE and USB.

[0084] It should be noted that this application uses an independent control unit, which is different from the traditional design. The independent control unit connects to various signals of the PSU, perfectly integrating the monitoring and status information of the PSU into the server system, making the monitoring and management more detailed and real-time. The independent control unit is a separate control chip that is independent of the motherboard CPLD.

[0085] By employing an independent sub-battery power supply unit, even if the PSU experiences a power failure, the independent control chip can still be powered by the server's built-in power supply unit. Since the CPLD has very low power consumption, the battery capacity of this power supply unit does not need to be large, making it easy to integrate into the system. The server power supply uses the PSU, and the independent power supply unit used in this application is... Figure 3 The sub-battery shown is powered by a power source that does not rely on the PSU, so that even if the PSU fails, the independent control unit can still operate normally.

[0086] The method for detecting the power supply status of a server according to an embodiment of this application can achieve the following beneficial effects:

[0087] 1) The system disclosed in this application can greatly improve the management and monitoring of PSU, obtain the internal status of PSU in real time, such as over-temperature and over-voltage, and transmit it to the motherboard CPLD through SGPIO, so that the system can take timely actions such as frequency reduction and protection. This avoids the problem of poor timeliness caused by the BMC obtaining the information from the PSU through I2C via the IO expansion chip and using a polling method at a certain time interval.

[0088] 2) In the prior art, the PSU cannot make a judgment on the abnormality of signals such as AC OK and DC OK, and therefore cannot save effective fault information. The independent control unit of this application can comprehensively judge whether the above two signals are abnormal by combining its own logic with the overall status of the machine, and collect PSU and overall machine information in a timely manner and store it in the independent control unit register. For example, when a fault occurs, such as PSU AC power failure or DC OK abnormality, the CPLD can save the fault information for a long time and print a timestamp according to the response time given by RTC (real-time clock) to facilitate log capture and debugging.

[0089] 3) Compared to traditional servers, PS_ON is changed from direct grounding to independent control, which can remotely realize the individual power-on and power-off of the PSU, making it more convenient to switch power and power off the entire system. It should be noted that the remote individual power-on and power-off of the PSU is for whole system testing. Repeated power-on and power-off testing requires external equipment. This application, as an independent unit outside the server system, can realize the purpose of controlling the power-on and power-off of the PSU by using the control ACOK signal.

[0090] 4) PMBUS no longer relies on BMC. In traditional implementations, BMC needs to obtain PSU information through PMBUS using a polling method. Due to limitations of the BMC subsystem, real-time performance is poor, and system management is impossible if the BMC subsystem crashes. The independent control unit in this application can respond promptly to PSU overcurrent, timely reduce system frequency, isolate abnormal PSUs, and avoid risks such as system crashes and power outages. BMC can obtain information from the control unit CPLD through its own PM Bus without needing to access the PSU again. For example, the sub-CPLD unit in this application can obtain PSU information in real time, and BMC can obtain it from the sub-CPLD when needed, ensuring the timeliness and effectiveness of information.

[0091] It should be noted that the independent power supply of the independent control unit in this embodiment is described below: This power supply unit uses a battery (sub-battery) managed by a charging management chip (charger) to ensure long-term battery life. When the PSU is normal, this power supply unit is powered by the 12V output from the PSU after VR conversion; when the PSU malfunctions and cannot supply power, it switches to this alternative power supply line and is powered by the battery. The battery charge meets the system fault repair time requirements; it should be noted that the sub-battery is a rechargeable battery, and charging is performed using a changer; the sub-battery is for powering the sub-CPLD. When the PSU is working normally, it uses the system's 12V power supply; when the PSU malfunctions, it switches to the sub-battery unit. The switching between the two uses... Figure 3 The switch in the middle.

[0092] This application provides a more refined PSU management and control scheme with higher real-time performance and higher reliability. In addition, this application also provides a safer solution. The power supply of the control unit of this invention is isolated from the system, and the PSU is decoupled from the system, making the system power supply design safer and effectively avoiding system power failure due to untimely regulation. At the same time, the problem can be accurately located after abnormal triggering.

[0093] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0094] Embodiments of this application also provide a system for detecting the power supply status of a server. Figure 4 This is a structural block diagram of a server power supply status detection system according to an embodiment of this application, as shown below. Figure 4 As shown, the system may include: a first power supply unit 40, a target controller 42, a second power supply unit 44, and a target switch 46.

[0095] The first power supply unit 40 is used to supply power to the server;

[0096] The target controller 42 is connected to the first power supply unit 40 and the second power supply unit 44, and is used to detect the power supply status of the first power supply unit 40.

[0097] The second power supply unit 44 is connected to the target controller 42 and is used to supply power to the target controller 42 when the power supply of the first power supply unit 40 is abnormal.

[0098] The target switch 46 is connected to the first power supply unit 40, the target controller 42, and the second power supply unit 44, and is used to switch the power supply unit of the target controller 42.

[0099] This embodiment also provides a device for detecting the power supply status of a server. This device is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0100] Figure 5 This is a structural block diagram of a server power supply status detection device according to an embodiment of this application, as shown below. Figure 5 As shown, the device may include: a first acquisition module 50, a first control module 52, a second acquisition module 54, and a second control module 56.

[0101] The first acquisition module 50 is used to acquire the first power supply status of the first power supply unit supplying power to the server through the target controller;

[0102] The first control module 52 is used to control the second power supply unit to supply power to the target controller in response to the first power supply state being an abnormal power supply state;

[0103] The second acquisition module 54 is used to acquire power supply abnormality information corresponding to the power supply abnormality state through the target controller in response to the power supply status of the second power supply unit supplying power to the target controller being a power supply success state.

[0104] The second control module 56 is used to control the target controller to detect power supply abnormality information and obtain the detection result in response to the first power supply state changing from power supply abnormality state to power supply success state.

[0105] In one exemplary embodiment, the device further includes a storage module, configured to control the target controller to store the power supply anomaly information in response to the target controller successfully acquiring the power supply anomaly information.

[0106] In one exemplary embodiment, the storage module includes: a first control unit for controlling the target communication clock to timestamp the power supply anomaly information to obtain the target power supply anomaly information; and a second control unit for controlling the target controller to store the target power supply anomaly information.

[0107] In an exemplary embodiment, the first acquisition module includes: a third control unit, configured to control the target controller to analyze the power supply parameters and obtain analysis results in response to successfully acquiring the power supply parameters of the first power supply unit through the target controller; and a determination unit, configured to determine a first power supply state in which the first power supply unit supplies power to the server based on the analysis results.

[0108] In one exemplary embodiment, the device further includes: a third control module, configured to control a preset controller to obtain power supply parameters through the target controller in response to obtaining power supply parameters through the target controller, wherein the preset controller is used to analyze server anomalies.

[0109] In one exemplary embodiment, the device further includes a fourth control module, configured to control a target switch to switch the power supply unit of the target controller to a second power supply unit in response to a first power supply state being an abnormal power supply state.

[0110] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0111] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0112] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0113] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0114] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0115] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0116] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0117] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for detecting the power supply status of a server, characterized in that, include: The target controller obtains the first power supply status of the first power supply unit supplying power to the server; The target controller is designed independently within the server; The target controller is set independently of the motherboard control unit; In response to the first power supply state being an abnormal power supply state, the second power supply unit is controlled to supply power to the target controller; when the first power supply unit malfunctions, the target controller is supplied power solely through the second power supply unit, so that the target controller continuously obtains the first power supply state of the first power supply unit; The target controller is used to comprehensively determine whether there are any abnormalities in the AC input signal and DC input signal by combining its own logic with the overall machine status. The abnormal power supply status includes at least one of AC input abnormality and DC input abnormality; In response to the second power supply unit supplying power to the target controller in a power supply success state, the target controller obtains the power supply abnormality information corresponding to the power supply abnormality state. In response to the first power supply state changing from the power supply abnormal state to the power supply successful state, the target controller is controlled to detect the power supply abnormality information and obtain the detection result.

2. The method according to claim 1, characterized in that, After obtaining the power supply anomaly information corresponding to the power supply anomaly state through the target controller, the method further includes: In response to the target controller successfully acquiring the power supply anomaly information, the target controller is controlled to store the power supply anomaly information.

3. The method according to claim 2, characterized in that, Controlling the target controller to store the power supply anomaly information includes: The target communication clock is controlled to timestamp the power supply anomaly information to obtain the target power supply anomaly information; The target controller is controlled to store the target power supply anomaly information.

4. The method according to claim 1, characterized in that, The target controller obtains the first power supply status of the first power supply unit supplying power to the server, including: In response to successfully obtaining the power supply parameters of the first power supply unit through the target controller, the target controller is controlled to analyze the power supply parameters and obtain the analysis results; Based on the analysis results, the first power supply state in which the first power supply unit supplies power to the server is determined.

5. The method according to claim 4, characterized in that, The method further includes: In response to obtaining the power supply parameters through the target controller, a preset controller is controlled to obtain the power supply parameters through the target controller, wherein the preset controller is used to analyze the anomalies of the server.

6. The method according to claim 1, characterized in that, The method further includes: In response to the first power supply state being the abnormal power supply state, the control target switch switches the power supply unit of the target controller to the second power supply unit.

7. A system for detecting the power supply status of a server, characterized in that, include: The first power supply unit is used to supply power to the server; A target controller, connected to the first power supply unit and the second power supply unit, is used to detect the power supply status of the first power supply unit; in response to the second power supply unit supplying power to the target controller in a successful power supply state, it acquires power supply abnormality information corresponding to a power supply abnormality state; in response to the first power supply status of the first power supply unit changing from the power supply abnormality state to the power supply successful state, it detects the power supply abnormality information and obtains a detection result; the target controller is an independent design in the server; the target controller is set independently of the motherboard control unit; The second power supply unit is connected to the target controller and is used to supply power to the target controller when the power supply of the first power supply unit is abnormal. When the first power supply unit malfunctions, power is supplied to the target controller separately so that the target controller can continuously acquire the first power supply status of the first power supply unit. The target controller is used to comprehensively determine whether there are any abnormalities in the AC input signal and DC input signal by combining its own logic with the overall machine status. The abnormal power supply status includes at least one of AC input abnormality and DC input abnormality; A target switch, connected to the first power supply unit, the target controller, and the second power supply unit, is used to switch the power supply unit of the target controller.

8. A device for detecting the power supply status of a server, characterized in that, include: The first acquisition module is used to acquire the first power supply status of the first power supply unit supplying power to the server through the target controller; The target controller is designed independently within the server; The target controller is set independently of the motherboard control unit; The first control module is configured to control the second power supply unit to supply power to the target controller in response to the first power supply state being an abnormal power supply state; when the first power supply unit is abnormal, the second power supply unit supplies power to the target controller separately, so that the target controller can continuously obtain the first power supply state of the first power supply unit. The target controller is used to comprehensively determine whether there are any abnormalities in the AC input signal and DC input signal by combining its own logic with the overall machine status; the power supply abnormality status includes at least one of AC input abnormality and DC input abnormality. The second acquisition module is used to acquire power supply abnormality information corresponding to the power supply abnormality state through the target controller in response to the power supply status of the second power supply unit supplying power to the target controller being a power supply success state. The second control module is used to control the target controller to detect the power supply abnormality information and obtain the detection result in response to the first power supply state changing from the power supply abnormality state to the power supply success state.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method for detecting the power supply status of the server as described in any one of claims 1 to 6.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method for detecting the power supply status of the server as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Battery redundancy method, device and system

    CN105912089A

  • Server power supply fault detection system, method and device, equipment and medium

    CN109683696A