CN112799495A - Power consumption mode setting method, terminal device and computer readable storage medium - Google Patents

Power consumption mode setting method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN112799495A
CN112799495A CN202110080343.3A CN202110080343A CN112799495A CN 112799495 A CN112799495 A CN 112799495A CN 202110080343 A CN202110080343 A CN 202110080343A CN 112799495 A CN112799495 A CN 112799495A
Authority
CN
China
Prior art keywords
power consumption
consumption mode
preset threshold
switching
battery voltage
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
CN202110080343.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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202110080343.3A priority Critical patent/CN112799495A/en
Publication of CN112799495A publication Critical patent/CN112799495A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a power consumption mode setting method, a terminal device and a computer readable storage medium, wherein the power consumption mode setting method comprises the following steps: acquiring battery voltage and corresponding acquisition time; determining a voltage change rule according to the acquired battery voltage and the acquisition time; and judging whether the value of the voltage change rule exceeds a preset threshold, and switching to a corresponding power consumption mode according to a judgment result. According to the invention, the power consumption mode is switched according to the relation between the change rule values of the battery voltage and the acquisition time and the preset threshold, so that more accurate power consumption mode switching is realized, and the user can estimate the power consumption scheme conveniently.

Description

Power consumption mode setting method, terminal device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a power consumption mode setting method, a terminal device, and a computer-readable storage medium.
Background
The mobile terminal adopts a rechargeable battery, and the mobile terminal is set to enter different power consumption modes along with the reduction of the battery power in the use process of the mobile terminal, for example, the mobile terminal is set to be in a power saving mode when the battery power of the mobile terminal is below 20%, and is set to be in a super power saving mode when the battery power of the mobile terminal is below 5%, and the purpose of the settings is to improve the whole use duration of the battery of the mobile terminal in an emergency.
However, the mobile terminal currently sets the power consumption mode when the preset battery power value threshold is reached, which may cause the mobile terminal to enter the power saving mode too early or too late when the power calculation is not accurate, and thus it is inconvenient for the user to estimate the power consumption scheme.
Accordingly, there is a need for improvements and developments in the art.
Disclosure of Invention
The present invention provides a power consumption mode setting method, a terminal device and a computer readable storage medium, aiming at solving the technical problem that the setting of the existing power consumption mode scheme can cause the power saving mode to be entered too early or too late when the power calculation is not accurate, and the user is not convenient to estimate the power consumption scheme.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a power consumption mode setting method, which comprises the following steps:
acquiring battery voltage and corresponding acquisition time;
determining a voltage change rule according to the acquired battery voltage and the acquisition time;
and judging whether the value of the voltage change rule exceeds a preset threshold, and switching to a corresponding power consumption mode according to a judgment result.
Further, before the obtaining the battery voltage and the corresponding obtaining time, the method includes:
the method comprises the steps that the total voltage of a battery comprises a plurality of intervals, and the preset threshold is associated with the intervals, wherein the intervals comprise a first lower limit and a first upper limit;
the power consumption pattern is associated with the preset threshold.
Further, the determining the voltage change rule according to the acquired battery voltage and the acquired time specifically includes:
and calculating the change slope according to the currently acquired battery voltage and the corresponding acquisition time.
Further, the determining whether the value of the voltage change rule exceeds a preset threshold, and switching to the corresponding power consumption mode according to the determination result specifically includes:
comparing the change slope with the preset threshold, wherein the preset threshold is a slope value;
and when the change slope exceeds the preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
Further, the determining whether the value of the voltage change rule exceeds a preset threshold, and switching to the corresponding power consumption mode according to the determination result specifically includes:
obtaining N change slopes, and comparing the N change slopes with corresponding preset thresholds one by one;
and when more than X of the N change slopes exceeds a preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
Further, determining a voltage change rule according to the acquired battery voltage and the acquisition time specifically includes:
comparing the first battery voltage obtained at present with a second battery voltage obtained at the last moment;
and calculating the change rate of the battery voltage at the current acquisition time and the battery voltage corresponding to the last acquisition time.
Further, the determining whether the value of the voltage change rule exceeds a preset threshold, and switching to the corresponding power consumption mode according to the determination result specifically includes:
comparing the change rate with the preset threshold, wherein the preset threshold is a rate value;
and when the change rate exceeds the preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
Further, the determining whether the value of the voltage change rule exceeds a preset threshold, and switching to the corresponding power consumption mode according to the determination result specifically includes:
obtaining M change rates, and comparing the M change rates with corresponding preset thresholds;
when Y or more than Y of the M change slopes exceed a preset threshold, switching to a first power consumption mode, and otherwise, switching to a second power consumption mode.
The present invention also provides a power consumption mode setting system, including:
the system comprises a presetting module, a power consumption module and a control module, wherein the presetting module is used for dividing the battery voltage into a plurality of intervals in advance and associating the corresponding power consumption modes, the corresponding preset thresholds and the partitions one by one;
the acquisition module is used for acquiring the battery voltage and corresponding acquisition time;
and the starting module is used for judging whether the value of the voltage change rule exceeds a preset threshold or not and switching to a corresponding power consumption mode according to a judgment result.
Based on the above power consumption mode setting method, the present invention also provides a computer-readable storage medium storing a power consumption mode setting program, which is executed by a processor to implement the steps in the power consumption mode setting method as described above.
Based on the above power consumption mode setting method, the present invention further provides a terminal device, where the terminal device includes: a processor and memory and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes communication connection between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the power consumption mode setting method as described above.
Has the advantages that: compared with the prior art, the invention provides a power consumption mode setting method, terminal equipment and a computer readable storage medium, wherein the power consumption mode setting method comprises the following steps: acquiring battery voltage and corresponding acquisition time; determining a voltage change rule according to the acquired battery voltage and the acquisition time; and judging whether the value of the voltage change rule exceeds a preset threshold, and switching to a corresponding power consumption mode according to a judgment result. According to the invention, the power consumption mode is switched according to the relation between the change rule values of the battery voltage and the acquisition time and the preset threshold, so that more accurate power consumption mode switching is realized, and the user can estimate the power consumption scheme conveniently.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a power consumption mode setting method according to the present invention;
FIG. 2 is a flowchart of steps M10 and M20 of the power consumption mode setting method according to the present invention;
fig. 3 is a flowchart of step S20 of the power consumption mode setting method according to the present invention;
fig. 4 is a flowchart of steps S310 and S311 of the power consumption mode setting method provided by the present invention;
fig. 5 is a flowchart of steps S320 and S321 of the power consumption mode setting method provided by the present invention;
fig. 6 is a flowchart of steps S330 and S331 of the power consumption mode setting method according to the present invention;
fig. 7 is a flowchart of steps S340 and S341 of the power consumption mode setting method according to the present invention;
fig. 8 is a schematic structural diagram of an alternative embodiment of a terminal device provided in the present invention.
Detailed Description
The invention provides a power consumption mode setting method, terminal equipment and a computer readable storage medium, and aims to solve the technical problems that the setting of the existing power consumption mode scheme can cause the power saving mode to be entered too early or too late when the electric quantity is not accurately calculated, and the power consumption scheme is inconvenient for a user to estimate.
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when …" or "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted depending on the context to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings of the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced otherwise than as specifically described and similarly intended by those of ordinary skill in the art without departing from the spirit of the present invention, which is not limited to the specific embodiments disclosed below.
The embodiments of the present invention are intended to explain technical concepts of the present invention, technical problems to be solved, technical features constituting technical solutions, and technical effects to be brought about in more detail. The embodiments are explained below, but the scope of the present invention is not limited thereto. Further, the technical features of the embodiments described below may be combined with each other as long as they do not conflict with each other.
At present, a rechargeable battery is adopted by a mobile terminal, and during the use of the mobile terminal, along with the reduction of the battery level of the battery, the mobile terminal is set to enter different power consumption modes, for example, the mobile terminal is set to be a power saving mode when the battery level of the mobile terminal is below 20%, and the mobile terminal is set to be a super power saving mode when the battery level of the mobile terminal is below 5%, and the purpose of these settings is to improve the overall use duration of the battery of the mobile terminal in an emergency. However, the mobile terminal currently sets the power consumption mode when the preset battery power value threshold is reached, which may cause the mobile terminal to enter the power saving mode too early or too late when the power calculation is not accurate, and thus it is inconvenient for the user to estimate the power consumption scheme.
In order to solve the technical problem, the invention provides a power consumption mode setting method, which performs power consumption mode switching according to the magnitude relation between the change rule values of the battery voltage and the acquisition time and the preset threshold, so that more accurate power consumption mode switching is realized, and a user can estimate a power consumption scheme conveniently.
The invention will be further explained by the description of the embodiments with reference to the drawings.
As shown in fig. 1, the present embodiment provides a power consumption mode setting method, including:
and S10, acquiring the battery voltage and corresponding acquisition time.
And S20, determining a voltage change rule according to the acquired battery voltage and the acquisition time.
And S30, judging whether the value of the voltage change rule exceeds a preset threshold, and switching to a corresponding power consumption mode according to the judgment result.
In specific implementation, in this embodiment, the battery voltage of the mobile terminal is obtained at intervals of preset time, and corresponding obtaining time for obtaining the battery voltage is obtained, where the preset time may be set as needed, and may be preset before or after leaving a factory. After the battery voltage and the corresponding acquisition time are acquired, calculation is performed according to the battery voltage and the acquisition time to obtain a corresponding change value, namely a change rule. And comparing the change value with the preset threshold, and if the change value exceeds the preset threshold, switching to a corresponding power consumption mode. The power consumption modes can be a plurality of modes, and the plurality of power consumption modes comprise a power saving mode and a normal mode.
According to the embodiment, the power consumption mode is switched according to the relation between the change rule values of the battery voltage and the acquisition time and the preset threshold, so that more accurate power consumption mode switching is realized, and the user can estimate the power consumption scheme conveniently.
Further, as shown in fig. 2, before the step S10, the method includes:
m10, including the total battery voltage into a plurality of intervals, wherein the preset threshold is associated with the intervals, and the intervals include a first lower limit and a first upper limit;
m20, and the power consumption mode is associated with the preset threshold.
In a specific implementation, in this embodiment, the preset threshold may be multiple, the total voltage value of the battery is divided into multiple intervals, and a battery voltage range of each interval is associated with one preset threshold correspondingly.
Specifically, the battery voltage is divided into a plurality of values in advance, and adjacent two values in the battery voltage values form a range;
illustratively, the total battery voltage value is divided into battery voltage values having the following values: v1, V2, V3, V4. Then adjacent ones of these battery voltage values form a range including:
the range 1 is that the battery voltage is greater than or equal to V1 and less than V2, wherein V1 is a first lower limit, and V2 is a first upper limit;
range 2 is a cell voltage of equal to or greater than V2 and less than V3, where V2 is a first lower limit and V3 is a first upper limit;
the range 3 is a battery voltage greater than or equal to V3 and less than V4, wherein V3 is a first lower limit, and V4 is a first upper limit;
......
the range N is the battery voltage VN or higher.
And associating the intervals from the range 1 to the range N with corresponding preset thresholds one by one, and then associating the preset thresholds with the power consumption modes, wherein when the battery voltage of the mobile terminal is obtained, the change value of the battery voltage can be compared with the corresponding preset thresholds, and then the corresponding power consumption modes are switched.
Example one
Further, as shown in fig. 3, the S20 specifically includes:
and S21, calculating the change slope according to the currently acquired battery voltage and the corresponding acquisition time.
In specific implementation, in this embodiment, the current battery voltage of the mobile terminal and the obtaining time when the current battery voltage is obtained are obtained, and the corresponding change slope is calculated according to the current battery voltage and the obtaining time.
Further, as shown in fig. 4, the S30 specifically includes:
s310, comparing the change slope with the preset threshold, wherein the preset threshold is a slope value;
s311, when the change slope exceeds the preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
In specific implementation, in this embodiment, when the battery voltage is obtained, an interval range corresponding to the battery voltage is determined, and a corresponding preset threshold is obtained according to the interval range. For example, when the battery voltage is in the interval of the range 1, obtaining a value of a preset threshold (marked as a first preset threshold) associated with the range 1, calculating a corresponding change slope through the battery voltage and the obtaining time, comparing the change slope with the first preset threshold, and if the change slope is greater than the first preset threshold, switching the power consumption mode of the mobile terminal to the first power consumption mode; at this time, the electricity consumption is generally increased within a preset time, and a power consumption mode with a relatively low electricity consumption needs to be changed to prolong the electricity usage duration, so the first power consumption mode is generally a power saving mode (which may be a normal mode, without limitation). If not, switching to the second power consumption mode, at this time, the power consumption is generally normal power consumption within a preset time or less, and only needs to be in the normal power consumption mode, so the first power consumption mode is generally the normal mode (or the power saving mode, without limitation).
Example two
In the method, after the battery voltage is obtained every time, the inclined door meeting the change of the battery voltage does not exceed the preset threshold, and the inclined door exceeds the preset threshold next time; or the current time does not exceed the preset threshold, and the next time does not exceed the preset threshold; resulting in that the normal use mode is set for a moment and the power saving mode is set for a moment finally and continuously.
In order to solve the above problem, the present embodiment provides the following solutions:
further, as shown in fig. 5, the S30 specifically includes:
s320, obtaining N change slopes, and comparing the N change slopes with corresponding preset thresholds one by one;
s321, when more than X of the N change slopes exceeds a preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
In specific implementation, in this embodiment, after the change slope corresponding to the current battery voltage is obtained through calculation, N change slopes before the current time are obtained, the N change slopes are compared with corresponding preset thresholds one by one, and if X change slopes among the N change slopes satisfy that the battery voltage exceeds a preset threshold, a first power consumption mode (which may be a power saving mode) is enabled; if not, the second power consumption mode (which may be a normal mode) is enabled. According to the embodiment, whether the power consumption mode needs to be switched or not is judged through a certain sample, and the switching accuracy is further improved.
EXAMPLE III
Further, as shown in fig. 3, the S20 specifically includes:
s22, comparing the first battery voltage obtained at present with the second battery voltage obtained at the last moment;
and S23, calculating the change rate of the battery voltage at the current acquisition time and the battery voltage corresponding to the last acquisition time.
In specific implementation, in this embodiment, in a preset time interval, the first battery voltage and the second battery voltage are obtained, the corresponding first battery voltage and the corresponding second battery voltage are compared to obtain a variation voltage difference, and the variation voltage difference is compared with a preset variation voltage difference to obtain a variation rate.
Further, as shown in fig. 6, the S30 specifically includes:
s330, comparing the change rate with the preset threshold, wherein the preset threshold is a rate value;
and S331, when the change rate exceeds the preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
In a specific implementation, in this embodiment, the preset threshold is a speed value, the calculated change rate is compared with the preset threshold, and when the obtained result is that the change rate exceeds the preset threshold, it indicates that the power consumption in the preset time is too high and the power consumption needs to be reduced, so that the power consumption mode is switched to the first power consumption mode (generally, the power saving mode). When the obtained result is that the change rate is less than or equal to the preset threshold, at this time, it indicates that the power consumption within the preset time is normal, and the mobile terminal can be used in the normal power consumption mode, so that the power consumption mode is switched to the second power consumption mode (generally, the normal mode).
Example four
In the method, after the battery voltage is obtained every time, the inclined door meeting the change of the battery voltage does not exceed the preset threshold, and the inclined door exceeds the preset threshold next time; or the current time does not exceed the preset threshold, and the next time does not exceed the preset threshold; resulting in that the normal use mode is set for a moment and the power saving mode is set for a moment finally and continuously.
In order to solve the above problem, the present embodiment provides the following solutions:
further, as shown in fig. 7, the S30 specifically includes:
s340, obtaining M change rates, and comparing the M change rates with corresponding preset thresholds;
and S341, when more than Y of the M change slopes exceeds a preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
In this embodiment, when the number of the change rate values is greater than the preset threshold, the first power consumption mode is switched to the second power consumption mode, and if the number of the change rate values is less than the preset threshold, the second power consumption mode is switched to the first power consumption mode. For example, M rate of change values are obtained and compared with the device threshold, and if Y of the M rate of change values is greater than or equal to a preset threshold, it indicates that the power consumption is too high within a preset time and needs to be reduced, so the power consumption mode is switched to the first power consumption mode (generally, the power saving mode). If the number of the change rates larger than the preset threshold is less than Y, the power consumption in the preset time is normal, and the mobile terminal can be used in the normal power consumption mode, so that the power consumption mode is switched to the second power consumption mode (generally, the normal mode). According to the embodiment, whether the power consumption mode needs to be switched or not is judged through a certain sample, and the switching accuracy is further improved.
In summary, compared with the prior art, the embodiment of the invention has the following advantages:
the invention discloses a power consumption mode setting method, a terminal device and a computer readable storage medium, wherein the power consumption mode setting method comprises the following steps: acquiring battery voltage and corresponding acquisition time; determining a voltage change rule according to the acquired battery voltage and the acquisition time; and judging whether the value of the voltage change rule exceeds a preset threshold, and switching to a corresponding power consumption mode according to a judgment result. According to the invention, the power consumption mode is switched according to the relation between the change rule values of the battery voltage and the acquisition time and the preset threshold, so that more accurate power consumption mode switching is realized, and the user can estimate the power consumption scheme conveniently.
Based on the above power consumption mode setting method, the present invention further provides a power consumption mode setting system, which includes:
the system comprises a presetting module, a power consumption module and a control module, wherein the presetting module is used for dividing the battery voltage into a plurality of intervals in advance and associating the corresponding power consumption modes, the corresponding preset thresholds and the partitions one by one;
the acquisition module is used for acquiring the battery voltage and corresponding acquisition time;
the starting module is used for judging whether the value of the voltage change rule exceeds a preset threshold or not and switching to a corresponding power consumption mode according to the judgment result
In specific implementation, in this embodiment, the power consumption mode setting system executes the power consumption setting method to set and switch the power consumption mode. Specifically, the power consumption mode is switched according to the relation between the change rule values of the battery voltage and the acquisition time and the preset threshold, so that more accurate power consumption mode switching is realized, and the power consumption scheme can be estimated by a user conveniently. Since the power consumption mode setting method has been described in detail above, it is not described herein again.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the voice assistant control apparatus and each module/unit may refer to the corresponding description in the foregoing voice assistant control embodiment, and for convenience and brevity of description, no further description is provided herein.
The voice assistant control device may be implemented in a form of a computer program, which may be run on the smart tv as shown in fig. 4.
Based on the above power consumption mode setting method, the present invention further provides a computer-readable storage medium, where a voice assistant control program is stored in the computer-readable storage medium, and the voice assistant control program is executed by a processor to implement the steps in the voice assistant control method according to the above embodiment.
Based on the above power consumption mode setting method, the present invention further provides a terminal device, as shown in fig. 8, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Furthermore, those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the above modules or units is only one logical division, and the actual implementation may be implemented by another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. The specific processes loaded and executed by the storage medium and the instruction processors in the mobile terminal are described in detail in the method, and are not described herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A power consumption mode setting method, characterized by comprising:
acquiring battery voltage and corresponding acquisition time;
determining a voltage change rule according to the acquired battery voltage and the acquisition time;
and judging whether the value of the voltage change rule exceeds a preset threshold, and switching to a corresponding power consumption mode according to a judgment result.
2. The power consumption mode setting method according to claim 1, wherein the obtaining the battery voltage and the corresponding obtaining time are preceded by:
the method comprises the steps that the total voltage of a battery comprises a plurality of intervals, and the preset threshold is associated with the intervals, wherein the intervals comprise a first lower limit and a first upper limit;
the power consumption pattern is associated with the preset threshold.
3. The power consumption mode setting method according to claim 1, wherein the determining a voltage change rule according to the acquired battery voltage and the acquisition time specifically includes:
calculating a change slope according to the currently acquired battery voltage and the corresponding acquisition time;
or comparing the current acquired first battery voltage with a second battery voltage acquired at the last moment;
and calculating the change rate of the battery voltage at the current acquisition time and the battery voltage corresponding to the last acquisition time.
4. The power consumption mode setting method according to claim 3, wherein the determining whether the value of the voltage variation law exceeds a preset threshold and switching to the corresponding power consumption mode according to the determination result specifically comprises:
comparing the change slope with the preset threshold, wherein the preset threshold is a slope value;
and when the change slope exceeds the preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
5. The power consumption mode setting method according to claim 3, wherein the determining whether the value of the voltage variation law exceeds a preset threshold and switching to the corresponding power consumption mode according to the determination result specifically comprises:
obtaining N change slopes, and comparing the N change slopes with corresponding preset thresholds one by one;
and when more than X of the N change slopes exceeds a preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
6. The power consumption mode setting method according to claim 3, wherein the determining whether the value of the voltage variation law exceeds a preset threshold and switching to the corresponding power consumption mode according to the determination result specifically comprises:
comparing the change rate with the preset threshold, wherein the preset threshold is a rate value;
and when the change rate exceeds the preset threshold, switching to a first power consumption mode, otherwise, switching to a second power consumption mode.
7. The power consumption mode setting method according to claim 3, wherein the determining whether the value of the voltage variation law exceeds a preset threshold and switching to the corresponding power consumption mode according to the determination result specifically includes:
obtaining M change rates, and comparing the M change rates with corresponding preset thresholds;
when Y or more than Y of the M change slopes exceed a preset threshold, switching to a first power consumption mode, and otherwise, switching to a second power consumption mode.
8. A power consumption mode setting system, characterized by comprising:
the system comprises a presetting module, a power consumption module and a control module, wherein the presetting module is used for dividing the battery voltage into a plurality of intervals in advance and associating the corresponding power consumption modes, the corresponding preset thresholds and the partitions one by one;
the acquisition module is used for acquiring the battery voltage and corresponding acquisition time;
and the starting module is used for judging whether the value of the voltage change rule exceeds a preset threshold or not and switching to a corresponding power consumption mode according to a judgment result.
9. A computer-readable storage medium storing a power consumption mode setting program which is executed by a processor to implement the steps in the power consumption mode setting method according to any one of claims 1 to 7.
10. A terminal device, characterized in that the terminal device comprises: a processor and memory and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes communication connection between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the power consumption mode setting method according to any one of claims 1 to 7.
CN202110080343.3A 2021-01-21 2021-01-21 Power consumption mode setting method, terminal device and computer readable storage medium Pending CN112799495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110080343.3A CN112799495A (en) 2021-01-21 2021-01-21 Power consumption mode setting method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110080343.3A CN112799495A (en) 2021-01-21 2021-01-21 Power consumption mode setting method, terminal device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112799495A true CN112799495A (en) 2021-05-14

Family

ID=75810998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110080343.3A Pending CN112799495A (en) 2021-01-21 2021-01-21 Power consumption mode setting method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112799495A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080287080A1 (en) * 2007-05-15 2008-11-20 Camp Jr William O Methods of operating a mobile terminal such that a communication operation mode is changed based on a current voltage of a battery that powers the mobile terminal and related mobile terminals and computer program products
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
CN104866069A (en) * 2015-06-12 2015-08-26 广东小天才科技有限公司 Method and device for automatically clearing background application programs
CN105676997A (en) * 2016-01-05 2016-06-15 京东方科技集团股份有限公司 Mobile terminal management method and system and mobile terminal
CN105759942A (en) * 2016-02-25 2016-07-13 广东欧珀移动通信有限公司 Handling method for power consumption anomaly and mobile terminal
CN107844189A (en) * 2017-10-30 2018-03-27 东莞市金铭电子有限公司 A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
CN110187753A (en) * 2019-05-27 2019-08-30 Oppo广东移动通信有限公司 Application control method, device, terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080287080A1 (en) * 2007-05-15 2008-11-20 Camp Jr William O Methods of operating a mobile terminal such that a communication operation mode is changed based on a current voltage of a battery that powers the mobile terminal and related mobile terminals and computer program products
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
CN104866069A (en) * 2015-06-12 2015-08-26 广东小天才科技有限公司 Method and device for automatically clearing background application programs
CN105676997A (en) * 2016-01-05 2016-06-15 京东方科技集团股份有限公司 Mobile terminal management method and system and mobile terminal
CN105759942A (en) * 2016-02-25 2016-07-13 广东欧珀移动通信有限公司 Handling method for power consumption anomaly and mobile terminal
CN107844189A (en) * 2017-10-30 2018-03-27 东莞市金铭电子有限公司 A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
CN110187753A (en) * 2019-05-27 2019-08-30 Oppo广东移动通信有限公司 Application control method, device, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110474420B (en) Control method, control device and control terminal of multi-system uninterruptible power supply
CN109888889B (en) Charging control method and device, storage medium and electronic equipment
EP2651005B1 (en) Battery charging method and mobile terminal
CN104281510A (en) Method and system for obtaining power consumption degree of application program and energy-saving method and system
CN110021792B (en) Charging control method and device, terminal equipment and computer storage medium
CN106707187B (en) Method and device for determining target SOC of battery
CN115102266B (en) Control method of battery system, battery system and off-grid power supply system
CN114954105A (en) Battery replacement method and device, electronic equipment and storage medium
CN112910061B (en) Control method, device and medium for charging system load balancing
CN112152271A (en) Quick charging method, charging device, electronic equipment and charging system
CN112799495A (en) Power consumption mode setting method, terminal device and computer readable storage medium
CN106972558B (en) Charging control method and electronic equipment
CN113741674A (en) Power consumption control method, system, terminal and storage medium for notebook computer
CN109596989B (en) Method and device for displaying electric quantity of electronic equipment and electronic equipment
CN111572400A (en) Charging control method and device applied to electric automobile
CN107895983B (en) Battery equalization method and device, computer readable storage medium, battery management device and vehicle
CN114744713B (en) Charging method, device, equipment and medium of energy storage power supply
CN106786959A (en) Charge control method, device and terminal
CN108899595B (en) Temperature detection method, device and equipment for battery
CN111712985A (en) Charging method, terminal and computer storage medium
CN112018872B (en) UPS control method and UPS
CN114114040A (en) SOC correction method and device for battery pack and computer equipment
CN114301051A (en) Control method and device of direct current power supply system and control equipment
CN113602127A (en) Charging pile energy management method and device
CN112078426A (en) Battery capacity determination method, device, equipment and storage medium

Legal Events

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