CN108845261A - A kind of electric quantity reminding method and terminal device - Google Patents
A kind of electric quantity reminding method and terminal device Download PDFInfo
- Publication number
- CN108845261A CN108845261A CN201810201898.7A CN201810201898A CN108845261A CN 108845261 A CN108845261 A CN 108845261A CN 201810201898 A CN201810201898 A CN 201810201898A CN 108845261 A CN108845261 A CN 108845261A
- Authority
- CN
- China
- Prior art keywords
- value
- current
- terminal device
- battery
- charging voltage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the present invention provides a kind of electric quantity reminding method and terminal device, is applied to field of terminal technology, to solve the problems, such as that battery dump energy 100% existing in the prior art shows overlong time.This method includes:In the battery charging process of terminal device, the current residual electricity value of battery is detected;According to the current residual electricity value detected, the current charging voltage value of battery is determined;According to charge cutoff voltage value, current charging voltage value and current residual electricity value, remaining capacity to be shown is calculated;Remaining capacity to be shown is shown on the display interface of terminal device.The present invention is applied in battery charging scenarios.
Description
Technical field
The present embodiments relate to field of terminal technology more particularly to a kind of electric quantity reminding methods and terminal device.
Background technique
Currently, the battery of mobile terminal, when being charged, mobile terminal would generally count the remaining capacity of battery
It calculates, and calculated real-time remaining capacity is shown in the display interface of terminal device, allow users to charge in battery
When, by checking the remaining capacity of display, learn the charging progress of battery.
In the prior art, battery, if the charging voltage of battery reaches charge cutoff voltage, shows when being charged
Battery has been filled with electricity, can stop charging at this time.The charging progress of battery, existing battery charging process are checked in order to facilitate user
In the remaining capacity of battery to be shown as 100% needs synchronous with charge cutoff.
However, since the prior art mainly detects the remaining capacity of battery by Coulomb meter detection method, and utilize coulomb
The usual error of remaining capacity for counting battery detected by detection method is larger.Therefore, when the charging voltage of battery is also not up to filled
Electric blanking voltage, and when mobile terminal has shown that remaining capacity is 100% in advance, then it is aobvious to will lead to battery dump energy 100%
The problem of showing overlong time.
Summary of the invention
The embodiment of the present invention provides a kind of electric quantity reminding method and terminal device, to solve battery existing in the prior art
Remaining capacity 100% shows the problem of overlong time.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, a kind of electric quantity reminding method is provided, the method includes:
In the battery charging process of terminal device, the current residual electricity value of the battery is detected;
According to the current residual electricity value, the current charging voltage value of the battery is determined;
According to the charge cutoff voltage value, the current charging voltage value and the current residual electricity value detected, meter
Calculate remaining capacity to be shown;
The remaining capacity to be shown is shown on the display interface of the terminal device.
Second aspect, the embodiment of the invention also provides a kind of terminal devices, including:
Detection module, in the battery charging process of terminal device, detecting the current residual electricity value of the battery;
Processing module, the current residual electricity value for being detected according to the detection module, determines working as the battery
Preceding charging voltage value;
The processing module is also used to according to charge cutoff voltage value, the current charging voltage value and described current surplus
Remaining charge value calculates remaining capacity to be shown;
Display module, it is to be shown surplus for show that the processing module obtains on the display interface of the terminal device
Remaining electricity.
The third aspect the embodiment of the invention provides a kind of terminal device, including processor, memory and is stored in this and deposits
On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor
The step of electric quantity reminding method described in aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums
Computer program is stored in matter, and electric quantity reminding method as described in relation to the first aspect is realized when which is executed by processor
The step of.
In embodiments of the present invention, terminal device in battery charging process by the current residual electricity value to battery into
Row detection, so as to determine the current charging voltage value of battery according to the current residual electricity value detected, then, in conjunction with
Current charging voltage value, charge cutoff voltage value and current residual electricity value, calculating currently will be at the interface of terminal device
The remaining capacity to be shown of middle display, since the remaining capacity to be shown considers current charging voltage value and charge cutoff
Voltage value, when being also not up to charge cutoff voltage value so as to avoid the charging voltage of battery, terminal device shows residue in advance
The problem of electricity is 100%.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of electric quantity reminding method flow diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram one of terminal device provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram two of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be noted that "/" herein indicate or the meaning, for example, A/B can indicate A or B;Herein
"and/or" is only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can
To indicate:Individualism A exists simultaneously A and B, these three situations of individualism B." multiple " refer to two or more.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating
Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer
It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used
Such as " word is intended to that related notion is presented in specific ways.
In the embodiment of the present invention, " (English:Of) ", " corresponding (English:Corresponding, relevant) " and
" corresponding (English:Corresponding it) " can use with sometimes, it is noted that when not emphasizing its difference,
The meaning of expression is consistent.In the embodiment of the present invention the meaning of " plurality " is refer to two or more.
Terminal device in the embodiment of the present invention can be mobile terminal device, or immobile terminal equipment.It moves
Dynamic terminal device can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super shifting
Dynamic personal computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant
(personal digital assistant, PDA) etc.;Immobile terminal equipment can be personal computer (personal
Computer, PC), television set (television, TV), automatic teller machine or self-service machine etc.;The embodiment of the present invention does not limit specifically
It is fixed.
Terminal in the embodiment of the present invention can be the terminal with operating system.The operating system can be Android
(Android) operating system can be ios operating system, can also be other possible operating systems, the embodiment of the present invention is not
Make specific limit.
Below by taking Android operation system as an example, introduce applied by electric quantity reminding method provided in an embodiment of the present invention
Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming
In 1, the framework of Android operation system includes 4 layers, respectively:Application layer, application framework layer, system Runtime Library layer and
Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system
Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program
In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour
As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system
Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior
Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1
The software program of electric quantity reminding method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that
The electric quantity reminding method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can lead to
It crosses and runs software program realization electric quantity reminding method provided in an embodiment of the present invention in Android operation system.
First embodiment:
It is illustrated below with reference to electric quantity reminding method of the Fig. 2 to the embodiment of the present invention, the embodiment of the present invention provides one kind
Electric quantity reminding method.As shown in Fig. 2, this method includes S201 to S204:
S201, in the battery charging process of terminal device, terminal device detect battery current residual electricity value.
In embodiments of the present invention, terminal device can detect the current residual electricity of battery by coulometer detection method
Value.Wherein, the current residual electricity value of battery can (unit be by coulomb:Ampere-hour/ampere second) it indicates.Generally
, it is checked in order to facilitate user, the remaining capacity shown in terminal device is shown in the form of percentage, illustratively,
Above-mentioned current residual electricity value is current residual electricity value percentage, i.e., between the remaining capacity of battery and the capacitance of the battery
Ratio.
S202, terminal device determine the current charging voltage value of battery according to the current residual electricity value detected.
Optionally, above-mentioned S202 can at least be realized by following two display mode:
The first possible implementation:
In embodiments of the present invention, S202 specifically comprises the following steps:
S202a1, terminal device determine target open circuit corresponding with current residual electricity value from the first corresponding relationship
Voltage value.
Wherein, open-circuit voltage (Open circuit voltage, OCV) is that end voltage of the battery under open-circuit condition is known as
Open-circuit voltage can calculate the charging voltage of battery by open-circuit voltage.The first above-mentioned corresponding relationship be remaining capacity with
Mapping relations between open-circuit voltage, the corresponding relationship include that the mapping between current residual electricity value and target open-circuit voltage values is closed
System.Illustratively, the first above-mentioned corresponding relationship can be an open-circuit voltage table, include at least one in the open-circuit voltage table
Open-circuit voltage values and at least one residual electric quantity, the corresponding residual electric quantity of open-circuit voltage values, terminal device with
Current residual electricity value is index, and the corresponding target open-circuit voltage of the current residual electric quantity is found out from the open-circuit voltage table
Value.
S202a2, terminal device calculate working as battery according to target open-circuit voltage values and preset charged cutoff current value
Preceding charging voltage value.
In embodiments of the present invention, charging voltage can be calculated by following formula 1.
Charging voltage=OCV+ charging cut-off current * battery equivalent impedance (formula 1)
For terminal device, the hardware parameter of battery equivalent impedance and charging cut-off current for terminal device, difference
Terminal device correspond to different charging cut-off currents.In general, charging cut-off current is definite value (for example, 250mA (millivolt)),
It is referred to as charging maximum current, then shows that the battery has been filled with when the charging current of battery reaches charging cut-off current.On
The battery equivalent impedance stated is mainly related to temperature, and battery equivalent impedance is different under different temperature scenes.
In a kind of example, the embodiment of the present invention can only consider the battery equivalent impedance under room temperature (for example, 25 degree).Example
Such as, it is assumed that battery equivalent impedance is 78 milliohms, and current OCV is 4320mV, then corresponding charging voltage.Therefore, estimation estimation
Charge cutoff voltage value is 4320+250*78/1000=4339.5mV, after rounding, using 4339mV as current charging voltage value.
It is further alternative, it further include following steps before S202a1:
Step 1:The current temperature value of terminal device acquisition battery.
Step 2:Terminal device finds out the first corresponding pass corresponding with current temperature value from least one corresponding relationship
System.
Wherein, at least one corresponding relationship includes the first corresponding relationship, the corresponding temperature value of each corresponding relationship.
Illustratively, terminal device built-in temperature sensor is to detect the battery temperature of terminal device, and working as with battery
Preceding temperature value is index, from least one corresponding relationship, finds out corresponding relationship corresponding with current temperature value.
In second of possible implementation:
In embodiments of the present invention, S202 specifically comprises the following steps:
S202b, terminal device determine current charging electricity corresponding with current residual electricity value from the second corresponding relationship
Pressure value.
Wherein, mapping relations of the second above-mentioned corresponding relationship between remaining capacity and charging voltage, the corresponding relationship packet
Include the mapping relations between current residual electricity value and current charging voltage value.Illustratively, the second above-mentioned corresponding relationship can be with
It include at least one charging voltage value and at least one residual electric quantity in the charging voltage table for a charging voltage table,
The corresponding residual electric quantity of one charging voltage value, terminal device is index with current residual electricity value, from the charging voltage
The corresponding charging voltage value of the current residual electric quantity is found out in table.Illustratively, the charging in above-mentioned charging voltage table
The calculating process of voltage value is referred to above-mentioned charging voltage value calculating process, and which is not described herein again.
S203, terminal device according to charge cutoff voltage value, current charging voltage value and current residual electricity value, calculate to
Show remaining capacity.
For terminal device, charge cutoff voltage value is the hardware parameter of terminal device, different terminal devices pair
Answer different charge cutoff voltage values.In general, charging cut-off current value is definite value (for example, 4.37V (volt)), it is referred to as
Charge maximum voltage, then shows that the battery has been filled with when the charging voltage value of battery reaches charging cut-off current value.
Optionally, terminal device can be based on the difference between charge cutoff voltage value and current charging voltage value, to measure
Current charging progress, and it is based on the difference, determine the remaining capacity to be shown finally shown.
In embodiments of the present invention, S203 specifically comprises the following steps:
S203a, terminal device determine that charging voltage is missed according to the difference of charge cutoff voltage value and current charging voltage value
Poor coefficient.
S203b, terminal device weight charging voltage error coefficient and current residual electricity value, obtain remaining electricity to be shown
Amount.
Further alternative, S203a specifically comprises the following steps:
S203a1, terminal device obtain the difference M of charge cutoff voltage value and current charging voltage value.
S203a2, terminal device determine charging voltage error coefficient N according to difference M and preset formula.
In a kind of example, above-mentioned preset formula is:
Above-mentioned k is constant.In general, the value of K is related with the accuracy of the difference, for example, if charge cutoff voltage
When the unit of value and current charging voltage value is V, K is usually 100, if the list of charge cutoff voltage value and current charging voltage value
When position is mV, k 0.1.
It illustrates, it is assumed that the charge cutoff voltage value V1 of terminal device is 4370mV, the current charging voltage estimated
Value V2 is 4339mV, and it is 3 that error V1-V2=31mV, M*k=31*0.1=3.1,3.1, which are rounded, substitutes into above-mentioned formula for 3
2,
In a kind of example, above-mentioned preset formula is:
Wherein, above-mentioned k is constant.In general, the value of K is related with the accuracy of the difference, for example, if charge cutoff
When the unit of voltage value and current charging voltage value is V (volt), K is usually 100, if charge cutoff voltage value and current charging electricity
When the unit of pressure value is mV (millivolt), k 0.1.
It illustrates, it is assumed that the charge cutoff voltage value V1 of terminal device is 4370mV, the current charging voltage estimated
Value V2 is 4339mV, and it is 3 that error V1-V2=31mV, 31*0.1=3.1mV, 3.1, which are rounded, substitutes into above-mentioned formula 2 for 3,
It illustrates, it is assumed that the current residual electricity value of terminal device is 95%, and charging voltage error coefficient isThen
Corresponding remaining capacity to be shown
S204, terminal device show remaining capacity to be shown on the display interface of terminal device.
Electric quantity display method provided in an embodiment of the present invention, terminal device is in battery charging process by working as to battery
Preceding residual electric quantity is detected, so as to determine the current charging electricity of battery according to the current residual electricity value detected
Pressure value, then, in conjunction with current charging voltage value, charge cutoff voltage value and current residual electricity value, calculating currently will be
The remaining capacity to be shown shown in the interface of terminal device.In this way in battery charging process, terminal device passes through monitoring electricity
The current charging voltage value in pond, so that calculated remaining capacity to be shown considers current charging voltage value and charging is cut
Only voltage value, and then in the case where battery will be filled with, the growth of the remaining capacity shown in terminal device can be delayed, most
Make the charge cutoff time point of battery reach synchronous with the 100% of battery dump energy display eventually, avoids filling for battery
When piezoelectric voltage is also not up to charge cutoff voltage value, terminal device shows the problem of remaining capacity is 100% in advance.
Second embodiment:
A kind of possible structural schematic diagram of Fig. 3 terminal device that embodiment provides to realize the present invention, as shown in figure 3,
Terminal device 300 includes:Detection module 301, processing module 302 and display module 303, wherein:
Detection module 301, in the battery charging process of terminal device, detecting the current residual electricity value of battery.
Processing module 302, the current residual electricity value for being detected according to detection module 301 determine currently filling for battery
Piezoelectric voltage value.
Processing module 302 is also used to according to charge cutoff voltage value, current charging voltage value and current residual electricity value,
Calculate remaining capacity to be shown.
Display module 303, for the remaining electricity to be shown that Display processing module obtains on the display interface of terminal device
Amount.
Optionally, processing module 302 are also used to:According to the difference of charge cutoff voltage value and current charging voltage value, really
Determine charging voltage error coefficient;Current residual electricity value is weighted using the charging voltage error coefficient, obtains residue to be shown
Electricity.
Optionally, processing module 302 are also used to:Obtain the difference M of charge cutoff voltage value and current charging voltage value;
According to difference M and preset formula, charging voltage error coefficient N is determined;Wherein, preset formula is:
Optionally, processing module 302 are also used to:From the first corresponding relationship, determine that is detected with detection module works as
The corresponding target open-circuit voltage values of preceding residual electric quantity;Wherein, the first corresponding relationship is between residual electric quantity and open-circuit voltage values
Mapping relations, corresponding relationship includes the mapping relations between current residual electricity value and target open-circuit voltage values;According to the target
Open-circuit voltage values and preset charged cutoff current value calculate the current charging voltage value of battery.
Optionally, detection module 301 are also used to detect the current temperature value of battery;Processing module 302, be also used to
In a few corresponding relationship, the first corresponding relationship corresponding with the current temperature value that detection module detects is determined;Wherein, until
A few corresponding relationship includes the first corresponding relationship, the corresponding temperature value of each corresponding relationship.
Terminal device provided in an embodiment of the present invention, the terminal device is in battery charging process by the current of battery
Residual electric quantity is detected, so as to determine the current charging voltage of battery according to the current residual electricity value detected
Value, then, in conjunction with current charging voltage value, charge cutoff voltage value and current residual electricity value, calculating currently will be at end
The remaining capacity to be shown shown in the interface of end equipment, since the remaining capacity to be shown considers current charging voltage value
And charge cutoff voltage value, when being also not up to charge cutoff voltage value so as to avoid the charging voltage of battery, terminal device
The problem of remaining capacity is 100% is shown in advance.
Terminal device provided in an embodiment of the present invention can be realized terminal device in above method embodiment realize it is each
Process, to avoid repeating, which is not described herein again.
3rd embodiment:
A kind of hardware structural diagram of Fig. 4 terminal device of each embodiment to realize the present invention, the terminal device 100
Including but not limited to:Radio frequency unit 101, audio output unit 103, input unit 104, sensor 105, is shown network module 102
Show the components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111.
It will be understood by those skilled in the art that the structure of terminal device 100 shown in Fig. 4 does not constitute the restriction to terminal device,
Terminal device 100 may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.In embodiments of the present invention, terminal device 100 include but is not limited to mobile phone, tablet computer, laptop, palm PC,
Car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 110, in the battery charging process of terminal device, detecting the current residual electricity of battery
Value, according to current residual electricity value, determines the current charging voltage value of battery;According to charge cutoff voltage value, current charging electricity
Pressure value and current residual electricity value, calculate remaining capacity to be shown;Display unit 106, for the display interface in terminal device
The upper display remaining capacity to be shown.
Terminal device provided in an embodiment of the present invention, the terminal device is in battery charging process by the current of battery
Residual electric quantity is detected, so as to determine the current charging voltage of battery according to the current residual electricity value detected
Value, then, in conjunction with current charging voltage value, charge cutoff voltage value and current residual electricity value, calculating currently will be at end
The remaining capacity to be shown shown in the interface of end equipment, since the remaining capacity to be shown considers current charging voltage value
And charge cutoff voltage value, when being also not up to charge cutoff voltage value so as to avoid the charging voltage of battery, terminal device
The problem of remaining capacity is 100% is shown in advance.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set
Standby communication.
Terminal device 100 provides wireless broadband internet by network module 102 for user and accesses, and such as helps user
It sends and receive e-mail, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end
The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike
Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, it is (such as horizontal to can be used to identify terminal posture
Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor
105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, humidity
Meter, thermometer, infrared sensor etc., details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate and terminal device 100
User setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area
It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments
1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it
On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching
The type for touching event provides corresponding visual output on display panel 1061.Although in Fig. 4, touch panel 1071 and display
Panel 1061 is the function that outputs and inputs of realizing terminal device 100 as two independent components, but in certain implementations
In example, touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of terminal device 100, tool
Body is herein without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device
Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device 100, utilizes various interfaces and the entire terminal device of connection
100 various pieces, by running or executing the software program and/or module that are stored in memory 109, and calling storage
Data in memory 109 execute the various functions and processing data of terminal device 100, to carry out to terminal device 100
Integral monitoring.Processor 110 may include one or more processing units;Optionally, processor 110 can integrate application processor and
Modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation
Processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110
In.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, optionally, power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Fourth embodiment:
Optionally, the embodiment of the present invention also provides a kind of terminal device, including processor, and memory is stored in memory
Computer program that is upper and can running on the processor 110, the computer program realize above-mentioned electricity when being executed by processor
Each process of reminding method embodiment is measured, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
5th embodiment:
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned electric quantity reminding method embodiment, and energy when being executed by processor
Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (11)
1. a kind of electric quantity reminding method, which is characterized in that the method includes:
In the battery charging process of terminal device, the current residual electricity value of the battery is detected;
According to the current residual electricity value detected, the current charging voltage value of the battery is determined;
According to charge cutoff voltage value, the current charging voltage value and the current residual electricity value, residue to be shown is calculated
Electricity;
The remaining capacity to be shown is shown on the display interface of the terminal device.
2. the method according to claim 1, wherein described according to charge cutoff voltage value, the current charging
Voltage value and the current residual electricity value, calculate remaining capacity to be shown, including:
According to the difference of charge cutoff voltage value and the current charging voltage value, charging voltage error coefficient is determined;
The charging voltage error coefficient and the current residual electricity are weighted, remaining capacity to be shown is obtained.
3. according to the method described in claim 2, it is characterized in that, described according to charge cutoff voltage value and the current charging
The difference of voltage value determines charging voltage error coefficient, including:
Obtain the difference M of the charge cutoff voltage value Yu the current charging voltage value;
According to the difference M and preset formula, charging voltage error coefficient N is determined;
Wherein, the preset formula is:The k is constant.
4. the method according to claim 1, wherein described according to the current residual electricity value, determine described in
The current charging voltage value of battery, including:
From the first corresponding relationship, target open-circuit voltage values corresponding with the current residual electricity value are determined;Wherein, described
Mapping relations of first corresponding relationship between residual electric quantity and open-circuit voltage values, the corresponding relationship include the current residual
Mapping relations between charge value and the target open-circuit voltage values;
According to the target open-circuit voltage values and preset charged cutoff current value, the current charging voltage of the battery is calculated
Value.
5. according to the method described in claim 4, determining and currently remaining it is characterized in that, described from the first corresponding relationship
Before the corresponding target open-circuit voltage values of remaining charge value, the method also includes:
Obtain the current temperature value of the battery;
From at least one corresponding relationship, first corresponding relationship corresponding with the current temperature value is found out;Wherein, institute
Stating at least one corresponding relationship includes first corresponding relationship, the corresponding temperature value of each corresponding relationship.
6. a kind of terminal device, which is characterized in that including:
Detection module, in the battery charging process of terminal device, detecting the current residual electricity value of the battery;
Processing module, the current residual electricity value for being detected according to the detection module determine currently filling for the battery
Piezoelectric voltage value;
The processing module is also used to according to charge cutoff voltage value, the current charging voltage value and current residual electricity
Magnitude calculates remaining capacity to be shown;
Display module, the residue electricity to be shown obtained for showing the processing module on the display interface of the terminal device
Amount.
7. terminal device according to claim 6, which is characterized in that the processing module is also used to:
According to the difference of charge cutoff voltage value and the current charging voltage value, charging voltage error coefficient is determined;
The charging voltage error coefficient and the current residual electricity value are weighted, remaining capacity to be shown is obtained.
8. terminal device according to claim 7, which is characterized in that the processing module is also used to:
Obtain the difference M of the charge cutoff voltage value Yu the current charging voltage value;
According to the difference M and preset formula, charging voltage error coefficient N is determined;
Wherein, the preset formula is:The k is constant.
9. terminal device according to claim 6, which is characterized in that the processing module is also used to:
From the first corresponding relationship, target corresponding with the current residual electricity value that the detection module detects is determined
Open-circuit voltage values;Wherein, mapping relations of first corresponding relationship between residual electric quantity and open-circuit voltage values, the correspondence
Relationship includes the mapping relations between the current residual electricity value and the target open-circuit voltage values;
According to the target open-circuit voltage values and preset charged cutoff current value, the current charging voltage of the battery is calculated
Value.
10. terminal device according to claim 9, which is characterized in that
The detection module is also used to obtain the current temperature value of the battery;
The processing module is also used to from least one corresponding relationship, determine to detect with the detection module described in
Corresponding first corresponding relationship of current temperature value;Wherein, at least one described corresponding relationship includes the described first corresponding pass
System, the corresponding temperature value of each corresponding relationship.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in electric quantity reminding method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810201898.7A CN108845261B (en) | 2018-03-12 | 2018-03-12 | Electric quantity prompting method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810201898.7A CN108845261B (en) | 2018-03-12 | 2018-03-12 | Electric quantity prompting method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108845261A true CN108845261A (en) | 2018-11-20 |
CN108845261B CN108845261B (en) | 2021-06-08 |
Family
ID=64211830
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810201898.7A Active CN108845261B (en) | 2018-03-12 | 2018-03-12 | Electric quantity prompting method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845261B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111679203A (en) * | 2020-07-31 | 2020-09-18 | 佛山市顺德区美的洗涤电器制造有限公司 | Method and device for judging residual capacity of battery, cooking equipment and storage medium |
CN112202959A (en) * | 2020-09-25 | 2021-01-08 | 努比亚技术有限公司 | Electric quantity information processing method, electronic equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103941194A (en) * | 2014-04-28 | 2014-07-23 | 广西卓能新能源科技有限公司 | Electric quantity displaying method and device for intelligent lithium ion battery |
CN105472135A (en) * | 2015-11-18 | 2016-04-06 | 广东欧珀移动通信有限公司 | Method and device for displaying electric quantity of mobile terminal |
EP3046212A1 (en) * | 2015-01-15 | 2016-07-20 | Xiaomi Inc. | Method and apparatus for controlling charging of terminal device |
CN106291390A (en) * | 2016-10-13 | 2017-01-04 | 宁德时代新能源科技股份有限公司 | Method and device for calculating residual electric quantity during battery charging and battery pack |
CN107271908A (en) * | 2014-12-18 | 2017-10-20 | 青岛海信移动通信技术股份有限公司 | A kind of terminal residual electric quantity display method and device |
-
2018
- 2018-03-12 CN CN201810201898.7A patent/CN108845261B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103941194A (en) * | 2014-04-28 | 2014-07-23 | 广西卓能新能源科技有限公司 | Electric quantity displaying method and device for intelligent lithium ion battery |
CN107271908A (en) * | 2014-12-18 | 2017-10-20 | 青岛海信移动通信技术股份有限公司 | A kind of terminal residual electric quantity display method and device |
EP3046212A1 (en) * | 2015-01-15 | 2016-07-20 | Xiaomi Inc. | Method and apparatus for controlling charging of terminal device |
CN105472135A (en) * | 2015-11-18 | 2016-04-06 | 广东欧珀移动通信有限公司 | Method and device for displaying electric quantity of mobile terminal |
CN106291390A (en) * | 2016-10-13 | 2017-01-04 | 宁德时代新能源科技股份有限公司 | Method and device for calculating residual electric quantity during battery charging and battery pack |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111679203A (en) * | 2020-07-31 | 2020-09-18 | 佛山市顺德区美的洗涤电器制造有限公司 | Method and device for judging residual capacity of battery, cooking equipment and storage medium |
CN112202959A (en) * | 2020-09-25 | 2021-01-08 | 努比亚技术有限公司 | Electric quantity information processing method, electronic equipment and computer storage medium |
CN112202959B (en) * | 2020-09-25 | 2022-05-27 | 努比亚技术有限公司 | Electric quantity information processing method, electronic equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108845261B (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109343759A (en) | A kind of control method and terminal of the display of breath screen | |
CN108491123A (en) | A kind of adjusting application program image target method and mobile terminal | |
CN108494030A (en) | A kind of wireless charging method, terminal and transmitting end equipment | |
CN108663627A (en) | A kind of self-discharge of battery detection method and self-discharge of battery detection device | |
CN109788136A (en) | Information display method and mobile terminal | |
CN110058836A (en) | A kind of output method and terminal device of audio signal | |
CN109885257A (en) | A kind of disk file reading/writing method and device | |
CN109032486A (en) | A kind of display control method and terminal device | |
CN110162254A (en) | A kind of display methods and terminal device | |
CN109933252A (en) | A kind of icon moving method and terminal device | |
CN109857289A (en) | Display control method and terminal device | |
CN109755997A (en) | A kind of charging method and terminal device | |
CN109816679A (en) | A kind of image processing method and terminal device | |
CN109639887A (en) | A kind of control method and terminal device | |
CN109257463A (en) | A kind of terminal device and its control method | |
CN108920054A (en) | A kind of application recommended method and terminal | |
CN108170559A (en) | A kind of data back up method and terminal | |
CN110505279A (en) | The method and apparatus of delay is set | |
CN110069407A (en) | A kind of function test method and device of application program | |
CN110489038A (en) | Interface display method and terminal device | |
CN110456923A (en) | A kind of posture sensing data processing method and electronic equipment | |
CN108845261A (en) | A kind of electric quantity reminding method and terminal device | |
CN109117037A (en) | A kind of method and terminal device of image procossing | |
CN108833791A (en) | A kind of image pickup method and device | |
CN107943406A (en) | A kind of touch-screen touch point determines method and terminal |
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 |