CN107425568B - Method and device for preventing over-discharge of battery, mobile terminal and storage medium - Google Patents
Method and device for preventing over-discharge of battery, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN107425568B CN107425568B CN201710622813.8A CN201710622813A CN107425568B CN 107425568 B CN107425568 B CN 107425568B CN 201710622813 A CN201710622813 A CN 201710622813A CN 107425568 B CN107425568 B CN 107425568B
- Authority
- CN
- China
- Prior art keywords
- electric quantity
- power consumption
- current value
- real
- consumption current
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000009467 reduction Effects 0.000 claims abstract description 67
- 238000012544 monitoring process Methods 0.000 claims abstract description 15
- 230000003247 decreasing effect Effects 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 12
- 238000013507 mapping Methods 0.000 claims description 10
- 238000004904 shortening Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 10
- 230000007423 decrease Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 239000007773 negative electrode material Substances 0.000 description 2
- 239000007774 positive electrode material Substances 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920000642 polymer Polymers 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0063—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
-
- H02J2007/0067—
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
Abstract
The embodiment of the invention provides a method, a device, a mobile terminal and a storage medium for preventing over-discharge of a battery, wherein the method comprises the following steps: monitoring the display electric quantity of the mobile terminal, if the display electric quantity is less than or equal to a first preset threshold value, acquiring a real-time power consumption current value of the mobile terminal, and adjusting the electric quantity reduction speed of the display electric quantity according to the real-time power consumption current value, so that when the display electric quantity is reduced to shutdown electric quantity, the actual voltage corresponding to the real-time power consumption current value is greater than or equal to a cut-off voltage, thereby avoiding overdischarge of the battery electric quantity and shutdown of low electric quantity due to the fact that the actual electric quantity power failure speed of the mobile terminal is greater than the display electric quantity power failure speed, avoiding shortening the service life of the battery, and enabling a.
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a method and a device for preventing over-discharge of a battery, a mobile terminal and a storage medium.
Background
With the development of science and technology, mobile terminals such as mobile phones and PADs are more and more inseparable with the lives of people, so that the convenience and the interestingness of the lives of people are greatly improved. However, as the screen size of mobile terminals such as mobile phones increases, the power consumption of mobile phones increases more and more due to changes in network systems, signal strength, and the like.
When the mobile phone keeps large power to discharge for a long time, the actual power failure speed of the mobile phone is greater than the display power failure speed, for example, when the mobile phone displays 5% of power, the actual power of the mobile phone is not 5%, even the actual voltage of the mobile phone reaches the cut-off voltage at the moment, the mobile phone still continues to discharge because the display power is 5%, so that the power of the battery is over-discharged, a user cannot plan the use of the mobile phone according to the display power condition, low power shutdown is caused, and the service life of the battery is shortened.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a mobile terminal and a storage medium for preventing over-discharge of a battery, which can solve the technical problems that the actual power failure speed of the mobile terminal is higher than the display power failure speed in the prior art, so that the power of the battery is over-discharged, a user cannot plan the use of a mobile phone according to the display power condition, the low-power shutdown is caused, and the service life of the battery is shortened.
The first aspect of the embodiments of the present invention provides a method for preventing a battery from being over-discharged, including:
monitoring the display electric quantity of the mobile terminal;
if the display electric quantity is smaller than or equal to a first preset threshold value, acquiring a real-time power consumption current value of the mobile terminal;
and adjusting the electric quantity reduction speed of the display electric quantity according to the real-time power consumption current value, so that the actual voltage corresponding to the real-time power consumption current value is greater than or equal to the cut-off voltage when the display electric quantity is reduced to the shutdown electric quantity.
A second aspect of an embodiment of the present invention provides an apparatus for preventing a battery from being over-discharged, including:
the monitoring module is used for monitoring the display electric quantity of the mobile terminal;
the acquisition module is used for acquiring the real-time power consumption current value of the mobile terminal if the display electric quantity is smaller than or equal to a first preset threshold;
and the adjusting module is used for adjusting the electric quantity reduction speed of the display electric quantity according to the real-time power consumption current value, so that the actual voltage corresponding to the real-time power consumption current value is greater than or equal to the cut-off voltage when the display electric quantity is reduced to the shutdown electric quantity.
A third aspect of an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method for preventing battery overdischarge according to the first aspect.
A fourth aspect of the embodiments of the present invention provides a storage medium, where the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, where the computer program, when executed by a processor, implements the steps in the method for preventing battery overdischarge according to the first aspect.
According to the method, the device, the mobile terminal and the storage medium for preventing the over-discharge of the battery, provided by the embodiment of the invention, the display electric quantity of the mobile terminal is monitored, if the display electric quantity is smaller than or equal to the first preset threshold value, the real-time power consumption current value of the mobile terminal is obtained, and the electric quantity reduction speed of the display electric quantity is adjusted according to the real-time power consumption current value, so that the actual voltage corresponding to the real-time power consumption current value is larger than or equal to the cut-off voltage when the display electric quantity is reduced to the shutdown electric. The method comprises the steps of dynamically adjusting the electric quantity reduction speed of the displayed electric quantity according to the real-time power consumption current value, so that the condition that the actual electric quantity power failure speed of the mobile terminal is larger than the displayed electric quantity power failure speed is avoided, when the displayed electric quantity is reduced to the shutdown electric quantity, the monitored actual voltage corresponding to the real-time power consumption current value is larger than or equal to the cut-off voltage, so that the over-discharge of a battery and the shutdown of low electric quantity are prevented, the service life of the battery is prevented from being shortened, and a user can plan.
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 these drawings without inventive exercise.
Fig. 1 is a block diagram illustrating a structure of a mobile terminal;
fig. 2 is a schematic flow chart of a method for preventing over-discharge of a battery according to a first embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method for preventing over-discharge of a battery according to a second embodiment of the present invention;
FIG. 4 is a schematic flow chart of the refinement step of step 303 in the second embodiment of the present invention;
FIG. 5 is a schematic flow chart of the refinement step of step 304 in the second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a device for preventing over-discharge of a battery according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device for preventing over-discharge of a battery according to a fourth embodiment of the present invention;
fig. 8 is a detailed structural diagram of the first determining unit 701 in the fourth embodiment of the present invention;
fig. 9 is a detailed structural diagram of the second determining unit 702 in the fourth embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the embodiments of the present invention more obvious and understandable, the technical solutions 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, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all 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.
Fig. 1 shows a block diagram of a mobile terminal. The method for preventing the over-discharge of the battery according to the embodiment of the present invention may be applied to the mobile terminal 10 shown in fig. 1, where the mobile terminal 10 may include, but is not limited to: the system is a smart phone, a notebook, a tablet computer, a wearable smart device and the like which need to maintain normal operation by depending on a battery and support network and downloading functions.
As shown in fig. 1, the mobile terminal 10 includes a memory 101, a memory controller 102, one or more processors 103 (only one shown), a peripheral interface 104, a radio frequency module 105, a key module 106, an audio module 107, and a touch screen 108. These components communicate with each other via one or more communication buses/signal lines 109.
It is to be understood that the structure shown in fig. 1 is only an illustration and does not limit the structure of the mobile terminal. The mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or may have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The memory 101 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for preventing battery overdischarge in the embodiment of the present invention, and the processor 103 executes various functional applications and data processing by running the software programs and modules stored in the memory 101, so as to implement the method and apparatus for preventing battery overdischarge.
The peripheral interface 104 couples various input/output devices to the CPU and to the memory 101. The processor 103 executes various software, instructions within the memory 101 to perform various functions of the mobile terminal 10 and to perform data processing.
In some embodiments, the peripheral interface 104, the processor 103, and the memory controller 102 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 105 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 105 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 105 may communicate with various networks such as the internet, an intranet, a preset type of wireless network, or other devices through a preset type of wireless network. The preset types of wireless networks described above may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The Wireless network of the above-mentioned preset type may use various communication standards, protocols and technologies, including but not limited to Global System for mobile communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over internet protocol (VoIP), Global internet Access (wimax), other protocols for email, instant messaging, and short messaging, and any other suitable messaging protocol.
The key module 106 provides an interface for user input to the mobile terminal, and the user may cause the mobile terminal 10 to perform different functions by pressing different keys.
The touch screen 108 provides both an output and an input interface between the mobile terminal and the user. In particular, the touch screen 108 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. The touch screen 108 also receives user inputs, such as user clicks, swipes, and other gesture operations, for the user interface objects to respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen 108 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The method for preventing the over-discharge of the battery in the embodiment of the invention is described based on the mobile terminal.
In the prior art, the actual power failure speed of the mobile terminal is higher than the display power failure speed, so that the power of the battery is over-discharged, a user cannot plan the use of the mobile phone according to the display power condition, low power shutdown is caused, and the service life of the battery is shortened.
In order to solve the above problems, embodiments of the present invention provide a method for preventing battery over-discharge, which dynamically adjusts an electric quantity decreasing speed of a displayed electric quantity according to a real-time power consumption current value, so as to prevent an actual electric quantity power-down speed of a mobile terminal from being greater than the displayed electric quantity power-down speed, and when the displayed electric quantity decreases to a shutdown electric quantity, because an actual voltage corresponding to the monitored real-time power consumption current value is greater than or equal to a cut-off voltage, the battery over-discharge and the low-power shutdown are prevented, so as to avoid shortening the battery life, and a user can also plan the use of a mobile phone.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for preventing battery overdischarge according to a first embodiment of the present invention. The method for preventing the over-discharge of the battery provided in this embodiment can be applied to the mobile terminal 10 shown in fig. 1, and the mobile terminal 10 is in a power-on state, as shown in fig. 2, the method mainly includes the following steps:
in the embodiment of the invention, if the displayed electric quantity is less than or equal to the first preset threshold value, a preset thread is started to monitor the real-time power consumption current value of the mobile terminal.
The first preset threshold may be factory set, or may be set according to actual requirements of a user, and if the user frequently plays a large game, watches a video, or turns on multiple applications, resulting in a large current output of the mobile terminal, the first preset threshold may be set larger, and if the user does not play a large game, only a small number of applications are turned on, and a small current output of the mobile terminal is performed, the first preset threshold may be set smaller.
For example, the first preset threshold may be 40%.
Wherein the displayed power represents a user-viewable power displayed on an interface of the mobile terminal. The shutdown electric quantity means that when the display electric quantity is reduced to a preset threshold, the mobile terminal executes shutdown operation, and the preset threshold is the shutdown electric quantity. The cut-off voltage is also called as discharge cut-off voltage, and means the lowest voltage allowed during battery discharge, and exceeds the lowest voltage of battery discharge, and when the battery discharge is continued, the internal pressure of the battery rises, the reversibility of the positive and negative electrode active materials is damaged, and the service life of the battery is shortened.
In the embodiment of the invention, the electric quantity reduction speed of the displayed electric quantity is dynamically adjusted according to the real-time power consumption current value, so that the condition that the actual electric quantity power failure speed of the mobile terminal is larger than the displayed electric quantity power failure speed is avoided, and when the displayed electric quantity is reduced to the shutdown electric quantity, the actual voltage corresponding to the real-time power consumption current value is larger than or equal to the cut-off voltage, so that the over-discharge of a battery and the shutdown of low electric quantity are prevented, the service life of the battery is prevented from being shortened, and a user can plan.
Referring to fig. 3, fig. 3 is a schematic flow chart of a method for preventing battery overdischarge according to a second embodiment of the present invention. The method for preventing the over-discharge of the battery provided in this embodiment can be applied to the mobile terminal 10 shown in fig. 1, and when the mobile terminal 10 is in a power-on state, as shown in fig. 3, the method mainly includes the following steps:
in the embodiment of the present invention, the above steps 301 and 302 are similar to those described in the steps 201 and 202 of the first embodiment of the present invention, and are not repeated herein.
In the embodiment of the invention, when the display electric quantity is less than or equal to the first preset threshold and the display electric quantity is greater than the second preset threshold, the first electric quantity reduction speed is determined according to the real-time power consumption current value, and the display value of the display electric quantity is adjusted according to the first electric quantity reduction speed so as to reduce the difference between the display electric quantity and the actual electric quantity of the mobile terminal and enable the display electric quantity to be matched with the actual electric quantity.
In the embodiment of the invention, the first electric quantity reduction speed is dynamically adjusted according to the real-time power consumption current value, the reduction speed of the displayed electric quantity is firstly accelerated, so that the situation that the actual electric quantity power-down speed of the mobile terminal is larger than the displayed electric quantity power-down speed is avoided, the difference between the displayed electric quantity of the mobile terminal and the actual electric quantity is reduced, when the displayed electric quantity is monitored to be smaller than or equal to a second preset threshold value, the second electric quantity reduction speed is determined according to the real-time power consumption current value, and the displayed value of the displayed electric quantity is adjusted according to the second electric quantity reduction speed, wherein the displayed value of the displayed electric quantity is adjusted at a smaller speed (the second electric quantity reduction speed), the smooth reduction of the displayed electric quantity is ensured, the user experience is enhanced until the displayed electric quantity of the mobile terminal reaches the shutdown electric quantity, the actual voltage corresponding to the real-, to avoid shortening battery life.
Referring to fig. 4, fig. 4 is a flowchart illustrating a detailed step of step 303 in the second embodiment of the present invention, the method for preventing the over-discharge of the battery provided in this embodiment can be applied to the mobile terminal 10 shown in fig. 1, and when the mobile terminal 10 is in a power-on state, as shown in fig. 4, step 303 mainly includes the following steps:
in the embodiment of the invention, the preset time interval is preset in the system and can be changed according to the actual situation, and the mobile terminal calculates the average power consumption current value of the real-time power consumption current values in the preset time interval every other time interval.
In the embodiment of the invention, the current range of the average power consumption current value in the mapping relation is determined by searching the mapping relation between the preset current range and the electric quantity reduction speed, and the first electric quantity reduction speed corresponding to the current range is determined. For example, there are 3 pairs of the mapping relationship, the electricity-quantity-decreasing speed corresponding to the current range of 0-2A is decreased by 2% per unit time, the electricity-quantity-decreasing speed corresponding to the current range of 2-4A is decreased by 4% per unit time, the electricity-quantity-decreasing speed corresponding to the current range of 4-6A is decreased by 6% per unit time, if the calculated average electricity-consumption current value is 1.3A, which is in the range of 0-2A, the electricity-quantity-decreasing speed is adjusted to be decreased by 2% per unit time, if the calculated average electricity-consumption current value is 3.1A, which is in the range of 4-6A, the electricity-quantity-decreasing speed is adjusted to be decreased by 6% per unit time, from which it can be seen that the first electricity-quantity-decreasing speed is changed following the change of the average electricity-consumption current value, by the magnitude of the average electricity-consumption current value, the first electric quantity reduction speed is dynamically determined and changed, the relation between the actual electric quantity and the display electric quantity can be better adjusted, so that the condition that the actual electric quantity power-down speed of the mobile terminal is larger than the display electric quantity power-down speed is avoided, the difference between the display electric quantity and the actual electric quantity of the mobile terminal is reduced, the display electric quantity is matched with the actual electric quantity, the average power consumption current value is utilized to obtain the gentle electric quantity reduction speed, the electric quantity reduction speed is reasonable, and the actual situation is better met.
The unit time may be 10 minutes and 20 minutes, or may be adjusted according to the performance of each mobile terminal.
Referring to fig. 5, fig. 5 is a flowchart illustrating a detailed step of step 304 in a second embodiment of the present invention, in which the method for preventing the over-discharge of the battery provided in this embodiment can be applied to the mobile terminal 10 shown in fig. 1, and when the mobile terminal 10 is in a power-on state, as shown in fig. 5, step 304 mainly includes the following steps:
In the embodiment of the invention, the time required for the actual voltage corresponding to the real-time power consumption current value to be reduced to the cut-off voltage is determined, the second power reduction speed can be obtained by dividing the difference value between the displayed power and the shutdown power by the time, and when the displayed power is less than or equal to the second preset threshold, the displayed value of the displayed power is adjusted by utilizing the second power reduction speed, so that the actual voltage corresponding to the monitored real-time power consumption current value is greater than or equal to the cut-off voltage when the displayed power is reduced to the shutdown power, the over-discharge of the battery and the shutdown of the low power are prevented, the service life of the battery is prevented from being shortened, and a user can plan the use of the mobile phone according to the condition of.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a device for preventing over-discharge of a battery according to a third embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown. The device for preventing the over-discharge of the battery illustrated in fig. 6 is an execution main body of the method for preventing the over-discharge of the battery provided by the foregoing embodiment, and mainly includes: the monitoring module 601, the obtaining module 602, and the adjusting module 603, each of which is described in detail as follows:
the monitoring module 601 is used for monitoring the display electric quantity of the mobile terminal;
an obtaining module 602, configured to obtain a real-time power consumption current value of the mobile terminal if the display power amount is smaller than or equal to a first preset threshold;
in the embodiment of the invention, if the displayed electric quantity is less than or equal to the first preset threshold value, a preset thread is started to monitor the real-time power consumption current value of the mobile terminal.
The first preset threshold may be factory set, or may be set according to actual requirements of a user, and if the user frequently plays a large game, watches a video, or turns on multiple applications, resulting in a large current output of the mobile terminal, the first preset threshold may be set larger, and if the user does not play a large game, only a small number of applications are turned on, and a small current output of the mobile terminal is performed, the first preset threshold may be set smaller.
For example, the first preset threshold may be 40%.
The adjusting module 603 is configured to adjust an electric quantity decreasing speed of the display electric quantity according to the real-time power consumption current value, so that when the display electric quantity decreases to a shutdown electric quantity, an actual voltage corresponding to the real-time power consumption current value is greater than or equal to a cut-off voltage.
Wherein the displayed power represents a user-viewable power displayed on an interface of the mobile terminal. The shutdown electric quantity means that when the display electric quantity is reduced to a preset threshold, the mobile terminal executes shutdown operation, and the preset threshold is the shutdown electric quantity. The cut-off voltage is also called as discharge cut-off voltage, and means the lowest voltage allowed during battery discharge, and exceeds the lowest voltage of battery discharge, and when the battery discharge is continued, the internal pressure of the battery rises, the reversibility of the positive and negative electrode active materials is damaged, and the service life of the battery is shortened.
In the embodiment of the present invention, the adjusting module 603 dynamically adjusts the power reduction speed of the displayed power according to the real-time power consumption current value, so as to prevent the actual power failure speed of the mobile terminal from being greater than the power failure speed of the displayed power, and when the displayed power is reduced to the shutdown power, because the actual voltage corresponding to the real-time power consumption current value is greater than or equal to the cut-off voltage, the over-discharge of the battery and the shutdown with low power are prevented, so as to avoid shortening the battery life, and the user can also plan the usage of the mobile phone according to the power.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a device for preventing over-discharge of a battery according to a fourth embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown. The device for preventing the over-discharge of the battery illustrated in fig. 7 is an execution main body of the method for preventing the over-discharge of the battery provided by the foregoing embodiment, and mainly includes: the monitoring module 601, the obtaining module 602, and the adjusting module 603, wherein the adjusting module 603 includes: a first determining unit 701 and a second determining unit 701, where contents described in the monitoring module 601, the obtaining module 602, and the adjusting module 603 in the embodiment of the present invention are the same as contents described in the monitoring module 601, the obtaining module 602, and the adjusting module 603 in the previous embodiment, which are not described herein again, and in detail, each unit is described in detail as follows:
a first determining unit 701, configured to determine a first power consumption reduction rate according to the real-time power consumption current value, and adjust a display value of the display power according to the first power consumption reduction rate;
a second determining unit 702, configured to determine a second power consumption reduction speed according to the real-time power consumption current value if it is monitored that the displayed power consumption is smaller than or equal to a second preset threshold, and adjust the displayed value of the displayed power consumption according to the second power consumption reduction speed, so that when the displayed power consumption is reduced to a shutdown power consumption, an actual voltage corresponding to the real-time power consumption current value is greater than or equal to a cut-off voltage, where the first power consumption reduction speed is greater than the second power reduction speed.
In the embodiment of the present invention, when the display electric quantity is less than or equal to the first preset threshold and the display electric quantity is greater than the second preset threshold, the first determining unit 701 determines the first electric quantity decreasing speed according to the real-time power consumption current value, and adjusts the display value of the display electric quantity according to the first electric quantity decreasing speed, so as to reduce the difference between the display electric quantity and the actual electric quantity of the mobile terminal, so that the display electric quantity matches with the actual electric quantity.
In the embodiment of the invention, the first determining unit 701 dynamically adjusts the first electric quantity decreasing speed according to the real-time power consumption current value, and first accelerates the decreasing speed of the displayed electric quantity, so as to avoid that the actual electric quantity power-down speed of the mobile terminal is larger than the displayed electric quantity power-down speed, and reduce the difference between the displayed electric quantity of the mobile terminal and the actual electric quantity, when the displayed electric quantity is monitored to be smaller than or equal to a second preset threshold value, the second determining unit 702 determines the second electric quantity decreasing speed according to the real-time power consumption current value, and adjusts the displayed value of the displayed electric quantity according to the second electric quantity decreasing speed, wherein the displayed value of the displayed electric quantity is adjusted at a smaller speed (the second electric quantity decreasing speed), so as to ensure that the displayed electric quantity is gradually decreased, enhance the user experience, until the displayed electric quantity of the mobile terminal reaches the shutdown electric quantity, and, thereby preventing over-discharge and low-power shutdown of the battery to avoid shortening the battery life.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating a detailed structure of a first determining unit 701 according to a fourth embodiment of the present invention, and for convenience of description, only a portion related to the embodiment of the present invention is shown, where the first determining unit 701 illustrated in fig. 8 mainly includes: the calculation subunit 801 and the first determination subunit 802 are specifically described as follows:
a calculation subunit 801, configured to calculate an average power consumption current value of the real-time power consumption current values in a preset time period;
in the embodiment of the invention, the preset time interval is preset in the system and can be changed according to the actual situation, and the mobile terminal calculates the average power consumption current value of the real-time power consumption current values in the preset time interval every other time interval.
A first determining subunit 802, configured to determine the first power consumption reduction rate according to the average power consumption current value, and adjust the display value of the display power according to the first power consumption reduction rate.
In the embodiment of the invention, the current range of the average power consumption current value in the mapping relation is determined by searching the mapping relation between the preset current range and the electric quantity reduction speed, and the first electric quantity reduction speed corresponding to the current range is determined. For example, there are 3 pairs of the mapping relationship, the electricity-quantity-decreasing speed corresponding to the current range of 0-2A is decreased by 2% per unit time, the electricity-quantity-decreasing speed corresponding to the current range of 2-4A is decreased by 4% per unit time, the electricity-quantity-decreasing speed corresponding to the current range of 4-6A is decreased by 6% per unit time, if the calculated average electricity-consumption current value is 1.3A, which is in the range of 0-2A, the electricity-quantity-decreasing speed is adjusted to be decreased by 2% per unit time, if the calculated average electricity-consumption current value is 3.1A, which is in the range of 4-6A, the electricity-quantity-decreasing speed is adjusted to be decreased by 6% per unit time, from which it can be seen that the first electricity-quantity-decreasing speed is changed following the change of the average electricity-consumption current value, by the magnitude of the average electricity-consumption current value, the first electric quantity reduction speed is dynamically determined and changed, the relation between the actual electric quantity and the display electric quantity can be better adjusted, so that the condition that the actual electric quantity power-down speed of the mobile terminal is larger than the display electric quantity power-down speed is avoided, the difference between the display electric quantity and the actual electric quantity of the mobile terminal is reduced, the display electric quantity is matched with the actual electric quantity, the average power consumption current value is utilized to obtain the gentle electric quantity reduction speed, the electric quantity reduction speed is reasonable, and the actual situation is better met.
The unit time may be 10 minutes and 20 minutes, or may be adjusted according to the performance of each mobile terminal.
Referring to fig. 9, fig. 9 is a detailed structural diagram of a second determining unit 702 in a fourth embodiment of the present invention, and for convenience of description, only the portion related to the embodiment of the present invention is shown, and the first determining unit 702 illustrated in fig. 9 mainly includes: the second determining subunit 901 and the third determining subunit 902 are specifically described as follows:
a second determining subunit 901, configured to determine, if it is monitored that the display electric quantity is smaller than or equal to a second preset threshold, a time required for an actual voltage corresponding to the real-time power consumption current value to decrease to a cut-off voltage;
a third determining subunit 902, configured to determine, based on the time, the difference between the display electric quantity and the shutdown electric quantity, a second electric quantity decreasing speed, adjust the display value of the display electric quantity according to the second electric quantity decreasing speed, and adjust the display value of the display electric quantity according to the second electric quantity decreasing speed, so that when the display electric quantity decreases to the shutdown electric quantity, an actual voltage corresponding to the real-time power consumption current value is greater than or equal to a cut-off voltage.
In the embodiment of the present invention, the second determining subunit 901 determines the time required for the actual voltage corresponding to the real-time power consumption current value to decrease to the cut-off voltage, the third determining subunit 902 divides the difference between the display power and the shutdown power by the time to obtain a second power reduction speed, and when the display power is less than or equal to a second preset threshold, the second power reduction speed is used to adjust the display value of the display power, so as to ensure that the actual voltage corresponding to the monitored real-time power consumption current value is greater than or equal to the cut-off voltage when the display power decreases to the shutdown power, thereby preventing the over-discharge of the battery and the shutdown of the low power, avoiding the shortening of the battery life, and the user can also plan the usage of the mobile phone according to the display power situation.
The embodiment of the present invention further provides a mobile terminal, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, each step of the method for preventing the battery from being over-discharged in any one of the first embodiment to the second embodiment is implemented.
An embodiment of the present invention further provides a storage medium, which may specifically be a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for preventing the battery from being overdischarged in any of the first to second embodiments is implemented.
In the several embodiments provided in the present application, it should be understood that the disclosed method and mobile terminal may be implemented in other manners. For example, the above-described mobile terminal embodiments are merely illustrative, and for example, where the division of modules is merely a logical division, there may be other divisions in actual implementation, for example, multiple modules or components may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each module in the embodiments of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module may be implemented in the form of hardware or a program module.
The integrated module, if implemented in the form of a program module and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described acts or sequences, as some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the embodiments of the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the above description, for the method, the apparatus, the mobile terminal and the storage medium for preventing the battery from being overdischarged according to the embodiments of the present invention, for those skilled in the art, there may be changes in the specific implementation manners and the application ranges according to the ideas of the embodiments of the present invention.
Claims (8)
1. A method of preventing battery overdischarge, the method comprising:
monitoring the display electric quantity of the mobile terminal;
if the display electric quantity is smaller than or equal to a first preset threshold value, acquiring a real-time power consumption current value of the mobile terminal;
adjusting the electric quantity reduction speed of the display electric quantity according to the real-time power consumption current value, so that the actual voltage corresponding to the real-time power consumption current value is greater than or equal to a cut-off voltage when the display electric quantity is reduced to shutdown electric quantity;
the step of adjusting the electric quantity reduction speed of the display electric quantity according to the real-time power consumption current value comprises the following steps:
determining a first electric quantity reduction speed according to the real-time electric consumption current value, and adjusting a display value of the display electric quantity according to the first electric quantity reduction speed;
if the display electric quantity is monitored to be smaller than or equal to a second preset threshold value, determining a second electric quantity reduction speed according to the real-time power consumption current value, and adjusting the display value of the display electric quantity according to the second electric quantity reduction speed, wherein the first electric quantity reduction speed is larger than the second electric quantity reduction speed;
when the first electric quantity reduction speed is determined according to the real-time power consumption current value, the first electric quantity reduction speed is also determined according to a mapping relation between a preset current range and the electric quantity reduction speed;
when a second electric quantity reduction speed is determined according to the real-time power consumption current value, the second electric quantity reduction speed is also determined according to the difference value between the display electric quantity and the shutdown electric quantity;
wherein the step of determining a second power reduction rate according to the real-time power consumption current value comprises:
determining the time required for the actual voltage corresponding to the real-time power consumption current value to fall to the cut-off voltage;
determining the second power down rate based on the time, the difference between the display power and the shutdown power.
2. The method of claim 1, wherein the step of determining a first power reduction rate based on the real-time power consumption current value comprises:
calculating the average power consumption current value of the real-time power consumption current values in a preset time period;
and determining the first electric quantity reduction speed according to the average power consumption current value.
3. The method of claim 2, wherein the step of determining the first power consumption rate from the average power consumption current value comprises:
and searching a mapping relation between a preset current range and the electric quantity decreasing speed, determining the current range of the average power consumption current value in the mapping relation, and determining the first electric quantity decreasing speed corresponding to the current range.
4. The method of claim 1, wherein determining the second power down rate based on the difference between the time, the display power, and the shutdown power comprises:
and dividing the difference value between the display electric quantity and the shutdown electric quantity by the time required for the actual voltage corresponding to the real-time power consumption current value to be reduced to the cut-off voltage to obtain the second electric quantity reduction speed.
5. The method according to claim 1, wherein the step of obtaining the real-time power consumption current value of the mobile terminal comprises:
and starting a preset thread to monitor the real-time power consumption current value of the mobile terminal.
6. An apparatus for preventing over-discharge of a battery, the apparatus comprising:
the monitoring module is used for monitoring the display electric quantity of the mobile terminal;
the acquisition module is used for acquiring the real-time power consumption current value of the mobile terminal if the display electric quantity is smaller than or equal to a first preset threshold;
the adjusting module is used for adjusting the electric quantity reduction speed of the display electric quantity according to the real-time power consumption current value, so that the actual voltage corresponding to the real-time power consumption current value is greater than or equal to the cut-off voltage when the display electric quantity is reduced to the shutdown electric quantity;
when the first electric quantity reduction speed is determined according to the real-time power consumption current value, the first electric quantity reduction speed is also determined according to a mapping relation between a preset current range and the electric quantity reduction speed;
when a second electric quantity reduction speed is determined according to the real-time power consumption current value, the second electric quantity reduction speed is also determined according to the difference value between the display electric quantity and the shutdown electric quantity;
wherein the step of determining a second power reduction rate according to the real-time power consumption current value comprises:
determining the time required for the actual voltage corresponding to the real-time power consumption current value to fall to the cut-off voltage;
determining the second power down rate based on the time, the difference between the display power and the shutdown power.
7. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for preventing battery overdischarge according to any one of claims 1 to 5 when executing the computer program.
8. A storage medium which is a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method for preventing battery overdischarge according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710622813.8A CN107425568B (en) | 2017-07-27 | 2017-07-27 | Method and device for preventing over-discharge of battery, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710622813.8A CN107425568B (en) | 2017-07-27 | 2017-07-27 | Method and device for preventing over-discharge of battery, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107425568A CN107425568A (en) | 2017-12-01 |
CN107425568B true CN107425568B (en) | 2020-03-31 |
Family
ID=60430248
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710622813.8A Expired - Fee Related CN107425568B (en) | 2017-07-27 | 2017-07-27 | Method and device for preventing over-discharge of battery, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107425568B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108874107B (en) * | 2018-05-31 | 2021-05-18 | 北京小米移动软件有限公司 | Control method and device for state of charge |
CN109600821B (en) * | 2018-12-03 | 2022-03-01 | 惠州Tcl移动通信有限公司 | Network control method, device, storage medium and mobile terminal |
CN109664302B (en) * | 2019-01-25 | 2022-01-21 | 北京猎户星空科技有限公司 | Robot control method, device, medium and equipment |
CN112540304B (en) * | 2020-11-19 | 2023-03-03 | Oppo广东移动通信有限公司 | Battery power management method, electronic device and computer storage medium |
CN114167873B (en) * | 2021-12-09 | 2024-03-01 | 展讯通信(天津)有限公司 | Maze tracking robot and energy consumption adjusting method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1082844A (en) * | 1996-09-09 | 1998-03-31 | Nippon Denki Ido Tsushin Kk | Battery residual capacity display device |
CN101477176A (en) * | 2007-12-03 | 2009-07-08 | 加百裕工业股份有限公司 | Measurement correction apparatus and method for residual capacity of battery pack |
CN102868001A (en) * | 2012-09-20 | 2013-01-09 | 深圳市卓能新能源科技有限公司 | Lithium ion cell electric quantity displaying method and lithium ion cell electric quanity displaying device |
CN103033758A (en) * | 2012-10-25 | 2013-04-10 | 北京君正集成电路股份有限公司 | Display electric quantity value calibration method and device |
CN103259924A (en) * | 2013-04-15 | 2013-08-21 | 广东欧珀移动通信有限公司 | Method and system for dynamically regulated electric quantity display under low electric quantity of intelligent terminal |
CN104375088A (en) * | 2014-11-06 | 2015-02-25 | 惠州Tcl移动通信有限公司 | Mobile terminal battery voltage displaying method and system |
CN106329645A (en) * | 2016-09-14 | 2017-01-11 | 惠州Tcl移动通信有限公司 | Mobile terminal, electric quantity display control method, and electric quantity display control system |
CN106603874A (en) * | 2017-02-27 | 2017-04-26 | 维沃移动通信有限公司 | Mobile terminal electric quantity display method and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS57147881A (en) * | 1981-03-06 | 1982-09-11 | Nec Corp | Battery volume indicator |
JP5472303B2 (en) * | 2009-07-31 | 2014-04-16 | 富士通株式会社 | Remaining amount display program, remaining amount display device, and electronic device |
CN102749590B (en) * | 2012-07-17 | 2015-09-09 | 小米科技有限责任公司 | A kind of method and system showing battery dump energy |
-
2017
- 2017-07-27 CN CN201710622813.8A patent/CN107425568B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1082844A (en) * | 1996-09-09 | 1998-03-31 | Nippon Denki Ido Tsushin Kk | Battery residual capacity display device |
CN101477176A (en) * | 2007-12-03 | 2009-07-08 | 加百裕工业股份有限公司 | Measurement correction apparatus and method for residual capacity of battery pack |
CN102868001A (en) * | 2012-09-20 | 2013-01-09 | 深圳市卓能新能源科技有限公司 | Lithium ion cell electric quantity displaying method and lithium ion cell electric quanity displaying device |
CN103033758A (en) * | 2012-10-25 | 2013-04-10 | 北京君正集成电路股份有限公司 | Display electric quantity value calibration method and device |
CN103259924A (en) * | 2013-04-15 | 2013-08-21 | 广东欧珀移动通信有限公司 | Method and system for dynamically regulated electric quantity display under low electric quantity of intelligent terminal |
CN104375088A (en) * | 2014-11-06 | 2015-02-25 | 惠州Tcl移动通信有限公司 | Mobile terminal battery voltage displaying method and system |
CN106329645A (en) * | 2016-09-14 | 2017-01-11 | 惠州Tcl移动通信有限公司 | Mobile terminal, electric quantity display control method, and electric quantity display control system |
CN106603874A (en) * | 2017-02-27 | 2017-04-26 | 维沃移动通信有限公司 | Mobile terminal electric quantity display method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107425568A (en) | 2017-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107425568B (en) | Method and device for preventing over-discharge of battery, mobile terminal and storage medium | |
RU2657862C2 (en) | Method and apparatus for reducing energy consumption in mobile electronic device | |
US10805708B2 (en) | Headset sound channel control method and system, and related device | |
US11330417B2 (en) | Method for electromagnetic interference adjustment and related devices | |
ES2753802T3 (en) | Charging procedure, charging device and terminal | |
CN111416412B (en) | Charging control method and device and terminal equipment | |
US11411422B2 (en) | Battery charging method, battery charging apparatus and storage medium | |
CN106130572B (en) | A kind of method, device and mobile terminal of switching terminal antenna | |
EP3855715B1 (en) | Display control method and related product | |
CN107171412B (en) | Dynamic adjusts method, apparatus, mobile terminal and the storage medium of charging current | |
WO2017206895A1 (en) | Application control method and related device | |
US20230403354A1 (en) | Method for Adjusting Parameter of Audio Service and Terminal | |
CN110703944B (en) | Touch data processing method and device, terminal and storage medium | |
US20210120118A1 (en) | Method for establishing communication connection and related products | |
CN108803983B (en) | Notification message display control method and device, electronic device and storage medium | |
CN107682553B (en) | Call signal sending method and device, mobile terminal and storage medium | |
CN106095566B (en) | Response control method and mobile terminal | |
CN105204891B (en) | Downloading method and device for shutdown of mobile terminal and mobile terminal | |
CN108566684B (en) | Communication connection establishing method and related equipment | |
WO2020061824A1 (en) | Charging prompt method and related product | |
CN108475097B (en) | Electric quantity management method and terminal equipment | |
CN110489177B (en) | Application control method and device, storage medium and terminal equipment | |
CN106304287B (en) | Method for reducing standby power consumption of mobile terminal and mobile terminal | |
WO2017215658A1 (en) | Sound effect addition method and user terminal | |
CN108377298B (en) | Method and device for switching answering mode, mobile terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200331 |
|
CF01 | Termination of patent right due to non-payment of annual fee |