A power consumption monitoring method, device, apparatus and storage medium

CN115878418BActive Publication Date: 2026-09-18INSPUR BUSINESS MACHINE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211509222.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2026-09-18
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

现有技术中,服务器主要通过中央处理器的带内管理插件获取主要部件的功耗值,但是通过基板管理控制器直接读取功耗的方法获取到的功耗并不准确,不能准确直观的评估服务器内部元件的能耗情况

Benefits of technology

[0033]In this application, a preset current detection unit monitors the current of the power consumption component to be monitored to obtain an initial real-time current value, which is then converted into a corresponding initial real-time voltage value. A preset voltage calibration element group and a preset voltage calibration algorithm are used to determine a real-time voltage compensation value for the initial real-time voltage value, and this compensation value is used to compensate the initial real-time voltage value, resulting in a calibrated target real-time voltage value for the power consumption component to be monitored. This target real-time voltage value is then converted into a target real-time current value for the power consumption component to be monitored, and the real-time power consumption of the power consumption component to be monitored is determined based on the target real-time voltage value and the target real-time current value. Therefore, this application can determine the voltage compensation value of the initial real-time voltage value after monitoring it, calibrate the monitored initial real-time voltage value, and then determine the corresponding power consumption of the power consumption component to be monitored. This avoids the problem of poor accuracy in power consumption monitoring caused by directly reading the power consumption value, effectively improving the accuracy of power consumption monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115878418B_ABST
    Figure CN115878418B_ABST
Patent Text Reader

Abstract

This application discloses a power consumption monitoring method, apparatus, device, and storage medium, relating to the field of server monitoring technology. The method includes: monitoring the current of a power consumption component to be monitored using a preset current detection unit to obtain an initial real-time current value, and converting the initial real-time current value into a corresponding initial real-time voltage value; determining a real-time voltage compensation value for the initial real-time voltage value using a preset voltage calibration element group and a preset voltage calibration algorithm, and compensating the initial real-time voltage value using the real-time voltage compensation value to obtain a calibrated target real-time voltage value corresponding to the power consumption component to be monitored; converting the target real-time voltage value into a target real-time current value corresponding to the power consumption component to be monitored, and determining the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value. By determining the voltage compensation value of the initial real-time voltage value and calibrating the monitored initial real-time voltage value, the accuracy of power consumption monitoring can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of server monitoring technology, and in particular to a power consumption monitoring method, apparatus, device, and storage medium. Background Technology

[0002] In recent years, with the continuous development of the information industry, the use of servers in the internet sector has increased year by year. As the infrastructure of the information industry, servers have increasingly stringent requirements for power consumption management. In operation, servers need to obtain the power consumption values ​​of their main components, and the accuracy of these values ​​is crucial. Currently, servers primarily obtain power consumption values ​​of their main components through the in-band management plug-in of the central processing unit (CPU). However, the power consumption obtained by directly reading the power consumption from the baseboard management controller is inaccurate and cannot accurately and intuitively assess the energy consumption of the server's internal components. Therefore, how to accurately and effectively obtain the power consumption of the server's internal components is a problem that needs to be solved in this field. Summary of the Invention

[0003] In view of this, the purpose of this invention is to provide a power consumption monitoring method, apparatus, device, and storage medium. After detecting the initial real-time voltage value, a voltage compensation value for the initial real-time voltage value is determined by a preset voltage calibration element group. The detected initial real-time voltage value is then calibrated before determining the corresponding power consumption of the component to be monitored, thereby improving the accuracy of power consumption monitoring. The specific solution is as follows:

[0004] In a first aspect, this application provides a power consumption monitoring method, including:

[0005] The current of the power consumption component to be monitored is monitored by a preset current detection unit to obtain an initial real-time current value, and the initial real-time current value is converted into a corresponding initial real-time voltage value.

[0006] The real-time voltage compensation value of the initial real-time voltage value is determined by using a preset voltage calibration element group and a preset voltage calibration algorithm, and the initial real-time voltage value is compensated by the real-time voltage compensation value to obtain the target real-time voltage value corresponding to the power consumption component to be monitored after calibration.

[0007] The target real-time voltage value is converted into the target real-time current value corresponding to the power consumption component to be monitored, and the real-time power consumption corresponding to the power consumption component to be monitored is determined based on the target real-time voltage value and the target real-time current value.

[0008] Optionally, the step of monitoring the current of the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value includes:

[0009] The analog-to-digital converter in the preset current detection unit monitors the current of the power supply circuit corresponding to the power consumption component to be monitored, so as to obtain the initial real-time current value and convert the initial real-time current value into the corresponding initial real-time voltage value.

[0010] Optionally, the step of monitoring the current of the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value includes:

[0011] Based on a preset time interval, the real-time current of the power supply circuit corresponding to the power consumption component to be monitored is monitored by a preset current detection unit to obtain an initial real-time current value; the preset time interval is set according to the monitoring requirements of the power consumption component to be monitored.

[0012] Optionally, after determining the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value, the method further includes:

[0013] Acquire a number of real-time power consumptions that correspond one-to-one with a number of the power consumption components to be monitored in a preset power consumption component group;

[0014] The total real-time power consumption of the preset power-consuming component group is obtained by summing the several real-time power consumptions.

[0015] Optionally, after determining the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value, the method further includes:

[0016] Determine whether the real-time power consumption of the power consumption component to be monitored meets the preset component operating conditions;

[0017] If the conditions are not met, an alarm message indicating that the monitored power consumption component is malfunctioning due to the failure to meet the preset component operating conditions will be issued through the first preset alarm unit.

[0018] Accordingly, after summing the plurality of real-time power consumptions to obtain the total real-time power consumption of the preset power-consuming component group, the method further includes:

[0019] Determine whether the real-time total power consumption of the preset power-consuming component group meets the operating conditions of the preset component group;

[0020] If the conditions are not met, an alarm message indicating an abnormal operation of the preset electrical component group will be issued through the second preset alarm unit.

[0021] Secondly, this application provides a power consumption monitoring device, comprising:

[0022] The voltage acquisition module is used to monitor the current of the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value, and convert the initial real-time current value into a corresponding initial real-time voltage value.

[0023] The voltage calibration module is used to determine the real-time voltage compensation value of the initial real-time voltage value using a preset voltage calibration element group and a preset voltage calibration algorithm, and to compensate the initial real-time voltage value using the real-time voltage compensation value to obtain the target real-time voltage value corresponding to the power consumption component to be monitored after calibration.

[0024] The power consumption determination module is used to convert the target real-time voltage value into a target real-time current value corresponding to the power consumption component to be monitored, and to determine the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value.

[0025] Optionally, the voltage acquisition module includes:

[0026] Several sets of current detection units are used to detect the initial real-time current value of the corresponding power consumption component to be monitored, and convert the initial real-time current value into the corresponding initial real-time voltage value.

[0027] Accordingly, the power consumption determination module includes:

[0028] Several power consumption calculation units are used to multiply the target real-time voltage value and the target real-time current value corresponding to the target real-time voltage value to obtain the real-time power consumption of the power supply circuit corresponding to the power consumption component to be monitored.

[0029] Optionally, the voltage calibration module includes:

[0030] Several sets of voltage calibration units are respectively used to determine the real-time voltage compensation value of the initial real-time voltage value obtained from the several sets of current detection units using a preset voltage calibration element group and a preset voltage calibration algorithm, and use the real-time voltage compensation value to compensate the initial real-time voltage value to obtain the calibrated target real-time voltage value corresponding to the power consumption component to be monitored, and send it to the several sets of power consumption calculation units.

[0031] Thirdly, this application provides an electronic device, which includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the aforementioned power consumption monitoring method.

[0032] Fourthly, this application provides a computer-readable storage medium for storing a computer program that, when executed by a processor, implements the aforementioned power consumption monitoring method.

[0033] In this application, a preset current detection unit monitors the current of the power consumption component to be monitored to obtain an initial real-time current value, which is then converted into a corresponding initial real-time voltage value. A preset voltage calibration element group and a preset voltage calibration algorithm are used to determine a real-time voltage compensation value for the initial real-time voltage value, and this compensation value is used to compensate the initial real-time voltage value, resulting in a calibrated target real-time voltage value for the power consumption component to be monitored. This target real-time voltage value is then converted into a target real-time current value for the power consumption component to be monitored, and the real-time power consumption of the power consumption component to be monitored is determined based on the target real-time voltage value and the target real-time current value. Therefore, this application can determine the voltage compensation value of the initial real-time voltage value after monitoring it, calibrate the monitored initial real-time voltage value, and then determine the corresponding power consumption of the power consumption component to be monitored. This avoids the problem of poor accuracy in power consumption monitoring caused by directly reading the power consumption value, effectively improving the accuracy of power consumption monitoring. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of the present 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 only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0035] Figure 1 A flowchart of a power consumption monitoring method provided in this application;

[0036] Figure 2 A flowchart of a specific power consumption monitoring method provided in this application;

[0037] Figure 3 A power consumption monitoring workflow diagram is provided for this application;

[0038] Figure 4 This application provides a schematic diagram of the structure of a power consumption monitoring device;

[0039] Figure 5 This application provides a structural diagram of an electronic device. Detailed Implementation

[0040] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0041] With the continuous development of the information industry, servers have increasingly stringent requirements for power consumption management. In operation, servers need to obtain the power consumption values ​​of their main components, and the accuracy of these values ​​is crucial. Existing technologies do not provide accurate server power consumption values, failing to accurately and intuitively assess the energy consumption of internal server components. This application addresses this issue by using a preset voltage calibration element group to determine the voltage compensation value of the initial real-time voltage. After calibrating the monitored initial real-time voltage value, the corresponding power consumption of the component to be monitored is determined, effectively improving the accuracy of power consumption monitoring.

[0042] See Figure 1 As shown, an embodiment of the present invention discloses a power consumption monitoring method, including:

[0043] Step S11: The current of the power consumption component to be monitored is monitored by a preset current detection unit to obtain an initial real-time current value, and the initial real-time current value is converted into a corresponding initial real-time voltage value.

[0044] In this embodiment, the analog-to-digital converter (ADC) in the preset current detection unit monitors the current of the power supply circuit corresponding to the power consumption component to be monitored, so as to obtain the initial real-time current value, and then convert the initial real-time current value into the corresponding initial real-time voltage value.

[0045] Step S12: Determine the real-time voltage compensation value of the initial real-time voltage value using a preset voltage calibration element group and a preset voltage calibration algorithm, and use the real-time voltage compensation value to compensate the initial real-time voltage value to obtain the target real-time voltage value corresponding to the monitored power consumption component after calibration.

[0046] In this embodiment, after obtaining the initial real-time voltage value based on the current detection unit, the initial real-time voltage value is calibrated by determining the real-time voltage compensation value using a preset voltage calibration element group and a preset voltage calibration algorithm, thereby obtaining the calibrated target real-time voltage value corresponding to the power consumption component to be monitored. It should be noted that this embodiment does not specifically limit the preset voltage calibration element group and preset voltage calibration algorithm used; any relevant elements and algorithms capable of calculating compensation values ​​can be used in this embodiment. By calibrating the initial real-time voltage value by determining the real-time voltage compensation value, the problem of poor accuracy in directly reading the voltage from power consumption monitoring, leading to low accuracy in the final power consumption corresponding to the power consumption component to be monitored, is avoided, effectively improving the accuracy of power consumption monitoring.

[0047] Step S13: Convert the target real-time voltage value into the target real-time current value corresponding to the power consumption component to be monitored, and determine the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value.

[0048] In this embodiment, after obtaining a high-precision target real-time voltage value, a preset voltage calibration unit converts the target real-time voltage value into a target real-time current value corresponding to the power consumption component to be monitored. The target real-time voltage value is then multiplied by the target real-time current value to obtain the real-time power consumption corresponding to the power consumption component to be monitored. Determining the corresponding power consumption of the power consumption component to be monitored using the calibrated target real-time voltage value effectively improves the accuracy of power consumption monitoring.

[0049] Therefore, in this embodiment, the analog-to-digital converter in the preset current detection unit monitors the current of the power supply circuit corresponding to the power consumption component to be monitored to obtain an initial real-time current value, which is then converted into a corresponding initial real-time voltage value. A preset voltage calibration element group and a preset voltage calibration algorithm are used to determine the real-time voltage compensation value of the initial real-time voltage value, and this compensation value is used to compensate the initial real-time voltage value to obtain a calibrated target real-time voltage value corresponding to the power consumption component to be monitored. The target real-time voltage value is then converted into a target real-time current value corresponding to the power consumption component to be monitored, and the real-time power consumption corresponding to the power consumption component to be monitored is determined based on the target real-time voltage value and the target real-time current value. This embodiment can determine the voltage compensation value of the initial real-time voltage value after the analog-to-digital converter detects the initial real-time voltage value, calibrate the detected initial real-time voltage value, and then determine the corresponding power consumption of the power consumption component to be monitored, improving the accuracy of power consumption monitoring and facilitating a more accurate and intuitive assessment of the energy consumption of internal server components.

[0050] As can be seen from the previous embodiment, this application can determine the calibrated target real-time voltage value through a preset voltage calibration element group, and then obtain the corresponding power consumption of the power consumption component to be monitored. Since servers typically have multiple components, the power consumption monitoring of the power-consuming component group will be described in detail in the following embodiment. See Figure 2 As shown in the figure, this application discloses a specific power consumption monitoring method, including:

[0051] Step S21: Based on a preset time interval, monitor the real-time current of the power supply circuit corresponding to the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value, and convert the initial real-time current value into a corresponding initial real-time voltage value; the preset time interval is set according to the monitoring requirements of the power consumption component to be monitored.

[0052] In this embodiment, it is understood that for power consumption components with specific monitoring requirements, a preset time interval for the operation of the preset current detection unit can be set before power consumption monitoring begins, based on the monitoring requirements of the power consumption component. For example, for a central processing unit (CPU), the current monitoring interval of the current detection unit for its corresponding power supply circuit can be set to 0.1 seconds, and the current monitoring interval of the current detection unit for the power supply circuits of other power consumption components can be set to 0.5 seconds. This allows for more flexible and automatic power consumption monitoring of different power consumption components, further improving the accuracy of power consumption monitoring. It should be noted that the current monitoring time interval for all power consumption components can also be set to the same value. Based on the preset time interval, the real-time current of the power supply circuit corresponding to the power consumption component is monitored through the preset current detection unit to obtain an initial real-time current value, and the initial real-time current value is converted into a corresponding initial real-time voltage value.

[0053] Step S22: Determine the real-time voltage compensation value of the initial real-time voltage value using a preset voltage calibration element group and a preset voltage calibration algorithm, and use the real-time voltage compensation value to compensate the initial real-time voltage value to obtain the target real-time voltage value corresponding to the monitored power consumption component after calibration.

[0054] Step S23: Convert the target real-time voltage value into the target real-time current value corresponding to the power consumption component to be monitored, and determine the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value.

[0055] Step S24: Obtain several real-time power consumptions that correspond one-to-one with several of the power consumption components to be monitored in the preset power consumption component group; sum the several real-time power consumptions to obtain the real-time total power consumption of the preset power consumption component group.

[0056] In this embodiment, the real-time power consumption of each power-consuming component to be monitored in the preset power-consuming component group is obtained, and all real-time power consumptions are added together to obtain the real-time total power consumption of the preset power-consuming component group. It is understood that if the preset time intervals for current monitoring of the power-consuming components are different, the real-time total power consumption can be calculated based on the time interval with the largest value among all preset time intervals. By calculating the real-time total power consumption of the preset power-consuming component group, not only can the power consumption of different power-consuming components be monitored, but the overall real-time total power consumption of the server can also be obtained, thus making it more convenient to assess the server's energy consumption.

[0057] In this embodiment, after obtaining the real-time power consumption, it is determined whether the real-time power consumption corresponding to the power consumption component to be monitored meets the preset component operating conditions. If not, an alarm message indicating that the power consumption component to be monitored is malfunctioning is issued through the first preset alarm unit. Correspondingly, after obtaining the real-time total power consumption of the preset power consumption component group, it is determined whether the real-time total power consumption of the preset power consumption component group meets the preset component group operating conditions. If not, an alarm message indicating that the preset power consumption component group is malfunctioning is issued through the second preset alarm unit. For example, a corresponding alarm indicator light is configured for the power consumption component to be monitored, and an alarm message indicating that the power consumption component to be monitored is malfunctioning is issued by changing the color of the alarm indicator light.

[0058] Therefore, in this embodiment, the real-time current of the power supply circuit corresponding to the power consumption component to be monitored is monitored by a preset current detection unit at a preset time interval to obtain an initial real-time current value, and the initial real-time current value is converted into a corresponding initial real-time voltage value. A preset voltage calibration element group and a preset voltage calibration algorithm are used to determine the real-time voltage compensation value of the initial real-time voltage value to obtain the calibrated target real-time voltage value corresponding to the power consumption component to be monitored. The target real-time voltage value is converted into a target real-time current value corresponding to the power consumption component to be monitored, and the real-time power consumption corresponding to the power consumption component to be monitored is determined based on the target real-time voltage value and the target real-time current value. Several real-time power consumptions corresponding one-to-one with several power consumption components to be monitored in a preset power consumption component group are obtained; the sum of these several real-time power consumptions is used to obtain the total real-time power consumption of the preset power consumption component group. Through the above technical solution, this application can automatically obtain the corresponding power consumption of the power consumption component to be monitored and the real-time total power consumption of the preset power consumption component group. It can not only monitor the power consumption of different power consumption components, but also obtain the real-time total power consumption of the server as a whole, thereby making it more convenient to evaluate the energy consumption of the server. Furthermore, by making anomaly judgments on the power consumption of the power consumption component to be monitored and the preset power consumption component group, the energy consumption of the components can be evaluated more accurately and intuitively.

[0059] For more detailed processing of steps S22 and S23, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0060] As can be seen from the foregoing embodiments, this application can determine the real-time total power consumption of a preset group of electrical components. Next, see... Figure 3 As shown in the figure, this application discloses a power consumption monitoring device, including:

[0061] In this embodiment, the power consumption monitoring device includes several sets of current detection units, voltage calibration units, power consumption calculation units, and a set of power-consuming components. The power-consuming component set is a combination of components or parts whose power consumption needs to be acquired and monitored. The several sets of current detection units are mainly used to detect the initial real-time current value of the corresponding power consumption component to be monitored and convert the initial real-time current value into a corresponding initial real-time voltage value. The several sets of voltage calibration units are respectively used to determine the real-time voltage compensation value of the initial real-time voltage value obtained from the several sets of current detection units using a preset voltage calibration element set and a preset voltage calibration algorithm, and use the real-time voltage compensation value to compensate the initial real-time voltage value to obtain the calibrated target real-time voltage value corresponding to the power consumption component to be monitored, which is then sent to the several sets of power consumption calculation units. The several sets of power consumption calculation units are respectively used to multiply the target real-time voltage value and the target real-time current value corresponding to the target real-time voltage value to obtain the real-time power consumption of the power supply circuit corresponding to the power consumption component to be monitored. Understandably, each set of current detection unit, voltage calibration unit, and power consumption calculation unit is used to obtain the power consumption of one of the power supply channels of the power-consuming component group, and the real-time power consumption of the power consumption calculation unit is summed to obtain the real-time total power consumption of the power-consuming component group.

[0062] See Figure 4 As shown in the figure, this application also discloses a power consumption monitoring device, including:

[0063] The voltage acquisition module 11 is used to monitor the current of the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value, and convert the initial real-time current value into a corresponding initial real-time voltage value.

[0064] The voltage calibration module 12 is used to determine the real-time voltage compensation value of the initial real-time voltage value using a preset voltage calibration element group and a preset voltage calibration algorithm, and to compensate the initial real-time voltage value using the real-time voltage compensation value to obtain the target real-time voltage value corresponding to the power consumption component to be monitored after calibration.

[0065] The power consumption determination module 13 is used to convert the target real-time voltage value into the target real-time current value corresponding to the power consumption component to be monitored, and to determine the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value.

[0066] In this embodiment, a preset current detection unit monitors the current of the power consumption component to be monitored to obtain an initial real-time current value, which is then converted into a corresponding initial real-time voltage value. A preset voltage calibration element group and a preset voltage calibration algorithm are used to determine a real-time voltage compensation value for the initial real-time voltage value. This compensation value is then used to compensate the initial real-time voltage value, resulting in a calibrated target real-time voltage value for the power consumption component to be monitored. The target real-time voltage value is then converted into a target real-time current value for the power consumption component to be monitored, and the real-time power consumption of the power consumption component to be monitored is determined based on the target real-time voltage value and the target real-time current value. Through this technical solution, after detecting the initial real-time voltage value, this application can determine the voltage compensation value of the initial real-time voltage value using a preset voltage calibration element group, calibrate the detected initial real-time voltage value, and then determine the corresponding power consumption of the power consumption component to be monitored, effectively improving the accuracy of power consumption monitoring.

[0067] In some specific embodiments, the voltage acquisition module 11 specifically includes:

[0068] The voltage acquisition unit is used to monitor the current of the power supply circuit corresponding to the power consumption component to be monitored through the analog-to-digital conversion element in the preset current detection unit, so as to obtain the initial real-time current value and convert the initial real-time current value into the corresponding initial real-time voltage value.

[0069] In some specific embodiments, the voltage acquisition module 11 specifically includes:

[0070] A current monitoring unit is used to monitor the real-time current of the power supply circuit corresponding to the power consumption component to be monitored through a preset current detection unit based on a preset time interval, so as to obtain an initial real-time current value; the preset time interval is set according to the monitoring requirements of the power consumption component to be monitored.

[0071] In some specific embodiments, the power consumption monitoring device further includes:

[0072] The power consumption acquisition unit is used to acquire a number of real-time power consumptions that correspond one-to-one with a number of power consumption components to be monitored in a preset power consumption component group.

[0073] The power consumption summation submodule is used to sum the several real-time power consumptions to obtain the real-time total power consumption of the preset power-consuming component group.

[0074] In some specific embodiments, the power consumption monitoring device further includes:

[0075] The first power consumption judgment unit is used to determine whether the real-time power consumption of the power consumption component to be monitored meets the preset component working conditions.

[0076] The first alarm unit is used to issue an alarm message indicating that the power consumption component under monitoring is malfunctioning if the preset operating conditions are not met.

[0077] Correspondingly, the power consumption summation submodule also includes:

[0078] The second power consumption judgment unit is used to determine whether the real-time total power consumption of the preset power consumption component group meets the working conditions of the preset component group.

[0079] The second alarm unit is used to issue an alarm message indicating that the preset electrical component group is malfunctioning if the conditions are not met.

[0080] In some specific embodiments, the voltage acquisition module 11 specifically includes:

[0081] Several sets of current detection units are used to detect the initial real-time current value of the corresponding power consumption component to be monitored, and convert the initial real-time current value into the corresponding initial real-time voltage value.

[0082] Accordingly, the power consumption determination module 13 specifically includes:

[0083] Several power consumption calculation units are used to multiply the target real-time voltage value and the target real-time current value corresponding to the target real-time voltage value to obtain the real-time power consumption of the power supply circuit corresponding to the power consumption component to be monitored.

[0084] In some specific embodiments, the voltage calibration module 12 specifically includes:

[0085] Several sets of voltage calibration units are respectively used to determine the real-time voltage compensation value of the initial real-time voltage value obtained from the several sets of current detection units using a preset voltage calibration element group and a preset voltage calibration algorithm, and use the real-time voltage compensation value to compensate the initial real-time voltage value to obtain the calibrated target real-time voltage value corresponding to the power consumption component to be monitored, and send it to the several sets of power consumption calculation units.

[0086] Furthermore, embodiments of this application also disclose an electronic device, Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0087] Figure 5This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the power consumption monitoring method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0088] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0089] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0090] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the power consumption monitoring method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0091] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned power consumption monitoring method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0092] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0093] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0094] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0095] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0096] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A power consumption monitoring method, characterized in that, include: The current of the power consumption component to be monitored is monitored by a preset current detection unit to obtain an initial real-time current value, and the initial real-time current value is converted into a corresponding initial real-time voltage value. Using a preset voltage calibration element group and a preset voltage calibration algorithm, a real-time voltage compensation value is determined for the initial real-time voltage value itself to calibrate the initial real-time voltage value, and the initial real-time voltage value is compensated using the real-time voltage compensation value to obtain the target real-time voltage value corresponding to the power consumption component to be monitored after calibration. The target real-time voltage value is converted into the target real-time current value corresponding to the power consumption component to be monitored, and the real-time power consumption corresponding to the power consumption component to be monitored is determined based on the target real-time voltage value and the target real-time current value. The step of monitoring the current of the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value includes: The analog-to-digital conversion element in the preset current detection unit monitors the current of the power supply circuit corresponding to the power consumption component to be monitored, so as to obtain the initial real-time current value and convert the initial real-time current value into the corresponding initial real-time voltage value. The step of monitoring the current of the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value includes: Based on a preset time interval, the real-time current of the power supply circuit corresponding to the power consumption component to be monitored is monitored by a preset current detection unit to obtain an initial real-time current value; the preset time interval is set according to the monitoring requirements of the power consumption component to be monitored, or the preset time interval of the power consumption component to be monitored is set to the same value. Furthermore, after determining the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value, the method further includes: Acquire a number of real-time power consumptions that correspond one-to-one with a number of the power consumption components to be monitored in a preset power consumption component group; The total real-time power consumption of the preset power-consuming component group is obtained by summing the several real-time power consumptions. In addition, it is determined whether the real-time power consumption of the power consumption component to be monitored meets the preset component operating conditions; If the conditions are not met, an alarm message indicating that the monitored power consumption component is malfunctioning due to the failure to meet the preset component operating conditions will be issued through the first preset alarm unit. Accordingly, after summing the plurality of real-time power consumptions to obtain the total real-time power consumption of the preset power-consuming component group, the method further includes: Determine whether the real-time total power consumption of the preset power-consuming component group meets the operating conditions of the preset component group; If the conditions are not met, an alarm message indicating an abnormal operation of the preset electrical component group will be issued through the second preset alarm unit.

2. A power consumption monitoring device, characterized in that, include: The voltage acquisition module is used to monitor the current of the power consumption component to be monitored through a preset current detection unit to obtain an initial real-time current value, and convert the initial real-time current value into a corresponding initial real-time voltage value. The voltage calibration module is used to determine a real-time voltage compensation value for calibrating the initial real-time voltage value itself using a preset voltage calibration element group and a preset voltage calibration algorithm, and to compensate the initial real-time voltage value using the real-time voltage compensation value to obtain the target real-time voltage value corresponding to the monitored power consumption component after calibration. The power consumption determination module is used to convert the target real-time voltage value into a target real-time current value corresponding to the power consumption component to be monitored, and to determine the real-time power consumption corresponding to the power consumption component to be monitored based on the target real-time voltage value and the target real-time current value. The voltage acquisition module includes: The voltage acquisition unit is used to monitor the current of the power supply circuit corresponding to the power consumption component to be monitored through the analog-to-digital conversion element in the preset current detection unit, so as to obtain the initial real-time current value and convert the initial real-time current value into the corresponding initial real-time voltage value. A current monitoring unit is used to monitor the real-time current of the power supply circuit corresponding to the power consumption component to be monitored through a preset current detection unit based on a preset time interval, so as to obtain an initial real-time current value; the preset time interval is set according to the monitoring requirements of the power consumption component to be monitored, or the preset time interval of the power consumption component to be monitored is set to the same value. Furthermore, the power consumption monitoring device also includes: The power consumption acquisition unit is used to acquire a number of real-time power consumptions that correspond one-to-one with a number of power consumption components to be monitored in a preset power consumption component group. The power consumption summation submodule is used to sum the several real-time power consumptions to obtain the real-time total power consumption of the preset power-consuming component group; The first power consumption judgment unit is used to determine whether the real-time power consumption of the power consumption component to be monitored meets the preset component working conditions. The first alarm unit is used to issue an alarm message indicating that the power consumption component under monitoring is malfunctioning if the preset operating conditions are not met. Correspondingly, the power consumption summation submodule also includes: The second power consumption judgment unit is used to determine whether the real-time total power consumption of the preset power consumption component group meets the working conditions of the preset component group. The second alarm unit is used to issue an alarm message indicating that the preset electrical component group is malfunctioning if the conditions are not met.

3. The power consumption monitoring device according to claim 2, characterized in that, The voltage acquisition module includes: Several sets of current detection units are used to detect the initial real-time current value of the corresponding power consumption component to be monitored, and convert the initial real-time current value into the corresponding initial real-time voltage value. Accordingly, the power consumption determination module includes: Several power consumption calculation units are used to multiply the target real-time voltage value and the target real-time current value corresponding to the target real-time voltage value to obtain the real-time power consumption of the power supply circuit corresponding to the power consumption component to be monitored.

4. The power consumption monitoring device according to claim 3, characterized in that, The voltage calibration module includes: Several sets of voltage calibration units are respectively used to determine the real-time voltage compensation value of the initial real-time voltage value obtained from the several sets of current detection units using a preset voltage calibration element group and a preset voltage calibration algorithm, and use the real-time voltage compensation value to compensate the initial real-time voltage value to obtain the calibrated target real-time voltage value corresponding to the power consumption component to be monitored, and send it to the several sets of power consumption calculation units.

5. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the power consumption monitoring method as described in claim 1.

6. A computer-readable storage medium, characterized in that, Used to store a computer program, which, when executed by a processor, implements the power consumption monitoring method as described in claim 1.

Citation Information

Patent Citations

  • Crosstalk calibration for multi-channel systems

    CN108700618A

  • Load line compensation in power monitoring

    CN110413032A

  • Current detection system

    CN214669353U