CN116627239A - Power consumption control method, power consumption control device, terminal and storage medium - Google Patents

Power consumption control method, power consumption control device, terminal and storage medium Download PDF

Info

Publication number
CN116627239A
CN116627239A CN202210124720.3A CN202210124720A CN116627239A CN 116627239 A CN116627239 A CN 116627239A CN 202210124720 A CN202210124720 A CN 202210124720A CN 116627239 A CN116627239 A CN 116627239A
Authority
CN
China
Prior art keywords
power consumption
electric quantity
terminal equipment
consumption level
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210124720.3A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210124720.3A priority Critical patent/CN116627239A/en
Publication of CN116627239A publication Critical patent/CN116627239A/en
Pending legal-status Critical Current

Links

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/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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

Landscapes

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

Abstract

The disclosure relates to a power consumption control method, a power consumption control device, a terminal and a storage medium. The power consumption control method comprises the following steps: determining the function application executed under the current running state of the terminal equipment; determining a power consumption level corresponding to the function application based on the function application; and if the determined power consumption level reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity cruising state of the terminal equipment and the execution requirement of the executed function application. In the power consumption control, when the determined power consumption level reaches the preset power consumption level, the power consumption condition of the current terminal equipment function application, the current electric quantity endurance state and the application execution condition of the current function application can be comprehensively considered to determine how to perform specific power consumption control, so that the power consumption can be adjusted on the whole, the use duration of the terminal equipment can be prolonged as much as possible, and the power consumption loss and the waste are reduced.

Description

Power consumption control method, power consumption control device, terminal and storage medium
Technical Field
The disclosure relates to the field of electronic technology, and in particular, to a power consumption management and control method, a power consumption management and control device, a terminal and a storage medium.
Background
With the rapid development of electronic technology, many electronic products have more and more application functions. Electronic devices are also used more and more frequently. This also places an increasing demand on the power of the electronic devices, resulting in power consumption problems becoming more and more pronounced. Power consumption issues run from the background to the public's line of sight and are becoming more and more of a concern. How to reasonably control the power consumption is getting more and more important.
Disclosure of Invention
The disclosure provides a power consumption control method, a power consumption control device, a terminal and a storage medium.
In a first aspect of an embodiment of the present disclosure, a method for controlling power consumption is provided, including:
determining the function application executed under the current running state of the terminal equipment;
determining a power consumption level corresponding to the function application based on the function application;
and if the determined power consumption level reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the executed function application.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current power consumption duration state of the terminal device, and the execution requirement of the executed function application includes:
if the execution requirement of the function application exceeds the requirement standard, adjusting the power consumption level of the terminal equipment in the current running state based on the current electric quantity endurance state of the terminal equipment;
wherein, the execution requirement that the function application has exceeds the requirement standard at least includes: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the current electric quantity endurance state of the terminal device includes:
and if the current electric quantity duration state of the terminal equipment does not reach the preset electric quantity duration strength, reducing the power consumption level corresponding to the executed function application in the current running state of the terminal equipment.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the current electric quantity endurance state of the terminal device includes:
And if the current electric quantity endurance state of the terminal equipment reaches the preset electric quantity endurance strength, maintaining the power consumption level corresponding to the executed function application in the current running state of the terminal equipment unchanged.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current power consumption duration state of the terminal device, and the execution requirement of the executed function application includes:
and if the execution requirement of the function application does not exceed the requirement standard, maintaining the power consumption level corresponding to the function application executed under the current running state of the terminal equipment unchanged.
In some embodiments, the electric quantity endurance state of the terminal device at least includes: the system comprises a first electric quantity endurance intensity and a second electric quantity endurance intensity, wherein the corresponding battery electric quantity under the first electric quantity endurance intensity is larger than the corresponding battery electric quantity under the second electric quantity endurance intensity; wherein,,
the current electric quantity endurance state of the terminal device does not reach the preset electric quantity endurance strength, and at least comprises:
and determining that the current electric quantity endurance state of the terminal equipment is the second electric quantity endurance intensity.
In some embodiments, the power consumption level includes at least:
the power consumption control circuit comprises first-stage power consumption, second-stage power consumption and third-stage power consumption, wherein a power consumption value corresponding to the first-stage power consumption is larger than a power consumption value corresponding to the second-stage power consumption, and a power consumption value corresponding to the second-stage power consumption is larger than a power consumption value corresponding to the third-stage power consumption; wherein,,
the power consumption level reaching a predetermined power consumption level includes at least: the power consumption level corresponding to the function application is determined as first-stage power consumption;
the reducing the power consumption level corresponding to the function application executed in the current running state of the terminal equipment at least comprises:
the first-stage power consumption of the terminal equipment in the current running state is adjusted to be the second-stage power consumption, or,
and adjusting the first-stage power consumption of the terminal equipment in the current running state to be third-stage power consumption.
In some embodiments, the determining, based on the functional application, a power consumption level corresponding to the functional application includes:
determining a power consumption threshold corresponding to the power consumption level; wherein, the power consumption levels are different, and the corresponding power consumption thresholds are different;
and determining the power consumption level corresponding to the functional application based on the power consumption generated by the terminal equipment executing the functional application and a power consumption threshold corresponding to the power consumption level.
In some embodiments, the function application executed by the terminal device in the current running state includes:
an application scene when a camera application program of the terminal equipment runs;
the determining the power consumption level corresponding to the functional application comprises the following steps: determining a power consumption level corresponding to an application scene when the camera application program runs;
the step of adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current power consumption level of the terminal device, and the execution requirement of the executed function application when the determined power consumption level reaches a predetermined power consumption level includes:
and if the power consumption level corresponding to the application scene reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the application scene.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal device, and the execution requirement of the application scenario includes:
And determining that the execution requirement of the application scene exceeds a requirement standard, and if the electric quantity endurance state does not reach the preset electric quantity endurance strength, reducing the power consumption corresponding to the application scene in the current running state by adjusting a pixel clock.
In some embodiments, the reducing the power consumption corresponding to the application scenario in the current running state by adjusting the pixel clock includes:
based on the mapping relation between the camera chip parameters and the pixel clock, adjusting the clock period of the pixel clock in the application scene; the clock period of the pixel clock is used for controlling the acquisition frequency of pixel points when the camera acquires images, and the acquisition frequency is related to the power consumption of the terminal equipment when the terminal equipment moves in an application scene; the camera chip parameters are used to write a register to control the clock cycle.
A second aspect of an embodiment of the present disclosure provides a power consumption management and control apparatus, including:
the first processing unit is used for determining the function application executed under the current running state of the terminal equipment;
the second processing unit is used for determining the power consumption level corresponding to the functional application based on the functional application;
And the third processing unit is used for adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the executed function application when the determined power consumption level reaches the preset power consumption level.
In some embodiments, the third processing unit is configured to
If the execution requirement of the function application exceeds the requirement standard, adjusting the power consumption level of the terminal equipment in the current running state based on the current electric quantity endurance state of the terminal equipment;
wherein, the execution requirement that the function application has exceeds the requirement standard at least includes: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration.
In some embodiments, the third processing unit is configured to
And if the current electric quantity duration state of the terminal equipment does not reach the preset electric quantity duration strength, reducing the power consumption level corresponding to the executed function application in the current running state of the terminal equipment.
In some embodiments, the third processing unit is configured to
And if the current electric quantity endurance state of the terminal equipment reaches the preset electric quantity endurance strength, maintaining the power consumption level corresponding to the executed function application in the current running state of the terminal equipment unchanged.
In some embodiments, the third processing unit is configured to
And if the execution requirement of the function application does not exceed the requirement standard, maintaining the power consumption level corresponding to the function application executed under the current running state of the terminal equipment unchanged.
In some embodiments, the electric quantity endurance state of the terminal device at least includes: the system comprises a first electric quantity endurance intensity and a second electric quantity endurance intensity, wherein the corresponding battery electric quantity under the first electric quantity endurance intensity is larger than the corresponding battery electric quantity under the second electric quantity endurance intensity; wherein,,
the current electric quantity endurance state of the terminal device does not reach the preset electric quantity endurance strength, and at least comprises:
and determining that the current electric quantity endurance state of the terminal equipment is the second electric quantity endurance intensity.
In some embodiments, the power consumption level includes at least:
the power consumption control circuit comprises first-stage power consumption, second-stage power consumption and third-stage power consumption, wherein a power consumption value corresponding to the first-stage power consumption is larger than a power consumption value corresponding to the second-stage power consumption, and a power consumption value corresponding to the second-stage power consumption is larger than a power consumption value corresponding to the third-stage power consumption; wherein,,
The power consumption level reaching a predetermined power consumption level includes at least: the power consumption level corresponding to the function application is determined as first-stage power consumption;
the reducing the power consumption level corresponding to the function application executed in the current running state of the terminal equipment at least comprises:
the first-stage power consumption of the terminal equipment in the current running state is adjusted to be the second-stage power consumption, or,
and adjusting the first-stage power consumption of the terminal equipment in the current running state to be third-stage power consumption.
In some embodiments, the second processing unit is configured to
Determining a power consumption threshold corresponding to the power consumption level; wherein, the power consumption levels are different, and the corresponding power consumption thresholds are different;
and determining the power consumption level corresponding to the functional application based on the power consumption generated by the terminal equipment executing the functional application and a power consumption threshold corresponding to the power consumption level.
In some embodiments, the function application executed by the terminal device in the current running state includes:
an application scene when a camera application program of the terminal equipment runs;
the second processing unit is used for determining the power consumption level corresponding to the application scene when the camera application program runs;
The third processing unit is used for
And if the power consumption level corresponding to the application scene reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the application scene.
In some embodiments, the third processing unit is configured to
And determining that the execution requirement of the application scene exceeds a requirement standard, and if the electric quantity endurance state does not reach the preset electric quantity endurance strength, reducing the power consumption corresponding to the application scene in the current running state by adjusting a pixel clock.
In some embodiments, the third processing unit is configured to
Based on the mapping relation between the camera chip parameters and the pixel clock, adjusting the clock period of the pixel clock in the application scene; the clock period of the pixel clock is used for controlling the acquisition frequency of pixel points when the camera acquires images, and the acquisition frequency is related to the power consumption of the terminal equipment when the terminal equipment moves in an application scene; the camera chip parameters are used to write a register to control the clock cycle.
In a third aspect of embodiments of the present disclosure, there is provided a terminal, including: a processor and a memory, the memory having stored thereon a computer program executable on the processor for performing the steps of the method of the first aspect when the computer program is executed.
A fourth aspect of embodiments of the present disclosure provides a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
the power consumption control method in the embodiment of the disclosure comprises the following steps: determining the function application executed under the current running state of the terminal equipment; determining a power consumption level corresponding to the function application based on the function application; and if the determined power consumption level reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity cruising state of the terminal equipment and the execution requirement of the executed function application. In the present disclosure, when the determined power consumption level reaches the predetermined power consumption level, it is indicated that power consumption needs to be controlled at this time. When the power consumption control is carried out, the specific power consumption control can be determined by comprehensively considering the power consumption condition of the current terminal equipment function application, the current electric quantity endurance state and the application execution condition of the current function application, so that the power consumption adjustment can be carried out on the whole, the use duration of the terminal equipment is prolonged as much as possible, and the power consumption loss and waste are reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart of a method of managing power consumption, according to an exemplary embodiment.
Fig. 2 is a schematic diagram of a power consumption management and control device according to an exemplary embodiment.
Fig. 3 is a schematic diagram of a control unit structure of power consumption shown according to an exemplary embodiment.
Fig. 4 is a schematic block diagram showing a determining unit in a management and control unit according to an exemplary embodiment.
Fig. 5 is a schematic view of an application scenario of an electronic device with a photographing function according to an exemplary embodiment.
Fig. 6 is a device block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus consistent with some aspects of the disclosure as detailed in the accompanying claims.
With the rapid development of electronic technology, many electronic products have more and more application functions. Electronic devices are also used more and more frequently. This also places an increasing demand on the power of the electronic devices, resulting in power consumption problems becoming more and more pronounced. Power consumption issues run from the background to the public's line of sight and are becoming more and more of a concern. How to improve the efficiency of analyzing the power consumption problem is getting more and more important.
The embodiment of the disclosure provides a power consumption management and control method. FIG. 1 is a flow chart of a method of managing power consumption, according to an exemplary embodiment. As shown in fig. 1, the power consumption control method includes:
step 10, determining the function application executed under the current running state of the terminal equipment;
step 11, determining a power consumption level corresponding to the functional application based on the functional application;
and step 12, if the determined power consumption level reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the executed function application.
In the embodiment of the present disclosure, the terminal device may be a mobile terminal or a fixed terminal, including: cell phones, notebooks, cameras, etc. The executed function applications may include any application of the terminal device, such as invoking camera photographing, video display, audio playing, etc.
In an embodiment of the present disclosure, the determining, based on the functional application, a power consumption level corresponding to the functional application includes:
determining a power consumption threshold corresponding to the power consumption level; wherein, the power consumption levels are different, and the corresponding power consumption thresholds are different;
and determining the power consumption level corresponding to the functional application based on the power consumption generated by the terminal equipment executing the functional application and a power consumption threshold corresponding to the power consumption level.
In the embodiment of the disclosure, the power consumption class division may be established in advance, the power consumption class is divided into a plurality of classes, the first power consumption class may be defined as the highest power consumption class, and the corresponding power consumption is indicated to be higher. For example, the power consumption being greater than the first power consumption threshold is a first power consumption level; the power consumption is of a second power consumption level between the first power consumption threshold and the second power consumption threshold; the power consumption lower than the second power consumption threshold is third-stage power consumption, etc. The first power consumption threshold is greater than the second power consumption threshold. And when the power consumption corresponding to the function application is determined to be larger than the first power consumption threshold, determining the power consumption level corresponding to the function application as the first power consumption level.
In the embodiment of the disclosure, the predetermined power consumption level may be determined as a power consumption level at which the current power consumption needs to be managed, for example, the predetermined power consumption level is determined as a first power consumption level. When the determined power consumption level reaches a preset power consumption level, namely a first power consumption level, the fact that the power consumption of the terminal equipment in the current running state is higher is indicated, and the power consumption needs to be controlled. At this time, the power consumption level of the terminal device in the current running state can be adjusted based on the determined power consumption level, the current power consumption duration state of the terminal device and the execution requirement of the executed function application.
The power consumption control method in the embodiment of the disclosure comprises the following steps: determining the function application executed under the current running state of the terminal equipment; determining a power consumption level corresponding to the function application based on the function application; and if the determined power consumption level reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity cruising state of the terminal equipment and the execution requirement of the executed function application. In the present disclosure, when the determined power consumption level reaches the predetermined power consumption level, it is indicated that power consumption needs to be controlled at this time. When the power consumption control is carried out, the specific power consumption control can be determined by comprehensively considering the power consumption condition of the current terminal equipment function application, the current electric quantity endurance state and the application execution condition of the current function application, so that the power consumption adjustment can be carried out on the whole, the use duration of the terminal equipment is prolonged as much as possible, and the power consumption loss and waste are reduced.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current power consumption duration state of the terminal device, and the execution requirement of the executed function application includes:
If the execution requirement of the function application exceeds the requirement standard, adjusting the power consumption level of the terminal equipment in the current running state based on the current electric quantity endurance state of the terminal equipment;
wherein, the execution requirement that the function application has exceeds the requirement standard at least includes: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration.
In the embodiment of the disclosure, the execution requirement of the function application can be used for representing the like degree of a user on the lower function application or the like degree of the lower function application. When the execution requirement of the functional application exceeds the requirement standard, the functional application is higher in popularity by users. For example, the frequency of execution within the preset time is high, exceeding the preset frequency, or the duration of execution is long, exceeding the preset duration.
In the embodiment of the disclosure, the determination of the frequency of execution or the duration of execution within the preset time may be determined according to the historical usage data of the function application of the terminal device. Such as historical usage data for the function application, a higher or lower frequency of use for the function application, or a higher or lower frequency of use, a longer or shorter time of use, etc. within a preset period of time. The historical use data shows that the use frequency is higher, and the user is characterized to be more favored; historical usage data shows less frequent usage and characterizes the user as disliked.
In the embodiment of the disclosure, when the determined power consumption level reaches the predetermined power consumption level and the power consumption management and control needs to be performed on the terminal equipment, whether the execution requirement of the function application exceeds the requirement standard is further determined, and when the execution requirement of the function application exceeds the requirement standard, the power consumption level of the terminal equipment in the current running state is adjusted based on the electric quantity continuous running state of the current terminal equipment, so that the power consumption management and control in the running state of the terminal equipment is comprehensively considered more comprehensively, and further the improvement of the power consumption management and control quality is facilitated.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the current electric quantity endurance state of the terminal device includes:
and if the current electric quantity duration state of the terminal equipment does not reach the preset electric quantity duration strength, reducing the power consumption level corresponding to the executed function application in the current running state of the terminal equipment.
In the embodiment of the disclosure, when adjusting the power consumption level of the current running state of the terminal device based on the electric quantity endurance state of the current terminal device, it is first determined whether the electric quantity endurance state of the current terminal device reaches a predetermined electric quantity endurance intensity. If the electric quantity duration state does not reach the preset electric quantity duration strength, the electric quantity of the current terminal equipment is lower, and the power consumption level corresponding to the function application needs to be reduced, so that the service duration of the electric quantity is prolonged, and the user experience is improved.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the current electric quantity endurance state of the terminal device includes:
and if the current electric quantity endurance state of the terminal equipment reaches the preset electric quantity endurance strength, maintaining the power consumption level corresponding to the executed function application in the current running state of the terminal equipment unchanged.
In the embodiment of the disclosure, if the electric quantity duration state reaches the preset electric quantity duration strength, it is indicated that the electric quantity of the current terminal device is higher, and under the condition that the electric quantity meets the requirement, the power consumption level corresponding to the function application can be temporarily not required to be reduced, that is, the power consumption level corresponding to the function application executed under the current running state of the terminal device is maintained unchanged.
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current power consumption duration state of the terminal device, and the execution requirement of the executed function application includes:
and if the execution requirement of the function application does not exceed the requirement standard, maintaining the power consumption level corresponding to the function application executed under the current running state of the terminal equipment unchanged.
In the embodiment of the disclosure, it is determined that the execution requirement of the function application does not exceed the requirement standard, which indicates that the function application is not popular with the user, and the function application is executed less frequently or used for a shorter time, so that the power consumption level does not need to be changed.
In some embodiments, the electric quantity endurance state of the terminal device at least includes: the system comprises a first electric quantity endurance intensity and a second electric quantity endurance intensity, wherein the corresponding battery electric quantity under the first electric quantity endurance intensity is larger than the corresponding battery electric quantity under the second electric quantity endurance intensity; wherein,,
the current electric quantity endurance state of the terminal device does not reach the preset electric quantity endurance strength, and at least comprises:
and determining that the current electric quantity endurance state of the terminal equipment is the second electric quantity endurance intensity.
In the embodiment of the disclosure, the predetermined electric quantity duration may be determined as a second electric quantity duration with weaker electric quantity duration. When the power consumption level of the function application is higher, for example, the first power consumption level, and the power consumption duration state is weaker, for example, the second power consumption duration strength, the power consumption level of the terminal device in the current running state needs to be adjusted according to the execution requirement of the executed function application. For example, the function application executed at this time has an execution requirement exceeding the requirement standard, including: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration. At this point the power consumption level of the functional application needs to be downgraded. For example from a first level power consumption to a third level power consumption. Table 1 is a table of electric quantity endurance, and as shown in table 1, the electric quantity endurance of which the electric quantity exceeds 50% can be determined as the first electric quantity endurance intensity; and determining the electric quantity endurance capacity of which the electric quantity is lower than 50% as the second electric quantity endurance strength.
Table 1 electric quantity cruising ability comparison table
Electric quantity More than 50 percent Below 50%
Electric quantity endurance First electric quantity endurance intensity Second electric quantity endurance intensity
In some embodiments, the power consumption level includes at least:
the power consumption control circuit comprises first-stage power consumption, second-stage power consumption and third-stage power consumption, wherein a power consumption value corresponding to the first-stage power consumption is larger than a power consumption value corresponding to the second-stage power consumption, and a power consumption value corresponding to the second-stage power consumption is larger than a power consumption value corresponding to the third-stage power consumption; wherein,,
the power consumption level reaching a predetermined power consumption level includes at least: the power consumption level corresponding to the function application is determined as first-stage power consumption;
the reducing the power consumption level corresponding to the function application executed in the current running state of the terminal equipment at least comprises:
the first-stage power consumption of the terminal equipment in the current running state is adjusted to be the second-stage power consumption, or,
and adjusting the first-stage power consumption of the terminal equipment in the current running state to be third-stage power consumption.
In the embodiment of the disclosure, the power consumption value corresponding to the first-stage power consumption is greater than the power consumption value corresponding to the second-stage power consumption, and the power consumption value corresponding to the second-stage power consumption is greater than the power consumption value corresponding to the third-stage power consumption.
In the embodiment of the disclosure, the first power consumption level may be defined as the highest power consumption level, and the third power consumption level may be defined as the lowest power consumption level. When it is determined that the power consumption level of the functional application reaches a predetermined power consumption level, for example, a first power consumption level. At this time, it is explained that the power consumption of the current terminal device function application is relatively high. When the power consumption level is required to be reduced, the first-stage power consumption of the terminal equipment in the current running state can be adjusted to be the second-stage power consumption, or the first-stage power consumption of the terminal equipment in the current running state can be adjusted to be the third-stage power consumption, so that the effect of reducing the power consumption is achieved, and the service life of the electric quantity is prolonged appropriately.
If the power consumption level of the current functional application is already at the lowest level, for example the third power consumption level, no adjustment of the power consumption level in the current operating state of the terminal device is required at this time.
If the electric quantity duration of the current circuit duration state is strong, for example, the electric quantity is sufficient, the power consumption level of the terminal equipment in the current running state can be temporarily not adjusted at the moment. Through the adjustment of the power consumption level, the service time of the terminal equipment is prolonged as much as possible, and the power consumption loss and waste are reduced.
In some embodiments, the function application executed by the terminal device in the current running state includes:
an application scene when a camera application program of the terminal equipment runs;
the determining the power consumption level corresponding to the functional application comprises the following steps: determining a power consumption level corresponding to an application scene when the camera application program runs;
the step of adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current power consumption level of the terminal device, and the execution requirement of the executed function application when the determined power consumption level reaches a predetermined power consumption level includes:
and if the power consumption level corresponding to the application scene reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the application scene.
In the embodiment of the disclosure, the function application can be determined as an application scene when the camera application program runs; the pixel clock may be used to control the acquisition rate of the pixels as the camera acquires an image. One pixel point of the pixel clock corresponds to one clock, and the sampling manner may be sampling according to a rising edge or a falling edge of the clock, for example, one pixel point corresponds to a rising edge or a falling edge of the clock. It is understood in the present application that the time interval between a rising edge and an adjacent falling edge is determined as a clock period of a pixel clock. The smaller the clock period, the faster the pixel clock. The mapping relation between the pixel clock and the power consumption level comprises: the more rising edges or falling edges of the pixel clock in a unit time, the higher the acquisition rate of the pixels, the faster the graph efficiency and the greater the power consumption. Table 2 shows the power consumption level versus pixel clock. As shown in table 2, that is, the first pixel clock corresponds to the first level power consumption, the second pixel clock corresponds to the second level power consumption, and the third pixel clock corresponds to the third level power consumption, wherein the clock period of the first pixel clock is smaller than the clock period of the second pixel clock, and the clock period of the second pixel clock is smaller than the clock period of the third pixel clock. Table 3 is a usage frequency table of the scenario. As shown in table 3, the camera usage scene may include modes such as normal preview, high definition photographing, HDR photographing, video recording, portrait, etc. The frequency of use of each mode is different and can be divided into high and low. The frequency above the predetermined frequency is a high frequency and the frequency below the predetermined frequency is a low frequency.
Table 2 power consumption level and pixel clock comparison table
Triggering power consumption levels First level power consumption Second level power consumption Third level power consumption
Pixel clock First pixel clock Second pixel clock Third pixel clock
Table 3 usage frequency table of scenario
Scene(s) Ordinary previews High definition photographing HDR photographing Video recording Portrait figure
Frequency of use High height Low and low Low and low Low and low High height
When the scene is evaluated as high, it indicates that there are many users using the scene, in this case, the user experience is mainly required, and the power consumption level is reduced by one level based on the triggered level, for example, in the scene of the current normal preview, the triggered power consumption level is "high", but the normal preview is preferred by the user, and is evaluated as "strong", in order to ensure the user experience, the triggered power consumption level is reduced by one level, and the triggered power consumption level is "medium".
When the scenario is evaluated low, it is interpreted that the scenario is rarely used by users, and the power consumption level triggered under the scenario remains unchanged. For example, the current scene is "high definition shooting", the scene is liked to be "low", the power consumption level triggered at this time is "strong", the user experience is not required to be considered, and the power consumption trigger level is maintained to be "strong".
In some embodiments, the adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal device, and the execution requirement of the application scenario includes:
and determining that the execution requirement of the application scene exceeds a requirement standard, and if the electric quantity endurance state does not reach the preset electric quantity endurance strength, reducing the power consumption corresponding to the application scene in the current running state by adjusting a pixel clock.
In the embodiment of the disclosure, the pixel clock is related to pixel acquisition in a camera application scene, and is also related to power consumption. The smaller the clock period of the pixel clock, the higher the pixel acquisition frequency and the higher the power consumption. When the clock period of the pixel clock is increased, the pixel acquisition frequency is reduced, and the power consumption is reduced. Therefore, the power consumption corresponding to the application scene in the current running state can be reduced by adjusting the pixel clock.
In some embodiments, the reducing the power consumption corresponding to the application scenario in the current running state by adjusting the pixel clock includes:
based on the mapping relation between the camera chip parameters and the pixel clock, adjusting the clock period of the pixel clock in the application scene; the clock period of the pixel clock is used for controlling the acquisition frequency of pixel points when the camera acquires images, and the acquisition frequency is related to the power consumption of the terminal equipment when the terminal equipment moves in an application scene; the camera chip parameters are used to write a register to control the clock cycle.
In the embodiment of the disclosure, a mapping relation between camera chip parameters and the pixel clock can be established. The camera chip parameters at least comprise a first clock parameter, a second clock parameter and a third clock parameter; table 4 shows the camera chip parameters versus pixel clock. As shown in table 4, the first clock parameter corresponds to the first pixel clock, the second clock parameter corresponds to the second pixel clock, and the third clock parameter corresponds to the third pixel clock. The camera chip parameter writing register can control clock period, thereby controlling the acquisition frequency and power consumption of pixel points when the camera acquires images. The higher the acquisition frequency is, the higher the power consumption is when the terminal equipment moves in an application scene.
Table 4 camera chip parameters versus pixel clock table.
Parameter set provided by camera chip factory First clock parameter Second clock parameter Third clock parameter
Pixel clock size First pixel clock Second imagePlain clock Third pixel clock
In the embodiment of the present disclosure, after entering the preview scene, when the power consumption value is detected to trigger the preset power consumption threshold level to be in the "high" range (for example, the first power consumption level), if the following further power consumption adjustment policy is not provided, the highest-intensity power consumption optimization policy should be adopted. In order to better evaluate the power consumption from the aspects of the cruising ability of the electric quantity and the use evaluation rate of the scene, an in-depth analysis is required for the power consumption adjustment scheme.
After the power consumption adjustment strategy is triggered, the scene is obtained through scene evaluation, the scene is a common preview, the power consumption duration evaluation module is used for obtaining the fact that the power consumption is weak (for example, the second power consumption duration) at the moment, the fact that the power consumption is insufficient at the moment is seriously influenced by the fact that the power consumption is insufficient at the moment is indicated, the power consumption level of the trigger is required to be reduced by one level to be middle (for example, the second power consumption level), the scene is obtained to be high according to the fact that the current scene is the common preview, the scene is obtained through the use frequency of the scene, the fact that the common preview scene goes deep into the user's heart is indicated at the moment, the power consumption level is required to be reduced by one level again, and the power consumption level is changed to be low (for example, the third power consumption level).
The finally estimated power consumption level, which is initially triggered as "high", becomes "low" after being estimated by "battery endurance" and "scene use frequency".
At this time, the result obtained by the pixel clock evaluation unit is low through the adjustment unit, the pixel clock is found out to be small according to the corresponding relation of the corresponding relation table of the triggering power consumption level and the pixel clock, then the information related to the register of the first clock parameter is obtained according to the corresponding relation of the preset parameter of the camera chip and the parameter of the pixel clock, and then the purpose of reducing the power consumption is achieved by calling the group of parameter information.
In the embodiment of the disclosure, power consumption is monitored when a camera is started, an operation scene or a functional mode of a camera application program is obtained according to a preset power consumption threshold, and then the clock size of a pixel of a camera chip is adjusted after a plurality of factors are integrated according to the use frequency of a user scene by judging the strength of the current battery endurance. Because the image graph time sequence is a clock depending on pixels, the speed of the pixel clock directly determines the speed of the current chip graph data, and the faster the graph is, the power consumption is increased, otherwise, the purpose of reducing the power consumption is achieved, so that the cruising ability is ensured, the experience of a user when the camera is used is ensured, and the purpose of reducing the power consumption from the source is achieved.
A second aspect of the disclosed embodiments provides a power consumption management and control apparatus. Fig. 2 is a schematic diagram of a power consumption management and control device according to an exemplary embodiment. As shown in fig. 2, the control device includes:
a first processing unit 21, configured to determine a function application executed in a current running state of the terminal device;
a second processing unit 22, configured to determine, based on the functional application, a power consumption level corresponding to the functional application;
And the third processing unit 23 is configured to adjust the power consumption level in the current running state of the terminal device based on the determined power consumption level, the current power consumption duration state of the terminal device, and the execution requirement of the executed function application when the determined power consumption level reaches the predetermined power consumption level.
In the embodiment of the present disclosure, the terminal device may be a mobile terminal or a fixed terminal, including: cell phones, notebooks, cameras, etc. The executed function applications may include any application of the terminal device, such as invoking camera photographing, video display, audio playing, etc.
In an embodiment of the present disclosure, the determining, based on the functional application, a power consumption level corresponding to the functional application includes:
determining a power consumption threshold corresponding to the power consumption level; wherein, the power consumption levels are different, and the corresponding power consumption thresholds are different;
and determining the power consumption level corresponding to the functional application based on the power consumption generated by the terminal equipment executing the functional application and a power consumption threshold corresponding to the power consumption level.
In the embodiment of the disclosure, the power consumption class division may be established in advance, the power consumption class is divided into a plurality of classes, the first power consumption class may be defined as the highest power consumption class, and the corresponding power consumption is indicated to be higher. For example, the power consumption being greater than the first power consumption threshold is a first power consumption level; the power consumption is of a second power consumption level between the first power consumption threshold and the second power consumption threshold; the power consumption lower than the second power consumption threshold is third-stage power consumption, etc. The first power consumption threshold is greater than the second power consumption threshold. And when the power consumption corresponding to the function application is determined to be larger than the first power consumption threshold, determining the power consumption level corresponding to the function application as the first power consumption level.
In the embodiment of the disclosure, the predetermined power consumption level may be determined as a power consumption level at which the current power consumption needs to be managed, for example, the predetermined power consumption level is determined as a first power consumption level. When the determined power consumption level reaches a preset power consumption level, namely a first power consumption level, the fact that the power consumption of the terminal equipment in the current running state is higher is indicated, and the power consumption needs to be controlled. At this time, the power consumption level of the terminal device in the current running state can be adjusted based on the determined power consumption level, the current power consumption duration state of the terminal device and the execution requirement of the executed function application.
The power consumption management and control device in the embodiment of the disclosure is used for: determining the function application executed under the current running state of the terminal equipment; determining a power consumption level corresponding to the function application based on the function application; and if the determined power consumption level reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity cruising state of the terminal equipment and the execution requirement of the executed function application. In the present disclosure, when the determined power consumption level reaches the predetermined power consumption level, it is indicated that power consumption needs to be controlled at this time. When the power consumption control is carried out, the specific power consumption control can be determined by comprehensively considering the power consumption condition of the current terminal equipment function application, the current electric quantity endurance state and the application execution condition of the current function application, so that the power consumption adjustment can be carried out on the whole, the use duration of the terminal equipment is prolonged as much as possible, and the power consumption loss and waste are reduced.
In some embodiments, the third processing unit 23 is configured to
If the execution requirement of the function application exceeds the requirement standard, adjusting the power consumption level of the terminal equipment in the current running state based on the current electric quantity endurance state of the terminal equipment;
wherein, the execution requirement that the function application has exceeds the requirement standard at least includes: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration.
In the embodiment of the disclosure, the execution requirement of the function application can be used for representing the like degree of a user on the lower function application or the like degree of the lower function application. When the execution requirement of the functional application exceeds the requirement standard, the functional application is higher in popularity by users. For example, the frequency of execution within the preset time is high, exceeding the preset frequency, or the duration of execution is long, exceeding the preset duration.
In the embodiment of the disclosure, the determination of the frequency of execution or the duration of execution within the preset time may be determined according to the historical usage data of the function application of the terminal device. Such as historical usage data for the function application, a higher or lower frequency of use for the function application, or a higher or lower frequency of use, a longer or shorter time of use, etc. within a preset period of time. The historical use data shows that the use frequency is higher, and the user is characterized to be more favored; historical usage data shows less frequent usage and characterizes the user as disliked.
In the embodiment of the disclosure, when the determined power consumption level reaches the predetermined power consumption level and the power consumption management and control needs to be performed on the terminal equipment, whether the execution requirement of the function application exceeds the requirement standard is further determined, and when the execution requirement of the function application exceeds the requirement standard, the power consumption level of the terminal equipment in the current running state is adjusted based on the electric quantity continuous running state of the current terminal equipment, so that the power consumption management and control in the running state of the terminal equipment is comprehensively considered more comprehensively, and further the improvement of the power consumption management and control quality is facilitated.
In some embodiments, the third processing unit 23 is configured to
And if the current electric quantity duration state of the terminal equipment does not reach the preset electric quantity duration strength, reducing the power consumption level corresponding to the executed function application in the current running state of the terminal equipment.
In the embodiment of the disclosure, when adjusting the power consumption level of the current running state of the terminal device based on the electric quantity endurance state of the current terminal device, it is first determined whether the electric quantity endurance state of the current terminal device reaches a predetermined electric quantity endurance intensity. If the electric quantity duration state does not reach the preset electric quantity duration strength, the electric quantity of the current terminal equipment is lower, and the power consumption level corresponding to the function application needs to be reduced, so that the service duration of the electric quantity is prolonged, and the user experience is improved.
In some embodiments, the third processing unit 23 is configured to
And if the current electric quantity endurance state of the terminal equipment reaches the preset electric quantity endurance strength, maintaining the power consumption level corresponding to the executed function application in the current running state of the terminal equipment unchanged.
In the embodiment of the disclosure, if the electric quantity duration state reaches the preset electric quantity duration strength, it is indicated that the electric quantity of the current terminal device is higher, and under the condition that the electric quantity meets the requirement, the power consumption level corresponding to the function application can be temporarily not required to be reduced, that is, the power consumption level corresponding to the function application executed under the current running state of the terminal device is maintained unchanged.
In some embodiments, the third processing unit 23 is configured to
And if the execution requirement of the function application does not exceed the requirement standard, maintaining the power consumption level corresponding to the function application executed under the current running state of the terminal equipment unchanged.
In the embodiment of the disclosure, it is determined that the execution requirement of the function application does not exceed the requirement standard, which indicates that the function application is not popular with the user, and the function application is executed less frequently or used for a shorter time, so that the power consumption level does not need to be changed.
In some embodiments, the electric quantity endurance state of the terminal device at least includes: the system comprises a first electric quantity endurance intensity and a second electric quantity endurance intensity, wherein the corresponding battery electric quantity under the first electric quantity endurance intensity is larger than the corresponding battery electric quantity under the second electric quantity endurance intensity; wherein,,
the current electric quantity endurance state of the terminal device does not reach the preset electric quantity endurance strength, and at least comprises:
and determining that the current electric quantity endurance state of the terminal equipment is the second electric quantity endurance intensity.
In the embodiment of the disclosure, the predetermined electric quantity duration may be determined as a second electric quantity duration with weaker electric quantity duration. When the power consumption level of the function application is higher, for example, the first power consumption level, and the power consumption duration state is weaker, for example, the second power consumption duration strength, the power consumption level of the terminal device in the current running state needs to be adjusted according to the execution requirement of the executed function application. For example, the function application executed at this time has an execution requirement exceeding the requirement standard, including: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration. At this point the power consumption level of the functional application needs to be downgraded. For example from a first level power consumption to a third level power consumption. Table 5 is a table of electric quantity endurance, as shown in Table 5, the electric quantity endurance of which the electric quantity exceeds 50% can be determined as the first electric quantity endurance intensity; and determining the electric quantity endurance capacity of which the electric quantity is lower than 50% as the second electric quantity endurance strength.
Table 5 electric quantity cruising ability comparison table
Electric quantity More than 50 percent Below 50%
Electric quantity endurance First electric quantity endurance intensity Second electric quantity endurance intensity
In some embodiments, the power consumption level includes at least:
the power consumption control circuit comprises first-stage power consumption, second-stage power consumption and third-stage power consumption, wherein a power consumption value corresponding to the first-stage power consumption is larger than a power consumption value corresponding to the second-stage power consumption, and a power consumption value corresponding to the second-stage power consumption is larger than a power consumption value corresponding to the third-stage power consumption; wherein,,
the power consumption level reaching a predetermined power consumption level includes at least: the power consumption level corresponding to the function application is determined as first-stage power consumption;
the reducing the power consumption level corresponding to the function application executed in the current running state of the terminal equipment at least comprises:
the first-stage power consumption of the terminal equipment in the current running state is adjusted to be the second-stage power consumption, or,
and adjusting the first-stage power consumption of the terminal equipment in the current running state to be third-stage power consumption.
In the embodiment of the disclosure, the power consumption value corresponding to the first-stage power consumption is greater than the power consumption value corresponding to the second-stage power consumption, and the power consumption value corresponding to the second-stage power consumption is greater than the power consumption value corresponding to the third-stage power consumption.
In the embodiment of the disclosure, the first power consumption level may be defined as the highest power consumption level, and the third power consumption level may be defined as the lowest power consumption level. When it is determined that the power consumption level of the functional application reaches a predetermined power consumption level, for example, a first power consumption level. At this time, it is explained that the power consumption of the current terminal device function application is relatively high. When the power consumption level is required to be reduced, the first-stage power consumption of the terminal equipment in the current running state can be adjusted to be the second-stage power consumption, or the first-stage power consumption of the terminal equipment in the current running state can be adjusted to be the third-stage power consumption, so that the effect of reducing the power consumption is achieved, and the service life of the electric quantity is prolonged appropriately.
If the power consumption level of the current functional application is already at the lowest level, for example the third power consumption level, no adjustment of the power consumption level in the current operating state of the terminal device is required at this time.
If the electric quantity duration of the current circuit duration state is strong, for example, the electric quantity is sufficient, the power consumption level of the terminal equipment in the current running state can be temporarily not adjusted at the moment. Through the adjustment of the power consumption level, the service time of the terminal equipment is prolonged as much as possible, and the power consumption loss and waste are reduced.
In the embodiment of the present disclosure, the second processing unit 22 is configured to
Determining a power consumption threshold corresponding to the power consumption level; wherein, the power consumption levels are different, and the corresponding power consumption thresholds are different;
and determining the power consumption level corresponding to the functional application based on the power consumption generated by the terminal equipment executing the functional application and a power consumption threshold corresponding to the power consumption level.
In some embodiments, the function application executed by the terminal device in the current running state includes:
an application scene when a camera application program of the terminal equipment runs;
the second processing unit is used for determining the power consumption level corresponding to the application scene when the camera application program runs;
the third processing unit 23 is used for
And if the power consumption level corresponding to the application scene reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the application scene.
In the embodiment of the disclosure, the function application can be determined as an application scene when the camera application program runs; the pixel clock may be used to control the acquisition rate of the pixels as the camera acquires an image. One pixel point of the pixel clock corresponds to one clock, and the sampling manner may be sampling according to a rising edge or a falling edge of the clock, for example, one pixel point corresponds to a rising edge or a falling edge of the clock. It is understood in the present application that the time interval between a rising edge and an adjacent falling edge is determined as a clock period of a pixel clock. The mapping relation between the pixel clock and the power consumption level comprises: the more rising edges or falling edges of the pixel clock in a unit time, the higher the acquisition rate of the pixels, the faster the graph efficiency and the greater the power consumption. Table 6 shows the power consumption level versus pixel clock. As shown in table 6, i.e., the first pixel clock corresponds to the first level power consumption, the second pixel clock corresponds to the second level power consumption, and the third pixel clock corresponds to the third level power consumption, wherein the clock period of the first pixel clock is smaller than the clock period of the second pixel clock, and the clock period of the second pixel clock is smaller than the clock period of the third pixel clock. Table 7 is a usage frequency table of the scenario. As shown in table 7, the camera usage scene may include modes such as normal preview, high definition photographing, HDR photographing, video recording, portrait, etc. The frequency of use of each mode is different and can be divided into high and low. The frequency above the predetermined frequency is a high frequency and the frequency below the predetermined frequency is a low frequency.
TABLE 6 Power consumption level and Pixel clock comparison Table
Triggering power consumption levels First level power consumption Second level power consumption Third level power consumption
Pixel clock size First pixel clock Second pixel clock Third pixel clock
Table 7 use frequency table of scenario
Scene(s) Ordinary previews High definition photographing HDR photographing Video recording Portrait figure
Frequency of use High height Low and low Low and low Low and low High height
When the scene is evaluated as high, it indicates that there are many users using the scene, in this case, the user experience is mainly required, and the power consumption level is reduced by one level based on the triggered level, for example, in the scene of the current normal preview, the triggered power consumption level is "high", but the normal preview is preferred by the user, and is evaluated as "strong", in order to ensure the user experience, the triggered power consumption level is reduced by one level, and the triggered power consumption level is "medium".
When the scenario is evaluated low, it is interpreted that the scenario is rarely used by users, and the power consumption level triggered under the scenario remains unchanged. For example, the current scene is "high definition shooting", the scene is liked to be "low", the power consumption level triggered at this time is "strong", the user experience is not required to be considered, and the power consumption trigger level is maintained to be "strong".
In some embodiments, the third processing unit 23 is configured to
And determining that the execution requirement of the application scene exceeds a requirement standard, and if the electric quantity endurance state does not reach the preset electric quantity endurance strength, reducing the power consumption corresponding to the application scene in the current running state by adjusting a pixel clock.
In the embodiment of the disclosure, the pixel clock is related to pixel acquisition in a camera application scene, and is also related to power consumption. The smaller the clock period of the pixel clock, the higher the pixel acquisition frequency and the higher the power consumption. When the clock period of the pixel clock is increased, the pixel acquisition frequency is reduced, and the power consumption is reduced. Therefore, the power consumption corresponding to the application scene in the current running state can be reduced by adjusting the pixel clock.
In some embodiments, the third processing unit 23 is configured to
Based on the mapping relation between the camera chip parameters and the pixel clock, adjusting the clock period of the pixel clock in the application scene; the clock period of the pixel clock is used for controlling the acquisition frequency of pixel points when the camera acquires images, and the acquisition frequency is related to the power consumption of the terminal equipment when the terminal equipment moves in an application scene; the camera chip parameters are used to write a register to control the clock cycle.
In the embodiment of the disclosure, a mapping relation between camera chip parameters and the pixel clock can be established. The camera chip parameters at least comprise a first clock parameter, a second clock parameter and a third clock parameter; table 8 shows the camera chip parameters versus pixel clock. As shown in table 8, the first clock parameter corresponds to the first pixel clock, the second clock parameter corresponds to the second pixel clock, and the third clock parameter corresponds to the third pixel clock. The camera chip parameter writing register can control clock period, thereby controlling the acquisition frequency and power consumption of pixel points when the camera acquires images. The higher the acquisition frequency is, the higher the power consumption is when the terminal equipment moves in an application scene.
Table 8 camera chip parameters versus pixel clock table.
Parameter set provided by camera chip factory First clock parameter Second clock parameter Third clock parameter
Pixel clock size First pixel clock Second pixel clock Third pixel clock
In the embodiment of the present disclosure, after entering the preview scene, when the power consumption value is detected to trigger the preset power consumption threshold level to be in the "high" range (for example, the first power consumption level), if the following further power consumption adjustment policy is not provided, the highest-intensity power consumption optimization policy should be adopted. In order to better evaluate the power consumption from the aspects of the cruising ability of the electric quantity and the use evaluation rate of the scene, an in-depth analysis is required for the power consumption adjustment scheme.
After the power consumption adjustment strategy is triggered, the scene is obtained through scene evaluation, the scene is a common preview, the power consumption duration evaluation module is used for obtaining the fact that the power consumption is weak (for example, the second power consumption duration) at the moment, the fact that the power consumption is insufficient at the moment is seriously influenced by the fact that the power consumption is insufficient at the moment is indicated, the power consumption level of the trigger is required to be reduced by one level to be middle (for example, the second power consumption level), the scene is obtained to be high according to the fact that the current scene is the common preview, the scene is obtained through the use frequency of the scene, the fact that the common preview scene goes deep into the user's heart is indicated at the moment, the power consumption level is required to be reduced by one level again, and the power consumption level is changed to be low (for example, the third power consumption level).
The finally estimated power consumption level, which is initially triggered as "high", becomes "low" after being estimated by "battery endurance" and "scene use frequency".
At this time, the result obtained by the pixel clock evaluation unit is low through the adjustment unit, the pixel clock is found out to be small according to the corresponding relation of the corresponding relation table of the triggering power consumption level and the pixel clock, then the information related to the register of the first clock parameter is obtained according to the corresponding relation of the preset parameter of the camera chip and the parameter of the pixel clock, and then the purpose of reducing the power consumption is achieved by calling the group of parameter information.
In the embodiment of the disclosure, power consumption is monitored when a camera is started, an operation scene or a functional mode of a camera application program is obtained according to a preset power consumption threshold, and then the clock size of a pixel of a camera chip is adjusted after a plurality of factors are integrated according to the use frequency of a user scene by judging the strength of the current battery endurance. Because the image graph time sequence is a clock depending on pixels, the speed of the pixel clock directly determines the speed of the current chip graph data, and the faster the graph is, the power consumption is increased, otherwise, the purpose of reducing the power consumption is achieved, so that the cruising ability is ensured, the experience of a user when the camera is used is ensured, and the purpose of reducing the power consumption from the source is achieved.
In the embodiment of the disclosure, fig. 3 is a schematic diagram of a control unit structure of power consumption according to an exemplary embodiment. As shown in fig. 3, the control unit includes a monitoring power consumption unit 31, a preset dividing unit 32, a determining unit 33, and an adjusting unit 34. Wherein the monitoring power consumption unit 31 is configured to monitor the power consumption of the functional application in real time. The preset dividing unit 32 is used for power consumption class division, power duration division, scene use frequency division, and the like. The determining unit 33 is configured to determine a power consumption level of the function application, a battery life of the current terminal device, and the like. And the adjusting unit 34 is configured to adjust the power consumption level corresponding to the function application according to the power consumption condition of the current terminal device.
Fig. 4 is a schematic block diagram showing a determining unit in a management and control unit according to an exemplary embodiment. As shown in fig. 4, the determination unit includes: a power consumption evaluation module 41 for evaluating a power consumption level of a current functional application; a scene determination module 42 for determining a current usage scene of the camera; the electric quantity cruising ability module 43 is configured to determine a current electric quantity cruising ability of the current terminal; a scene usage frequency evaluation module 44 for evaluating the usage frequency of the current camera usage scene; the pixel clock module 45 is configured to determine a current pixel clock, provide a basis for subsequent pixel clock adjustment, and adjust the pixel clock according to a power consumption level corresponding to the function application.
The embodiment of the disclosure also provides a terminal, which comprises: a processor and a memory, the memory having stored thereon a computer program capable of being run on the processor for performing the steps of the method according to the embodiments when the computer program is run.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the method described in the embodiments.
Fig. 5 is a schematic view of an application scenario of an electronic device with a photographing function according to an exemplary embodiment. As shown in fig. 5, the electronic devices 101, 102 having a photographing function can be applied to a cellular network. And stopping wifi connection when receiving the indication of wireless transmission by adopting the cellular circuit, and recovering wifi connection when receiving the indication of wireless transmission by adopting the cellular circuit. The network environment includes electronic devices 101, 102, wifi access point 103, cellular base station 104, and network 105. )
Fig. 6 is a device block diagram of an electronic device, according to an example embodiment. For example, the electronic device may be a mobile phone, computer, digital broadcast electronic device, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, and the like.
Referring to fig. 6, the electronic device may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device, such as operations associated with touch, phone call, data communication, camera operation, and recording operation. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, video, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 806 provides power to various components of the electronic device. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device devices.
The multimedia component 808 includes a screen between the electronic device and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the electronic device is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device. For example, the sensor assembly 814 may detect an on/off state of the electronic device, a relative positioning of the components, such as a display and keypad of the electronic device, the sensor assembly 814 may also detect a change in position of the electronic device or a component of the electronic device, the presence or absence of a user's contact with the electronic device, an orientation or acceleration/deceleration of the electronic device, and a change in temperature of the electronic device. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device and other devices, either wired or wireless. The electronic device may access a wireless network based on a communication standard, such as WiFi,4G, or 5G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (24)

1. A method for managing power consumption, comprising:
determining the function application executed under the current running state of the terminal equipment;
determining a power consumption level corresponding to the function application based on the function application;
and if the determined power consumption level reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the executed function application.
2. The method for controlling power consumption according to claim 1, wherein the adjusting the power consumption level in the current running state of the terminal device based on the determined power consumption level, the current power consumption continuation state of the terminal device, and the execution requirement of the executed function application includes:
if the execution requirement of the function application exceeds the requirement standard, adjusting the power consumption level of the terminal equipment in the current running state based on the current electric quantity endurance state of the terminal equipment;
Wherein, the execution requirement that the function application has exceeds the requirement standard at least includes: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration.
3. The method for controlling power consumption according to claim 2, wherein the adjusting the power consumption level of the terminal device in the current running state based on the current power consumption continuation state of the terminal device includes:
and if the current electric quantity duration state of the terminal equipment does not reach the preset electric quantity duration strength, reducing the power consumption level corresponding to the executed function application in the current running state of the terminal equipment.
4. The method for controlling power consumption according to claim 3, wherein the adjusting the power consumption level of the terminal device in the current running state based on the current power consumption continuation state of the terminal device includes:
and if the current electric quantity endurance state of the terminal equipment reaches the preset electric quantity endurance strength, maintaining the power consumption level corresponding to the executed function application in the current running state of the terminal equipment unchanged.
5. The method for controlling power consumption according to claim 2, wherein the adjusting the power consumption level in the current running state of the terminal device based on the determined power consumption level, the current power consumption continuation state of the terminal device, and the execution requirement of the executed function application includes:
and if the execution requirement of the function application does not exceed the requirement standard, maintaining the power consumption level corresponding to the function application executed under the current running state of the terminal equipment unchanged.
6. The method for controlling power consumption according to claim 3, wherein the power duration state of the terminal device at least includes: the system comprises a first electric quantity endurance intensity and a second electric quantity endurance intensity, wherein the corresponding battery electric quantity under the first electric quantity endurance intensity is larger than the corresponding battery electric quantity under the second electric quantity endurance intensity; wherein,,
the current electric quantity endurance state of the terminal device does not reach the preset electric quantity endurance strength, and at least comprises:
and determining that the current electric quantity endurance state of the terminal equipment is the second electric quantity endurance intensity.
7. A method of managing power consumption according to claim 3, characterized in that the power consumption level comprises at least:
The power consumption control circuit comprises first-stage power consumption, second-stage power consumption and third-stage power consumption, wherein a power consumption value corresponding to the first-stage power consumption is larger than a power consumption value corresponding to the second-stage power consumption, and a power consumption value corresponding to the second-stage power consumption is larger than a power consumption value corresponding to the third-stage power consumption; wherein,,
the power consumption level reaching a predetermined power consumption level includes at least: the power consumption level corresponding to the function application is determined as first-stage power consumption;
the reducing the power consumption level corresponding to the function application executed in the current running state of the terminal equipment at least comprises:
the first-stage power consumption of the terminal equipment in the current running state is adjusted to be the second-stage power consumption, or,
and adjusting the first-stage power consumption of the terminal equipment in the current running state to be third-stage power consumption.
8. The method for controlling power consumption according to claim 1, wherein the determining, based on the function application, a power consumption level corresponding to the function application includes:
determining a power consumption threshold corresponding to the power consumption level; wherein, the power consumption levels are different, and the corresponding power consumption thresholds are different;
and determining the power consumption level corresponding to the functional application based on the power consumption generated by the terminal equipment executing the functional application and a power consumption threshold corresponding to the power consumption level.
9. The method for controlling power consumption according to claim 1, wherein the function application executed in the current running state of the terminal device includes:
an application scene when a camera application program of the terminal equipment runs;
the determining the power consumption level corresponding to the functional application comprises the following steps: determining a power consumption level corresponding to an application scene when the camera application program runs;
the step of adjusting the power consumption level of the terminal device in the current running state based on the determined power consumption level, the current power consumption level of the terminal device, and the execution requirement of the executed function application when the determined power consumption level reaches a predetermined power consumption level includes:
and if the power consumption level corresponding to the application scene reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the application scene.
10. The method for controlling power consumption according to claim 9, wherein the adjusting the power consumption level in the current running state of the terminal device based on the determined power consumption level, the current power consumption duration state of the terminal device, and the execution requirement of the application scenario includes:
And determining that the execution requirement of the application scene exceeds a requirement standard, and if the electric quantity endurance state does not reach the preset electric quantity endurance strength, reducing the power consumption corresponding to the application scene in the current running state by adjusting a pixel clock.
11. The method for controlling power consumption according to claim 10, wherein the reducing power consumption corresponding to the application scenario in the current running state by adjusting a pixel clock includes:
based on the mapping relation between the camera chip parameters and the pixel clock, adjusting the clock period of the pixel clock in the application scene; the clock period of the pixel clock is used for controlling the acquisition frequency of pixel points when the camera acquires images, and the acquisition frequency is related to the power consumption of the terminal equipment when the terminal equipment moves in an application scene; the camera chip parameters are used to write a register to control the clock cycle.
12. A power consumption management and control apparatus, comprising:
the first processing unit is used for determining the function application executed under the current running state of the terminal equipment;
the second processing unit is used for determining the power consumption level corresponding to the functional application based on the functional application;
And the third processing unit is used for adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the executed function application when the determined power consumption level reaches the preset power consumption level.
13. The power consumption management and control apparatus of claim 12, wherein the third processing unit is configured to
If the execution requirement of the function application exceeds the requirement standard, adjusting the power consumption level of the terminal equipment in the current running state based on the current electric quantity endurance state of the terminal equipment;
wherein, the execution requirement that the function application has exceeds the requirement standard at least includes: the frequency of the function application being executed within the preset time exceeds the preset frequency, and/or the duration of the function application being executed continuously exceeds the preset duration.
14. The power consumption management and control apparatus of claim 13, wherein the third processing unit is configured to
And if the current electric quantity duration state of the terminal equipment does not reach the preset electric quantity duration strength, reducing the power consumption level corresponding to the executed function application in the current running state of the terminal equipment.
15. The power consumption management and control apparatus of claim 14, wherein the third processing unit is configured to
And if the current electric quantity endurance state of the terminal equipment reaches the preset electric quantity endurance strength, maintaining the power consumption level corresponding to the executed function application in the current running state of the terminal equipment unchanged.
16. The power consumption management and control apparatus of claim 13, wherein the third processing unit is configured to
And if the execution requirement of the function application does not exceed the requirement standard, maintaining the power consumption level corresponding to the function application executed under the current running state of the terminal equipment unchanged.
17. The power consumption management and control apparatus according to claim 14, wherein the terminal device power duration state at least includes: the system comprises a first electric quantity endurance intensity and a second electric quantity endurance intensity, wherein the corresponding battery electric quantity under the first electric quantity endurance intensity is larger than the corresponding battery electric quantity under the second electric quantity endurance intensity; wherein,,
the current electric quantity endurance state of the terminal device does not reach the preset electric quantity endurance strength, and at least comprises:
and determining that the current electric quantity endurance state of the terminal equipment is the second electric quantity endurance intensity.
18. The power consumption management and control apparatus of claim 14, wherein the power consumption level comprises at least:
the power consumption control circuit comprises first-stage power consumption, second-stage power consumption and third-stage power consumption, wherein a power consumption value corresponding to the first-stage power consumption is larger than a power consumption value corresponding to the second-stage power consumption, and a power consumption value corresponding to the second-stage power consumption is larger than a power consumption value corresponding to the third-stage power consumption; wherein,,
the power consumption level reaching a predetermined power consumption level includes at least: the power consumption level corresponding to the function application is determined as first-stage power consumption;
the reducing the power consumption level corresponding to the function application executed in the current running state of the terminal equipment at least comprises:
the first-stage power consumption of the terminal equipment in the current running state is adjusted to be the second-stage power consumption, or,
and adjusting the first-stage power consumption of the terminal equipment in the current running state to be third-stage power consumption.
19. The power consumption management and control apparatus of claim 12, wherein the second processing unit is configured to
Determining a power consumption threshold corresponding to the power consumption level; wherein, the power consumption levels are different, and the corresponding power consumption thresholds are different;
and determining the power consumption level corresponding to the functional application based on the power consumption generated by the terminal equipment executing the functional application and a power consumption threshold corresponding to the power consumption level.
20. The power consumption management and control apparatus according to claim 12, wherein the function application executed in the current operation state of the terminal device includes:
an application scene when a camera application program of the terminal equipment runs;
the second processing unit is used for determining the power consumption level corresponding to the application scene when the camera application program runs;
the third processing unit is used for
And if the power consumption level corresponding to the application scene reaches the preset power consumption level, adjusting the power consumption level of the terminal equipment in the current running state based on the determined power consumption level, the current electric quantity endurance state of the terminal equipment and the execution requirement of the application scene.
21. The power consumption management and control apparatus of claim 20, wherein the third processing unit is configured to
And determining that the execution requirement of the application scene exceeds a requirement standard, and if the electric quantity endurance state does not reach the preset electric quantity endurance strength, reducing the power consumption corresponding to the application scene in the current running state by adjusting a pixel clock.
22. The power consumption management and control apparatus of claim 20, wherein the third processing unit is configured to
Based on the mapping relation between the camera chip parameters and the pixel clock, adjusting the clock period of the pixel clock in the application scene; the clock period of the pixel clock is used for controlling the acquisition frequency of pixel points when the camera acquires images, and the acquisition frequency is related to the power consumption of the terminal equipment when the terminal equipment moves in an application scene; the camera chip parameters are used to write a register to control the clock cycle.
23. A terminal, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is adapted to perform the steps of the method of any of claims 1 to 11 when the computer program is run.
24. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 11.
CN202210124720.3A 2022-02-10 2022-02-10 Power consumption control method, power consumption control device, terminal and storage medium Pending CN116627239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210124720.3A CN116627239A (en) 2022-02-10 2022-02-10 Power consumption control method, power consumption control device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210124720.3A CN116627239A (en) 2022-02-10 2022-02-10 Power consumption control method, power consumption control device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116627239A true CN116627239A (en) 2023-08-22

Family

ID=87619880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210124720.3A Pending CN116627239A (en) 2022-02-10 2022-02-10 Power consumption control method, power consumption control device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116627239A (en)

Similar Documents

Publication Publication Date Title
CN110796988B (en) Backlight adjusting method and device
US10409684B2 (en) Method, device and storage medium for cleaning memory
CN107943409B (en) Touch screen control method and device
CN107608561B (en) Touch screen control method and device
CN106843706B (en) Shutdown control method and device and terminal equipment
CN107943347B (en) Touch screen control method and device
CN107040591B (en) Method and device for controlling client
CN108200279B (en) Backlight adjusting method, device and equipment
CN110262692B (en) Touch screen scanning method, device and medium
CN107480785B (en) Convolutional neural network training method and device
CN108922479B (en) Method and device for managing liquid crystal display module
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN115579971A (en) Charging control method, charging control device, electronic device, and storage medium
CN112821508A (en) Charging method, charging device and storage medium
CN109922203B (en) Terminal, screen off method and device
CN112748817A (en) Information control method and device, terminal and storage medium
CN110879658A (en) Method and device for adjusting display brightness, electronic equipment and storage medium
CN112752328A (en) Network control method, device and storage medium
CN107528098B (en) Charging method and device
CN116627239A (en) Power consumption control method, power consumption control device, terminal and storage medium
CN112565521B (en) Information processing method, device, terminal and storage medium
CN115695650B (en) Indoor and outdoor scene switching identification method, device, equipment and storage medium
CN113138036B (en) Temperature detection method and device and electronic equipment
CN111414245B (en) Method, device and medium for controlling flash memory read-write rate
CN111343336B (en) Mode switching method and device, electronic equipment and computer readable 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