CN109884543B - Method and equipment for predicting remaining service life of battery - Google Patents

Method and equipment for predicting remaining service life of battery Download PDF

Info

Publication number
CN109884543B
CN109884543B CN201910075889.2A CN201910075889A CN109884543B CN 109884543 B CN109884543 B CN 109884543B CN 201910075889 A CN201910075889 A CN 201910075889A CN 109884543 B CN109884543 B CN 109884543B
Authority
CN
China
Prior art keywords
mobile terminal
power consumption
time
electric quantity
application program
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.)
Active
Application number
CN201910075889.2A
Other languages
Chinese (zh)
Other versions
CN109884543A (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910075889.2A priority Critical patent/CN109884543B/en
Publication of CN109884543A publication Critical patent/CN109884543A/en
Application granted granted Critical
Publication of CN109884543B publication Critical patent/CN109884543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a method for predicting the remaining service life of a battery, which comprises the following steps: counting the running time of each hardware in the mobile terminal within a certain time period, and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period; analyzing the use rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period; and estimating the available time of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal. The invention can distinguish the application and the user, conditionally distribute the residual electric quantity, predict more accurate residual use time of the battery and improve the use experience of the user.

Description

Method and equipment for predicting remaining service life of battery
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of mobile terminals, in particular to a method and equipment for predicting the remaining service life of a battery.
[ background of the invention ]
With the rapid development of mobile terminals, mobile terminals are becoming an indispensable part of people's lives. In the process of using the mobile terminal, a user usually opens one or more application software in the mobile terminal, but the more the application software is opened, the faster the mobile terminal is powered off, so that the user hopes to know how long the current power can be used in a normal way under the condition that the power of the mobile terminal is insufficient. However, the existing mobile terminal generally only prompts the user of the remaining electric quantity, even if some specific software is installed to prompt the use duration of the terminal, the general use duration can be counted only according to the remaining electric quantity, and the use duration of the mobile terminal is different due to different applications started by each user, so that the existing mobile terminal cannot accurately count the use duration of the electric quantity.
The method and the device can distinguish applications and users, conditionally distribute the residual electric quantity, and predict more accurate residual battery use duration, so that the use experience of the mobile terminal of the user is improved.
[ summary of the invention ]
In view of the above-mentioned drawbacks, the present invention provides a method and apparatus for predicting a remaining usage time of a battery.
A method for predicting the remaining service life of a battery is applied to a mobile terminal, and the method for predicting the remaining service life of the battery comprises the following steps: counting the running time of each hardware in the mobile terminal within a certain time period, and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period;
analyzing the use rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period;
and estimating the available duration of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal.
Optionally, the operation duration of each hardware of the mobile terminal at least includes one or any combination of the following: the system comprises a screen opening time length, a standby time length, a wifi connection time length, a voice call time length, a Bluetooth connection time length and a GPS opening time length.
Optionally, the hardware resource occupation duration in a certain time period of each application program in the mobile terminal at least includes one or any combination of the following: CPU occupancy duration, wireless device occupancy duration, screen occupancy duration, GPS occupancy duration.
Optionally, the method further comprises the following steps:
counting the power consumption of the mobile terminal used by the user in a period of time every day;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption rule of the mobile terminal in each time period of each day corresponding to the follow-up time.
Optionally, the method further comprises the following steps:
counting the power consumption of the mobile terminal used by the user in a certain time period every day in one week;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day in a week;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption law of the mobile terminal in each time period of each day in the week corresponding to the subsequent time.
Optionally, the step of counting hardware resource occupation duration and power consumption of each application program in the mobile terminal within a certain time period further includes:
recording a first time point when each application program enters an operation state and a first electric quantity when the application program enters the operation state;
acquiring a second time point of a last running state before each application program enters the running state and a second electric quantity when the application program enters the last running state;
and taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period.
Optionally, according to the usage rule of the user using the mobile terminal and the current remaining power of the mobile terminal, when the available duration of the current remaining power of the mobile terminal is estimated to be short, the user is prompted: it is recommended to turn on the low power mode and reduce unnecessary use.
Optionally, counting the battery charging and discharging times and the service life of the mobile terminal;
determining a coefficient according to the battery charging and discharging times and the service life of the mobile terminal;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, and then multiplying the available time by the coefficient to obtain the final available time of the current residual electric quantity of the mobile terminal.
In addition, the invention also provides equipment for predicting the remaining service life of the battery, which is characterized by comprising a display unit, a user input unit, a processor, a memory and a communication bus;
the display unit is used for displaying information input by a user or information provided for the user;
the user input unit is used for receiving input numeric or character information and generating key signal input related to user setting and function control of the mobile terminal;
the communication bus is used for realizing connection communication between the processor and the memory;
the memory is used for storing the data of the customized application program;
the processor is used for executing a battery remaining usage duration prediction program stored in the memory, and the method for realizing the battery remaining usage duration prediction comprises the following steps:
counting the running time of each hardware in the mobile terminal within a certain time period, and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period;
analyzing the use rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period;
and estimating the available duration of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal.
Optionally, the operation duration of each hardware of the mobile terminal at least includes one or any combination of the following: the system comprises a screen opening time length, a standby time length, a wifi connection time length, a voice call time length, a Bluetooth connection time length and a GPS opening time length.
Optionally, the hardware resource occupation duration in a certain time period of each application program in the mobile terminal at least includes one or any combination of the following: CPU occupancy duration, wireless device occupancy duration, screen occupancy duration, GPS occupancy duration.
Optionally, the method further comprises the following steps:
counting the power consumption of the mobile terminal used by the user in a period of time every day;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption rule of the mobile terminal in each time period of each day corresponding to the follow-up time.
Optionally, the method further comprises the following steps:
counting the power consumption of the mobile terminal used by the user in a certain time period every day in one week;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day in a week;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption law of the mobile terminal in each time period of each day in the week corresponding to the subsequent time.
Optionally, the step of counting hardware resource occupation duration and power consumption of each application program in the mobile terminal within a certain time period further includes:
recording a first time point when each application program enters an operation state and a first electric quantity when the application program enters the operation state;
acquiring a second time point of a last running state before each application program enters the running state and a second electric quantity when the application program enters the last running state;
and taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period.
Optionally, according to the usage rule of the user using the mobile terminal and the current remaining power of the mobile terminal, when the available duration of the current remaining power of the mobile terminal is estimated to be short, the user is prompted: it is recommended to turn on the low power mode and reduce unnecessary use.
Optionally, counting the battery charging and discharging times and the service life of the mobile terminal;
determining a coefficient according to the battery charging and discharging times and the service life of the mobile terminal;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, and then multiplying the available time by the coefficient to obtain the final available time of the current residual electric quantity of the mobile terminal.
The present invention is also directed to a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for implementing the method for predicting remaining battery life of a battery, the method comprising:
counting the running time of each hardware in the mobile terminal within a certain time period, and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period;
analyzing the use rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period;
and estimating the available duration of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal.
Optionally, the operation duration of each hardware of the mobile terminal at least includes one or any combination of the following: the system comprises a screen opening time length, a standby time length, a wifi connection time length, a voice call time length, a Bluetooth connection time length and a GPS opening time length.
Optionally, the hardware resource occupation duration in a certain time period of each application program in the mobile terminal at least includes one or any combination of the following: CPU occupancy duration, wireless device occupancy duration, screen occupancy duration, GPS occupancy duration.
Optionally, the method further comprises the following steps:
counting the power consumption of the mobile terminal used by the user in a period of time every day;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption rule of the mobile terminal in each time period of each day corresponding to the follow-up time.
Optionally, the method further comprises the following steps:
counting the power consumption of the mobile terminal used by the user in a certain time period every day in one week;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day in a week;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption law of the mobile terminal in each time period of each day in the week corresponding to the subsequent time.
Optionally, the step of counting hardware resource occupation duration and power consumption of each application program in the mobile terminal within a certain time period further includes:
recording a first time point when each application program enters an operation state and a first electric quantity when the application program enters the operation state;
acquiring a second time point of a last running state before each application program enters the running state and a second electric quantity when the application program enters the last running state;
and taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period.
Optionally, according to the usage rule of the user using the mobile terminal and the current remaining power of the mobile terminal, when the available duration of the current remaining power of the mobile terminal is estimated to be short, the user is prompted: it is recommended to turn on the low power mode and reduce unnecessary use.
Optionally, counting the battery charging and discharging times and the service life of the mobile terminal;
determining a coefficient according to the battery charging and discharging times and the service life of the mobile terminal;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, and then multiplying the available time by the coefficient to obtain the final available time of the current residual electric quantity of the mobile terminal.
The invention has the beneficial effects that: the method and the device can distinguish applications and users, conditionally distribute the residual electric quantity, and predict more accurate residual battery use duration, so that the use experience of the mobile terminal of the user is improved.
[ description of the drawings ]
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Fig. 2 is a diagram of a wireless communication system of the mobile terminal shown in fig. 1.
Fig. 3 is a flowchart of a first method for predicting remaining battery operating time according to a first embodiment of the present invention.
Fig. 4 is a flowchart of a second method for predicting the remaining battery life according to the present invention.
Fig. 5 is a flowchart of a third method for predicting the remaining battery life according to the present invention.
[ detailed description ] embodiments
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing picture data of still pictures or videos obtained by a picture capturing device (e.g., a camera) in a video capturing mode or a picture capturing mode. The processed picture frame may be displayed on the display unit 106. The picture frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a picture playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving GateWay) 2034, a PGW (PDN GateWay) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
Referring to fig. 3, a method of predicting a remaining usage time of a battery includes:
s101, counting the running time of each hardware in the mobile terminal within a certain time period, and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period.
The mobile terminal operating system counts the service time and the corresponding power consumption of each hardware in the mobile terminal, for example, the power consumption of a battery in the use process of the hardware is counted according to the screen opening time, the standby time, the wifi connection time, the voice call time, the Bluetooth connection time, the GPS opening time and the like.
And the mobile terminal counts the power consumption of the battery corresponding to the application program according to the hardware resources occupied by each application program aiming at the application program started by the user. When the application program A is used, hardware resources such as a screen, a GPS, a Bluetooth and wifi need to be started, and therefore the power consumption of the hardware resources occupied by the APP is obtained.
Recording a first time point when each application program enters an operating state and a first electric quantity when the application program enters the operating state; acquiring a second time point of a previous running state before each application program enters the running state and a second electric quantity when the application program enters the previous running state; and taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period.
The statistical principle of the electric quantity of the application program of the mobile terminal is as follows:
the power consumption of the mobile terminal generally covers two aspects: power consumption on the hardware level and power consumption on the software level. Mobile terminals have many hardware modules: the mobile terminal comprises a CPU, Bluetooth, a GPS, a display screen, Wifi, Radio frequency (Cellular Radio) and the like, wherein in the using process of the mobile terminal, the hardware modules can be in different states, for example, the Wifi is turned on or off, the screen is bright or dark, and the CPU runs or sleeps. The power consumption of the hardware module in different states is different. When the mobile terminal counts the electric quantity, a mode of directly recording the current consumption is not adopted, but the service time of the hardware module in different states is tracked, and some available information is collected to approximately calculate the battery consumption.
The power consumption of the application is composed of multiple parts, GPS, bluetooth, etc. modules may be used, and the application may require a long time to be on screen (e.g., games, video-type applications). The power statistics for an application may be approximated by accumulating the time the application uses all hardware modules. For example, an application uses GPS and the time of use is denoted by t. The power consumption of the GPS module per unit time is denoted by w, and the power consumption of the application using the GPS can be calculated as follows: power consumption is power consumption (w) per unit time × usage time (t).
The power consumption information calculation formula:
the power consumption amount (w) × usage time (t) per unit time is voltage (U) × amount of current (I) × usage time (t) per unit time.
The voltage on the mobile terminal is generally constant, so the amount of current per unit time is only needed to be known for calculating the power consumption.
And (3) electric quantity counting process:
the power statistics contain several important functions: information collection, information storage and electric quantity information calculation.
Information collection refers to what manner of collecting electricity usage data at what point in time.
The format in which the information store is stored, and the location in which the information store is stored.
The electric quantity information calculation is how to calculate the electric quantity usage of different applications, services, processes, and the like, based on the collected information.
1. Electric quantity information collection
There are ways to collect power usage information actively and passively, and the collected information basically includes two dimensions of the state of the hardware module and the time used. As described above, the voltage of the mobile phone is generally constant, the power consumption is calculated by "current amount per unit time (I) × usage time (t)", and the current amount per unit time is given and defined in the mobile terminal system, so that the power consumption can be approximately calculated by collecting usage time of different hardware modules.
2. Electric quantity information storage
The collected power information is stored in the memory, and if the mobile terminal is restarted, data in the memory is lost, so that the information needs to be stored on a disk.
3. Calculation of electric quantity information
The calculation of the electric quantity information can be roughly divided into two blocks:
application power consumption information calculation: refers to the power consumption of each application using the hardware module.
Other miscellaneous power consumption information calculation: so-called miscellaneous items, which are actually a large category of interest to users, include: standby power consumption, power consumption of a bright screen, power consumption of a call, power consumption of Wifi, and the like.
And S102, analyzing the use rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period.
In the mobile terminal, the usage habits of the user using the mobile terminal are counted, for example, the behavior of the user using the terminal in each hour in 24 hours in a day is counted, such as the duration of starting the application program and the type of the application program. And (3) counting the occupation situation of the application programs on hardware resources: CPU occupancy, wireless device occupancy, screen occupancy, GPS occupancy, and the like.
And counting the power consumption of the mobile terminal used by the user within 1 hour every day. And carrying out statistical analysis on the power consumption of the mobile terminal used by the user within 1 hour every day to obtain the power consumption rule of the mobile terminal used within 1 hour every day. If more mobile application programs are opened at 8-9 am, the power consumption is 100 mAh; the mobile terminal at 9-10 points is in a standby state, and the power consumption is 30 mAh. Thereby counting the power consumption of the mobile terminal for each hour in 24 hours a day. After 1 month, obtaining the power consumption data of the mobile terminal used by the user, and then obtaining the power consumption rule of the mobile terminal used by the user through a statistical algorithm (such as an average algorithm).
The user stores working time and rest time in a week, so that the behavior rules of using the mobile terminal are different. If statistics is carried out every day, the power consumption rule of the mobile terminal on the working day and the rest day cannot be distinguished. Therefore, in one week, the power consumption of the mobile terminal used by the user in one hour every day is counted; carrying out statistical analysis on the power consumption of the mobile terminal used by the user within one hour every day to obtain the power consumption rule of the mobile terminal used within each time period of each day within one week; and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption law of the mobile terminal in each time period of each day in the week corresponding to the subsequent time. If the current time is 16 points of Monday, the power consumption rule of every hour after 16 points of Monday is estimated.
S103, estimating the available duration of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal.
And estimating the available time of the current residual power of the mobile terminal according to the power consumption rule of the mobile terminal in each hour of each day obtained by correspondingly counting the current residual power of the mobile terminal, the current time and the subsequent time. If the current time is 16 points, the residual capacity is only 1000mAh, and according to the power consumption law of the user using the mobile terminal: the power consumption of 16 points to 17 points is 100mAh, the power consumption of 17 points to 18 points is 200mAh, the power consumption of 18 points to 19 points is 400mAh, the power consumption of 19 points to 20 points is 200mAh, and the power consumption of 20 points to 21 points is 100mAh, so that the available time of the current residual power is 5 hours.
The method and the device can distinguish applications and users, estimate the residual electric quantity conditionally, and predict more accurate residual battery use duration, so that the use experience of the mobile terminal of the user is improved.
Example two
Referring to fig. 4, the present embodiment adds the following steps on the basis of the first embodiment:
s104, according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, when the available duration of the current residual electric quantity of the mobile terminal is estimated to be short, prompting the user: it is recommended to turn on the low power mode and reduce unnecessary use.
When the mobile terminal estimates that the current available time of the remaining power is short (for example, the current available time of the remaining power can only be used for 2 hours), the mobile terminal prompts a user to start a low power mode, so that the available time of the remaining power is prolonged.
In the embodiment, when the mobile terminal estimates that the available time of the current remaining power is short (for example, the mobile terminal can only be used for 2 hours), the user is prompted to start the low power mode, so that the available time of the remaining power is prolonged, and the user experience is improved.
EXAMPLE III
Referring to fig. 5, the present embodiment adds the following steps on the basis of the first embodiment:
and S105, counting the battery charging and discharging times and the service life of the mobile terminal.
The mobile terminal counts the charging times of the battery each time, and stores the counted charging times into a system file; and the mobile terminal accumulates the battery use time and stores the battery use time into a system file.
And S106, determining a coefficient according to the battery charging and discharging times and the service life of the mobile terminal.
Because the battery is charged more times or the battery has a longer usage time, the availability of the battery is deteriorated, and the same remaining capacity usage time is shorter than the previous usage time. Therefore, in order to accurately estimate the remaining capacity, a coefficient needs to be determined according to the number of battery charges and the usage time, and when estimating the remaining battery usage time, the remaining battery usage time estimated according to the method of the first embodiment needs to be multiplied by a coefficient to obtain an accurate estimated time. If the number of times of charging the battery reaches 500 times or the usage time reaches 2 years, the coefficient is 0.8.
S107, according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, estimating the available time length of the current residual electric quantity of the mobile terminal, and then multiplying the available time length by the coefficient to obtain the final available time length of the current residual electric quantity of the mobile terminal.
If the number of times of charging the battery reaches 500 times or the usage time reaches 2 years, the coefficient is 0.8. If the remaining battery usage time calculated by the method of the first embodiment is 6 hours, the current remaining capacity available time of the mobile terminal is finally 6 × 0.8 — 4.8 hours.
In the embodiment, a coefficient is determined according to the number of battery charging times and the usage duration, and the estimated remaining usage duration is multiplied by the coefficient, so that the final available duration of the current remaining capacity of the mobile terminal is obtained. By the method, the service life of the residual battery can be estimated more accurately, and the user experience is improved.
Example four
Referring to fig. 1, an apparatus for predicting remaining battery life, the apparatus being a mobile terminal (e.g. a smart phone), includes: a P106 display unit, a P107 user input unit, a P110 processor, a P109 memory and a P108 communication bus.
1) The P106 display unit is used for displaying information input by a user or information provided for the user;
2) p107 a user input unit for receiving input numeric or character information and generating key signal input related to user setting and function control of the mobile terminal;
3) the P108 communication bus is used for realizing connection communication between the processor and the memory;
4) the P109 memory is used for storing program data;
5) the P110 processor is used for executing the battery remaining use duration prediction program stored in the memory to realize the following steps:
s101, counting the running time of each hardware in the mobile terminal within a certain time period, and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period.
The mobile terminal operating system counts the service time and the corresponding power consumption of each hardware in the mobile terminal, for example, the power consumption of a battery in the use process of the hardware is counted according to the screen opening time, the standby time, the wifi connection time, the voice call time, the Bluetooth connection time, the GPS opening time and the like.
And the mobile terminal counts the power consumption of the battery corresponding to the application program according to the hardware resources occupied by each application program aiming at the application program started by the user. When the application program A is used, hardware resources such as a screen, a GPS, a Bluetooth and wifi need to be started, and therefore the power consumption of the hardware resources occupied by the APP is obtained.
Recording a first time point when each application program enters an operating state and a first electric quantity when the application program enters the operating state; acquiring a second time point of a previous running state before each application program enters the running state and a second electric quantity when the application program enters the previous running state; and taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period.
The statistical principle of the electric quantity of the application program of the mobile terminal is as follows:
the power consumption of the mobile terminal generally covers two aspects: power consumption on the hardware level and power consumption on the software level. Mobile terminals have many hardware modules: the mobile terminal comprises a CPU, Bluetooth, a GPS, a display screen, Wifi, Radio frequency (Cellular Radio) and the like, wherein in the using process of the mobile terminal, the hardware modules can be in different states, for example, the Wifi is turned on or off, the screen is bright or dark, and the CPU runs or sleeps. The power consumption of the hardware module in different states is different. When the mobile terminal counts the electric quantity, a mode of directly recording the current consumption is not adopted, but the service time of the hardware module in different states is tracked, and some available information is collected to approximately calculate the battery consumption.
The power consumption of the application is composed of multiple parts, GPS, bluetooth, etc. modules may be used, and the application may require a long time to be on screen (e.g., games, video-type applications). The power statistics for an application may be approximated by accumulating the time the application uses all hardware modules. For example, an application uses GPS and the time of use is denoted by t. The power consumption of the GPS module per unit time is denoted by w, and the power consumption of the application using the GPS can be calculated as follows: power consumption is power consumption (w) per unit time × usage time (t).
The power consumption information calculation formula:
the power consumption amount (w) × usage time (t) per unit time is voltage (U) × amount of current (I) × usage time (t) per unit time.
The voltage on the mobile terminal is generally constant, so the amount of current per unit time is only needed to be known for calculating the power consumption.
And (3) electric quantity counting process:
the power statistics contain several important functions: information collection, information storage and electric quantity information calculation.
Information collection refers to what manner of collecting electricity usage data at what point in time.
The format in which the information store is stored, and the location in which the information store is stored.
The electric quantity information calculation is how to calculate the electric quantity usage of different applications, services, processes, and the like, based on the collected information.
1. Electric quantity information collection
There are ways to collect power usage information actively and passively, and the collected information basically includes two dimensions of the state of the hardware module and the time used. As described above, the voltage of the mobile phone is generally constant, the power consumption is calculated by "current amount per unit time (I) × usage time (t)", and the current amount per unit time is given and defined in the mobile terminal system, so that the power consumption can be approximately calculated by collecting usage time of different hardware modules.
2. Electric quantity information storage
The collected power information is stored in the memory, and if the mobile terminal is restarted, data in the memory is lost, so that the information needs to be stored on a disk.
3. Calculation of electric quantity information
The calculation of the electric quantity information can be roughly divided into two blocks:
application power consumption information calculation: refers to the power consumption of each application using the hardware module.
Other miscellaneous power consumption information calculation: so-called miscellaneous items, which are actually a large category of interest to users, include: standby power consumption, power consumption of a bright screen, power consumption of a call, power consumption of Wifi, and the like.
And S102, analyzing the use rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period.
In the mobile terminal, the usage habits of the user using the mobile terminal are counted, for example, the behavior of the user using the terminal in each hour in 24 hours in a day is counted, such as the duration of starting the application program and the type of the application program. And (3) counting the occupation situation of the application programs on hardware resources: CPU occupancy, wireless device occupancy, screen occupancy, GPS occupancy, and the like.
And counting the power consumption of the mobile terminal used by the user within 1 hour every day. And carrying out statistical analysis on the power consumption of the mobile terminal used by the user within 1 hour every day to obtain the power consumption rule of the mobile terminal used within 1 hour every day. If more mobile application programs are opened at 8-9 am, the power consumption is 100 mAh; the mobile terminal at 9-10 points is in a standby state, and the power consumption is 30 mAh. Thereby counting the power consumption of the mobile terminal for each hour in 24 hours a day. After 1 month, obtaining the power consumption data of the mobile terminal used by the user, and then obtaining the power consumption rule of the mobile terminal used by the user through a statistical algorithm (such as an average algorithm).
The user stores working time and rest time in a week, so that the behavior rules of using the mobile terminal are different. If statistics is carried out every day, the power consumption rule of the mobile terminal on the working day and the rest day cannot be distinguished. Therefore, in one week, the power consumption of the mobile terminal used by the user in one hour every day is counted; carrying out statistical analysis on the power consumption of the mobile terminal used by the user within one hour every day to obtain the power consumption rule of the mobile terminal used within each time period of each day within one week; and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption law of the mobile terminal in each time period of each day in the week corresponding to the subsequent time. If the current time is 16 points of Monday, the power consumption rule of every hour after 16 points of Monday is estimated.
S103, estimating the available duration of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal.
And estimating the available time of the current residual power of the mobile terminal according to the power consumption rule of the mobile terminal in each hour of each day obtained by correspondingly counting the current residual power of the mobile terminal, the current time and the subsequent time. If the current time is 16 points, the residual capacity is only 1000mAh, and according to the power consumption law of the user using the mobile terminal: the power consumption of 16 points to 17 points is 100mAh, the power consumption of 17 points to 18 points is 200mAh, the power consumption of 18 points to 19 points is 400mAh, the power consumption of 19 points to 20 points is 200mAh, and the power consumption of 20 points to 21 points is 100mAh, so that the available time of the current residual power is 5 hours.
The method and the device can distinguish applications and users, estimate the residual electric quantity conditionally, and predict more accurate residual battery use duration, so that the use experience of the mobile terminal of the user is improved.
EXAMPLE five
In this embodiment, on the basis of the fourth embodiment, the P110 processor is further configured to execute the method for predicting the remaining battery usage duration to implement the following steps:
s104, according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, when the available duration of the current residual electric quantity of the mobile terminal is estimated to be short, prompting the user: it is recommended to turn on the low power mode and reduce unnecessary use.
When the mobile terminal estimates that the current available time of the remaining power is short (for example, the current available time of the remaining power can only be used for 2 hours), the mobile terminal prompts a user to start a low power mode, so that the available time of the remaining power is prolonged.
In the embodiment, when the mobile terminal estimates that the available time of the current remaining power is short (for example, the mobile terminal can only be used for 2 hours), the user is prompted to start the low power mode, so that the available time of the remaining power is prolonged, and the user experience is improved.
EXAMPLE six
In this embodiment, on the basis of the fourth embodiment, the P110 processor is further configured to execute the method for predicting the remaining battery usage duration to implement the following steps:
and S105, counting the battery charging and discharging times and the service life of the mobile terminal.
The mobile terminal counts the charging times of the battery each time, and stores the counted charging times into a system file; and the mobile terminal accumulates the battery use time and stores the battery use time into a system file.
And S106, determining a coefficient according to the battery charging and discharging times and the service life of the mobile terminal.
Because the battery is charged more times or the battery has a longer usage time, the availability of the battery is deteriorated, and the same remaining capacity usage time is shorter than the previous usage time. Therefore, in order to accurately estimate the remaining capacity, a coefficient needs to be determined according to the number of battery charges and the usage time, and when estimating the remaining battery usage time, the remaining battery usage time estimated according to the method of the first embodiment needs to be multiplied by a coefficient to obtain an accurate estimated time. If the number of times of charging the battery reaches 500 times or the usage time reaches 2 years, the coefficient is 0.8.
S107, according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, estimating the available time length of the current residual electric quantity of the mobile terminal, and then multiplying the available time length by the coefficient to obtain the final available time length of the current residual electric quantity of the mobile terminal.
If the number of times of charging the battery reaches 500 times or the usage time reaches 2 years, the coefficient is 0.8. If the remaining battery usage time calculated by the method of the first embodiment is 6 hours, the current remaining capacity available time of the mobile terminal is finally 6 × 0.8 — 4.8 hours.
In the embodiment, a coefficient is determined according to the number of battery charging times and the usage duration, and the estimated remaining usage duration is multiplied by the coefficient, so that the final available duration of the current remaining capacity of the mobile terminal is obtained. By the method, the service life of the residual battery can be estimated more accurately, and the user experience is improved.
EXAMPLE seven
A computer readable storage medium having one or more programs stored thereon. One or more programs, executable by one or more processors, for a method for battery remaining usage prediction, to implement the steps of:
s101, counting the running time of each hardware in the mobile terminal within a certain time period, and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period.
The mobile terminal operating system counts the service time and the corresponding power consumption of each hardware in the mobile terminal, for example, the power consumption of a battery in the use process of the hardware is counted according to the screen opening time, the standby time, the wifi connection time, the voice call time, the Bluetooth connection time, the GPS opening time and the like.
And the mobile terminal counts the power consumption of the battery corresponding to the application program according to the hardware resources occupied by each application program aiming at the application program started by the user. When the application program A is used, hardware resources such as a screen, a GPS, a Bluetooth and wifi need to be started, and therefore the power consumption of the hardware resources occupied by the APP is obtained.
Recording a first time point when each application program enters an operating state and a first electric quantity when the application program enters the operating state; acquiring a second time point of a previous running state before each application program enters the running state and a second electric quantity when the application program enters the previous running state; and taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period.
The statistical principle of the electric quantity of the application program of the mobile terminal is as follows:
the power consumption of the mobile terminal generally covers two aspects: power consumption on the hardware level and power consumption on the software level. Mobile terminals have many hardware modules: the mobile terminal comprises a CPU, Bluetooth, a GPS, a display screen, Wifi, Radio frequency (Cellular Radio) and the like, wherein in the using process of the mobile terminal, the hardware modules can be in different states, for example, the Wifi is turned on or off, the screen is bright or dark, and the CPU runs or sleeps. The power consumption of the hardware module in different states is different. When the mobile terminal counts the electric quantity, a mode of directly recording the current consumption is not adopted, but the service time of the hardware module in different states is tracked, and some available information is collected to approximately calculate the battery consumption.
The power consumption of the application is composed of multiple parts, GPS, bluetooth, etc. modules may be used, and the application may require a long time to be on screen (e.g., games, video-type applications). The power statistics for an application may be approximated by accumulating the time the application uses all hardware modules. For example, an application uses GPS and the time of use is denoted by t. The power consumption of the GPS module per unit time is denoted by w, and the power consumption of the application using the GPS can be calculated as follows: power consumption is power consumption (w) per unit time × usage time (t).
The power consumption information calculation formula:
the power consumption amount (w) × usage time (t) per unit time is voltage (U) × amount of current (I) × usage time (t) per unit time.
The voltage on the mobile terminal is generally constant, so the amount of current per unit time is only needed to be known for calculating the power consumption.
And (3) electric quantity counting process:
the power statistics contain several important functions: information collection, information storage and electric quantity information calculation.
Information collection refers to what manner of collecting electricity usage data at what point in time.
The format in which the information store is stored, and the location in which the information store is stored.
The electric quantity information calculation is how to calculate the electric quantity usage of different applications, services, processes, and the like, based on the collected information.
1. Electric quantity information collection
There are ways to collect power usage information actively and passively, and the collected information basically includes two dimensions of the state of the hardware module and the time used. As described above, the voltage of the mobile phone is generally constant, the power consumption is calculated by "current amount per unit time (I) × usage time (t)", and the current amount per unit time is given and defined in the mobile terminal system, so that the power consumption can be approximately calculated by collecting usage time of different hardware modules.
2. Electric quantity information storage
The collected power information is stored in the memory, and if the mobile terminal is restarted, data in the memory is lost, so that the information needs to be stored on a disk.
3. Calculation of electric quantity information
The calculation of the electric quantity information can be roughly divided into two blocks:
application power consumption information calculation: refers to the power consumption of each application using the hardware module.
Other miscellaneous power consumption information calculation: so-called miscellaneous items, which are actually a large category of interest to users, include: standby power consumption, power consumption of a bright screen, power consumption of a call, power consumption of Wifi, and the like.
And S102, analyzing the use rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period.
In the mobile terminal, the usage habits of the user using the mobile terminal are counted, for example, the behavior of the user using the terminal in each hour in 24 hours in a day is counted, such as the duration of starting the application program and the type of the application program. And (3) counting the occupation situation of the application programs on hardware resources: CPU occupancy, wireless device occupancy, screen occupancy, GPS occupancy, and the like.
And counting the power consumption of the mobile terminal used by the user within 1 hour every day. And carrying out statistical analysis on the power consumption of the mobile terminal used by the user within 1 hour every day to obtain the power consumption rule of the mobile terminal used within 1 hour every day. If more mobile application programs are opened at 8-9 am, the power consumption is 100 mAh; the mobile terminal at 9-10 points is in a standby state, and the power consumption is 30 mAh. Thereby counting the power consumption of the mobile terminal for each hour in 24 hours a day. After 1 month, obtaining the power consumption data of the mobile terminal used by the user, and then obtaining the power consumption rule of the mobile terminal used by the user through a statistical algorithm (such as an average algorithm).
The user stores working time and rest time in a week, so that the behavior rules of using the mobile terminal are different. If statistics is carried out every day, the power consumption rule of the mobile terminal on the working day and the rest day cannot be distinguished. Therefore, in one week, the power consumption of the mobile terminal used by the user in one hour every day is counted; carrying out statistical analysis on the power consumption of the mobile terminal used by the user within one hour every day to obtain the power consumption rule of the mobile terminal used within each time period of each day within one week; and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption law of the mobile terminal in each time period of each day in the week corresponding to the subsequent time. If the current time is 16 points of Monday, the power consumption rule of every hour after 16 points of Monday is estimated.
S103, estimating the available duration of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal.
And estimating the available time of the current residual power of the mobile terminal according to the power consumption rule of the mobile terminal in each hour of each day obtained by correspondingly counting the current residual power of the mobile terminal, the current time and the subsequent time. If the current time is 16 points, the residual capacity is only 1000mAh, and according to the power consumption law of the user using the mobile terminal: the power consumption of 16 points to 17 points is 100mAh, the power consumption of 17 points to 18 points is 200mAh, the power consumption of 18 points to 19 points is 400mAh, the power consumption of 19 points to 20 points is 200mAh, and the power consumption of 20 points to 21 points is 100mAh, so that the available time of the current residual power is 5 hours.
The method and the device can distinguish applications and users, estimate the residual electric quantity conditionally, and predict more accurate residual battery use duration, so that the use experience of the mobile terminal of the user is improved.
Example eight
This embodiment is based on the seventh embodiment, and one or more programs are executable by one or more processors for implementing the method for predicting remaining battery life to implement the following steps:
s104, according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, when the available duration of the current residual electric quantity of the mobile terminal is estimated to be short, prompting the user: it is recommended to turn on the low power mode and reduce unnecessary use.
When the mobile terminal estimates that the current available time of the remaining power is short (for example, the current available time of the remaining power can only be used for 2 hours), the mobile terminal prompts a user to start a low power mode, so that the available time of the remaining power is prolonged.
In the embodiment, when the mobile terminal estimates that the available time of the current remaining power is short (for example, the mobile terminal can only be used for 2 hours), the user is prompted to start the low power mode, so that the available time of the remaining power is prolonged, and the user experience is improved.
Example nine
This embodiment is based on the seventh embodiment, and one or more programs are executable by one or more processors for implementing the method for predicting remaining battery life to implement the following steps:
and S105, counting the battery charging and discharging times and the service life of the mobile terminal.
The mobile terminal counts the charging times of the battery each time, and stores the counted charging times into a system file; and the mobile terminal accumulates the battery use time and stores the battery use time into a system file.
And S106, determining a coefficient according to the battery charging and discharging times and the service life of the mobile terminal.
Because the battery is charged more times or the battery has a longer usage time, the availability of the battery is deteriorated, and the same remaining capacity usage time is shorter than the previous usage time. Therefore, in order to accurately estimate the remaining capacity, a coefficient needs to be determined according to the number of battery charges and the usage time, and when estimating the remaining battery usage time, the remaining battery usage time estimated according to the method of the first embodiment needs to be multiplied by a coefficient to obtain an accurate estimated time. If the number of times of charging the battery reaches 500 times or the usage time reaches 2 years, the coefficient is 0.8.
S107, according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, estimating the available time length of the current residual electric quantity of the mobile terminal, and then multiplying the available time length by the coefficient to obtain the final available time length of the current residual electric quantity of the mobile terminal.
If the number of times of charging the battery reaches 500 times or the usage time reaches 2 years, the coefficient is 0.8. If the remaining battery usage time calculated by the method of the first embodiment is 6 hours, the current remaining capacity available time of the mobile terminal is finally 6 × 0.8 — 4.8 hours.
In the embodiment, a coefficient is determined according to the number of battery charging times and the usage duration, and the estimated remaining usage duration is multiplied by the coefficient, so that the final available duration of the current remaining capacity of the mobile terminal is obtained. By the method, the service life of the residual battery can be estimated more accurately, and the user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A method for predicting the remaining service life of a battery is applied to a mobile terminal, and the method for predicting the remaining service life of the battery comprises the following steps:
the method for counting the running time of each hardware in the mobile terminal within a certain time period and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period comprises the following steps: recording a first time point when each application program enters an operation state and a first electric quantity when the application program enters the operation state;
acquiring a second time point of a last running state before each application program enters the running state and a second electric quantity when the application program enters the last running state;
taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period;
analyzing the usage rule of the mobile terminal used by the user according to the running time of each hardware in a certain time period and the power consumption of each application program in the mobile terminal in a certain time period;
and estimating the available duration of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal.
2. The method according to claim 1, wherein the operation duration of each hardware of the mobile terminal comprises at least one or any combination of the following: the system comprises a screen opening time length, a standby time length, a wifi connection time length, a voice call time length, a Bluetooth connection time length and a GPS opening time length.
3. The method according to claim 1, wherein the duration of hardware resource occupation within a certain period of time for each application in the mobile terminal at least comprises one or any combination of the following: CPU occupancy duration, wireless device occupancy duration, screen occupancy duration, GPS occupancy duration.
4. The method of predicting remaining useful time of a battery according to claim 1,
and according to the use rule of the user using the mobile terminal and the current residual electric quantity of the mobile terminal, when the available time of the current residual electric quantity of the mobile terminal is estimated to be short, prompting the user: it is recommended to turn on the low power mode and reduce unnecessary use.
5. The method according to claim 1, wherein the method for predicting the remaining service life of the battery is characterized by counting the number of battery charge and discharge times and the service life of the mobile terminal;
determining a coefficient according to the battery charging and discharging times and the service life of the mobile terminal;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the use rule of the mobile terminal used by the user and the current residual electric quantity of the mobile terminal, and then multiplying the available time by the coefficient to obtain the final available time of the current residual electric quantity of the mobile terminal.
6. A method for predicting the remaining service life of a battery is applied to a mobile terminal, and the method for predicting the remaining service life of the battery comprises the following steps:
the method for counting the running time of each hardware in the mobile terminal within a certain time period and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period comprises the following steps: recording a first time point when each application program enters an operation state and a first electric quantity when the application program enters the operation state;
acquiring a second time point of a last running state before each application program enters the running state and a second electric quantity when the application program enters the last running state;
taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period;
counting the power consumption of the mobile terminal used by the user in a period of time every day;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption rule of the mobile terminal in each time period corresponding to the follow-up time each day.
7. A method for predicting the remaining service life of a battery is applied to a mobile terminal, and the method for predicting the remaining service life of the battery comprises the following steps:
the method for counting the running time of each hardware in the mobile terminal within a certain time period and counting the hardware resource occupation time and the power consumption of each application program in the mobile terminal within a certain time period comprises the following steps: recording a first time point when each application program enters an operation state and a first electric quantity when the application program enters the operation state;
acquiring a second time point of a last running state before each application program enters the running state and a second electric quantity when the application program enters the last running state;
taking the power consumption difference between the first power consumption and the second power consumption as the power consumption of each application program within a certain time period;
counting the power consumption of the mobile terminal used by the user in a certain time period every day in one week;
carrying out statistical analysis on the power consumption of the mobile terminal used by the user in each time period every day to obtain the power consumption rule of the mobile terminal used in each time period every day in a week;
and estimating the available time of the current residual electric quantity of the mobile terminal according to the current residual electric quantity of the mobile terminal, the current time and the power consumption law of the mobile terminal in each time period of each day in the week corresponding to the subsequent time.
8. The device for predicting the remaining service life of the battery is characterized by comprising a display unit, a user input unit, a processor, a memory and a communication bus;
the display unit is used for displaying information input by a user or information provided for the user;
the user input unit is used for receiving input numeric or character information and generating key signal input related to user setting and function control of the mobile terminal;
the communication bus is used for realizing connection communication between the processor and the memory;
the memory is used for storing the data of the customized application program;
the processor is configured to execute a battery remaining usage period prediction program stored in the memory, and is configured to implement the method for predicting battery remaining usage period according to any one of claims 1 to 7.
9. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors and being configured to implement the method for predicting remaining usage time of a battery as claimed in one of claims 1 to 7.
CN201910075889.2A 2019-01-25 2019-01-25 Method and equipment for predicting remaining service life of battery Active CN109884543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910075889.2A CN109884543B (en) 2019-01-25 2019-01-25 Method and equipment for predicting remaining service life of battery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910075889.2A CN109884543B (en) 2019-01-25 2019-01-25 Method and equipment for predicting remaining service life of battery

Publications (2)

Publication Number Publication Date
CN109884543A CN109884543A (en) 2019-06-14
CN109884543B true CN109884543B (en) 2021-12-14

Family

ID=66927055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910075889.2A Active CN109884543B (en) 2019-01-25 2019-01-25 Method and equipment for predicting remaining service life of battery

Country Status (1)

Country Link
CN (1) CN109884543B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138942A (en) * 2019-01-18 2019-08-16 青岛海信移动通信技术股份有限公司 Terminal and processing method
CN111693872A (en) * 2020-06-28 2020-09-22 北京爱笔科技有限公司 Estimation method and system for remaining service life of battery
CN113702834B (en) * 2021-08-10 2024-03-08 青岛峻海物联科技有限公司 Method for estimating residual battery capacity of equipment of Internet of things
CN113873083A (en) * 2021-09-24 2021-12-31 杭州逗酷软件科技有限公司 Duration determination method and device, electronic equipment and storage medium
CN117458010B (en) * 2023-12-20 2024-04-02 超耐斯(深圳)新能源集团有限公司 Lithium battery energy storage monitoring system based on data analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103323786A (en) * 2013-06-24 2013-09-25 贝壳网际(北京)安全技术有限公司 Method, device and equipment for detecting service life of battery
CN108732502A (en) * 2017-04-20 2018-11-02 深圳市理邦精密仪器股份有限公司 The acquisition methods and device of residual time length workable for equipment
CN108932048A (en) * 2018-06-11 2018-12-04 Oppo(重庆)智能科技有限公司 Determine the method and Related product of battery available duration
JP2018207738A (en) * 2017-06-09 2018-12-27 キヤノン株式会社 Battery capacity learning system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10862175B2 (en) * 2017-05-29 2020-12-08 Rohm Co., Ltd. Battery fuel gauge circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103323786A (en) * 2013-06-24 2013-09-25 贝壳网际(北京)安全技术有限公司 Method, device and equipment for detecting service life of battery
CN108732502A (en) * 2017-04-20 2018-11-02 深圳市理邦精密仪器股份有限公司 The acquisition methods and device of residual time length workable for equipment
JP2018207738A (en) * 2017-06-09 2018-12-27 キヤノン株式会社 Battery capacity learning system
CN108932048A (en) * 2018-06-11 2018-12-04 Oppo(重庆)智能科技有限公司 Determine the method and Related product of battery available duration

Also Published As

Publication number Publication date
CN109884543A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109884543B (en) Method and equipment for predicting remaining service life of battery
CN107133094B (en) Application management method, mobile terminal and computer readable storage medium
CN110087287B (en) Control method and device for terminal network searching, mobile terminal and storage medium
CN108594120B (en) Battery state detection method and device and computer readable storage medium
CN109005574B (en) Cell selection method, mobile terminal and computer readable storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN110098651B (en) Charging method, charging device, electronic equipment and readable storage medium
CN109862278B (en) Light supplementing method and device for face recognition and computer readable storage medium
CN110875979A (en) Contextual model control method, terminal and computer readable storage medium
CN109309953B (en) Power consumption detection method, device, terminal and readable storage medium
CN109890072B (en) Terminal power saving control method and device, mobile terminal and readable storage medium
CN110069207B (en) Zxfoom zxfoom , zxfoom the method is Mobile terminal and mobile terminal read storage medium
CN108833717B (en) Information cleaning method and device, mobile terminal and computer readable storage medium
CN108377292B (en) Method, terminal, server and computer storage medium for solving memory leakage
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN109032648B (en) Application program updating method, mobile terminal and storage medium
CN109388947B (en) Background management method, device and computer readable storage medium
CN109151201B (en) Anti-addiction method, mobile terminal and computer storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN110046151B (en) Data cleaning method, server and computer readable storage medium
CN109284110B (en) Terminal application replacement method, terminal and computer readable storage medium
CN107770373B (en) Screen saturation adjusting method and corresponding mobile terminal
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium
CN110413415B (en) Memory management control method, equipment and computer readable storage medium

Legal Events

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