CN110554945A - electric quantity control method, electronic equipment and computer readable storage medium - Google Patents

electric quantity control method, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110554945A
CN110554945A CN201810558172.9A CN201810558172A CN110554945A CN 110554945 A CN110554945 A CN 110554945A CN 201810558172 A CN201810558172 A CN 201810558172A CN 110554945 A CN110554945 A CN 110554945A
Authority
CN
China
Prior art keywords
electric quantity
state information
electronic device
information
electronic equipment
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
CN201810558172.9A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810558172.9A priority Critical patent/CN110554945A/en
Publication of CN110554945A publication Critical patent/CN110554945A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Power Sources (AREA)

Abstract

the embodiment of the invention discloses an electric quantity control method, which is applied to electronic equipment and comprises the following steps: acquiring state information of the electronic equipment; determining the power consumption represented by the state information based on the state information, and determining a low power threshold corresponding to the power consumption represented by the state information; and detecting the residual electric quantity of the electronic equipment, and outputting an electric quantity prompt message when the residual electric quantity is lower than a low electric quantity threshold corresponding to the electric quantity represented by the state information. The embodiment of the invention also discloses electronic equipment and a computer readable storage medium.

Description

Electric quantity control method, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminal control, but not limited to, and particularly relates to an electric quantity control method, a terminal and a computer storage medium.
Background
With the continuous development of electronic devices, portable electronic devices such as mobile terminals, tablet computers, handheld game consoles and the like are available everywhere. The electric quantity of the storage battery of the electronic equipment is detected, so that a user can be prompted to reasonably utilize the electronic equipment.
at present, in order to prevent the electric quantity of the electronic equipment from being quickly consumed, a low-electric-quantity threshold value is set for the electronic equipment, and when the electric quantity of the electronic equipment reaches the low-electric-quantity threshold value, the electronic equipment can remind a user that the current electric quantity is in a low level, the charging is required in time, and the high-power-consumption operation is reduced; or when the electric quantity reaches the low-electric-quantity threshold value, the electronic equipment automatically switches to the low-electric-quantity mode, and the electric quantity consumption is reduced.
However, the low power threshold set for the electronic device in the related art is a fixed value set in advance; since the usage scenarios of different users are different, it is obviously difficult to match the usage scenarios of all users by using one threshold; therefore, the single and fixed low battery threshold cannot meet the actual requirements of the user, and the problem of untimely sending of the prompt message is caused. For example, in a non-indoor scene where a user lacks a charging environment, a lower low power threshold prompt message may cause the user to fail to charge in time or reduce high power consumption operations, which may result in the rapid completion of power consumption; for another example, for a user who heavily depends on electronic equipment, the power consumption speed of the electronic equipment is much faster than that of an ordinary user, and setting a fixed low power threshold value the same as that of the ordinary user for the electronic equipment of the user may cause a problem that the power reminding message and the control mode switching are not timely sent to the user.
Disclosure of Invention
In order to solve the above technical problems in the related art, embodiments of the present invention provide an electric quantity control method, an electronic device, and a computer-readable storage medium, which solve the problems in the related art that electric quantity cannot be prompted according to an actual scene and a set low electric quantity threshold is single and fixed.
in order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
The embodiment of the invention provides an electric quantity control method, which comprises the following steps:
acquiring state information of the electronic equipment;
Determining the power consumption represented by the state information based on the state information, and determining a low power threshold corresponding to the power consumption represented by the state information;
and detecting the residual electric quantity of the electronic equipment, and outputting an electric quantity prompt message when the residual electric quantity is lower than a low electric quantity threshold corresponding to the electric quantity represented by the state information.
an embodiment of the present invention further provides an electronic device, where the electronic device includes:
The acquisition unit is used for acquiring the state information of the electronic equipment;
The determining unit is used for determining the power consumption represented by the state information based on the state information and determining a low power threshold corresponding to the power consumption represented by the state information;
And the processing unit is used for detecting the residual electric quantity of the electronic equipment and outputting an electric quantity prompting message when the residual electric quantity is lower than a low electric quantity threshold corresponding to the electric quantity represented by the state information.
An embodiment of the present invention further provides an electronic device, including: a processor and a memory configured to store a computer program capable of running on the processor,
Wherein the processor is configured to perform the steps of any of the above methods when executing the computer program.
embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the above methods.
the electric quantity control method, the electronic device and the computer readable storage medium provided by the embodiment of the invention can determine the low electric quantity threshold value of each user according to the actual application scene of each user, can dynamically adjust the low regulation threshold value, and then carry out corresponding electric quantity reminding based on the low electric quantity threshold value, solve the problems that electric quantity reminding cannot be carried out according to the actual scene and the set low electric quantity threshold value is single and fixed, ensure the reasonability of electric quantity reminding, and improve the use experience of the user.
drawings
in the drawings, which are not necessarily drawn to scale, like reference numerals may describe similar components in different views. Like reference numerals having different letter suffixes may represent different examples of similar components. The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed herein.
Fig. 1 is a schematic flow chart of an electric quantity control method according to an embodiment of the present invention;
Fig. 2 is a schematic flow chart illustrating another method for controlling electric quantity according to an embodiment of the present invention;
Fig. 3 is a schematic diagram illustrating an architecture composition of an application scenario according to an embodiment of the present invention;
Fig. 4 is a schematic flow chart illustrating another method for controlling power consumption according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
an embodiment of the present invention provides an electric quantity control method, which is shown in fig. 1 and includes the following steps:
Step 101, obtaining state information of the electronic equipment.
The step 101 of acquiring the state information of the electronic device may be implemented by the electronic device; here, the electronic device may be any type of mobile terminal device having a power reminding function; in practical applications, the electronic device includes but is not limited to: smart phones, tablet computers, PDAs (Personal Digital assistants), POS (Point of Sales) machines, smart wearable devices (smart devices that can be worn on a user), and the like.
in other embodiments of the present invention, the state information may include information included in a state in which the electronic device is currently located. For example, the current state of the electronic device may include current power consumption, currently running applications, current geographic location, and the like; preferably, in this embodiment, the status information at least includes power consumption information of the electronic device, that is, real-time power consumption information of the electronic device.
In this embodiment, the electronic device may obtain the state information of the electronic device according to a preset time period; or when the state change of the electronic equipment is detected, the state information of the electronic equipment is acquired. In an embodiment, the preset time period may be 1 to 2 minutes, that is, the electronic device automatically acquires the state information of the electronic device within the period; of course, in other embodiments, the preset time period may be any other suitable time period. In addition, the state change of the electronic device may include a case where an application is closed or opened, and location information of the electronic device changes.
And 102, determining the power consumption represented by the state information based on the acquired state information, and determining a low power threshold corresponding to the power consumption represented by the state information.
wherein the step 102 may be implemented by an electronic device.
In one embodiment, the status information may characterize a power consumption amount of the electronic device. In one embodiment, the amount of power consumption indicated by the status information may be quantified as a specific number or level, and the amount of power consumption of the electronic device may be indicated by the corresponding number or level. Illustratively, the magnitude of the power consumption amount represented by the state information may be quantized to a decimal between 0 and 1; for example, a smaller number may indicate a smaller power consumption of the electronic device; a larger number may indicate a larger power consumption of the electronic device.
In one embodiment, the electronic device may calculate the power consumption of the electronic device according to the acquired state information of the electronic device; the calculated amount of power consumption by the electronic device may include an amount of power consumption for a period of time that has not occurred. In this embodiment, the low power threshold is a range of a power value when a user is reminded to charge the electronic device or perform power mode switching; in general, the low battery threshold may be a percentage of the battery capacity of the electronic device.
Magnitude of power consumption (quantized to a value between 0 and 1) Low battery threshold (unit: percentage)
0~0.2 10%
0.2~0.4 20%
0.4~0.6 30%
0.6~0.8 40%
0.8~1 50%
TABLE 1
In other embodiments of the present invention, the electronic device may set different low power thresholds for different power consumption amounts based on the power consumption amount of the electronic device. Specifically, the electronic device stores a correspondence relationship between the power consumption amount and the low power threshold value, that is, the electronic device divides the low power threshold value into several levels in advance in accordance with the power consumption amount.
for example, the correspondence may be stored in the electronic device in a table form; as shown in table 1, when the power consumption is 0.25, the corresponding low power threshold is 0 to 20%.
it should be noted that the correspondence between the power consumption amount and the low power threshold may be in other forms and other values, and those skilled in the art can set the correspondence by themselves, and the present invention is not limited specifically.
Further, in other embodiments of the present invention, step 102 may include the steps of:
Step 1021, the electronic device calculates the predicted value of the power consumption based on the state information.
in step 1022, the electronic device determines a low power threshold corresponding to the predicted power consumption value based on the predicted power consumption value.
the electric quantity consumption predicted value is used for representing the electric quantity consumption in the preset time period.
Specifically, in this embodiment, the electronic device may predict the power consumption of the electronic device within a preset time period according to the state of the electronic device, and determine the low power threshold according to the predicted power consumption; illustratively, the preset time period here may be a time period from the current time to within five or ten minutes of the future.
In such a case, since the states of each electronic device at different times are different, the low power threshold determined for each electronic device at different times in the present embodiment is also different; therefore, the dynamic adjustment of the low-electricity threshold of the electronic equipment is realized, the reasonability of determining the low-electricity threshold is improved, and meanwhile, the experience degree of a user is also improved.
and 103, detecting the residual electric quantity of the electronic equipment, and outputting an electric quantity prompt message when the residual electric quantity is lower than a low electric quantity threshold corresponding to the electric quantity represented by the state information.
Step 103 detects the remaining power of the electronic device, and when the remaining power is lower than the low power threshold corresponding to the power consumption represented by the status information, outputting the power prompt message may be implemented by the electronic device.
specifically, after the low power threshold is determined in step 102, the current remaining power of the electronic device is obtained, and when the remaining power is lower than the determined low power threshold, the user is prompted that the power of the electronic device is about to be consumed or the electronic device is directly switched to the low power mode.
It should be noted that, in this embodiment, the electronic device may obtain the state information of the electronic device according to a preset time period; or when the state change of the electronic equipment is detected, acquiring the state information of the electronic equipment; and then dynamically correcting the low-power threshold value to realize power control of the electronic equipment.
According to the electric quantity control method provided by the embodiment of the invention, the state information of the electronic equipment can be acquired, then the electronic equipment determines the electric power consumption represented by the state information based on the state information, and determines the low electric quantity threshold corresponding to the electric power consumption represented by the state information; finally, by detecting the residual electric quantity of the electronic equipment, when the residual electric quantity is lower than a low electric quantity threshold value corresponding to the electric quantity represented by the state information, outputting an electric quantity prompt message; therefore, before each time of electric quantity prompting, the electronic equipment needs to acquire the state of the electronic equipment, and determines a low electric quantity threshold value according to the state; therefore, the low-power threshold of each user can be determined according to the actual application scene of each user, the low-regulation threshold can be dynamically adjusted, corresponding power reminding is carried out based on the low-power threshold, the problems that power reminding cannot be carried out according to the actual scene and the set low-power threshold is single and fixed are solved, the reasonability of power reminding is guaranteed, and the use experience of the users is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an electric quantity control method, which is shown in fig. 2 and includes the following steps:
Step 201, the electronic device detects whether to turn on a low power threshold dynamic adjustment switch.
In other embodiments of the present invention, the operation interface of the electronic device may further include a low power threshold dynamic adjustment button; optionally, the electronic device may implement the function of dynamically adjusting the low battery threshold only when the low battery threshold dynamic switch is turned on.
Specifically, if the electronic device turns on the dynamic low battery threshold adjustment switch, step 202 is executed; if the electronic device does not turn on the low power threshold dynamic adjustment switch, step 201 is continuously executed.
Step 202, the electronic device obtains its own state information.
The state information may include information included in a current state of the electronic device. Specifically, the status information of the electronic device may include, in addition to the power consumption amount information of the electronic device, in the present embodiment, power consumption amount information of the running application and/or historical average power usage information and/or difference information between the present location and the historical resident location.
Specifically, the power consumption information of the running application may be power consumption information of an application used in a period of time in the vicinity of the electronic device, for example, power consumption information corresponding to video playing, power consumption information of a video call, and the like. Generally, the memory of the electronic device can store the corresponding relation between the application software and the general power consumption information of the application; in this embodiment, the electronic device may first acquire application software used in an adjacent time period, and determine the power consumption information of the running application by querying the power consumption information corresponding to each application software.
In addition, the historical average electricity usage information may be daily electricity usage information of the user, that is, daily electricity usage habits of the user, and specifically, may be average electricity usage of the user at different times of the day. The electronic equipment can record a large amount of historical electric quantity use information, and analyze the acquired historical electric quantity use information through a big data analysis method, so that the daily electric quantity use condition of the user can be accurately obtained; specifically, the average power usage information may be represented by a daily power usage curve. In other embodiments of the present invention, by obtaining the average power usage information of the electronic device, the usage habits of the user at different times can be better predicted. For example, a user usually watches a video program by using a video player of the electronic device at a time from 8 o 'clock to 9 o' clock in the evening in a day, and the power consumption of the user at the time from 8 o 'clock to 9 o' clock in the historical average power usage information is larger than that of the user at other times; therefore, the electronic device can predict the amount of power consumption at the 8 o 'clock to 9 o' clock by the historical power usage information.
The difference information between the located position and the historical resident position can be information for judging the current charging environment of the user; the location may be a current geographic location of the electronic device, and may be obtained through a Global Positioning System (GPS); the historical resident location may be a resident geographic location of the electronic device, such as a home or a business; the historical resident position can be obtained by acquiring and analyzing daily geographic position data of the electronic equipment through a geographic position detection function. In this embodiment, when the location of the electronic device is the same as the historical resident location, it may be considered that the user is currently in a sufficient charging environment, that is, the user is in an environment where charging can be performed at any time, such as the user is at home or a company; when the electronic device is located at a location different from the historical resident location, it may be considered that the user is currently in an environment lacking charging, that is, an environment in which the user cannot be charged at any time, such as an environment in which the user is located outdoors. For example, if the electronic device is located at the same position as the historical resident position, the difference information between the located position and the historical resident position may be represented by 0; if the electronic device is located at a position different from the historical resident position, the difference information between the located position and the historical resident position is represented by 1.
it should be noted that the electronic device may obtain the state information of the electronic device according to a preset time period; or when the state change of the electronic equipment is detected, acquiring the state information of the electronic equipment; and then dynamically correcting the low-power threshold value to realize power control of the electronic equipment.
step 203, the electronic device configures a weight value for each type of information in the status information.
According to step 202, the state information of the electronic device includes multiple types of information, and each type of information can represent the power consumption of the electronic device; in order to represent the power consumption of the electronic equipment more reasonably and from more dimensions, the above multiple types of information can be integrated; this requires a weight value to be configured for each type of information.
Illustratively, the electronic device may assign a weight value a 1 to power consumption information of the electronic device, assign a weight value a 2 to power consumption information of running applications, assign a weight value a 3 to historical average power usage information, and assign a weight value a 4 to difference information between a location and a historical resident location, wherein a 1 a 2 a 3 and a 4 take values of [0, 1], and a 1 + a 2 + a 3 + a 4 equals to 1.
The state information of the electronic device at least includes power consumption information of the electronic device; when the state information does not include the power consumption amount information of the running application, or the historical average power consumption amount information or the difference information between the located position and the historical resident position, the weights corresponding to the three information can be set to be 0.
And step 204, the electronic equipment calculates the predicted value of the electric quantity consumption of the electronic equipment based on the weight value and the state information.
Specifically, the predicted value of the power consumption of the electronic device can be calculated by the following formula:
a1x1+a2x2+a3x3+a4x4 (2-1);
wherein x 1 is used for representing power consumption information of the electronic equipment, x 2 is used for representing power consumption information of running applications, x 3 is used for representing historical average power usage information, and x 4 is used for representing difference information between the located position and the historical resident position.
In step 205, the electronic device determines a low power threshold corresponding to the predicted power consumption value based on the predicted power consumption value.
and step 206, the electronic equipment detects the residual electric quantity of the electronic equipment, and when the residual electric quantity is lower than a low electric quantity threshold corresponding to the electric consumption represented by the state information, an electric quantity prompt message is output.
It should be noted that, for the explanation of the same or related steps in this embodiment as in other embodiments, reference may be made to the description in other embodiments, and details are not described here again.
The electric quantity control method provided by the embodiment of the invention can be used for controlling the electric quantity of the electronic equipment by acquiring the state information of the electronic equipment; then the electronic equipment determines the power consumption represented by the state information based on the state information, and determines a low power threshold corresponding to the power consumption represented by the state information; finally, by detecting the residual electric quantity of the electronic equipment, when the residual electric quantity is lower than a low electric quantity threshold value corresponding to the electric quantity represented by the state information, outputting an electric quantity prompt message; therefore, before each time of electric quantity prompting, the electronic equipment needs to acquire the state of the electronic equipment, and determines a low electric quantity threshold value according to the state; therefore, the low-power threshold of each user can be determined according to the actual application scene of each user, the low-regulation threshold can be dynamically adjusted, corresponding power reminding is carried out based on the low-power threshold, the problems that power reminding cannot be carried out according to the actual scene and the set low-power threshold is single and fixed are solved, the reasonability of power reminding is guaranteed, and the use experience of the users is improved.
Based on the above embodiments, the embodiment of the present invention provides an electric quantity control method, and an architecture diagram of the method is shown in fig. 3, and the method includes a comprehensive processing center 31, a real-time electric consumption detecting module 32, an application software running electric consumption detecting module 33, an electric quantity usage recording module 34, and a geographic position detecting and recording module 35.
As shown in fig. 4, the method comprises the steps of:
Step 401, detecting whether the electronic equipment turns on a low power threshold dynamic adjusting switch; if the electronic device turns on the dynamic low battery threshold adjustment switch, go to step 402; if the electronic device does not turn on the low power threshold dynamic adjustment switch, continue to execute step 401.
step 402, the integrated processing center 31 of the electronic device obtains corresponding data from the real-time power consumption detecting module 32, the power consumption detecting module 33 of the running application software, the power usage recording module 34, and the geographic location detecting and recording module 35.
In step 403, the comprehensive processing center 31 of the electronic device calculates the current low power threshold according to the acquired data.
Step 404, the electronic device obtains a current remaining power.
Step 405, the electronic device determines whether the remaining power is higher than a low power threshold; if the remaining power is higher than the low power threshold, go to step 401; if the remaining power is lower than the low power threshold, step 406 is performed.
And step 406, outputting a low power prompt message by the electronic device.
it should be noted that, for the explanation of the same or related steps in this embodiment as in other embodiments, reference may be made to the description in other embodiments, and details are not described here again.
The electric quantity control method provided by the embodiment of the invention can be used for obtaining the state information of the electronic equipment, wherein the state information at least comprises the electric consumption information of the electronic equipment and is used for representing the electric consumption of the electronic equipment; then the electronic equipment determines a low power threshold corresponding to the power consumption represented by the state information based on the state information; finally, by detecting the residual electric quantity of the electronic equipment, when the residual electric quantity is lower than a low electric quantity threshold value corresponding to the electric quantity represented by the state information, outputting an electric quantity prompt message; therefore, before each time of electric quantity prompting, the electronic equipment needs to acquire the state of the electronic equipment, and determines a low electric quantity threshold value according to the state; therefore, the low-power threshold of each user can be determined according to the actual application scene of each user, the low-regulation threshold can be dynamically adjusted, corresponding power reminding is carried out based on the low-power threshold, the problems that power reminding cannot be carried out according to the actual scene and the set low-power threshold is single and fixed are solved, the reasonability of power reminding is guaranteed, and the use experience of the users is improved.
in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, where the electronic device includes: an acquisition unit 51, a determination unit 52, and a processing unit 53; wherein:
An obtaining unit 51, configured to obtain status information of the electronic device;
a determining unit 52, configured to determine, based on the state information, a power consumption amount represented by the state information, and determine a low power threshold corresponding to the power consumption amount represented by the state information;
And the processing unit 53 is configured to detect a remaining power amount of the electronic device, and output a power amount prompt message when the remaining power amount is lower than a low power amount threshold corresponding to the power consumption amount represented by the state information.
in another embodiment of the present invention, the processing unit 53 is specifically configured to calculate a predicted value of power consumption of the electronic device based on the state information; the electric quantity consumption predicted value is used for representing the electric quantity consumption in a preset time period; and determining a low power threshold corresponding to the predicted power consumption value based on the predicted power consumption value.
In other embodiments of the present invention, the status information at least includes power consumption information of the electronic device; and the state information further includes one or more than two of the following information:
Power consumption information of running applications, historical average power usage information, and difference information between the location and the historical resident location.
In other embodiments of the present invention, the processing unit 53 further configures a weight value for each type of information in the status information;
And calculating the predicted value of the electric quantity consumption of the electronic equipment based on the weight value and the state information.
in other embodiments of the present invention, the electronic device may further include a detection unit 54; the detecting unit 54 is configured to detect whether the electronic device turns on a low power threshold dynamic adjustment switch;
The obtaining unit 51 is configured to obtain the current state information of the electronic device when the electronic device turns on the low power threshold dynamic adjustment switch.
in other embodiments of the present invention, the obtaining unit 51 may be further configured to obtain the status information of the electronic device according to a preset time period; when the state change of the electronic equipment is detected, state information of the electronic equipment is acquired.
The electronic device provided by the embodiment of the invention can determine the power consumption represented by the state information and determine the low power threshold corresponding to the power consumption represented by the state information by acquiring the state information of the electronic device, and then the electronic device determines the power consumption represented by the state information based on the state information; finally, by detecting the residual electric quantity of the electronic equipment, when the residual electric quantity is lower than a low electric quantity threshold value corresponding to the electric quantity represented by the state information, outputting an electric quantity prompt message; therefore, before each time of electric quantity prompting, the electronic equipment needs to acquire the state of the electronic equipment, and determines a low electric quantity threshold value according to the state; therefore, the low-power threshold of each user can be determined according to the actual application scene of each user, the low-regulation threshold can be dynamically adjusted, corresponding power reminding is carried out based on the low-power threshold, the problems that power reminding cannot be carried out according to the actual scene and the set low-power threshold is single and fixed are solved, the reasonability of power reminding is guaranteed, and the use experience of the users is improved.
Based on the hardware implementation of each unit in the electronic device, in order to implement the method for controlling power provided in the embodiment of the present invention, an embodiment of the present invention further provides an electronic device, as shown in fig. 6, where the electronic device 60 includes: a processor 61 and a memory 62 configured to store a computer program operable on the processor; wherein the processor 61 is configured to perform the method steps of the previous embodiments when running the computer program.
In practice, of course, the various components of the device 60 are coupled together by a bus system 63, as shown in FIG. 6. It will be appreciated that the bus system 63 is used to enable communications among the components. The bus system 63 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 63 in FIG. 6.
in an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 62 comprising a computer program, which is executable by a processor 61 of the electronic device 60 to perform the steps of the aforementioned method. The computer-readable storage medium may be a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an erasable Programmable Read-Only Memory (EPROM), an electrically erasable Programmable Read-Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM), among other memories.
the technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
as will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
the present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (14)

1. an electric quantity control method is applied to electronic equipment, and is characterized by comprising the following steps:
Acquiring state information of the electronic equipment;
Determining the power consumption represented by the state information based on the state information, and determining a low power threshold corresponding to the power consumption represented by the state information;
And detecting the residual electric quantity of the electronic equipment, and outputting an electric quantity prompt message when the residual electric quantity is lower than a low electric quantity threshold corresponding to the electric quantity represented by the state information.
2. The method of claim 1, wherein determining, based on the status information, a low power threshold corresponding to a level of power consumption characterized by the status information comprises:
Calculating an electric quantity consumption predicted value of the electronic equipment based on the state information; the electric quantity consumption predicted value is used for representing the electric quantity consumption in a preset time period;
And determining a low power threshold corresponding to the predicted power consumption value based on the predicted power consumption value.
3. The method according to claim 1 or 2, wherein the status information includes at least power consumption amount information of the electronic device; and the state information further includes one or more than two of the following information:
power consumption information of running applications, historical average power usage information, and difference information between the location and the historical resident location.
4. The method according to claim 3, wherein the calculating a predicted value of power consumption of the electronic device based on the status information comprises:
Configuring a weight value for each type of information in the state information;
And calculating the predicted value of the electric quantity consumption of the electronic equipment based on the weight value and the state information.
5. The method according to claim 1, wherein before the obtaining of the current scene information of the electronic device, the method further comprises:
detecting whether the electronic equipment turns on a low-power threshold dynamic adjustment switch or not;
and if the electronic equipment starts a low-power threshold dynamic adjustment switch, acquiring the state information of the electronic equipment.
6. The method of claim 1, wherein obtaining the status information of the electronic device comprises:
Acquiring state information of the electronic equipment according to a preset time period;
Or when the state change of the electronic equipment is detected, the state information of the electronic equipment is acquired.
7. An electronic device, characterized in that the electronic device comprises:
The acquisition unit is used for acquiring the state information of the electronic equipment;
The determining unit is used for determining the power consumption represented by the state information based on the state information and determining a low power threshold corresponding to the power consumption represented by the state information;
And the processing unit is used for detecting the residual electric quantity of the electronic equipment and outputting an electric quantity prompting message when the residual electric quantity is lower than a low electric quantity threshold corresponding to the electric quantity represented by the state information.
8. The electronic device of claim 7, wherein:
The processing unit is specifically configured to calculate an electric quantity consumption predicted value of the electronic device based on the state information; the electric quantity consumption predicted value is used for representing the electric quantity consumption in a preset time period; and determining a low power threshold corresponding to the predicted power consumption value based on the predicted power consumption value.
9. The electronic device of claim 8, wherein the status information includes at least power consumption information of the electronic device; and the state information further includes one or more than two of the following information:
Power consumption information of running applications, historical average power usage information, and difference information between the location and the historical resident location.
10. the electronic device of claim 9, wherein:
The processing unit is used for configuring a weight value for each type of information in the state information by a user; and calculating the predicted value of the electric quantity consumption of the electronic equipment based on the weight value and the state information.
11. The electronic device of claim 7, further comprising:
The detection unit is used for detecting whether the electronic equipment turns on a low-power threshold dynamic adjustment switch or not;
the obtaining unit is configured to obtain state information of the electronic device when the electronic device turns on the low power threshold dynamic adjustment switch.
12. The electronic device of claim 7, wherein:
The acquisition unit is used for acquiring the state information of the electronic equipment according to a preset time period; when the state change of the electronic equipment is detected, state information of the electronic equipment is acquired.
13. An electronic device, the electronic device comprising: a processor and a memory configured to store a computer program capable of running on the processor,
Wherein the processor is configured to perform the steps of the method of any one of claims 1 to 6 when running the computer program.
14. a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201810558172.9A 2018-06-01 2018-06-01 electric quantity control method, electronic equipment and computer readable storage medium Pending CN110554945A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810558172.9A CN110554945A (en) 2018-06-01 2018-06-01 electric quantity control method, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810558172.9A CN110554945A (en) 2018-06-01 2018-06-01 electric quantity control method, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110554945A true CN110554945A (en) 2019-12-10

Family

ID=68734959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810558172.9A Pending CN110554945A (en) 2018-06-01 2018-06-01 electric quantity control method, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110554945A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111413623A (en) * 2020-04-09 2020-07-14 苏州维伟思医疗科技有限公司 Method and device for calculating residual electric quantity and computer readable storage medium
CN111478388A (en) * 2020-04-14 2020-07-31 歌尔科技有限公司 Electronic product, battery discharge protection method, device and medium
CN111768155A (en) * 2020-06-30 2020-10-13 上海木木聚枞机器人科技有限公司 Scheduling control method, intelligent mobile device, server and storage medium
CN112153216A (en) * 2020-09-16 2020-12-29 Oppo广东移动通信有限公司 Electric quantity early warning method and device, terminal equipment and storage medium
CN112429156A (en) * 2020-12-04 2021-03-02 天津小鲨鱼智能科技有限公司 Low-power prompting method and device, storage medium and electronic equipment
CN112667063A (en) * 2020-12-22 2021-04-16 珠海市魅族科技有限公司 Terminal low-power reminding method and device, electronic equipment and storage medium
CN112764513A (en) * 2021-01-28 2021-05-07 维沃移动通信有限公司 Prompting method and electronic equipment
CN114047447A (en) * 2021-11-10 2022-02-15 京东方科技集团股份有限公司 Electric quantity prompting method, electronic label, system and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100151918A1 (en) * 2008-12-12 2010-06-17 Srinivas Annambhotla Intelligent battery warning system
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal
CN105828424A (en) * 2016-03-11 2016-08-03 北京奇虎科技有限公司 Intelligent terminal and energy consumption quantitative control method thereof
CN106162849A (en) * 2016-07-21 2016-11-23 努比亚技术有限公司 A kind of terminal and power control method
CN106415296A (en) * 2014-05-29 2017-02-15 苹果公司 Adaptive battery life extension
CN106714288A (en) * 2016-12-16 2017-05-24 广东美晨通讯有限公司 Electric quantity processing method and apparatus, and terminal
CN108076218A (en) * 2017-11-24 2018-05-25 维沃移动通信有限公司 A kind of charging reminding method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100151918A1 (en) * 2008-12-12 2010-06-17 Srinivas Annambhotla Intelligent battery warning system
CN106415296A (en) * 2014-05-29 2017-02-15 苹果公司 Adaptive battery life extension
CN105100429A (en) * 2015-06-08 2015-11-25 北京金山安全软件有限公司 Method and device for determining use time of residual electric quantity of mobile terminal
CN105828424A (en) * 2016-03-11 2016-08-03 北京奇虎科技有限公司 Intelligent terminal and energy consumption quantitative control method thereof
CN106162849A (en) * 2016-07-21 2016-11-23 努比亚技术有限公司 A kind of terminal and power control method
CN106714288A (en) * 2016-12-16 2017-05-24 广东美晨通讯有限公司 Electric quantity processing method and apparatus, and terminal
CN108076218A (en) * 2017-11-24 2018-05-25 维沃移动通信有限公司 A kind of charging reminding method and mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111413623A (en) * 2020-04-09 2020-07-14 苏州维伟思医疗科技有限公司 Method and device for calculating residual electric quantity and computer readable storage medium
CN111413623B (en) * 2020-04-09 2022-05-31 苏州维伟思医疗科技有限公司 Method and device for calculating residual electric quantity and computer readable storage medium
CN111478388A (en) * 2020-04-14 2020-07-31 歌尔科技有限公司 Electronic product, battery discharge protection method, device and medium
CN111768155A (en) * 2020-06-30 2020-10-13 上海木木聚枞机器人科技有限公司 Scheduling control method, intelligent mobile device, server and storage medium
CN111768155B (en) * 2020-06-30 2024-03-26 上海木木聚枞机器人科技有限公司 Scheduling control method, intelligent mobile device, server and storage medium
CN112153216A (en) * 2020-09-16 2020-12-29 Oppo广东移动通信有限公司 Electric quantity early warning method and device, terminal equipment and storage medium
CN112429156A (en) * 2020-12-04 2021-03-02 天津小鲨鱼智能科技有限公司 Low-power prompting method and device, storage medium and electronic equipment
CN112667063A (en) * 2020-12-22 2021-04-16 珠海市魅族科技有限公司 Terminal low-power reminding method and device, electronic equipment and storage medium
CN112764513A (en) * 2021-01-28 2021-05-07 维沃移动通信有限公司 Prompting method and electronic equipment
WO2022161325A1 (en) * 2021-01-28 2022-08-04 维沃移动通信有限公司 Prompting method and electronic device
CN114047447A (en) * 2021-11-10 2022-02-15 京东方科技集团股份有限公司 Electric quantity prompting method, electronic label, system and storage medium

Similar Documents

Publication Publication Date Title
CN110554945A (en) electric quantity control method, electronic equipment and computer readable storage medium
CN105684260B (en) intelligent context-based battery charging
US11955827B2 (en) Rule based smart charging
US20210036531A1 (en) Battery charging method
CN112650643B (en) Electric quantity calibration method and device and electronic equipment
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
CN103633692B (en) A kind of information processing method and electronic equipment
CN104795602A (en) Method for intelligently charging battery, and apparatus thereof
CN103942133B (en) A kind of information processing method and electronic equipment
CN202759507U (en) A smart phone
CN111564877A (en) Method and device for charging management and control
CN110649679B (en) Terminal temperature control method, device, equipment and storage medium
CN109634347B (en) Method for preventing wearable device from overheating, wearable device and storage device
CN108155693A (en) Charge control method, device, storage medium and the mobile terminal of mobile terminal
CN108471476B (en) Reverse charging management method for mobile terminal and mobile terminal
CN109769288A (en) The method and device of standby network is set
CN105843357A (en) Method of maintaining normal application operation in power-saving management and electronic equipment
WO2018154970A1 (en) Information processing device, information processing method, and program
US9985469B2 (en) Display apparatus and controlling method thereof
CN106598816A (en) Terminal perception state control method and terminal perception state control device
CN109149676B (en) Method and device for controlling charging current
CN107357706B (en) Data processing method, device and non-transitory computer readable medium
JP2014193041A (en) Terminal, charger, terminal supporting device, terminal charging system, charging method and charging program
CN112601269B (en) Communication connection method, device, electronic equipment and readable storage medium
WO2020133389A1 (en) Application grouping adjustment method and apparatus, and storage medium and electronic device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191210