CN114441848A - Power consumption determination method and device, electronic equipment and storage medium - Google Patents

Power consumption determination method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114441848A
CN114441848A CN202210103250.2A CN202210103250A CN114441848A CN 114441848 A CN114441848 A CN 114441848A CN 202210103250 A CN202210103250 A CN 202210103250A CN 114441848 A CN114441848 A CN 114441848A
Authority
CN
China
Prior art keywords
power consumption
target
target object
electronic equipment
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210103250.2A
Other languages
Chinese (zh)
Inventor
陈欣
李依一
王明远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210103250.2A priority Critical patent/CN114441848A/en
Publication of CN114441848A publication Critical patent/CN114441848A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R21/00Arrangements for measuring electric power or power factor
    • G01R21/14Compensating for temperature change

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application relates to a power consumption determination method, apparatus, electronic device, storage medium and computer program product. The method comprises the following steps: acquiring actual power consumption generated by a target object of electronic equipment, and acquiring temperature values of all associated objects associated to the target object; fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value to determine fitting parameters of the associated objects; generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object. By adopting the method, the power consumption can be determined more accurately.

Description

Power consumption determination method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a power consumption determination method, apparatus, electronic device, storage medium, and computer program product.
Background
The fast and steady province is an important index of the electronic equipment, which influences the experience of users in the aspects of endurance, heating, performance and the like, and the basic parameter of the fast and steady province, namely power consumption, is an important index for measuring the experience.
In the conventional technology, a method for determining power consumption of an electronic device is to install a hardware detection device at a location where power consumption needs to be detected, and detect the power consumption of the electronic device through the hardware detection device.
However, the current and voltage values in the electronic device fluctuate greatly, and even if the detection is performed at different times in the same scene, the power consumption detected based on data such as current and voltage still differs greatly, so that the power consumption detection is inaccurate.
Disclosure of Invention
The present application provides a power consumption determination method, apparatus, electronic device, computer-readable storage medium, and computer program product capable of more accurately detecting power consumption.
In a first aspect, the present application provides a power consumption determination method. The method comprises the following steps:
acquiring actual power consumption generated by a target object of electronic equipment, and acquiring temperature values of all associated objects associated to the target object;
fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value to determine fitting parameters of the associated objects;
generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
In a second aspect, the present application also provides a power consumption determination apparatus. The device comprises:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring actual power consumption generated by a target object of electronic equipment and acquiring temperature values of all related objects related to the target object;
the fitting module is used for fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and determining fitting parameters of the associated objects;
a generating module, configured to generate a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
In a third aspect, the present application further provides an electronic device. The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
acquiring actual power consumption generated by a target object of electronic equipment, and acquiring temperature values of all associated objects associated to the target object;
fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and determining fitting parameters of the associated objects;
generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring actual power consumption generated by a target object of electronic equipment, and acquiring temperature values of all associated objects associated to the target object;
fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value to determine fitting parameters of the associated objects;
generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring actual power consumption generated by a target object of electronic equipment, and acquiring temperature values of all associated objects associated to the target object;
fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and determining fitting parameters of the associated objects;
generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
According to the power consumption determination method, the power consumption determination device, the electronic equipment, the storage medium and the computer program product, the actual power consumption generated by the target object of the electronic equipment is obtained, and the temperature values of all related objects related to the target object are obtained. Then, the actual power consumption is taken as a fitting target value, fitting is carried out based on the temperature value of each associated object, more accurate fitting parameters of each associated object can be determined, and then a power consumption function of the target object is generated based on the fitting parameters, so that the problem that the determined power consumption error is larger due to the fact that the power consumption at a certain moment is determined by the current voltage value with larger volatility can be avoided, the power consumption generated by the power consumption function is smoother and more stable, and the target power consumption of the target object can be determined more accurately.
Drawings
FIG. 1 is a schematic diagram of an electronic device in one embodiment;
FIG. 2 is a flow diagram illustrating a method for power consumption determination in one embodiment;
FIG. 3 is a data diagram of a power consumption function in one embodiment;
FIG. 4 is a graph comparing power consumption data of an electricity meter and fitted power consumption data in another embodiment;
FIG. 5 is a block diagram showing the structure of a power consumption determination device according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, the present application is applied to the electronic device 102 in fig. 1, where the electronic device 102 includes a battery, a device 1, and a device 2, and may further include a battery, a board temperature, a CPU (central processing unit) or a camera. In the electronic device, each ntc (negative Temperature coefficient) node is further provided, and generates heat power consumption when operating. Wherein, NTC refers to the thermistor phenomenon and material with negative temperature coefficient, the resistance of which decreases exponentially with the temperature rise, and the thermistor with Negative Temperature Coefficient (NTC) can be made.
The electronic device may be a terminal or a server. The terminal can be but not limited to various personal computers, notebook computers, smart phones, tablet computers, internet of things equipment and portable wearable equipment, and the internet of things equipment can be smart sound boxes, smart televisions, smart air conditioners, smart vehicle-mounted equipment and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers. In one embodiment, the electronic device has the property of non-forced convective heat dissipation.
In one embodiment, as shown in fig. 1, there is provided a power consumption determination method applied in an electronic device, including the following steps:
step 102, obtaining actual power consumption generated by a target object of the electronic device, and obtaining a temperature value of each associated object associated to the target object.
The target object refers to an object for determining power consumption. The target object of the electronic device may be the electronic device itself or a device in the electronic device. It can be understood that, in order to control the temperature of the electronic device, temperature sensors are disposed on main devices on a Printed Circuit Board (PCB), so that the temperature sensor can obtain the temperature value of each related object.
The related object is an object having an association relationship with the target object. The association relationship may be in the same circuit, in the same preset physical range, or in the target object, and the like, but is not limited thereto.
The electronic equipment detects the target object, obtains the actual power consumption generated by the target object, and determines an associated object associated to the target object; wherein, each related object is provided with a temperature sensor; the temperature value of each associated object is detected through the temperature sensor, and the electronic equipment obtains the temperature value of each associated object through the application program corresponding to each temperature sensor.
And step 104, fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and determining fitting parameters of the associated objects.
The fitting target value refers to a target value to which the temperature value of each related object is fitted. The fitting parameters are coefficients corresponding to the associated object in the fitting process.
Specifically, the electronic device obtains a plurality of sets of fitting data, wherein each set of fitting data comprises an actual power consumption as a fitting target value and also comprises a temperature value of each associated object; in the function to be solved, for each group of fitting data, the actual power consumption is taken as a fitting target value, fitting is carried out based on the temperature value of each associated object, and fitting parameters of each associated object are determined. The number of groups of fitting data is greater than or equal to the number of the associated objects, and the time stamp of the fitting target value in each group of fitting data is matched with the time stamp of the temperature value of each associated object.
The function to be solved can be set as required. As shown in FIG. 3, the function to be solved is
y=β1X12X23X34X45X56
Where y is the fitting target value, i.e. the actual power consumption, X1、X2、X3、X4And X5Temperature values, β, of the associated objects PA, Battery, Charge IC, BB, and Board temperature, respectively1、β2、β3、β4And beta5As a fitting parameter, beta6Is a preset constant. The electronic device obtains at least 5 sets of fitting data, and then the fitting parameter beta can be solved1、β2、β3、β4And beta5
It should be noted that the function to be solved may be a linear function, or may also be a function of other algorithms, such as an artificial intelligence algorithm, and is not limited herein. If the function to be solved is a linear function, namely a simple linear algorithm, complex calculation is not needed, the power consumption cost is low, the feasibility of real-time calculation is achieved, the fitting parameters can be determined by saving resources, and therefore the power consumption function is generated.
106, generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining target power consumption of the target object.
The power consumption function is a function for calculating power consumption. The target power consumption is the power consumption determined by the target object by adopting a power consumption function.
Specifically, substituting the fitting parameters as the coefficients of the independent variables into the function to be solved to generate the power consumption function of the target object; the independent variable in the function to be solved is the temperature value of each associated object, and the dependent variable in the function to be solved is the target power consumption of the target object. The target power consumption is also the thermal power consumption.
According to the power consumption determination method, the actual power consumption generated by the target object of the electronic equipment is obtained, and the temperature values of all the related objects related to the target object are obtained. Then, the actual power consumption is taken as a fitting target value, fitting is carried out based on the temperature value of each associated object, more accurate fitting parameters of each associated object can be determined, and then a power consumption function of the target object is generated based on the fitting parameters, so that the problem that the determined power consumption error is larger due to the fact that the power consumption at a certain moment is determined by the current voltage value with larger volatility can be avoided, the power consumption generated by the power consumption function is smoother and more stable, and the target power consumption of the target object can be determined more accurately. Wherein when a system is raised in temperature dT by the addition of a small amount of heat dQ, the amount of dQ/dT is the heat capacity of the system.
In addition, in the embodiment, based on the heat-power conversion principle and energy conservation, power consumption fitting is performed by using the temperature value, and power consumption can be flexibly and efficiently determined for target objects in different areas. According to the power consumption determining method, the power consumption modeling can be performed on the target object of the electronic equipment by utilizing the existing temperature sensor in the electronic equipment without adding new hardware, so that the hardware cost is low, and the target power consumption of the target object is obtained. The power consumption calculation mode based on the temperature value has the mathematical performance of micro-integrable while data fluctuation is avoided, and the total power consumption and the power consumption rate can be calculated.
Optionally, a temperature sensor is arranged inside a package device of the electronic device, so that a temperature value of the package device can be obtained, and fitting calculation can be performed on power consumption of the package device.
Optionally, the power consumption determining method may be further used for monitoring local power consumption of the electronic device, monitoring abnormal power consumption, analyzing power consumption of software and hardware, calculating a heating contribution degree of the device, and the like.
Alternatively, the above power consumption determination method may also perform reliability diagnosis, such as research on short circuit, open circuit, leakage current, and the like.
In one embodiment, obtaining the actual power consumption generated by the target object of the electronic device comprises: detecting power data of a target object of an electronic device; the actual power consumption generated by the target object is determined based on the power data.
The power data is related to power. The power data may include one or more of current, voltage, power consumption, resistance, and the like.
The method comprises the steps that a power monitoring tool is arranged on a target object, power data of the target object of the electronic equipment are detected through the power monitoring tool and sent to a processor, and actual power consumption generated by the target object is determined through the processor based on the power data. The power monitoring tool may be an electricity meter. The electricity meter can detect current, voltage, power consumption, and the like.
It is understood that the power data is positively correlated with the actual power consumption, i.e., the larger the power data, the larger the actual power consumption generated by the target object. Then, the electronic device may convert the power data into actual power consumption generated by the target object based on a positive correlation between the power data and the actual power consumption. Wherein, the positive correlation can be obtained according to empirical data.
In the present embodiment, the power data of the target object of the electronic device is detected, and then the actual power consumption generated by the target object can be accurately determined based on the power data.
In one embodiment, detecting power data of a target object includes: if the target object is the electronic equipment and the electronic equipment is in a charging state, acquiring the output power of the charging equipment and the charging power of a battery in the electronic equipment; determining an actual power consumption by the target object based on the power data, comprising: based on the output power and the charging power, an actual power consumption generated by the electronic device is determined.
A charging device is a device that provides electrical energy. For example, the charging device may be a fixed charging device or a mobile charging device, and may also be a charging adapter or the like. The output power of the charging device is the power output to the electronic device. The charging power of the battery is the power charged into the battery.
The output power of the charging equipment can be calculated by the electric quantity monitoring tool, and the electronic equipment can acquire the output power of the charging equipment from the electric quantity monitoring tool.
It can be understood that, when the electronic device is in a charging state, the output power of the charging device is greater than the charging power of the battery, i.e. there is power loss during charging. The power loss may also be a heat power loss.
Specifically, if the target object is the electronic device itself, it may be detected whether the electronic device is in a charging state, and if the electronic device is in the charging state, the output power of the charging device and the charging power of a battery in the electronic device are obtained, and based on a preset power determination manner, the actual power consumption generated by the electronic device is determined based on the output power and the charging power.
In one embodiment, the electronic device subtracts the charging power of the battery from the output power of the charging device to determine the actual power consumption generated by the electronic device. In another embodiment, the electronic device multiplies the output power of the charging device by a corresponding weight factor to obtain a first power, multiplies the charging power of the battery by a corresponding weight factor to obtain a second power, and subtracts the second power from the first power to determine the actual power generated by the electronic device.
In this embodiment, if the target object is the electronic device itself and the electronic device is in a charging state, the output power of the charging device and the charging power of the battery in the electronic device are obtained, and based on the output power and the charging power, the actual power consumption generated by the electronic device in the charging scene can be accurately determined.
In one embodiment, detecting power data of a target object includes: if the target object is the electronic equipment and the electronic equipment is in a non-charging state, acquiring the power consumption of the electronic equipment; determining an actual power consumption by the target object based on the power data, comprising: the power consumption of the electronic device is converted into the actual power consumption generated by the electronic device.
Specifically, if the target object is the electronic device itself, it may be detected whether the electronic device is in a charging state, and if the electronic device is in a non-charging state, the power consumption of the electronic device is detected by an electricity meter disposed on the electronic device, and then a preset power conversion mode is adopted to convert the power consumption of the electronic device into the actual power consumption generated by the electronic device.
It can be understood that the larger the power consumption of the electronic device, the larger the actual power consumption generated by the electronic device, i.e. the power consumption of the electronic device and the actual power consumption generated are in positive correlation. The electronic device converts the power consumption of the electronic device into the actual power consumption generated by the electronic device based on a positive correlation between the power consumption of the electronic device and the generated actual power consumption. Wherein, the positive correlation can be obtained according to empirical data.
In this embodiment, if the target object is the electronic device itself and the electronic device is in a non-charging state, the power consumption of the electronic device is obtained, and then, the power consumption of the electronic device is converted, so that the actual power consumption generated when the electronic device is in a non-charging scene can be accurately obtained.
In one embodiment, detecting power data of a target object includes: if the target object is a target device in the electronic equipment, detecting the power consumption of the target device; determining an actual power consumption by the target object based on the power data, comprising: the power consumption of the target device is converted into the actual power consumption generated by the target device.
The target device is a device which needs to determine power consumption in the interior of the electronic equipment.
Specifically, if the target object is a target device in the electronic device, the power consumption of the target device may be detected by an electricity meter disposed on the target device, and then the power consumption of the target device is converted into actual power consumption generated by the target device by using a preset power conversion mode.
It is understood that the larger the power consumption of the target device, the larger the actual power consumption generated by the target device, i.e., the power consumption of the target device and the actual power consumption generated are positively correlated. The electronic device converts the power consumption of the target device into the actual power consumption generated by the target device based on a positive correlation between the power consumption of the target device and the generated actual power consumption. Wherein, the positive correlation can be obtained according to empirical data.
In this embodiment, if the target object is the target device, the power consumption of the target device is obtained, and then the power consumption of the target device is converted, so that the actual power consumption generated by the target device can be accurately obtained.
In one embodiment, obtaining a temperature value for each associated object associated with the target object comprises: if the target object is the electronic equipment, acquiring temperature values of all devices in the electronic equipment through a temperature sensor; each device belongs to an associated object of the electronic equipment; if the target object is a target device in the electronic equipment, acquiring temperature values of all associated devices associated with the target device through a temperature sensor; each of the associated devices belongs to an associated object of the target device.
And the temperature sensors are arranged on the associated objects, and the temperature values of the associated objects can be obtained through the temperature sensors. An associated device is a device associated with a target device. For example, the related device may be a device in the same circuit as the target device, may also be a device within a preset physical range of the target device, and may also be a device with data interaction during the use of the target device, which is not limited thereto.
In this embodiment, if the target object is the electronic device itself, the temperature value of each device in the electronic device is obtained through the temperature sensor, and the device in each electronic device belongs to the associated object of the electronic device, so that the power consumption function of the electronic device can be accurately fitted from the temperature value of each device. If the target object is a target device in the electronic equipment, the temperature value of each associated device associated with the target device is obtained through the temperature sensor, and therefore the power consumption function of the target device is accurately fitted from the temperature value of each associated device.
In one embodiment, the method further comprises: acquiring a target temperature value of each associated object at a target moment; and substituting the target temperature value of each associated object into the power consumption function of the target object, and outputting the target power consumption of the target object.
The target temperature value is a temperature value of the associated object at the target time.
It can be understood that, due to the characteristic that the object has thermal capacity, the obtained temperature value of the associated object at the target time has smaller fluctuation, and even in different acquisition cycles, better precision can be maintained, so that the target power consumption of the target object at the target time can be more accurately calculated based on the target temperature value of each associated object, and the problem that the power consumption determined at the same time point in different cycles has larger difference due to the larger fluctuation of other data is avoided, so that the target power consumption of the target object at the target time can be more accurately and more stably determined.
In one embodiment, as shown in FIG. 4, the vertical axis is power consumption data and the horizontal axis is a time axis. It can be understood that the power consumption data obtained by the electricity meter greatly fluctuates, resulting in a problem that the obtained power consumption data has a large error. And each target power consumption counted by the power consumption function is relatively smooth and stable on a time axis, the problem of large error caused by large fluctuation of a current voltage value is avoided, and the target power consumption can be determined more accurately.
In one embodiment, a power consumption determination method is provided, which is applied to an electronic device and includes the following steps:
if the target object is the electronic device itself and the electronic device is in a charging state, executing step a 1; if the target object is the electronic device itself and the electronic device is in a non-charging state, executing step B1; if the target object is a target device in the electronic equipment, step C1 is executed.
Step A1: acquiring output power of charging equipment and charging power of a battery in the electronic equipment; based on the output power and the charging power, an actual power consumption generated by the electronic device is determined. Execution continues with step a 2.
Step B1: acquiring the power consumption of the electronic equipment; the power consumption of the electronic device is converted into the actual power consumption generated by the electronic device. Execution continues with step a 2.
Step C1: detecting power consumption of the target device; the power consumption of the target device is converted into the actual power consumption generated by the target device. Execution continues with step B2.
Step A2: acquiring temperature values of all devices in the electronic equipment through a temperature sensor; each device belongs to an associated object of the electronic apparatus, and then step D3 is performed.
Step B2: acquiring temperature values of all associated devices associated to a target device through a temperature sensor; each of the associated devices belongs to the associated object of the target device, and then step D3 is performed.
Step D3: and fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and determining fitting parameters of the associated objects.
Step D4: and generating a power consumption function of the target object based on the fitting parameters.
Step D5: and acquiring target temperature values of all related objects at the target moment.
Step D6: and substituting the target temperature value of each associated object into the power consumption function of the target object, and outputting the target power consumption of the target object.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a power consumption determining apparatus for implementing the above-mentioned power consumption determining method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the power consumption determining apparatus provided below may refer to the limitations in the above power consumption determining method, and details are not described herein again.
In one embodiment, as shown in fig. 5, there is provided a power consumption determination apparatus including: an obtaining module 502, a fitting module 504, and a generating module 506, wherein:
the obtaining module 502 is configured to obtain an actual power consumption generated by a target object of the electronic device, and obtain a temperature value of each associated object associated with the target object.
And a fitting module 504, configured to perform fitting based on the temperature value of each associated object with the actual power consumption as a fitting target value, and determine a fitting parameter of each associated object.
A generating module 506, configured to generate a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
The power consumption determining device obtains the actual power consumption generated by the target object of the electronic equipment and obtains the temperature value of each associated object associated with the target object, and it can be understood that the obtained temperature value has smaller fluctuation due to the characteristic that the object has heat capacity, and can still keep better precision even in different acquisition periods. Then, the actual power consumption is used as a fitting target value, fitting is performed based on the temperature value of each associated object, more accurate fitting parameters of each associated object can be determined, and then a power consumption function of the target object is generated based on the fitting parameters, so that the problem that the power consumption at a certain moment is determined by using a current voltage value with larger volatility, so that the determined power consumption error is larger can be avoided, the power consumption generated by the power consumption function is smoother and more stable, and the target power consumption of the target object can be determined more accurately.
In one embodiment, the obtaining module 502 is further configured to detect power data of a target object of the electronic device; the actual power consumption generated by the target object is determined based on the power data.
In an embodiment, the obtaining module 502 is further configured to obtain the output power of the charging device and the charging power of a battery in the electronic device if the target object is the electronic device itself and the electronic device is in a charging state; based on the output power and the charging power, an actual power consumption generated by the electronic device is determined.
In an embodiment, the obtaining module 502 is further configured to obtain power consumption of the electronic device if the target object is the electronic device itself and the electronic device is in a non-charging state; the power consumption of the electronic device is converted into the actual power consumption generated by the electronic device.
In an embodiment, the obtaining module 502 is further configured to detect power consumption of a target device if the target object is the target device in the electronic device; the power consumption of the target device is converted into the actual power consumption generated by the target device.
In an embodiment, the obtaining module 502 is further configured to obtain, if the target object is an electronic device itself, a temperature value of each device in the electronic device through a temperature sensor; each device belongs to an associated object of the electronic equipment; if the target object is a target device in the electronic equipment, acquiring temperature values of all associated devices associated with the target device through a temperature sensor; each of the associated devices belongs to an associated object of the target device.
In one embodiment, the apparatus further comprises a power consumption determination module; the power consumption determining module is also used for acquiring target temperature values of all the associated objects at a target moment; and substituting the target temperature value of each associated object into the power consumption function of the target object, and outputting the target power consumption of the target object.
The respective modules in the above power consumption determining apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The electronic device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected by a system bus, and the communication interface, the display unit and the input device are connected by the input/output interface to the system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The input/output interface of the electronic device is used for exchanging information between the processor and an external device. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a power consumption determination method. The display unit of the electronic equipment is used for forming a visual and visible picture, and can be a display screen, a projection device or a virtual reality imaging device, the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the electronic equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring actual power consumption generated by a target object of the electronic equipment, and acquiring temperature values of all associated objects associated to the target object; fitting is carried out based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and fitting parameters of the associated objects are determined; generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting power data of a target object of an electronic device; the actual power consumption generated by the target object is determined based on the power data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the target object is the electronic equipment and the electronic equipment is in a charging state, acquiring the output power of the charging equipment and the charging power of a battery in the electronic equipment; based on the output power and the charging power, an actual power consumption generated by the electronic device is determined.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the target object is the electronic equipment and the electronic equipment is in a non-charging state, acquiring the power consumption of the electronic equipment; the power consumption of the electronic device is converted into the actual power consumption generated by the electronic device.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the target object is a target device in the electronic equipment, detecting the power consumption of the target device; the power consumption of the target device is converted into the actual power consumption generated by the target device.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the target object is the electronic equipment, acquiring temperature values of all devices in the electronic equipment through a temperature sensor; each device belongs to an associated object of the electronic equipment; if the target object is a target device in the electronic equipment, acquiring temperature values of all associated devices associated to the target device through a temperature sensor; each of the associated devices belongs to an associated object of the target device.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a target temperature value of each associated object at a target moment; and substituting the target temperature value of each associated object into the power consumption function of the target object, and outputting the target power consumption of the target object.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring actual power consumption generated by a target object of the electronic equipment, and acquiring temperature values of all associated objects associated to the target object; fitting is carried out based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and fitting parameters of the associated objects are determined; generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining target power consumption of the target object.
In one embodiment, the computer program when executed by the processor further performs the steps of: detecting power data of a target object of an electronic device; the actual power consumption generated by the target object is determined based on the power data.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is the electronic equipment and the electronic equipment is in a charging state, acquiring the output power of the charging equipment and the charging power of a battery in the electronic equipment; based on the output power and the charging power, an actual power consumption generated by the electronic device is determined.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is the electronic equipment and the electronic equipment is in a non-charging state, acquiring the power consumption of the electronic equipment; the power consumption of the electronic device is converted into the actual power consumption generated by the electronic device.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is a target device in the electronic equipment, detecting the power consumption of the target device; the power consumption of the target device is converted into the actual power consumption generated by the target device.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is the electronic equipment, acquiring temperature values of all devices in the electronic equipment through a temperature sensor; each device belongs to an associated object of the electronic equipment; if the target object is a target device in the electronic equipment, acquiring temperature values of all associated devices associated with the target device through a temperature sensor; each of the associated devices belongs to an associated object of the target device.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a target temperature value of each associated object at a target moment; and substituting the target temperature value of each associated object into the power consumption function of the target object, and outputting the target power consumption of the target object.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of: acquiring actual power consumption generated by a target object of the electronic equipment, and acquiring temperature values of all associated objects associated to the target object; fitting is carried out based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and fitting parameters of the associated objects are determined; generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
In one embodiment, the computer program when executed by the processor further performs the steps of: detecting power data of a target object of an electronic device; the actual power consumption generated by the target object is determined based on the power data.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is the electronic equipment and the electronic equipment is in a charging state, acquiring the output power of the charging equipment and the charging power of a battery in the electronic equipment; based on the output power and the charging power, an actual power consumption generated by the electronic device is determined.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is the electronic equipment and the electronic equipment is in a non-charging state, acquiring the power consumption of the electronic equipment; the power consumption of the electronic device is converted into the actual power consumption generated by the electronic device.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is a target device in the electronic equipment, detecting the power consumption of the target device; the power consumption of the target device is converted into the actual power consumption generated by the target device.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the target object is the electronic equipment, acquiring temperature values of all devices in the electronic equipment through a temperature sensor; each device belongs to an associated object of the electronic equipment; if the target object is a target device in the electronic equipment, acquiring temperature values of all associated devices associated with the target device through a temperature sensor; each of the associated devices belongs to an associated object of the target device.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a target temperature value of each associated object at a target moment; and substituting the target temperature value of each associated object into the power consumption function of the target object, and outputting the target power consumption of the target object.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (11)

1. A method for determining power consumption, the method comprising:
acquiring actual power consumption generated by a target object of electronic equipment, and acquiring temperature values of all associated objects associated to the target object;
fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value to determine fitting parameters of the associated objects;
generating a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
2. The method of claim 1, wherein obtaining the actual power consumption generated by the target object of the electronic device comprises:
detecting power data of a target object of an electronic device;
determining an actual power consumption by the target object based on the power data.
3. The method of claim 2, wherein the detecting power data of the target object comprises:
if the target object is the electronic equipment and the electronic equipment is in a charging state, acquiring the output power of the charging equipment and the charging power of a battery in the electronic equipment;
the determining an actual power consumption by the target object based on the power data comprises:
determining an actual power consumption generated by the electronic device based on the output power and the charging power.
4. The method of claim 2, wherein the detecting power data of the target object comprises:
if the target object is the electronic equipment and the electronic equipment is in a non-charging state, acquiring the power consumption of the electronic equipment;
the determining an actual power consumption by the target object based on the power data comprises:
converting the power consumption of the electronic device into the actual power consumption generated by the electronic device.
5. The method of claim 2, wherein the detecting power data of the target object comprises:
if the target object is a target device in the electronic equipment, detecting the power consumption of the target device;
the determining an actual power consumption by the target object based on the power data comprises:
converting the power consumption of the target device into an actual power consumption generated by the target device.
6. The method of claim 1, wherein obtaining temperature values associated with respective associated objects of the target object comprises:
if the target object is the electronic equipment, acquiring temperature values of all devices in the electronic equipment through a temperature sensor; each device belongs to an associated object of the electronic equipment;
if the target object is a target device in the electronic equipment, acquiring temperature values of all associated devices associated with the target device through a temperature sensor; each associated device belongs to an associated object of the target device.
7. The method according to any one of claims 1 to 6, further comprising:
acquiring a target temperature value of each associated object at a target moment;
substituting the target temperature value of each associated object into the power consumption function of the target object, and outputting the target power consumption of the target object.
8. A power consumption determination apparatus, the apparatus comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring actual power consumption generated by a target object of electronic equipment and acquiring temperature values of all related objects related to the target object;
the fitting module is used for fitting based on the temperature values of the associated objects by taking the actual power consumption as a fitting target value, and determining fitting parameters of the associated objects;
a generating module, configured to generate a power consumption function of the target object based on the fitting parameters; the power consumption function is used for determining the target power consumption of the target object.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210103250.2A 2022-01-27 2022-01-27 Power consumption determination method and device, electronic equipment and storage medium Pending CN114441848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210103250.2A CN114441848A (en) 2022-01-27 2022-01-27 Power consumption determination method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210103250.2A CN114441848A (en) 2022-01-27 2022-01-27 Power consumption determination method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114441848A true CN114441848A (en) 2022-05-06

Family

ID=81370313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210103250.2A Pending CN114441848A (en) 2022-01-27 2022-01-27 Power consumption determination method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114441848A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114818365A (en) * 2022-05-17 2022-07-29 中国南方电网有限责任公司超高压输电公司检修试验中心 Method and device for determining central temperature of discharge channel and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114818365A (en) * 2022-05-17 2022-07-29 中国南方电网有限责任公司超高压输电公司检修试验中心 Method and device for determining central temperature of discharge channel and computer equipment
CN114818365B (en) * 2022-05-17 2024-05-24 中国南方电网有限责任公司超高压输电公司检修试验中心 Method and device for determining center temperature of discharge channel and computer equipment

Similar Documents

Publication Publication Date Title
CN112818535B (en) Method and device for establishing electrothermal simulation model and obtaining electrothermal simulation value
CN101901033A (en) Deterministic management of dynamic thermal response of processors
CN105759209A (en) battery electric quantity estimation method and device
TW201403105A (en) Method and system for calculating capacities of battery
CN111475384A (en) Shell temperature calculation method and device, storage medium and electronic equipment
CN115840144A (en) Battery simulation calculation method and device, computer equipment and storage medium
CN114441848A (en) Power consumption determination method and device, electronic equipment and storage medium
CN117078480A (en) Carbon emission monitoring method, device, equipment, storage medium and computer product
CN114282727A (en) Computer room temperature prediction method and system and electronic equipment
Zhuo et al. Diffusion-aware voltage source: An equivalent circuit network to resolve lithium concentration gradients in active particles
CN116295902A (en) Method and device for detecting environmental temperature of electronic equipment
CN116644262A (en) Chip temperature distribution determining method and device and electronic equipment
CN117031292A (en) Battery health state prediction method, device, computer equipment and storage medium
CN113902121B (en) Method, device, equipment and medium for verifying battery degradation estimation device
CN115481767A (en) Operation data processing method and device for power distribution network maintenance and computer equipment
CN114721903A (en) Shell temperature obtaining method and device, electronic equipment and storage medium
CN110278250B (en) Terminal selection method, device and storage medium
CN109190789B (en) Medium-and-long-term wind power prediction method and device, computer equipment and storage medium
CN117134366B (en) Load control method, device, equipment and storage medium
CN115879610B (en) Contactor service life prediction method, device, equipment and storage medium
CN118114491A (en) Multiplying power performance optimizing method, multiplying power performance optimizing device, multiplying power performance optimizing equipment, multiplying power performance optimizing storage medium and multiplying power performance optimizing program product
CN110399901B (en) Method, device, equipment and medium for acquiring temperature consumption of water
CN115663311B (en) Battery cell temperature determining method and device, electronic equipment and storage medium
CN115330089B (en) Dynamic carbon monitoring and analyzing method for user-side enterprise based on electric power big data
CN115587715A (en) Industrial chain correlation analysis method and device for supporting orderly power utilization and computer equipment

Legal Events

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