Power information reading control method and device, substrate management controller and server
By configuring status pins for the power supply unit, the baseboard management controller monitors the PSU status signal, determines and controls it to stop receiving and reading commands when it is in the command execution state, thus solving the problem of PSU failure under multiple command sources and improving the stability of the PSU and the reliability of the server.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2023-03-30
- Publication Date
- 2026-05-29
AI Technical Summary
Under large-scale monitoring in the data center, the presence of multiple command sources for the PSU can lead to I2C interruption, triggering data length overflow, causing power supply unit failure, and affecting server stability.
By configuring status pins for the power supply unit, the board management controller monitors the status signal to determine whether the PSU is in the instruction execution state. When it is determined that the PSU is in the instruction execution state, it controls the PSU to stop receiving and reading instructions to avoid interference.
This reduces the probability of power supply unit failure, improves PSU stability, and ensures the reliability and stable operation of the server.
Smart Images

Figure CN116400793B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a power information reading and control method, device, baseboard management controller, and server. Background Technology
[0002] When a server's power supply unit (PSU) fails, it reduces the server's reliability and can even lead to server shutdown in severe cases. Therefore, timely diagnosis of power supply failures is one of the important means to ensure server reliability. To facilitate power supply maintenance and use, black-box logging is usually used to store status words, parameter information, time, and other information during abnormal power supply operation, which helps to locate problems in subsequent failure analysis (FA) processes.
[0003] In server systems, we typically use a Baseboard Management Controller (BMC) to monitor and manage the health of the Power Supply Unit (PSU). Important parameters on the PSU, such as voltage, temperature, and power consumption, are monitored and recorded by the BMC. Currently, communication between the BMC and the PSU is via the Power Management Bus (PMBUS), with the BMC acting as the host, interacting with the PSU, and the PSU passively providing parameter feedback. Large-scale data centers now monitor and manage server clusters out-of-band. Under normal circumstances, there is a certain waiting and polling time interval between the BMC and PSU to prevent other commands from being sent via the PMBUS while the PSU is executing query or read commands, which could interfere with or affect the normal functioning of the PSU, thereby causing server abnormalities and failures.
[0004] However, due to the large-scale monitoring methods in data centers, the PSU may have multiple instruction sources. For example, if instruction 1 has not been processed yet while instruction 2 has already been received, the I2C interrupt of instruction 2 will cause the function for accessing the EEPROM to be called twice, resulting in an overflow of the accessed data length and triggering an exception in the PSU. Summary of the Invention
[0005] To address the problems existing in the prior art, embodiments of the present invention provide a power information reading and control method, device, baseboard management controller, and server.
[0006] In a first aspect, the present invention provides a power information reading and control method applied to a substrate management controller, wherein the signal monitoring terminal of the substrate management controller is electrically connected to the status terminal of a power supply unit, the status terminal of the power supply unit is used to indicate the operating status of the power supply unit, and the power information reading and control method includes:
[0007] The power supply unit status signal sent by the power supply unit is received through the signal monitoring terminal;
[0008] Based on the status signal of the power supply unit, it is determined whether the power supply unit is in the state of executing instructions;
[0009] If it is determined that the power supply unit is in the instruction execution state, then the power supply unit is controlled to stop receiving read instructions.
[0010] Optionally, according to a power information reading control method provided by the present invention, the signal control terminal of the substrate management controller is electrically connected to the clock signal line in the power management bus, and the step of controlling the power supply unit to stop receiving reading commands if it is determined that the power supply unit is in the execution command state includes:
[0011] If it is determined that the power supply unit is in the instruction execution state, the level of the clock signal line is set to low level through the signal control terminal.
[0012] Optionally, according to a power information reading and control method provided by the present invention, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes:
[0013] If it is determined that the power supply unit is not in the state of executing instructions, the signal of the clock signal line is released through the signal control terminal.
[0014] Optionally, according to a power information reading and control method provided by the present invention, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes:
[0015] If it is determined that the power supply unit is in the instruction execution state, then stop sending read instructions to the power supply unit.
[0016] Optionally, according to a power information reading and control method provided by the present invention, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes:
[0017] If it is determined that the power supply unit is in the instruction execution state, a target instruction is sent to the subscription device, the target instruction being used to instruct the cessation of sending read instructions to the power supply unit;
[0018] The subscribing device is a device that has subscribed to the status information of the power supply unit.
[0019] Optionally, according to a power information reading and control method provided by the present invention, determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal includes:
[0020] Based on the preset configuration table and the level of the power supply unit status signal, the target operating state of the power supply unit is determined.
[0021] Based on the target operating state, determine whether the power supply unit is in the instruction execution state;
[0022] The preset configuration table is used to characterize the mapping relationship between the level of the power supply unit status signal and the working state of the power supply unit.
[0023] Secondly, the present invention also provides a power information reading and control device applied to a substrate management controller, wherein the signal monitoring terminal of the substrate management controller is electrically connected to the status terminal of a power supply unit, the status terminal of the power supply unit is used to indicate the operating status of the power supply unit, and the power information reading and control device includes:
[0024] The receiving module is used to receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal;
[0025] The judgment module is used to determine whether the power supply unit is in the execution instruction state based on the status signal of the power supply unit;
[0026] The control module is used to control the power supply unit to stop receiving read commands if it is determined that the power supply unit is in the command execution state.
[0027] Thirdly, the present invention also provides a baseboard management controller, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the power information reading and control method as described above.
[0028] Fourthly, the present invention also provides a server, including a power supply unit and any of the aforementioned baseboard management controllers, wherein the signal monitoring terminal of the baseboard management controller is electrically connected to the status terminal of the power supply unit, and the status terminal of the power supply unit is used to indicate the operating status of the power supply unit.
[0029] Fifthly, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the power information reading and control method as described above.
[0030] The power information reading control method, device, baseboard management controller, and server provided by this invention configure a status pin for the power supply unit. This status pin can indicate the working status of the power supply unit. The baseboard management controller can receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal. Based on the power supply unit status signal, it can determine whether the power supply unit is in the instruction execution state. If it is determined that the power supply unit is in the instruction execution state, it can control the power supply unit to stop receiving reading commands, thus avoiding the power supply unit receiving reading commands in the instruction execution state. This reduces the probability of the power supply unit reporting a fault and improves the stability of the power supply unit. Attached Figure Description
[0031] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0032] Figure 1 This is a schematic diagram of the interaction between the BMC and PSU provided by related technologies;
[0033] Figure 2 This is a diagram illustrating the overflow of data access length provided by related technologies;
[0034] Figure 3 This is a schematic diagram of the power information reading and control method provided by the present invention;
[0035] Figure 4 This is a schematic diagram of the interaction between the BMC and PSU provided by the present invention;
[0036] Figure 5 This is a schematic diagram of the power information reading and control device provided by the present invention;
[0037] Figure 6 This is a schematic diagram of the structure of the baseboard management controller provided by the present invention;
[0038] Figure 7 This is a schematic diagram of the server structure provided by the present invention. Detailed Implementation
[0039] To facilitate a clearer understanding of the various embodiments of the present invention, some relevant background knowledge will be introduced as follows.
[0040] Figure 1 This is a schematic diagram of the interaction between the BMC and PSU provided by related technologies, such as... Figure 1 As shown, communication between the BMC and PSU is conducted via PMBUS, which includes a clock line (SCL) and a data line (SDA).
[0041] Due to the large-scale monitoring methods used in data centers, the PSU may have multiple sources of commands. Figure 2 This is a diagram illustrating the overflow of data access length provided by related technologies, such as... Figure 2 As shown, if instruction 2 has been received before instruction 1 has been processed, the I2C interrupt of instruction 2 will cause the function for accessing the EEPROM to be called twice, resulting in the data length overflow and triggering the PSU exception.
[0042] To overcome the above-mentioned defects, the present invention provides a power information reading control method, device, baseboard management controller and server. By controlling the power supply unit to stop receiving reading instructions when it is determined that the power supply unit is in the execution instruction state, the probability of the power supply unit reporting a fault can be reduced and the stability of the power supply unit can be improved.
[0043] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0044] Figure 3 This is a schematic diagram of the power information reading and control method provided by the present invention, as shown below. Figure 3 As shown, the execution entity of the method can be a baseboard management controller. The signal monitoring terminal of the baseboard management controller is electrically connected to the status terminal of the power supply unit, and the status terminal of the power supply unit is used to indicate the operating status of the power supply unit. The method includes:
[0045] Step 301: Receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal.
[0046] Specifically, in order to prevent the PSU from receiving read commands while executing instructions, a status pin can be configured for the PSU. This status pin can indicate the working status of the PSU. A signal monitoring pin can be configured for the BMC. The signal monitoring pin of the BMC is electrically connected to the status pin of the PSU. The BMC can receive the PSU status signal sent by the PSU through the signal monitoring pin.
[0047] Optionally, configuring a status pin for a PSU can be done by selecting an existing pin of the PSU and configuring it as a status pin to indicate the working status of the PSU; or by adding a new pin to the PSU and configuring it as a status pin to indicate the working status of the PSU.
[0048] Optionally, configuring a signal monitoring pin for the BMC can be done by selecting an existing pin of the BMC and configuring it as a signal monitoring pin to listen to the PSU status signal sent by the PSU; or by adding a new pin to the BMC and configuring it as a signal monitoring pin to listen to the PSU status signal sent by the PSU.
[0049] Step 302: Based on the status signal of the power supply unit, determine whether the power supply unit is in the state of executing instructions.
[0050] Specifically, after receiving the PSU status signal, the BMC can determine whether the PSU is in the instruction execution state based on the PSU status signal.
[0051] Understandably, the PSU status signal can indicate whether the PSU is in the execution instruction state or in the idle state. By parsing the PSU status signal, the BMC can determine the working state of the PSU.
[0052] Step 303: If it is determined that the power supply unit is in the instruction execution state, then control the power supply unit to stop receiving read instructions.
[0053] Specifically, by determining whether the PSU is in the instruction execution state, the determination result can be obtained. If the determination result indicates that the PSU is in the instruction execution state, the PSU is controlled to stop receiving read instructions, thus preventing the PSU from receiving read commands while in the instruction execution state.
[0054] Optionally, if it is determined that the PSU is not in the instruction execution state, the BMC can release control of the PSU (the control used to stop the PSU from receiving read instructions) so that the PSU can receive read instructions.
[0055] The power information reading and control method provided by this invention configures a status pin for the power supply unit, which can indicate the working status of the power supply unit. The board management controller can receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal, and then determine whether the power supply unit is in the execution command state based on the power supply unit status signal. If it is determined that the power supply unit is in the execution command state, the controller can control the power supply unit to stop receiving reading commands, thereby avoiding the power supply unit receiving reading commands in the execution command state, reducing the probability of the power supply unit reporting a fault, and improving the stability of the power supply unit.
[0056] Optionally, according to a power information reading control method provided by the present invention, the signal control terminal of the substrate management controller is electrically connected to the clock signal line in the power management bus, and the step of controlling the power supply unit to stop receiving reading commands if it is determined that the power supply unit is in the execution command state includes:
[0057] If it is determined that the power supply unit is in the instruction execution state, the clock signal line is set to a low level through the signal control terminal.
[0058] Specifically, a signal control pin can be configured for the BMC. The signal control pin of the BMC is electrically connected to the SCL in the PMBUS. By determining whether the PSU is in the instruction execution state, the determination result can be obtained. If the determination result indicates that the PSU is in the instruction execution state, the level of SCL is set to low through the signal control pin, that is, SCL in the PMBUS is also at a low level. When SCL is at a low level, the PSU can be controlled to stop receiving read commands, thus preventing the power supply unit from receiving read commands in the instruction execution state and improving the stability of the power supply unit.
[0059] Optionally, if the judgment result indicates that the PSU is in the instruction execution state, the SCL can be grounded through the signal control terminal to forcibly set the level on SCL low.
[0060] Optionally, configuring a signal control pin for the BMC can be done by selecting an existing pin of the BMC and configuring it as a signal control pin to control SCL to be in a low level or a released state; alternatively, it can be done by adding a new pin to the BMC and configuring it as a signal monitoring pin to control SCL to be in a low level or a released state.
[0061] Optionally, Figure 4 This is a schematic diagram of the interaction between the BMC and PSU provided by the present invention, as shown below. Figure 4As shown, a status pin can be configured for the PSU, which indicates the PSU's operating status. A signal monitoring pin can be configured for the BMC, which is electrically connected to the PSU's status pin. The BMC can receive the PSU status signal sent by the PSU through the signal monitoring pin. A signal control pin can also be configured for the BMC, which is electrically connected to the SCL in the PMBUS. If it is determined that the PSU is in the instruction execution state, the signal control pin can be controlled to be at a low level, that is, the SCL in the PMBUS is also at a low level, to prevent other commands from being sent to the PSU.
[0062] Optionally, according to a power information reading and control method provided by the present invention, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes:
[0063] If it is determined that the power supply unit is not in the state of executing instructions, the signal of the clock signal line is released through the signal control terminal.
[0064] Specifically, by determining whether the PSU is in the instruction execution state, the determination result can be obtained. If the determination result indicates that the PSU is not in the instruction execution state, the clock signal line can be released through the signal control terminal, that is, the SCL in the PMBUS is also in the released state. When the SCL is in the released state (e.g., set to a high level), the PSU can receive read commands, which can ensure that the PSU can receive read commands normally even when it is not in the instruction execution state.
[0065] Optionally, according to a power information reading and control method provided by the present invention, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes:
[0066] If it is determined that the power supply unit is in the instruction execution state, then stop sending read instructions to the power supply unit.
[0067] Specifically, by determining whether the PSU is in the instruction execution state, the determination result can be obtained. If the determination result indicates that the PSU is in the instruction execution state, the BMC can stop sending read instructions to the PSU, thus avoiding instruction overhead.
[0068] It is understandable that when the PSU is in the instruction execution state, the BMC will control the PSU to stop receiving read instructions. If the BMC sends a read instruction to the PSU in this state, the read instruction will not be received by the PSU, resulting in wasted instructions. Therefore, when the PSU is in the instruction execution state, the BMC stops sending read instructions to the PSU to avoid instruction overhead.
[0069] Optionally, after determining whether the PSU is in the instruction execution state, the determination result can be obtained. If the determination result indicates that the PSU is not in the instruction execution state, the BMC can resume sending read instructions to the PSU.
[0070] Optionally, according to a power information reading and control method provided by the present invention, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes:
[0071] If it is determined that the power supply unit is in the instruction execution state, a target instruction is sent to the subscription device, the target instruction being used to instruct the cessation of sending read instructions to the power supply unit;
[0072] The subscribing device is a device that has subscribed to the status information of the power supply unit.
[0073] Specifically, devices in the data center that need to obtain PSU health status information can subscribe to PSU status information from the BMC. These subscribed devices are called subscribed devices. After determining whether the PSU is in the instruction execution state, the determination result can be obtained. If the determination result indicates that the PSU is in the instruction execution state, the BMC can send a target instruction to the subscribed device. The target instruction can instruct the subscribed device to stop sending read instructions to the PSU, thus avoiding instruction overhead.
[0074] Understandably, when the PSU is in the instruction execution state, the BMC will control the PSU to stop receiving read instructions. If other devices in the data center send read instructions to the PSU in this state, the read instructions will not be received by the PSU, resulting in wasted instructions. Therefore, when the PSU is in the instruction execution state, the BMC can send target instructions to the subscribing devices to instruct the subscribing devices to stop sending read instructions to the PSU, thus avoiding instruction overhead.
[0075] Optionally, after determining whether the PSU is in the state of executing instructions, the determination result can be obtained. If the determination result indicates that the PSU is not in the state of executing instructions, the BMC can send a recovery command to the subscription device. The recovery command can instruct the subscription device to resume sending read commands to the PSU.
[0076] For example, devices A, B, and C in a data center have subscribed to PSU status information. If the determination result indicates that the PSU is in the execution command state, the BMC can send a target command to devices A, B, and C, instructing them to stop sending read commands to the PSU. If the determination result indicates that the PSU is not in the execution command state, the BMC can send a recovery command to devices A, B, and C, instructing them to resume sending read commands to the PSU.
[0077] Optionally, according to a power information reading and control method provided by the present invention, determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal includes:
[0078] Based on the preset configuration table and the level of the power supply unit status signal, the target operating state of the power supply unit is determined.
[0079] Based on the target operating state, determine whether the power supply unit is in the instruction execution state;
[0080] The preset configuration table is used to characterize the mapping relationship between the level of the power supply unit status signal and the working state of the power supply unit.
[0081] Specifically, a mapping relationship between the power supply unit (PSU) status signal level and the PSU's operating state can be pre-configured, generating a preset configuration table and storing it in the BMC. Upon receiving the PSU status signal, the BMC can search for the corresponding PSU operating state in the preset configuration table based on the preset configuration table and the PSU status signal level, thus determining the target operating state of the PSU. Based on this target operating state, the BMC can then determine whether the PSU is in an instruction execution state.
[0082] Optionally, a low-level PSU status signal corresponds to the idle state of the PSU, and a high-level PSU status signal corresponds to the execution instruction state of the PSU. A first preset configuration table can be generated based on these mapping relationships and stored in the BMC.
[0083] For example, after receiving the PSU status signal, if the PSU status signal level is high, the BMC can determine the target working state of the PSU as the instruction execution state based on the first preset configuration table, and then control the PSU to stop receiving read instructions, thus preventing the PSU from receiving read commands while in the instruction execution state.
[0084] For example, after receiving the PSU status signal, if the level of the PSU status signal is low, the BMC can determine the target working state of the PSU as idle state based on the first preset configuration table. Then, the BMC can release the control over the PSU (the control used to stop the PSU from receiving read commands) so that the PSU can receive read commands.
[0085] Optionally, a high-level PSU status signal corresponds to the idle state of the PSU, and a low-level PSU status signal corresponds to the execution instruction state of the PSU. A second preset configuration table can be generated based on these mapping relationships and stored in the BMC.
[0086] For example, after receiving the PSU status signal, if the level of the PSU status signal is low, the BMC can determine the target working state of the PSU as the instruction execution state based on the second preset configuration table, and then control the PSU to stop receiving read instructions, thus preventing the PSU from receiving read commands in the instruction execution state.
[0087] For example, after receiving the PSU status signal, if the PSU status signal level is high, the BMC can determine the target working state of the PSU as idle state based on the second preset configuration table. Then, the BMC can release the control over the PSU (the control used to stop the PSU from receiving read commands) so that the PSU can receive read commands.
[0088] It is understood that this invention achieves anti-interference design when interacting with PSU information through hardware identification and software control, ensuring the stable operation of the customer's data center. While monitoring and managing the PSU normally, it also sets hardware information numbers based on different types of PSU status, avoiding false alarms caused by software, reducing the overall failure rate, improving product stability and reliability, and enhancing service quality.
[0089] Therefore, by determining whether the power supply unit is in the instruction execution state, it is possible to control the power supply unit to stop receiving read commands when it is determined that the power supply unit is in the instruction execution state, thereby preventing the power supply unit from receiving read commands while in the instruction execution state.
[0090] The power information reading and control method provided by this invention configures a status pin for the power supply unit, which can indicate the working status of the power supply unit. The board management controller can receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal, and then determine whether the power supply unit is in the execution command state based on the power supply unit status signal. If it is determined that the power supply unit is in the execution command state, the controller can control the power supply unit to stop receiving reading commands, thereby avoiding the power supply unit receiving reading commands in the execution command state, reducing the probability of the power supply unit reporting a fault, and improving the stability of the power supply unit.
[0091] The power information reading and control device provided by the present invention is described below. The power information reading and control device described below can be referred to in correspondence with the power information reading and control method described above.
[0092] Figure 5 This is a schematic diagram of the power information reading and control device provided by the present invention, as shown below. Figure 5 As shown, the device can be applied to a substrate management controller. The signal monitoring terminal of the substrate management controller is electrically connected to the status terminal of the power supply unit. The status terminal of the power supply unit is used to indicate the operating status of the power supply unit. The device includes: a receiving module 501, a judging module 502, and a control module 503, wherein:
[0093] The receiving module 501 is used to receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal;
[0094] The judgment module 502 is used to determine whether the power supply unit is in the execution instruction state based on the status signal of the power supply unit;
[0095] The control module 503 is used to control the power supply unit to stop receiving read commands if it is determined that the power supply unit is in the command execution state.
[0096] The power information reading and control device provided by this invention configures a status pin for the power supply unit. This status pin can indicate the working status of the power supply unit. The board management controller can receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal. Based on the power supply unit status signal, it can determine whether the power supply unit is in the instruction execution state. If it is determined that the power supply unit is in the instruction execution state, it can control the power supply unit to stop receiving reading commands, thus avoiding the power supply unit receiving reading commands in the instruction execution state. This reduces the probability of the power supply unit reporting a fault and improves the stability of the power supply unit.
[0097] Optionally, the signal control terminal of the substrate management controller is electrically connected to the clock signal line in the power management bus, and the control module is specifically used for:
[0098] If it is determined that the power supply unit is in the instruction execution state, the clock signal line is set to a low level through the signal control terminal.
[0099] Optionally, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the control module is further configured to:
[0100] If it is determined that the power supply unit is not in the state of executing instructions, the signal of the clock signal line is released through the signal control terminal.
[0101] Optionally, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the control module is further configured to:
[0102] If it is determined that the power supply unit is in the instruction execution state, then stop sending read instructions to the power supply unit.
[0103] Optionally, the device further includes a transmitting module, which, after determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, is configured to:
[0104] If it is determined that the power supply unit is in the instruction execution state, a target instruction is sent to the subscription device, the target instruction being used to instruct the cessation of sending read instructions to the power supply unit;
[0105] The subscribing device is a device that has subscribed to the status information of the power supply unit.
[0106] Optionally, the determination module is specifically used for:
[0107] Based on the preset configuration table and the level of the power supply unit status signal, the target operating state of the power supply unit is determined.
[0108] Based on the target operating state, determine whether the power supply unit is in the instruction execution state;
[0109] The preset configuration table is used to characterize the mapping relationship between the level of the power supply unit status signal and the working state of the power supply unit.
[0110] The power information reading and control device provided by this invention configures a status pin for the power supply unit. This status pin can indicate the working status of the power supply unit. The board management controller can receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal. Based on the power supply unit status signal, it can determine whether the power supply unit is in the instruction execution state. If it is determined that the power supply unit is in the instruction execution state, it can control the power supply unit to stop receiving reading commands, thus avoiding the power supply unit receiving reading commands in the instruction execution state. This reduces the probability of the power supply unit reporting a fault and improves the stability of the power supply unit.
[0111] Figure 6 This is a schematic diagram of the structure of the baseboard management controller provided by the present invention, as shown below. Figure 6 As shown, the baseboard management controller may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call logic instructions in the memory 630 to execute a power information reading and control method, which includes:
[0112] The power supply unit status signal sent by the power supply unit is received through the signal monitoring terminal;
[0113] Based on the status signal of the power supply unit, it is determined whether the power supply unit is in the state of executing instructions;
[0114] If it is determined that the power supply unit is in the instruction execution state, then the power supply unit is controlled to stop receiving read instructions.
[0115] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0116] Figure 7 This is a schematic diagram of the server structure provided by the present invention, as shown below. Figure 7 As shown, the present invention also provides a server, including a power supply unit 701 and any of the above-mentioned baseboard management controllers 702. The signal monitoring terminal of the baseboard management controller 702 is electrically connected to the status terminal of the power supply unit 701, and the status terminal of the power supply unit 701 is used to indicate the working status of the power supply unit 701.
[0117] Understandably, to prevent the PSU from receiving read commands while in command execution mode, a status pin can be configured on the PSU in the server. This status pin indicates the PSU's operating status. A signal monitoring pin can be configured on the BMC in the server, electrically connected to the PSU's status pin. The BMC can receive the PSU status signal sent by the PSU through the signal monitoring pin. By determining whether the PSU is in command execution mode, the result can be obtained. If the result indicates that the PSU is in command execution mode, the PSU is controlled to stop receiving read commands, thus preventing the PSU from receiving read commands while in command execution mode.
[0118] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program that can be stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is able to execute the power information reading and control method provided by the above methods, the method comprising:
[0119] The power supply unit status signal sent by the power supply unit is received through the signal monitoring terminal;
[0120] Based on the status signal of the power supply unit, it is determined whether the power supply unit is in the state of executing instructions;
[0121] If it is determined that the power supply unit is in the instruction execution state, then the power supply unit is controlled to stop receiving read instructions.
[0122] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the power information reading and control method provided by the above methods, the method comprising:
[0123] The power supply unit status signal sent by the power supply unit is received through the signal monitoring terminal;
[0124] Based on the status signal of the power supply unit, it is determined whether the power supply unit is in the state of executing instructions;
[0125] If it is determined that the power supply unit is in the instruction execution state, then the power supply unit is controlled to stop receiving read instructions.
[0126] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0127] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, 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 can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A power information reading and control method, characterized in that, An application is made in a substrate management controller, wherein the signal monitoring terminal of the substrate management controller is electrically connected to the status terminal of a power supply unit, and the status terminal of the power supply unit is used to indicate the operating status of the power supply unit. The power information reading and control method includes: The power supply unit status signal sent by the power supply unit is received through the signal monitoring terminal; Based on the status signal of the power supply unit, it is determined whether the power supply unit is in the state of executing instructions; If it is determined that the power supply unit is in the instruction execution state, then the power supply unit is controlled to stop receiving read instructions.
2. The power information reading and control method according to claim 1, characterized in that, The signal control terminal of the substrate management controller is electrically connected to the clock signal line in the power management bus. The step of controlling the power supply unit to stop receiving read commands if it is determined that the power supply unit is in an instruction execution state includes: If it is determined that the power supply unit is in the instruction execution state, the level of the clock signal line is set to low level through the signal control terminal.
3. The power information reading and control method according to claim 2, characterized in that, After determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes: If it is determined that the power supply unit is not in the state of executing instructions, the signal of the clock signal line is released through the signal control terminal.
4. The power information reading and control method according to claim 1, characterized in that, After determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes: If it is determined that the power supply unit is in the instruction execution state, then stop sending read instructions to the power supply unit.
5. The power information reading and control method according to claim 1, characterized in that, After determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal, the method further includes: If it is determined that the power supply unit is in the instruction execution state, a target instruction is sent to the subscription device, the target instruction being used to instruct the cessation of sending read instructions to the power supply unit; The subscribing device is a device that has subscribed to the status information of the power supply unit.
6. The power information reading and control method according to any one of claims 1-5, characterized in that, The step of determining whether the power supply unit is in an instruction execution state based on the power supply unit status signal includes: Based on the preset configuration table and the level of the power supply unit status signal, the target operating state of the power supply unit is determined. Based on the target operating state, determine whether the power supply unit is in the instruction execution state; The preset configuration table is used to characterize the mapping relationship between the level of the power supply unit status signal and the working state of the power supply unit.
7. A power information reading and control device, characterized in that, An application is made in a substrate management controller, wherein the signal monitoring terminal of the substrate management controller is electrically connected to the status terminal of a power supply unit, and the status terminal of the power supply unit is used to indicate the operating status of the power supply unit. The power information reading and control device includes: The receiving module is used to receive the power supply unit status signal sent by the power supply unit through the signal monitoring terminal; The judgment module is used to determine whether the power supply unit is in the execution instruction state based on the status signal of the power supply unit; The control module is used to control the power supply unit to stop receiving read commands if it is determined that the power supply unit is in the command execution state.
8. A baseboard management controller, 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 program, it implements the power information reading and control method as described in any one of claims 1 to 6.
9. A server, characterized in that, It includes a power supply unit and a baseboard management controller as described in claim 8, wherein the signal monitoring terminal of the baseboard management controller is electrically connected to the status terminal of the power supply unit, and the status terminal of the power supply unit is used to indicate the operating status of the power supply unit.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the power information reading and control method as described in any one of claims 1 to 6.