patents.google.com

CN110543403A - power consumption evaluation method and device - Google Patents

  • ️Fri Dec 06 2019

Detailed Description

reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

Referring to fig. 1, an embodiment of the present application provides a system architecture, including:

the terminal 1 and the server 2, and the terminal 1 and the server 2 can establish network connection in a communication network.

The terminal 1 may have installed therein applications that run with different factors, which consume different power consumption of the terminal 1.

The application may be a mobile terminal application, a video playing application, a game application, or the like, and the video playing application may be a video player, a video live broadcast application, or other applications in a video scene, or the like.

In this embodiment, a video playback video is taken as an example for explanation. For the video playing application, the factors influencing the power consumption of the video playing application on the terminal include at least one factor of a video frame rate, a video resolution, a video decoding mode, the screen brightness of the terminal 1, the network condition of the terminal 1, the switching condition of a positioning module of the terminal 1, the current charging condition of the terminal 1 or the model information of the terminal 1. Of course, when other types of applications are applied, the factor may also be a factor of power consumption of the terminal by the other applications.

When the terminal 1 runs the video playing application with different factors, the terminal 1 may collect at least one factor used by the terminal 1 when the terminal runs the application, and obtain a factor set corresponding to the terminal 1. When the video playing application is run on the terminal 1 by different factors, the video playing application consumes different power consumption of the terminal 1 in a unit time period.

The factor currently used by the terminal 1 is referred to as a second factor. The at least one second factor collected by the terminal 1 is a factor that may have an influence on the power consumption of the terminal 1.

the terminal 1 also collects the amount of power consumed by it in running the application, and for convenience of explanation, the collected amount of power is referred to as a second amount of power. The second power consumption amount may be a power consumption amount consumed by the terminal 1 to operate the application for a unit time period, or a total power consumption amount consumed by the terminal 1 to operate the application once.

The terminal 1 may establish a network connection with the server 2, over which the set of factors and the second amount of power consumption of the terminal 1 are transmitted to the server 1.

the server 2 receives the factor set and the second power consumption of the terminal 1, and stores the factor set and the second power consumption of the terminal 1 in correspondence with each other in the correspondence relationship between the factor set and the second power consumption of the terminal.

the server 2 may establish a network connection with the terminals 1 of different users, receive the factor sets and the second power consumption of the terminals sent by the terminals 1 of different users, and correspondingly store the corresponding relationship between the factor sets and the second power consumption in the terminals.

Then, the server 2 may train a power consumption evaluation model based on a correspondence relationship between the factor set of the terminal and the second power consumption amount, so that the power consumption amount of the application consuming the terminal 1 in a unit time period when the terminal 1 runs the application with a certain factor can be evaluated based on the power consumption evaluation model. So that the technician can optimize the application based on the estimated amount of power consumption.

The time length of the unit time period is a preset time length. For example, the preset time period may be 10 minutes, 15 minutes, 20 minutes, or the like, and specific values of the preset time period are limited.

Optionally, the terminal 1 may be a mobile terminal, for example, a mobile phone or a tablet computer.

referring to fig. 2, an embodiment of the present application provides a method for power consumption evaluation, where the method includes:

step 201: and acquiring a first factor of the application to be evaluated, wherein the first factor is a factor influencing the power consumption of the terminal in the application to be evaluated.

The first factor may be a factor adjusted by the technician to the factors of the application to be evaluated. For example, assume that the application to be evaluated is a video application, and the adopted codec mode is a GPU rendering mode. The skilled person modifies the codec scheme to an H265 codec scheme. The first factor is the modified H265 codec by the technician.

Step 202: and calling a power consumption evaluation model, wherein the power consumption evaluation model is a nonlinear model, the independent variable of the power consumption evaluation module is a first factor, and the dependent variable of the power consumption evaluation model is the power consumption obtained based on the first factor.

Step 203: and determining a first power consumption consumed in the unit time period when the terminal runs the application to be evaluated by the first factor through the power consumption evaluation model according to the first factor.

In the embodiment of the application, a first factor of the application to be evaluated is obtained, and a first power consumption of the terminal in a unit time period when the terminal runs the application to be evaluated by the first factor is determined through a power consumption evaluation model. Therefore, the power consumption corresponding to the terminal running application with different factors can be estimated through the power consumption estimation model, and technicians can optimize the application based on the power consumption.

referring to fig. 3, an embodiment of the present application provides a method for power consumption assessment, where the method may apply to the network architecture shown in fig. 1, and the method may be implemented by a server in the network architecture, and includes:

step 301: and receiving the factor sets and the second power consumption of the m terminals, wherein the factor sets of the terminals comprise at least one second factor adopted by the terminal in running the application to be evaluated, and the second power consumption is the power consumption consumed by the terminal in running the application to be evaluated by the factor sets.

The terminal can run the application to be evaluated, and the terminal can acquire at least one second factor adopted by running the application and acquire a second power consumption consumed by running the application when running the application.

The application to be evaluated may be a video playing application or a game application, etc. Taking the application to be evaluated as the video playing application as an example, the second factor in the factor set of the terminal includes at least one of a video frame rate, a video resolution, a video decoding mode, screen brightness of the terminal, a network condition of the terminal, a positioning system switch condition of the terminal, a current charging condition of the terminal, or model information of the terminal, which is adopted by the application to be evaluated.

The video playing application can be a video player or a video live application, etc. When the video playing application is a video player, the video player plays a video file, and the video file stores contents such as a video frame rate, a video resolution, a video decoding mode and the like. The terminal can read the contents such as video frame rate, video resolution, video decoding mode and the like from the video file played by the video player. When the video playing application is a live video application, the configuration items of the live video application include contents such as a video frame rate, a video resolution, a video decoding mode and the like. The terminal can directly read the contents such as video frame rate, video resolution, video decoding mode and the like from the configuration items of the video live broadcast application.

the video decoding method may be one of a hardware encoding and decoding method, a Graphics Processing Unit (GPU) rendering method, an H264 encoding and decoding method, or an H265 encoding and decoding method. In this step, the video decoding scheme may be represented by a quantized value, for example, a hardware codec scheme may be represented by a quantized value 0, a GPU rendering scheme may be represented by a quantized value 1, an H264 codec scheme may be represented by a quantized value 2, and an H265 codec scheme may be represented by a quantized value 3. Of course, the above quantized values are only an example, and other quantized values may be used to represent the four video decoding methods, which are not listed here.

The terminal can directly acquire at least one of screen brightness, network conditions, positioning system switch conditions, current charging conditions or model information and the like.

In this step, the quantized value may be used to indicate whether the terminal is currently connected to the communication network. For example, a quantized value of 0 indicates that the terminal is not currently connected to the communication network, and a quantized value of 1 indicates that the terminal is currently connected to the communication network. Alternatively, a quantized value of 1 is used to indicate that the terminal is not currently connected to the communication network, and a quantized value of 0 is used to indicate that the terminal is currently connected to the communication network.

In the case of connecting to a communication network, the network condition of the terminal may further include a connected communication network type, and the communication network type may be a wifi, 4G, or 5G network type. In this step, a quantized value may be used to indicate whether the terminal is currently connected to the communication network. For example, a quantized value of 0 indicates that the type of the communication network to which the terminal is currently connected is wifi, and a quantized value of 1 indicates that the type of the communication network to which the terminal is currently connected is 4G. The quantized value of 3 is used to indicate that the type of the communication network to which the terminal is currently connected is 5G.

The positioning system on-off condition of the terminal refers to whether the positioning system of the terminal is currently on or off, and in this step, a quantized value may be used to indicate whether the positioning system of the terminal is currently on or off. For example, the quantized value 0 indicates that the positioning system of the terminal is currently on, and the quantized value 1 indicates that the positioning system of the terminal is currently off. Alternatively, the quantized value 1 indicates that the positioning system of the terminal is currently on, and the quantized value 0 indicates that the positioning system of the terminal is currently off.

The current charging condition of the terminal means whether the terminal is currently connected to a power supply for charging, and in this step, a quantization value can be used to represent whether the terminal is currently connected to the power supply for charging. For example, a quantized value of 0 indicates that the terminal is not currently connected to the power supply for charging, and a quantized value of 1 indicates that the terminal is currently connected to the power supply for charging. Alternatively, the quantized value 1 is used to indicate that the terminal is not currently connected to the power supply for charging, and the quantized value 0 is used to indicate that the terminal is connected to the power supply for charging.

The second power consumption of the terminal may be a power consumption consumed by the terminal to run the application to be evaluated in a unit time period, or the second power consumption of the terminal may be a total power consumption consumed by the terminal to run the application to be evaluated once.

The terminal can read the current power consumption of the terminal when the application to be evaluated starts to run, then reads the current power consumption at intervals of a preset time length, and calculates the power consumption consumed by the terminal to run the application to be evaluated in a unit time period according to the current read power consumption and the last read power consumption. The terminal then transmits the set of factors and the second amount of power consumption for the terminal to the server. Or,

The terminal can read the current power consumption of the terminal when the application to be evaluated starts to run, then read the current power consumption when the application to be evaluated stops running, and calculate the power consumption consumed by the terminal when the application to be evaluated runs for one time according to the power consumption read twice. The terminal then transmits the set of factors and the second amount of power consumption for the terminal to the server.

And the server receives the factor set and the second power consumption sent by the terminal, and correspondingly stores the factor set and the second power consumption of the terminal in the corresponding relation between the factor set and the second power consumption of the terminal.

For the other user's terminals, the other user's terminals also send the set of factors and the second amount of power consumption to the server in the manner described above. And the server receives the factor set and the second power consumption sent by the terminal of the other user, and correspondingly stores the factor set and the second power consumption of the terminal of the other user in the corresponding relation between the factor set and the second power consumption of the terminal.

Step 302: and training a power consumption evaluation model according to the factor set of the m terminals and the second power consumption.

The power consumption evaluation model can be a nonlinear model, and the nonlinear model takes factors adopted by the terminal to run the application to be evaluated as independent variables and takes power consumption consumed by the terminal to run the application to be evaluated as dependent variables.

the power consumption assessment model may be a deep learning network comprising one or more layers of networks.

In this step, it can be realized by the following operations 3021 to 3022. The operations of 3021 to 3022 are:

3021: and adjusting network parameters of the power consumption evaluation model according to the factor set of the m terminals, wherein the network parameters comprise weight and bias.

In this step, for the jth terminal of the m terminals, the second factors included in the factor set of the jth terminal are combined into a factor vector. Assume that the j-th terminal's set of factors includes n second factors, which are x1j, x2j, … …, xnj, respectively. The n second factors constitute the factor vector of the terminal as [ x1j, x2j, … …, xnj ]. And constructing a power consumption model of the jth terminal according to the factor vector of the jth terminal and the second power consumption.

The first formula is:

In the first formula, wij is a weight vector of the jth terminal, where the weight vector includes a weight corresponding to each second factor in the factor set of the jth terminal, and the weight corresponding to each second factor is an unknown quantity. The weight vector wij is [ w1j, w2j, … …, wnj ]. b is the offset, and in this case, the offset b is also unknown. yj is the second power consumption of the jth terminal.

and constructing a power consumption model corresponding to each terminal in the m terminals according to the above manner, and forming the power consumption model of each terminal into a power consumption evaluation model of the m terminals, namely the power consumption evaluation model of the m terminals shown in the following second formula.

the second formula is:

after the power consumption evaluation models of the m terminals are constructed, the weight vector wij and the offset b corresponding to each terminal need to be solved. In this step, a deep learning network may be used to solve the weight vector wij and the offset b corresponding to each terminal, and the solving process may be:

(1): the deep learning network initializes the initial value of the weight vector wij and the initial value of the bias b corresponding to each terminal.

The deep learning network may set an initial value of the weight vector wij corresponding to each terminal and an initial value of the bias b to preset values. Assuming that the preset value is 1, each element in the weight vector wij corresponding to each terminal is 1, and the bias b is also 1.

(2): and the deep learning network acquires the third power consumption of each terminal through the second formula according to the factor vector of each terminal.

(3): and the deep learning network calculates the difference between the second power consumption and the third power consumption of each terminal to obtain the power consumption difference corresponding to each terminal.

(4): and (3) when the power consumption difference value which is greater than or equal to the preset threshold value exists in the power consumption difference value corresponding to each terminal, the deep learning network adjusts the value of the weight vector wij and the value of the bias b corresponding to each terminal according to the difference value of each terminal, and the step (2) is executed.

(5): and when the power consumption difference value of each terminal is smaller than a preset threshold value, forming a weight matrix by the weight vector of each terminal, taking the weight matrix as the weight of the power consumption evaluation model, and taking the bias b as the bias of the power consumption evaluation model.

3022: and generating a power consumption evaluation model with the first factor as an independent variable and the first power consumption as a dependent variable according to the weight of the power consumption evaluation model and the bias.

The constructed power consumption evaluation model may be represented by the following third formula. Of course, the following third formula is only an example of a power consumption evaluation model, and may be in other forms, which are not listed here.

The third formula is:

in the third formula, the weight matrix is the weight of the power consumption evaluation model, and b is the bias of the power consumption evaluation model

after the power consumption evaluation model is constructed, the power consumption evaluation model can be used for evaluating the power consumption consumed when the terminal uses a certain factor to run the application to be evaluated in a unit time period. For convenience of explanation, this factor is referred to as the first factor.

Step 303: and acquiring a first factor of the application to be evaluated, wherein the first factor is a factor influencing the power consumption of the terminal in the application to be evaluated.

the first factor may be a factor adjusted by the technician to the factors of the application to be evaluated. For example, assume that the application to be evaluated is a video application, and the adopted codec mode is a GPU rendering mode. The technician modifies the GPU rendering mode of the application to be evaluated into an H265 coding and decoding mode. The first factor is the modified H265 codec by the technician. A technician needs to evaluate the first power consumption of the terminal and the H265 codec mode during operation to determine whether the modified H265 codec mode affects the application to be evaluated to reduce the consumed power consumption or increase the consumed power consumption.

In this step, the technician may enter certain first factors when they need to evaluate them. Accordingly, a first factor of an input is received.

Step 304: and calling a power consumption evaluation model, and acquiring a first power consumption output by the terminal in a unit time period by running the application to be evaluated by a first factor through the power consumption evaluation model.

In this step, the first factor is input as an independent variable to the power consumption estimation model, and the first power consumption amount is calculated by the power consumption estimation model.

In the embodiment of the application, a large number of second factors and second power consumption used by the terminal to run the application are collected, and a power consumption evaluation model with high precision can be constructed based on the large number of second factors and the second power consumption used by the terminal to run the application, so that the precision of the power consumption evaluated by the power consumption evaluation model can be improved. When a certain factor is evaluated, the factor is input into the power consumption evaluation model, and the power consumption corresponding to the factor can be obtained through the power consumption evaluation model, so that a technician can optimize the application based on the power consumption corresponding to the factor.

The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.

referring to fig. 4, an apparatus 400 for power consumption assessment is provided in an embodiment of the present application, where the apparatus 400 may be deployed in a server in any of the foregoing embodiments, and includes:

An obtaining module 401, configured to obtain a first factor of an application to be evaluated, where the first factor is a factor that affects terminal power consumption in the application to be evaluated;

A calling module 402, configured to call a power consumption evaluation model, where the power consumption evaluation model is a non-linear model, an independent variable of the power consumption evaluation model is the first factor, and a dependent variable of the power consumption evaluation model is power consumption obtained based on the first factor;

A determining module 403, configured to determine, according to the first factor, a first power consumption amount consumed by the terminal in a unit time period when the terminal runs the application to be evaluated with the first factor through the power consumption evaluation model.

Optionally, the apparatus 400 further includes:

The terminal comprises a collection module, a processing module and a power consumption module, wherein the collection module is used for collecting a factor set and a second power consumption of m terminals, the factor set of a terminal comprises at least one second factor adopted by the terminal in running the application to be evaluated, the second power consumption is the power consumption consumed by the terminal in running the application to be evaluated by using the factor set, and m is an integer larger than 1;

And the building module is used for building the power consumption evaluation model according to the factor sets of the m terminals and the second power consumption.

optionally, the building module includes:

The fitting unit is used for fitting the weight and the bias of the power consumption evaluation model according to the factor sets of the m terminals;

And the generating unit is used for generating a power consumption evaluation model which takes the first factor as an independent variable and the first power consumption as a dependent variable according to the weight and the bias.

Optionally, the application to be evaluated is a video playing application, and a second factor in the factor set of the terminal includes at least one of a video frame rate, a video resolution, a video decoding manner, screen brightness of the terminal, a network condition of the terminal, a positioning system switch condition of the terminal, a current charging condition of the terminal, or model information of the terminal, which is adopted by the application to be evaluated.

optionally, the second power consumption consumed when the terminal operates the application to be evaluated is the power consumption consumed when the terminal operates the application to be evaluated in a unit time period, or the power consumption consumed when the terminal operates the application to be evaluated once.

In the embodiment of the application, the obtaining module obtains a first factor of the application to be evaluated, and the determining module determines that the first power consumption of the terminal is consumed in a unit time period when the terminal runs the application to be evaluated by the first factor through the power consumption evaluation model. Therefore, the power consumption corresponding to the terminal running application with different factors can be estimated through the power consumption estimation model, and technicians can optimize the application based on the power consumption.

with regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Fig. 5 shows a block diagram of a terminal 500 according to an exemplary embodiment of the present invention. The terminal 500 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.

In general, the terminal 500 includes: a processor 501 and a memory 502.

The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.

memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 502 is used to store at least one instruction for execution by the processor 501 to implement the operations performed by the terminal in step 201 of the method embodiments of the present application.

In some embodiments, the terminal 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.

The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.

The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, providing the front panel of the terminal 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the terminal 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.

The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.

Audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing, or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 507 may also include a headphone jack.

The positioning component 508 is used for positioning the current geographic Location of the terminal 500 for navigation or LBS (Location Based Service). The Positioning component 508 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.

Power supply 509 is used to power the various components in terminal 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.

In some embodiments, terminal 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.

The acceleration sensor 511 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.

The gyro sensor 512 may detect a body direction and a rotation angle of the terminal 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the terminal 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.

The pressure sensor 513 may be disposed on a side bezel of the terminal 500 and/or an underlying layer of the touch display screen 505. When the pressure sensor 513 is disposed on the side frame of the terminal 500, a user's holding signal of the terminal 500 may be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.

The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be provided on the front, back, or side of the terminal 500. When a physical button or a vendor Logo is provided on the terminal 500, the fingerprint sensor 514 may be integrated with the physical button or the vendor Logo.

The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.

a proximity sensor 516, also referred to as a distance sensor, is typically disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front surface of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 gradually decreases, the processor 501 controls the touch display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 becomes gradually larger, the processor 501 controls the touch display screen 505 to switch from the screen-rest state to the screen-on state.

those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of terminal 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.

fig. 6 is a block diagram illustrating an apparatus 600 for power consumption assessment in accordance with an example embodiment. For example, the apparatus 600 may be provided as a server. Referring to fig. 6, the apparatus 600 includes a processing component 622 that further includes one or more processors and memory resources, represented by memory 632, for storing instructions, such as application programs, that are executable by the processing component 622. The application programs stored in memory 632 may include one or more modules that each correspond to a set of instructions. Further, the processing component 622 is configured to execute instructions to perform the method of power consumption evaluation described above.

The apparatus 600 may also include a power component 626 configured to perform power management of the apparatus 600, a wired or wireless network interface 650 configured to connect the apparatus 600 to a network, and an input/output (I/O) interface 658. The apparatus 600 may operate based on an operating system stored in the memory 632, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.

Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.

It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.