CN112433594A - Power consumption detection method and device, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN112433594A
CN112433594A CN202011401035.8A CN202011401035A CN112433594A CN 112433594 A CN112433594 A CN 112433594A CN 202011401035 A CN202011401035 A CN 202011401035A CN 112433594 A CN112433594 A CN 112433594A
Authority
CN
China
Prior art keywords
power consumption
display
display unit
gray scale
scale distribution
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.)
Withdrawn
Application number
CN202011401035.8A
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 CN202011401035.8A priority Critical patent/CN112433594A/en
Publication of CN112433594A publication Critical patent/CN112433594A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the application discloses a power consumption detection method and device, a storage medium and electronic equipment, wherein gray scale distribution of display content is further acquired by acquiring the display content and the brightness level of a display unit, so that the display power consumption of the display unit is predicted by utilizing the gray scale distribution, the brightness level and a pre-constructed power consumption model of the display unit. In addition, the refresh frequency of the drive unit is also acquired, so that the drive power consumption of the drive unit is predicted by using the refresh frequency and a pre-constructed drive unit power consumption model. And finally, the screen power consumption of the screen assembly is obtained by integrating the display power consumption and the driving power consumption, so that the power consumption detection of the screen assembly is realized.

Description

Power consumption detection method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of power consumption detection technologies, and in particular, to a power consumption detection method and apparatus, a storage medium, and an electronic device.
Background
At present, electronic devices such as smart phones and tablet computers become necessary for life of people, and for example, video calls, online videos, online songs listening and the like can be performed through the electronic devices. Generally, these electronic devices are powered by batteries, which means power consumption. However, in the related art, attention is paid only to the amount of power of a battery, and attention to power consumption is lacking.
Disclosure of Invention
The application provides a power consumption detection method and device, a storage medium and electronic equipment, which can realize power consumption monitoring of a screen assembly of the electronic equipment.
In a first aspect, the present application provides a power consumption detection method implemented in a processor of an electronic device, a screen component of the electronic device including a display unit and a driving unit, the power consumption detection method comprising:
acquiring display content and brightness level of the display unit;
acquiring gray scale distribution of the display content, and predicting display power consumption of the display unit according to the gray scale distribution and the brightness level through a pre-constructed power consumption model of the display unit;
obtaining the refresh frequency of the drive unit, and predicting the drive power consumption of the drive unit according to the refresh frequency through a pre-constructed drive unit power consumption model; and
and acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption.
In a second aspect, the present application provides a power consumption detecting apparatus applied to an electronic device, a screen assembly of the electronic device including a display unit and a driving unit, the power consumption detecting apparatus including:
the acquisition module is used for acquiring the display content and the brightness level of the display unit;
the first prediction module is used for acquiring the gray scale distribution of the display content and predicting the display power consumption of the display unit according to the gray scale distribution and the brightness level through a pre-constructed power consumption model of the display unit;
the second prediction module is used for acquiring the refresh frequency of the drive unit and predicting the drive power consumption of the drive unit according to the refresh frequency through a pre-constructed drive unit power consumption model; and
and the fusion module is used for acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption.
In a third aspect, the present application provides a storage medium having stored thereon a computer program which, when loaded by a processor of an electronic device, performs any of the power consumption detection methods as provided herein.
In a fourth aspect, the present application further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores a computer program, and the processor executes any one of the power consumption detection methods provided in the present application by loading the computer program.
By adopting the technical scheme provided by the application, the electronic equipment can acquire the display content and the brightness level of the display unit in real time, and further acquire the gray scale distribution of the display content, so that the display power consumption of the display unit is predicted by utilizing the gray scale distribution, the brightness level and the pre-constructed power consumption model of the display unit. In addition, the refresh frequency of the drive unit is also acquired, so that the drive power consumption of the drive unit is predicted by using the refresh frequency and a pre-constructed drive unit power consumption model. And finally, the screen power consumption of the screen assembly is obtained by integrating the display power consumption and the driving power consumption, so that the power consumption detection of the screen assembly is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a power consumption detection method according to an embodiment of the present application.
Fig. 2 is a schematic diagram illustrating division of screen components in an electronic device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an electronic device selecting power consumption parameters for modeling in an embodiment of the application.
Fig. 4 is an exemplary diagram for displaying the power consumption of the unit through the power consumption board measurement in the embodiment of the present application.
Fig. 5 is a schematic diagram of an electronic device predicting display power consumption by a power consumption server in an embodiment of the present application.
Fig. 6 is a schematic diagram of an electronic device performing big data analysis through an analysis server in an embodiment of the present application.
Fig. 7 is another schematic flow chart of a power consumption detection method according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a power consumption detection apparatus according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
It is to be appreciated that the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
Relational terms such as first and second, and the like may be used solely to distinguish one object or operation from another object or operation without necessarily limiting the actual sequential relationship between the objects or operations.
The application provides a power consumption detection method, a power consumption detection device, a storage medium and an electronic device. An execution main body of the power consumption detection method may be the power consumption detection device provided in the embodiment of the present application, or a processor integrated with the power consumption detection device, where the power consumption detection device may be implemented in a hardware or software manner. The electronic device may be a mobile electronic device powered by a battery, such as a smart phone, a tablet computer, a palm computer, and a notebook computer, or a fixed electronic device powered by commercial power, such as a desktop computer and an intelligent advertisement machine.
Referring to fig. 1, fig. 1 is a schematic flow chart of a power consumption detection method according to an embodiment of the present disclosure. The power consumption detection method is applied to an electronic device, and is implemented by a processor in the electronic device, a screen component of the electronic device includes a display unit and a driving unit, as shown in fig. 1, a flow of the power consumption detection method provided by the embodiment of the present application may be as follows:
at 110, the display content and brightness level of the display unit are obtained.
Referring to fig. 2, in the embodiment of the present application, a screen assembly of an electronic device is divided into two parts, namely, a display unit and a driving unit, where the display unit includes a device for displaying, such as a display panel (e.g., an LCD display panel, an OLED display panel, etc.), and the driving unit includes a device for driving the display unit to display, such as a driving chip.
In order to realize real-time detection of the power consumption of the screen assembly, the application provides a power consumption detection method.
In the embodiment of the present application, according to the dividing manner of the screen component, a power consumption model corresponding to the display unit and a power consumption model corresponding to the driving unit are respectively pre-constructed, and the power consumption model corresponding to the display unit is recorded as a power consumption model of the display unit, and the power consumption model corresponding to the driving unit is recorded as a power consumption model of the driving unit.
For example, taking a power consumption model of a display unit as an example, the power consumption model may be constructed as follows:
firstly, possible power consumption parameters are screened according to expert experience and are recorded as candidate power consumption parameters, the power consumption parameters can be understood as parameters having a certain incidence relation (such as a linear relation) with power consumption, for example, for a display unit, the candidate power consumption parameters can be any working parameters of the display unit, such as gray scale distribution, resolution, brightness level, color gamut, cooling and heating of display, and the like.
Referring to fig. 3, after the candidate power consumption parameters are screened out, a candidate power consumption parameter is selected, and the selected candidate power consumption parameter is locked.
Then, the load of the display unit is saturated, and the power consumption of the display unit is actually measured through the power consumption board. For example, referring to fig. 4, the power consumption board includes a power management chip, a current measurement device, and a sampling resistor, wherein the power management chip is responsible for supplying power to the display unit, V1 and V2 are power supplies of the display unit, respectively, the sampling resistor is connected in series to each power supply circuit, and the current passing through the power supply circuit is measured by the current measurement device and used as the working current of the display unit. In the embodiment of the present application, the working voltage of the display unit is regarded as a fixed value, for example, the working voltage of the display unit usually fluctuates around 4V, and then the working voltage of the display unit can be regarded as a fixed value of 4V. Therefore, the working current and the working voltage of the display unit are known, and the current actual measurement power consumption of the display unit can be obtained according to the working current and the working voltage of the display unit.
After the measured power consumption of the display unit is obtained, the candidate power consumption parameter and the measured power consumption are stored in association as a reference pair for power consumption model modeling, for example, the candidate power consumption parameter and the measured power consumption parameter can be stored in the form of a power consumption modeling reference table as follows:
candidate power consumption parameters Measured power consumption
Parameter value 1 Power consumption value 1
Parameter value 2 Power consumption value 2
Parameter value 3 Power consumption value 3
Parameter value 3 Power consumption value 4
Taking a candidate power consumption parameter as an example, when the parameter value is "parameter value 1", the power consumption value of the actually measured power consumption is "power consumption value 1".
As described above, other candidate power consumption parameters are continuously selected for actual measurement, and finally, different reference pairs consisting of the candidate power consumption parameters and the actual measurement power consumption can be measured, so that a reference pair set is formed by the reference pairs. And then, carrying out big data analysis on the reference pair set by adopting a preset big data analysis strategy, thereby analyzing the power consumption parameter which has a correlation with the display unit. It is understood that the analyzed power consumption parameter may be one or more. Correspondingly, when the power consumption model is constructed, all analyzed power consumption parameters can be adopted, and partial analyzed power consumption parameters can also be adopted.
For example, it is assumed that two power consumption parameters are analyzed, namely a power consumption parameter a and a power consumption parameter B, and the influence of the power consumption parameter a on the actually measured power consumption of the display unit is 90%, and the influence of the power consumption parameter B on the actually measured power consumption of the display unit is 10%. Alternatively, if priority is given to prediction accuracy, the display unit power consumption model may be constructed according to the power consumption parameter a and the power consumption parameter B, and if priority is given to prediction efficiency, the display unit power consumption model may be constructed according to only the power consumption parameter a.
After the power consumption parameters for constructing the power consumption model of the display unit are determined, the correlation between the power consumption parameters and the corresponding measured power consumption is analyzed and fitted to be the functional relation between the power consumption parameters and the power consumption to serve as the power consumption model of the display unit.
For example, the power consumption parameters used in the embodiments of the present application to construct the power consumption model of the display unit are the gray scale distribution and the brightness level of the display unit. In addition, the power consumption parameter used for constructing the power consumption model of the driving unit in the embodiment of the application is the refresh frequency of the driving unit.
As described above, after the display unit power consumption model and the driving unit power consumption model are pre-constructed, the display unit power consumption model and/or the driving unit power consumption model may be directly deployed in the local area of the electronic device, or the display unit power consumption model and/or the driving unit power consumption model may be deployed in a cloud server, and the server provides a power consumption prediction service for the electronic device.
At this point, the processor detects the power consumption of the screen assembly in real time by using the pre-constructed power consumption model of the display unit and the power consumption model of the driving unit.
The processor triggers power consumption detection when a preset target event triggering power consumption detection is monitored. The target event can be configured by one of ordinary skill in the art according to actual needs, and is not limited herein.
Exemplary, configured target events include, but are not limited to:
(1) switching the application program operated on the foreground;
(2) bulk temperature superheat (which can be empirically defined by one of ordinary skill in the art);
(3) switching between on and off of the screen;
(4) pulling/plugging a charging wire;
(5) the power consumption reaches a set value (can be taken by a person with ordinary skill in the art according to actual needs, such as 10%);
(6) the preset detection period is reached (the value can be obtained by a person skilled in the art according to actual needs, such as 1 minute).
As described above, the power consumption model of the display unit in the present application is constructed by using gray scale distribution and brightness level as power consumption parameters, and accordingly, when power consumption detection is triggered, the processor needs to obtain the gray scale distribution and the brightness level of the display unit. The brightness level can be directly obtained from a data interface provided by the display unit, and gray scale distribution needs to be obtained by carrying out gray scale statistics on display content of the display unit. Accordingly, the processor needs to acquire the display content of the display unit first. For example, taking the android system as an example, the processor may directly acquire the display content of the display unit through a data interface provided by the android system.
At 120, gray scale distribution of the display content is obtained, and display power consumption of the display unit is predicted according to the gray scale distribution and the brightness level through a pre-constructed power consumption model of the display unit.
As described above, in the embodiment of the present application, a display unit power consumption model describing a correlation between a gray scale distribution and a luminance level and power consumption of a display unit is constructed in advance. Correspondingly, after the processor acquires the display content and the brightness level of the display unit, gray scale statistics is further performed on the acquired display content to obtain gray scale distribution of the display content. And then, the processor can predict the power consumption of the display unit according to the gray scale distribution and the brightness level through a pre-constructed power consumption model of the display unit and record the power consumption as the display power consumption.
In 130, a refresh frequency of the driving unit is obtained, and driving power consumption of the driving unit is predicted according to the refresh frequency through a pre-constructed driving unit power consumption model.
In addition, the power consumption model of the driving unit in the application is constructed by taking the refresh frequency as a power consumption parameter, and correspondingly, when power consumption detection is triggered, the processor needs to acquire the refresh frequency of the driving unit. For example, the processor may directly obtain the refresh frequency of the driving unit from a data interface provided by the driving unit.
As described above, in the embodiment of the present application, a power consumption model of the driving unit describing a correlation between the refresh frequency and the power consumption of the driving unit is constructed in advance. Correspondingly, after the processor obtains the refresh frequency of the drive unit, the power consumption of the drive unit can be predicted according to the refresh frequency through the pre-constructed power consumption model of the drive unit and is recorded as the drive power consumption.
In 140, screen power consumption of the screen component is acquired according to the display power consumption and the driving power consumption.
As above, the display power consumption of the display unit and the driving power consumption of the driving unit have been obtained, at this time, the processor may obtain the power consumption of the screen component according to the display power consumption and the driving power consumption, and may be represented as:
P=P1+P2
wherein P represents the screen power consumption of the screen assembly, P1Representing the display power consumption, P, of the display unit2Represents the driving power consumption of the driving unit.
According to the method, the screen assembly of the electronic equipment is divided into the display unit and the driving unit, the gray scale distribution and the brightness level of the display content of the display unit are adopted as power consumption parameters in advance to perform power consumption modeling, a power consumption model of the display unit is obtained, and the refreshing frequency of the driving unit is adopted as the power consumption parameters of the driving unit to perform power consumption modeling, and the power consumption model of the driving unit is obtained. The electronic equipment can acquire the display content and the brightness level of the display unit in real time, and further acquire the gray scale distribution of the display content, so that the display power consumption of the display unit is obtained by utilizing the gray scale distribution, the brightness level and the pre-constructed power consumption model of the display unit. In addition, the refresh frequency of the drive unit is also acquired, so that the drive power consumption of the drive unit is predicted by using the refresh frequency and a pre-constructed drive unit power consumption model. And finally, the screen power consumption of the screen assembly is obtained by integrating the display power consumption and the driving power consumption, so that the power consumption detection of the screen assembly is realized.
Optionally, in an embodiment, the predicting the display power consumption of the display unit according to the gray scale distribution and the brightness level by the pre-constructed power consumption model of the display unit includes:
and in the display unit power consumption model, determining the display power consumption of the display unit according to the gray scale distribution of the red channel, the gray scale distribution of the green channel, the gray scale distribution of the blue channel and the brightness level.
It should be noted that the RGB color scheme is a color standard, which obtains various colors by changing three color channels of red (R), green (G) and blue (B) and superimposing them on each other, and the standard almost includes all colors that can be perceived by human vision, and is one of the most widely used color systems.
All the colors that can be displayed by the display unit can be formed by mixing three colors of red, green and blue according to different proportions, that is, in the embodiment of the present application, the display unit displays according to an RGB color model.
Correspondingly, in the embodiment of the present application, when performing gray scale statistics on the display content of the display unit, the gray scale distribution of the red channel, the gray scale distribution of the green channel, and the gray scale distribution of the blue channel are obtained through statistics. Similarly, the power consumption model of the display unit in the embodiment of the present application is constructed by using the gray scale distribution of the red channel, the gray scale distribution of the green channel, the gray scale distribution of the blue channel, and the brightness level as power consumption parameters.
In the display unit power consumption model, the processor determines the display power consumption of the display unit according to the gray scale distribution of the red channel, the gray scale distribution of the green channel, the gray scale distribution of the blue channel and the brightness level.
Optionally, in an embodiment, the display unit power consumption model includes:
Figure BDA0002812582220000081
wherein P represents the display power consumption of the display unit,
Figure BDA0002812582220000082
representing the gray level distribution of the red channel, gRiRepresenting the i-th gray level, x, of the red channeliIndicates the number of i-th gray levels of the red channel, gRmax represents the maximum gray level of the red channel,
Figure BDA0002812582220000083
representing the gray level distribution of the green channel, gGjRepresenting the j-th gray level, y, of the green channeljRepresenting the number of gray levels of the j-th level of the green channel,
Figure BDA0002812582220000084
representing the gray scale distribution of the blue channel, gBkRepresenting the kth gray level, z, of the blue channelkDenotes the number of kth gray levels of the blue channel, L denotes a brightness level, U denotes a preset operating voltage of the display unit, and Lmax denotes a maximum brightness level of the display unit.
It should be noted that i, j, and k are integers, where the value range of i is determined by the gray scale level of the red channel (i.e. 1 to the maximum gray scale level of the red channel), the value range of j is determined by the gray scale level of the green channel (i.e. 1 to the maximum gray scale level of the green channel), and the value range of k is determined by the gray scale level of the blue channel (i.e. 1 to the maximum gray scale level of the blue channel). For example, taking 256 levels of gray scale for the red channel, the green channel, and the blue channel, the value ranges of i, j, and k are [1, 256 ].
Optionally, in an embodiment, acquiring the gray scale distribution of the display content includes:
(1) transmitting the display content to a preset coprocessor, and instructing the preset coprocessor to carry out gray scale statistics on the display content to obtain gray scale distribution;
(2) and receiving gray scale distribution returned by the preset coprocessor.
It should be noted that, in the embodiment of the present application, the processor of the electronic device is a general-purpose processor, and is capable of performing processing of various types of tasks. In order to acquire the gray scale distribution of the display content more quickly, the acquisition of the gray scale distribution is assisted by a preset coprocessor suitable for processing an image task in the embodiment of the application.
After the processor acquires the display content of the display unit, the processor does not perform gray scale statistics on the display content, but transmits the display content to the preset coprocessor, instructs the preset coprocessor to perform gray scale statistics on the display content, and returns the gray scale distribution obtained through the statistics. Correspondingly, the processor directly receives the gray scale distribution returned by the preset coprocessor. The type of the pre-defined coprocessor is not particularly limited, and may be configured by those skilled in the art according to actual needs, including but not limited to a digital signal processor, a NEON coprocessor, and the like.
Optionally, in an embodiment, the driving unit power consumption model includes a one-to-one correspondence relationship between different refresh frequencies and driving power consumption.
It is understood that the refresh frequency of the driving unit is consistent with the refresh frequency supported by the display unit, for example, if the display unit supports two refresh frequencies, i.e. refresh frequency a and refresh frequency B, the refresh frequency at which the driving unit operates is either refresh frequency a or refresh frequency B.
Generally, the supported refresh frequency of the display unit is a frequency of discrete single-digit, and accordingly, the power consumption model of the driving unit constructed in the embodiment of the present application may only include a one-to-one correspondence relationship between different refresh frequencies and driving power consumptions.
Illustratively, the refresh frequencies supported by the screen unit are 30Hz, 60Hz, 90Hz and 120Hz, and the possible refresh frequencies of the driving unit are 30Hz, 60Hz, 90Hz and 120 Hz.
When a power consumption model of the driving unit is constructed, the refresh frequency of the driving unit is configured to be 30Hz, the processor runs different types of application programs (including but not limited to video application programs, audio application programs, news application programs and the like), and in the process of running the different types of application programs, the power consumption of the driving unit is actually measured through the power consumption version, so that the power consumption of the driving unit corresponding to the different types of application programs under the refresh frequency of 30Hz is obtained. And finally, taking the average value of all actually measured power consumptions as the driving power consumption of the driving unit under the refresh frequency of 30 Hz.
By analogy, the drive power consumption of the drive unit at the refresh frequency of 60Hz, 90Hz and 120Hz can be obtained through actual measurement. Thus, the one-to-one correspondence relationship between the drive power consumption and the drive frequency of the drive unit at 30Hz, 60Hz, 90Hz, and 120Hz can be used as the drive unit power consumption model.
Optionally, in an embodiment, before acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption, the method further includes:
(1) acquiring display parameters of a display unit, and determining power consumption correction coefficients corresponding to the display parameters;
(2) correcting the display power consumption according to the power consumption correction coefficient to obtain the corrected display power consumption;
acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption, wherein the screen power consumption comprises the following steps:
(3) and acquiring the screen power consumption of the screen component according to the corrected display power consumption and the driving power consumption.
It should be noted that the display parameters obtained in the embodiment of the present application are display parameters that have a certain correlation with the display unit, but are not used as power consumption parameters for building a power consumption model of the display unit. In the embodiment of the present application, the display parameter for correcting the display power consumption includes at least one of a resolution, a color gamut, and a cool-warm color tone.
Correspondingly, the corresponding relation between the display parameters and the power consumption correction coefficients is also pre-established in the embodiment of the application, and can be specifically established according to actual measurement results.
Before the screen power consumption of the screen assembly is obtained according to the display power consumption and the driving power consumption, the processor also obtains the display parameters of the display unit, and determines the power consumption correction coefficients corresponding to the display parameters according to the pre-established corresponding relation between the display parameters and the power consumption correction coefficients.
And then, correcting the display power consumption predicted before according to the determined power consumption correction coefficient, so as to obtain the corrected display power consumption. It should be noted that the determined power consumption correction coefficient may be a positive value or a negative value, and accordingly, after the display power consumption is corrected according to the determined power consumption correction coefficient, the corrected display power consumption may become larger or smaller than the originally predicted display power consumption.
Finally, the processor obtains the screen power consumption of the screen component according to the corrected display power consumption and the driving power consumption, and can be represented as:
P=P1’+P2
wherein P represents the screen power consumption of the screen assembly, P1' represents the corrected display Power consumption, P2Represents the driving power consumption of the driving unit.
Optionally, in an embodiment, predicting the display power consumption of the display unit according to the gray scale distribution and the brightness level by a pre-constructed display unit power consumption model includes:
(1) sending the gray scale distribution and the brightness level to an external server, and indicating the external server to input the gray scale distribution and the brightness level into a locally deployed display unit power consumption model to obtain display power consumption output by the display unit power consumption model;
(2) and receiving the display power consumption returned by the power consumption server.
In the embodiment of the application, the power consumption model of the display unit is deployed at the cloud for example.
For example, referring to fig. 5, the external server is a server providing power consumption prediction service, and is denoted as a power consumption server. The network access equipment provides network access service for the electronic equipment, so that the electronic equipment can be accessed to the Internet through the network access equipment. When the power consumption of the display unit is predicted, the processor transmits the acquired gray scale distribution and the acquired brightness level to a power consumption server on the other side of the Internet through the network access equipment. The power consumption server is locally deployed with a pre-constructed display unit power consumption model, correspondingly, after receiving gray scale distribution and brightness level from a processor, the power consumption server inputs the gray scale distribution and the brightness level into the locally deployed display unit power consumption model, so that the display power consumption of the display unit is obtained through prediction, and the predicted display power consumption is returned to the processor. On the other hand, the processor will receive the display power consumption returned by the power consumption server.
In other embodiments, the power consumption model of the driving unit may also be deployed in a power consumption server, and accordingly, when the power consumption of the driving unit is predicted, the processor transmits the obtained refresh frequency to the power consumption server on the other side of the internet via the network access device. The power consumption server is locally deployed with a pre-constructed drive unit power consumption model, correspondingly, after receiving the refresh frequency from the processor, the power consumption server inputs the refresh frequency into the locally deployed drive unit power consumption model, so that the drive power consumption of the drive unit is predicted, and the predicted drive power consumption is returned to the processor. On the other hand, the processor will receive the driving power consumption returned by the power consumption server.
Optionally, in an embodiment, the sending the gray scale distribution and the brightness level to a preset power consumption server includes:
when the processor runs a preset application, sending the gray scale distribution and the brightness level to a preset power consumption server; or
When the running load of the processor is greater than or equal to the preset load, sending the gray scale distribution and the brightness level to a preset power consumption server; or
And when the residual electric quantity of the electronic equipment is less than the preset electric quantity, sending the gray scale distribution and the brightness level to a preset power consumption server.
In the embodiment of the application, the power consumption model of the display unit can be deployed in the electronic device and the power consumption server at the same time. Accordingly, the processor requests the power consumption server to perform power consumption prediction only under certain conditions.
Illustratively, the specific conditions configured in the embodiments of the present application include:
the processor runs a preset application;
or the running load of the processor is greater than or equal to the preset load;
or the residual electric quantity of the electronic equipment is less than the preset electric quantity.
It should be noted that, in the embodiment of the present application, the configuration of the preset application, the preset load and the preset electric quantity is not particularly limited, and may be configured by a person skilled in the art according to actual needs.
For example, the preset application may be configured by the processor by default, or may be configured by the processor according to user input. The processor can default to configure applications with high requirements on user experience, such as game applications and live applications, as preset applications.
Alternatively, in other embodiments, the processor may also transmit the refresh frequency of the aforementioned driving unit to the power consumption server when the specific condition is satisfied, and the power consumption server predicts the driving power consumption of the driving unit.
Optionally, in an embodiment, after acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption, the method further includes:
(1) transmitting the screen power consumption to an external server, so that the external server performs big data analysis according to the preset analysis strategy and the screen power consumption to obtain an analysis result;
(2) and receiving an analysis result returned by the external server.
In the embodiment of the application, after the screen power consumption of the screen component is obtained through prediction, the screen power consumption can be further utilized to perform big data analysis.
For example, referring to fig. 6, the external server is a server providing big data analysis service, and is denoted as an analysis server. The network access equipment provides network access service for the electronic equipment, so that the electronic equipment can be accessed to the Internet through the network access equipment. The processor also transmits the predicted screen power consumption to an analysis server on the other side of the internet via the network access device after predicting the screen power consumption of the screen. The processor may perform transmission of the screen power consumption after predicting the screen power consumption each time, may perform transmission of the screen power consumption at intervals of a preset time period, and may perform transmission of the screen power consumption each time the screen power consumption of the first preset number is predicted.
On the other hand, the analysis server is configured with an analysis policy, where the analysis policy is used to describe how to perform big data analysis on the screen power consumption from the processor, and may be specifically configured by a person of ordinary skill in the art according to actual needs, and the embodiment of the present application is not particularly limited. For example, an analysis strategy for analyzing the power consumption behavior of the user may be configured. Correspondingly, when the received screen power consumption reaches a second preset amount (namely the minimum data amount required by the analysis server for performing big data analysis according to the analysis strategy), the analysis server performs big data analysis by using the screen power consumption of the second preset amount including the screen power consumption of the current transmission of the processor according to the configured analysis strategy, so as to obtain a corresponding analysis result. After the analysis result is assigned, the analysis server returns the analysis result to the processor. Accordingly, the processor receives the analysis result returned by the analysis server.
In addition, after receiving the analysis result returned by the analysis server, the processor may output the analysis result according to the configured output strategy. The configuration of the output strategy is not particularly limited, and can be configured by those skilled in the art according to actual needs, including but not limited to audio, video, text, image and other output modes.
In addition, the processor may perform a targeted optimization process according to the analysis result, for example, when the analysis result reflects the power consumption behavior of the user, the processor may perform a targeted power consumption optimization according to the analysis result.
It should be noted that, in the embodiment of the present application, values of the preset time interval, the first preset number, and the second preset number are not specifically limited, and may be configured by a person skilled in the art according to actual needs.
Optionally, in an embodiment, before acquiring the display content and the brightness level of the display unit, the method further includes:
(1) acquiring a pre-constructed general display unit power consumption model and a pre-constructed general driving unit power consumption model;
(2) performing adaptive processing on the general display unit power consumption model according to the power consumption characteristics of the display unit to obtain a display unit power consumption model;
(3) and performing adaptive processing on the power consumption model of the general driving unit according to the power consumption characteristics of the driving unit to obtain the power consumption model of the driving unit.
It should be noted that, in the embodiment of the present application, a general display unit power consumption model is constructed by using the general power consumption characteristics of the display unit without considering the specific power consumption characteristics of a specific display unit, and the general display unit power consumption model is applicable to power consumption prediction of a plurality of display units. Similarly, in the embodiment of the present application, a power consumption model of the universal driving unit is pre-constructed.
Correspondingly, when the processor performs power consumption modeling on the display unit and the driving unit, the processor may first acquire a pre-constructed power consumption model of the general display unit and acquire a pre-constructed power consumption model of the general driving unit.
For the display unit, the processor can obtain the specific power consumption characteristics of the display unit and analyze to obtain the correlation between the specific power consumption characteristics and the power consumption of the display unit, so that the correlation is utilized to perform adaptive processing on the general display unit power consumption model to obtain the display unit power consumption model adaptive to the display unit.
Similarly, for the driving unit, the processor may obtain the specific power consumption characteristic of the driving unit, and analyze to obtain a correlation between the specific power consumption characteristic and the power consumption of the driving unit, so as to perform adaptive processing on the general driving unit power consumption model by using the correlation, and obtain the driving unit power consumption model adapted to the driving unit.
Referring to fig. 7, fig. 7 is another schematic flow chart of a power consumption detection method provided in an embodiment of the present application, where the power consumption detection method is applied to an electronic device and implemented by a processor in the electronic device, and a screen component of the electronic device includes a display unit and a driving unit, as shown in fig. 7, a flow of the power consumption detection method provided in the embodiment of the present application may be as follows:
at 210, the processor obtains a pre-built generic display unit power consumption model and obtains a pre-built generic drive unit power consumption model.
In order to realize real-time detection of the power consumption of the screen assembly, the application provides a power consumption detection method.
In the embodiment of the application, the screen component is divided into two parts, namely a display unit and a driving unit, a power consumption model corresponding to the display unit is constructed in advance and is recorded as a power consumption model of the display unit, and a power consumption model corresponding to the driving unit is constructed in advance and is recorded as a power consumption model of the driving unit.
Illustratively, the construction of the display unit power consumption model and the driving unit power consumption model may be performed as follows:
first, in the embodiment of the present application, a general display unit power consumption model is constructed by using the general power consumption characteristics of the display unit without considering the specific power consumption characteristics of the specific display unit, and the general display unit power consumption model is applicable to power consumption prediction of a plurality of display units. Similarly, in the embodiment of the present application, a power consumption model of the universal driving unit is pre-constructed. The power consumption parameters for constructing the power consumption model of the universal display unit adopted in the embodiment of the application are gray scale distribution and brightness level, and the power consumption parameters for constructing the power consumption model of the universal driving unit are refreshing frequency.
When the processor performs power consumption modeling on the display unit and the driving unit, the processor may first acquire a pre-constructed general display unit power consumption model and acquire a pre-constructed general driving unit power consumption model.
At 220, the processor adaptively processes the general display unit power consumption model according to the power consumption characteristics of the display unit to obtain a display unit power consumption model, and adaptively processes the general driving unit power consumption model according to the power consumption characteristics of the driving unit to obtain a driving unit power consumption model.
For the display unit, the processor can obtain the specific power consumption characteristics of the display unit and analyze to obtain the correlation between the specific power consumption characteristics and the power consumption of the display unit, so that the correlation is utilized to perform adaptive processing on the general display unit power consumption model to obtain the display unit power consumption model adaptive to the display unit.
Similarly, for the driving unit, the processor may obtain the specific power consumption characteristic of the driving unit, and analyze to obtain a correlation between the specific power consumption characteristic and the power consumption of the driving unit, so as to perform adaptive processing on the general driving unit power consumption model by using the correlation, and obtain the driving unit power consumption model adapted to the driving unit.
At 230, the processor obtains the display content and brightness level of the display unit.
The processor triggers power consumption detection when a preset target event triggering power consumption detection is monitored. The target event can be configured by one of ordinary skill in the art according to actual needs, and is not limited herein.
Exemplary, configured target events include, but are not limited to:
(1) switching the application program operated on the foreground;
(2) bulk temperature superheat (which can be empirically defined by one of ordinary skill in the art);
(3) switching between on and off of the screen;
(4) pulling/plugging a charging wire;
(5) the power consumption reaches a set value (can be taken by a person with ordinary skill in the art according to actual needs, such as 10%);
(6) the preset detection period is reached (the value can be obtained by a person skilled in the art according to actual needs, such as 1 minute).
As described above, the power consumption model of the display unit in the present application is constructed by using gray scale distribution and brightness level as power consumption parameters, and accordingly, when power consumption detection is triggered, the processor needs to obtain the gray scale distribution and the brightness level of the display unit. The brightness level can be directly obtained from a data interface provided by the display unit, and the gray scale distribution needs to be obtained by counting the display content of the display unit. Accordingly, the processor needs to acquire the display content of the display unit first. For example, taking the android system as an example, the processor may directly acquire the display content of the display unit through a data interface provided by the android system.
At 240, the processor obtains the gray scale distribution of the display content and predicts the display power consumption of the display unit according to the gray scale distribution and the brightness level through the display unit power consumption model.
As described above, in the embodiment of the present application, a display unit power consumption model describing a correlation between a gray scale distribution and a luminance level and power consumption of a display unit is constructed in advance. Correspondingly, after the processor acquires the display content and the brightness level of the display unit, gray scale statistics is further performed on the acquired display content to obtain gray scale distribution of the display content, namely, the power consumption of the display unit can be obtained through a pre-constructed power consumption model of the display unit according to the gray scale distribution and the brightness level prediction and is recorded as the display power consumption.
At 250, the processor obtains a refresh frequency of the drive unit and predicts a drive power consumption of the drive unit from the refresh frequency via a drive unit power consumption model.
In addition, the power consumption model of the driving unit in the application is constructed by taking the refresh frequency as a power consumption parameter, and correspondingly, when power consumption detection is triggered, the processor needs to acquire the refresh frequency of the driving unit. For example, the processor may directly obtain the refresh frequency of the driving unit from a data interface provided by the driving unit.
As described above, in the embodiment of the present application, a power consumption model of the driving unit describing a correlation between the refresh frequency and the power consumption of the driving unit is constructed in advance. Correspondingly, after the processor obtains the refresh frequency of the drive unit, the power consumption of the drive unit can be predicted according to the refresh frequency through the pre-constructed power consumption model of the drive unit and is recorded as the drive power consumption.
At 260, the processor obtains screen power consumption of the screen component based on the display power consumption and the driving power consumption.
As above, the display power consumption of the display unit and the driving power consumption of the driving unit have been obtained, at this time, the processor may obtain the power consumption of the screen component according to the display power consumption and the driving power consumption, and may be represented as:
P=P1+P2
wherein P represents the screen power consumption of the screen assembly, P1Representing the display power consumption, P, of the display unit2Represents the driving power consumption of the driving unit.
At 270, the processor transmits the screen power consumption to the external server, so that the external server performs big data analysis according to the preset analysis strategy and the screen power consumption to obtain an analysis result.
At 280, the processor receives the analysis results returned by the external server.
In the embodiment of the application, after the screen power consumption of the screen component is obtained through prediction, the screen power consumption can be further utilized to perform big data analysis.
For example, referring to fig. 6, the external server is a server providing big data analysis service, and is denoted as an analysis server. The network access equipment provides network access service for the electronic equipment, so that the electronic equipment can be accessed to the Internet through the network access equipment. The processor also transmits the predicted screen power consumption to an analysis server on the other side of the internet via the network access device after predicting the screen power consumption of the screen. The processor may perform transmission of the screen power consumption after predicting the screen power consumption each time, may perform transmission of the screen power consumption at intervals of a preset time period, and may perform transmission of the screen power consumption each time the screen power consumption of the first preset number is predicted.
On the other hand, the analysis server is configured with an analysis policy, where the analysis policy is used to describe how to perform big data analysis on the screen power consumption from the processor, and may be specifically configured by a person of ordinary skill in the art according to actual needs, and the embodiment of the present application is not particularly limited. For example, an analysis strategy for analyzing the power consumption behavior of the user may be configured. Correspondingly, when the received screen power consumption reaches a second preset amount (namely the minimum data amount required by the analysis server for performing big data analysis according to the analysis strategy), the analysis server performs big data analysis by using the screen power consumption of the second preset amount including the screen power consumption of the current transmission of the processor according to the configured analysis strategy, so as to obtain a corresponding analysis result. After the analysis result is assigned, the analysis server returns the analysis result to the processor.
Accordingly, the processor receives the analysis result returned by the analysis server.
In addition, after receiving the analysis result returned by the analysis server, the processor outputs the analysis result according to the configured output strategy. The configuration of the output strategy is not particularly limited, and can be configured by those skilled in the art according to actual needs, including but not limited to audio, video, text, image and other output modes.
In addition, the processor may perform a targeted optimization process according to the analysis result, for example, when the analysis result reflects the power consumption behavior of the user, the processor may perform a targeted power consumption optimization according to the analysis result.
It should be noted that, in the embodiment of the present application, values of the preset time interval, the first preset number, and the second preset number are not specifically limited, and may be configured by a person skilled in the art according to actual needs.
Referring to fig. 8, in order to better perform the power consumption detection method provided in the present application, the present application further provides a power consumption detection apparatus 300, where the power consumption detection apparatus 300 is integrated in a processor of an electronic device, as shown in fig. 8, the power consumption detection apparatus 300 may include:
an obtaining module 310, configured to obtain display content and a brightness level of a display unit;
the first prediction module 320 is configured to obtain gray scale distribution of display content, and predict display power consumption of the display unit according to the gray scale distribution and the brightness level through a pre-constructed power consumption model of the display unit;
the second prediction module 330 is configured to obtain a refresh frequency of the driving unit, and predict driving power consumption of the driving unit according to the refresh frequency through a pre-constructed driving unit power consumption model; and
and the fusion module 340 is configured to obtain the screen power consumption of the screen component according to the display power consumption and the driving power consumption.
Optionally, in an embodiment, the gray scale distribution includes a gray scale distribution of a red channel, a gray scale distribution of a green channel, and a gray scale distribution of a blue channel, and when the display power consumption of the display unit is predicted according to the gray scale distribution and the brightness level by the pre-constructed power consumption model of the display unit, the first prediction module 320 is configured to:
and in the display unit power consumption model, determining the display power consumption of the display unit according to the gray scale distribution of the red channel, the gray scale distribution of the green channel, the gray scale distribution of the blue channel and the brightness level.
Optionally, in an embodiment, the display unit power consumption model includes:
Figure BDA0002812582220000181
wherein P represents the display power consumption of the display unit,
Figure BDA0002812582220000182
representing the gray level distribution of the red channel, gRiRepresenting the i-th gray level, x, of the red channeliIndicates the number of i-th gray levels of the red channel, gRmax represents the maximum gray level of the red channel,
Figure BDA0002812582220000191
representing the gray level distribution of the green channel, gGjRepresenting the j-th gray level, y, of the green channeljRepresenting the number of gray levels of the j-th level of the green channel,
Figure BDA0002812582220000192
representing the gray scale distribution of the blue channel, gBkRepresenting the kth gray level, z, of the blue channelkDenotes the number of kth gray levels of the blue channel, L denotes a brightness level, U denotes a preset operating voltage of the display unit, and Lmax denotes a maximum brightness level of the display unit.
Optionally, in an embodiment, when obtaining the gray scale distribution of the display content, the first prediction module 320 is configured to:
transmitting the display content to a preset coprocessor, and instructing the preset coprocessor to carry out gray scale statistics on the display content to obtain gray scale distribution;
and receiving gray scale distribution returned by the preset coprocessor.
Optionally, in an embodiment, the driving unit power consumption model includes a correspondence between a refresh frequency and a driving power consumption.
Optionally, in an embodiment, the power consumption detection apparatus 300 provided in the present application further includes a modification module, before acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption, configured to:
acquiring display parameters of a display unit, and determining power consumption correction coefficients corresponding to the display parameters;
correcting the display power consumption according to the power consumption correction coefficient to obtain the corrected display power consumption;
when the screen power consumption of the screen component is obtained according to the display power consumption and the driving power consumption, the fusion module 340 is configured to:
and acquiring the screen power consumption of the screen component according to the corrected display power consumption and the driving power consumption.
Optionally, in an embodiment, the power consumption detection apparatus 300 provided in the present application further includes an analysis module, after acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption, configured to:
transmitting the screen power consumption to an external server, so that the external server performs big data analysis according to the preset analysis strategy and the screen power consumption to obtain an analysis result;
and receiving an analysis result returned by the external server.
Optionally, in an embodiment, the power consumption detection apparatus 300 provided by the present application further includes a modeling module, before acquiring the display content and the brightness level of the display unit, configured to:
acquiring a pre-constructed general display unit power consumption model and a pre-constructed general driving unit power consumption model;
performing adaptive processing on the general display unit power consumption model according to the power consumption characteristics of the display unit to obtain a display unit power consumption model;
and performing adaptive processing on the power consumption model of the general driving unit according to the power consumption characteristics of the driving unit to obtain the power consumption model of the driving unit.
It should be noted that the power consumption detection apparatus 300 provided in this embodiment of the present application and the power consumption detection method in the foregoing embodiment belong to the same concept, and specific implementation processes thereof are detailed in the foregoing related embodiments, and are not described herein again.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is used to execute the steps in the power consumption detection method provided in this embodiment by calling a computer program stored in the memory.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device 400 according to an embodiment of the present disclosure.
The electronic device 400 may include components such as a network interface 410, memory 420, processor 430, and screen assembly. Those skilled in the art will appreciate that the configuration of electronic device 400 shown in FIG. 9 does not constitute a limitation of electronic device 400, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The network interface 410 may be used to make network connections between devices.
The screen assembly 440 includes a display unit including devices for displaying such as a display panel (e.g., an LCD display panel, an OLED display panel, etc.) and a driving unit including devices for driving the display of the display unit such as a driving chip
Memory 420 may be used to store computer programs and data. Memory 420 stores computer programs having executable code embodied therein. The computer program may be divided into various functional modules. The processor 430 executes various functional applications and data processing by executing computer programs stored in the memory 420.
The processor 430 is a control center of the electronic device 400, connects various parts of the entire electronic device 400 using various interfaces and lines, and performs various functions of the electronic device 400 and processes data by running or executing computer programs stored in the memory 420 and calling data stored in the memory 420, thereby performing overall control of the electronic device 400.
In the embodiment of the present application, the processor 430 in the electronic device 400 loads the executable code corresponding to one or more computer programs into the memory 420 according to the following instructions, and is executed by the processor 430 to perform the following steps:
acquiring display content and brightness level of a display unit;
acquiring gray scale distribution of display content, and predicting display power consumption of a display unit according to the gray scale distribution and brightness level through a pre-constructed power consumption model of the display unit;
obtaining the refreshing frequency of the driving unit, and predicting the driving power consumption of the driving unit according to the refreshing frequency through a pre-constructed driving unit power consumption model;
the screen power consumption of the screen assembly 440 is acquired according to the display power consumption and the driving power consumption.
Optionally, in an embodiment, the gray scale distribution includes a gray scale distribution of a red channel, a gray scale distribution of a green channel, and a gray scale distribution of a blue channel, and when the display power consumption of the display unit is predicted according to the gray scale distribution and the brightness level by a pre-constructed power consumption model of the display unit, the processor 430 is configured to perform:
and in the display unit power consumption model, determining the display power consumption of the display unit according to the gray scale distribution of the red channel, the gray scale distribution of the green channel, the gray scale distribution of the blue channel and the brightness level.
Optionally, in an embodiment, the display unit power consumption model includes:
Figure BDA0002812582220000211
wherein P represents the display power consumption of the display unit,
Figure BDA0002812582220000212
representing the gray level distribution of the red channel, gRiRepresenting the i-th gray level, x, of the red channeliIndicates the number of i-th gray levels of the red channel, gRmax represents the maximum gray level of the red channel,
Figure BDA0002812582220000213
representing the gray level distribution of the green channel, gGjRepresenting the j-th gray level, y, of the green channeljRepresenting the number of gray levels of the j-th level of the green channel,
Figure BDA0002812582220000214
representing the gray scale distribution of the blue channel, gBkRepresenting the kth gray level, z, of the blue channelkDenotes the number of kth gray levels of the blue channel, L denotes a brightness level, U denotes a preset operating voltage of the display unit, and Lmax denotes a maximum brightness level of the display unit.
Optionally, in an embodiment, when obtaining the gray scale distribution of the display content, the processor 430 is configured to perform:
transmitting the display content to a preset coprocessor, and instructing the preset coprocessor to carry out gray scale statistics on the display content to obtain gray scale distribution;
and receiving gray scale distribution returned by the preset coprocessor.
Optionally, in an embodiment, the driving unit power consumption model includes a one-to-one correspondence relationship between different refresh frequencies and driving power consumption.
Optionally, in an embodiment, before acquiring the screen power consumption of the screen assembly 440 according to the display power consumption and the driving power consumption, the processor 430 is further configured to:
acquiring display parameters of a display unit, and determining power consumption correction coefficients corresponding to the display parameters;
correcting the display power consumption according to the power consumption correction coefficient to obtain the corrected display power consumption;
in acquiring the screen power consumption of the screen assembly 440 according to the display power consumption and the driving power consumption, the processor 430 is configured to perform:
the screen power consumption of the screen assembly 440 is acquired according to the corrected display power consumption and driving power consumption.
Optionally, in an embodiment, after acquiring the screen power consumption of the screen assembly 440 according to the display power consumption and the driving power consumption, the processor 430 is further configured to:
transmitting the screen power consumption to a preset analysis server, so that the analysis server performs big data analysis according to the preset analysis strategy and the screen power consumption to obtain an analysis result;
and receiving an analysis result returned by the analysis server and outputting the analysis result.
Optionally, in an embodiment, before acquiring the display content and the brightness level of the display unit, the processor 430 is configured to perform:
acquiring a pre-constructed general display unit power consumption model and a pre-constructed general driving unit power consumption model;
performing adaptive processing on the general display unit power consumption model according to the power consumption characteristics of the display unit to obtain a display unit power consumption model;
and performing adaptive processing on the power consumption model of the general driving unit according to the power consumption characteristics of the driving unit to obtain the power consumption model of the driving unit.
It should be noted that the electronic device 400 provided in the embodiment of the present application and the power consumption detection method in the foregoing embodiment belong to the same concept, and specific implementation processes thereof are detailed in the foregoing related embodiments and are not described herein again.
The present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program stored in the storage medium is executed on a processor of an electronic device provided in an embodiment of the present application, the processor of the electronic device is caused to perform any of the steps in the above power consumption detection method for the electronic device. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above detailed description is provided for a power consumption detection method, a power consumption detection device, a storage medium, and an electronic device, and a specific example is applied in the detailed description to explain the principles and embodiments of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A power consumption detection method implemented in a processor of an electronic device, a screen component of the electronic device including a display unit and a driving unit, the power consumption detection method comprising:
acquiring display content and brightness level of the display unit;
acquiring gray scale distribution of the display content, and predicting display power consumption of the display unit according to the gray scale distribution and the brightness level through a pre-constructed power consumption model of the display unit;
obtaining the refresh frequency of the drive unit, and predicting the drive power consumption of the drive unit according to the refresh frequency through a pre-constructed drive unit power consumption model; and
and acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption.
2. The method according to claim 1, wherein the gray scale distribution comprises a gray scale distribution of a red channel, a gray scale distribution of a green channel, and a gray scale distribution of a blue channel, and the predicting the display power consumption of the display unit according to the gray scale distribution and the brightness level by a pre-constructed power consumption model of the display unit comprises:
and in the display unit power consumption model, determining the display power consumption according to the gray scale distribution of the red channel, the gray scale distribution of the green channel, the gray scale distribution of the blue channel and the brightness level.
3. The power consumption detection method of claim 2, wherein the display unit power consumption model comprises:
Figure FDA0002812582210000011
wherein P represents the display power consumption,
Figure FDA0002812582210000012
representing the gray level distribution of the red channel, gRiRepresenting the i-th gray level, x, of the red channeliIndicates the number of i-th gray levels of the red channel, gRmax represents the maximum gray level of the red channel,
Figure FDA0002812582210000013
representing the gray-scale distribution of the green channel, gGjRepresenting the j-th gray level, y, of the green channeljRepresenting the number of gray levels of the j-th level of the green channel,
Figure FDA0002812582210000014
representing the gray scale distribution of the blue channel, gBkRepresents a blue channelk-level gray scale, zkThe number of kth-level gray levels of a blue channel is represented, L represents the brightness level, U represents a preset operating voltage of the display unit, and Lmax represents a maximum brightness level of the display unit.
4. The method for detecting power consumption according to claim 1, wherein the obtaining of the gray scale distribution of the display content comprises:
transmitting the display content to a preset coprocessor, and instructing the preset coprocessor to carry out gray scale statistics on the display content to obtain gray scale distribution;
and receiving the gray scale distribution returned by the preset coprocessor.
5. The power consumption detection method according to claim 1, wherein the drive unit power consumption model includes a correspondence of a refresh frequency and a drive power consumption.
6. The power consumption detection method according to any one of claims 1 to 5, wherein before acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption, the method further comprises:
acquiring display parameters of the display unit, and determining power consumption correction coefficients corresponding to the display parameters;
correcting the display power consumption according to the power consumption correction coefficient to obtain the corrected display power consumption;
the acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption includes:
and acquiring the screen power consumption of the screen component according to the corrected display power consumption and the driving power consumption.
7. The power consumption detection method according to any one of claims 1 to 5, further comprising:
transmitting the screen power consumption to an external server, so that the external server performs big data analysis according to the screen power consumption according to a preset analysis strategy to obtain an analysis result;
and receiving the analysis result returned by the external server.
8. The power consumption detection method according to any one of claims 1 to 5, wherein before the obtaining of the display content and the brightness level of the display unit, the method further comprises:
acquiring a pre-constructed general display unit power consumption model and a pre-constructed general driving unit power consumption model;
performing adaptive processing on the general display unit power consumption model according to the power consumption characteristics of the display unit to obtain the display unit power consumption model;
and performing adaptive processing on the power consumption model of the general driving unit according to the power consumption characteristics of the driving unit to obtain the power consumption model of the driving unit.
9. A power consumption detection apparatus applied to an electronic device, wherein a screen assembly of the electronic device includes a display unit and a driving unit, the power consumption detection apparatus comprising:
the acquisition module is used for acquiring the display content and the brightness level of the display unit;
the first prediction module is used for acquiring the gray scale distribution of the display content and predicting the display power consumption of the display unit according to the gray scale distribution and the brightness level through a pre-constructed power consumption model of the display unit;
the second prediction module is used for acquiring the refresh frequency of the drive unit and predicting the drive power consumption of the drive unit according to the refresh frequency through a pre-constructed drive unit power consumption model; and
and the fusion module is used for acquiring the screen power consumption of the screen component according to the display power consumption and the driving power consumption.
10. A storage medium having stored thereon a computer program for performing the method of power consumption detection according to any of claims 1-8 when the computer program is loaded by a processor of an electronic device.
11. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor executes the power consumption detection method according to any one of claims 1 to 8 by loading the computer program.
CN202011401035.8A 2020-12-02 2020-12-02 Power consumption detection method and device, storage medium and electronic equipment Withdrawn CN112433594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011401035.8A CN112433594A (en) 2020-12-02 2020-12-02 Power consumption detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011401035.8A CN112433594A (en) 2020-12-02 2020-12-02 Power consumption detection method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112433594A true CN112433594A (en) 2021-03-02

Family

ID=74691435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011401035.8A Withdrawn CN112433594A (en) 2020-12-02 2020-12-02 Power consumption detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112433594A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114627955A (en) * 2022-05-06 2022-06-14 长鑫存储技术有限公司 Power consumption testing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101223617B1 (en) * 2012-01-11 2013-01-17 (주)그립 Apparatus and method for measuring the power consumption of the display
CN103080869A (en) * 2010-08-31 2013-05-01 惠普发展公司,有限责任合伙企业 Determination of display device power consumption
CN103869926A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Power saving method and electronic device
CN105096788A (en) * 2015-09-24 2015-11-25 维沃移动通信有限公司 Electric power consumption detection method and electric power consumption detection device for OLED display screen
CN108564928A (en) * 2018-03-15 2018-09-21 京东方科技集团股份有限公司 Display device and its display drive method
US20180350297A1 (en) * 2017-05-31 2018-12-06 Apple Inc. Oled display power modeling
CN109739333A (en) * 2017-10-31 2019-05-10 上海和辉光电有限公司 A kind of method and apparatus of dynamic adjustment screen refresh frequency
CN110543403A (en) * 2019-09-09 2019-12-06 广州华多网络科技有限公司 power consumption evaluation method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103080869A (en) * 2010-08-31 2013-05-01 惠普发展公司,有限责任合伙企业 Determination of display device power consumption
KR101223617B1 (en) * 2012-01-11 2013-01-17 (주)그립 Apparatus and method for measuring the power consumption of the display
CN103869926A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Power saving method and electronic device
CN105096788A (en) * 2015-09-24 2015-11-25 维沃移动通信有限公司 Electric power consumption detection method and electric power consumption detection device for OLED display screen
US20180350297A1 (en) * 2017-05-31 2018-12-06 Apple Inc. Oled display power modeling
CN109739333A (en) * 2017-10-31 2019-05-10 上海和辉光电有限公司 A kind of method and apparatus of dynamic adjustment screen refresh frequency
CN108564928A (en) * 2018-03-15 2018-09-21 京东方科技集团股份有限公司 Display device and its display drive method
CN110543403A (en) * 2019-09-09 2019-12-06 广州华多网络科技有限公司 power consumption evaluation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114627955A (en) * 2022-05-06 2022-06-14 长鑫存储技术有限公司 Power consumption testing method, device, equipment and storage medium
CN114627955B (en) * 2022-05-06 2022-10-28 长鑫存储技术有限公司 Power consumption testing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3561765B1 (en) Dynamic tone mapping method, mobile terminal, and computer readable storage medium
CN111816139B (en) Screen refresh rate switching method and electronic equipment
US20200227010A1 (en) Electronic display partial image frame update systems and methods
CN111158455A (en) Power consumption control method and device, storage medium and terminal
US20160260390A1 (en) Backlight brightness adjusting method and device, and liquid crystal display device
CN111210778A (en) Method and device for modulating backlight source driving signal
US20140267325A1 (en) Method for detecting display properties
US20200064902A1 (en) Electronic display reduced blanking duration systems and methods
CN114038370B (en) Display parameter adjustment method and device, storage medium and display equipment
CN112433594A (en) Power consumption detection method and device, storage medium and electronic equipment
US10713748B2 (en) Display pipeline memory bandwidth allocation systems and methods
CN114677975A (en) Picture adjusting method and device, electronic equipment and computer readable storage medium
WO2024139533A1 (en) Data processing method and apparatus, and computer device and computer-readable storage medium
CN112672405A (en) Power consumption calculation method and device, storage medium, electronic device and server
CN109754755B (en) Power supply method and device for display panel and display equipment
CN115421062A (en) Storage battery monitoring method and system, electronic equipment and storage medium
CN111367604A (en) Processing method and device for file display, storage medium and terminal
CN107748682B (en) Background application control method and device, storage medium and electronic equipment
CN114220399B (en) Backlight value control method and device, storage medium and electronic equipment
CN113066068B (en) Image evaluation method and device
CN117409690A (en) Picture testing method, device, medium and equipment of display terminal
CN118212874A (en) Display processing method, device, equipment and medium
KR20100074103A (en) Video enhancement and display power management
CN114596824A (en) Dimming method and device of display panel, storage medium and terminal equipment
CN117877406A (en) Control method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210302