CN108845261B - Electric quantity prompting method and terminal equipment - Google Patents

Electric quantity prompting method and terminal equipment Download PDF

Info

Publication number
CN108845261B
CN108845261B CN201810201898.7A CN201810201898A CN108845261B CN 108845261 B CN108845261 B CN 108845261B CN 201810201898 A CN201810201898 A CN 201810201898A CN 108845261 B CN108845261 B CN 108845261B
Authority
CN
China
Prior art keywords
value
current
electric quantity
voltage value
residual electric
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
CN201810201898.7A
Other languages
Chinese (zh)
Other versions
CN108845261A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810201898.7A priority Critical patent/CN108845261B/en
Publication of CN108845261A publication Critical patent/CN108845261A/en
Application granted granted Critical
Publication of CN108845261B publication Critical patent/CN108845261B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides an electric quantity prompting method and terminal equipment, which are applied to the technical field of terminals and are used for solving the problem that 100% of residual electric quantity of a battery is displayed for too long time in the prior art. The method comprises the following steps: detecting the current residual electric quantity value of a battery in the battery charging process of the terminal equipment; determining the current charging voltage value of the battery according to the detected current residual electric quantity value; calculating the residual electric quantity to be displayed according to the charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value; and displaying the residual capacity to be displayed on a display interface of the terminal equipment. The invention is applied to a battery charging scene.

Description

Electric quantity prompting method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of terminals, in particular to an electric quantity prompting method and terminal equipment.
Background
At present, when a battery of a mobile terminal is charged, the mobile terminal usually calculates the residual capacity of the battery and displays the calculated real-time residual capacity on a display interface of a terminal device, so that a user can know the charging progress of the battery by checking the displayed residual capacity when the battery is charged.
In the prior art, when a battery is charged, if the charging voltage of the battery reaches the charging cut-off voltage, the battery is fully charged, and the charging is stopped at this time. In order to facilitate the user to check the charging progress of the battery, the remaining capacity of the battery in the existing battery charging process is displayed as 100% and needs to be synchronized with the charge cutoff.
However, since the prior art mainly detects the remaining capacity of the battery by coulometric detection, the remaining capacity of the battery detected by coulometric detection is generally subject to a large error. Therefore, when the charging voltage of the battery has not reached the charging cut-off voltage and the mobile terminal has previously displayed the remaining capacity of 100%, the problem of displaying the remaining capacity of 100% for too long time is caused.
Disclosure of Invention
The embodiment of the invention provides an electric quantity prompting method and terminal equipment, and aims to solve the problem that 100% of residual electric quantity of a battery is too long in display time in the prior art.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a method for prompting power is provided, where the method includes:
detecting the current residual electric quantity value of a battery in the battery charging process of terminal equipment;
determining the current charging voltage value of the battery according to the current residual electric quantity value;
calculating the residual electric quantity to be displayed according to the detected charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value;
and displaying the residual electric quantity to be displayed on a display interface of the terminal equipment.
In a second aspect, an embodiment of the present invention further provides a terminal device, including:
the detection module is used for detecting the current residual electric quantity value of the battery in the battery charging process of the terminal equipment;
the processing module is used for determining the current charging voltage value of the battery according to the current residual electric quantity value detected by the detection module;
the processing module is further used for calculating the residual electric quantity to be displayed according to the charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value;
and the display module is used for displaying the residual electric quantity to be displayed, which is obtained by the processing module, on a display interface of the terminal equipment.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the power indication method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the power indication method according to the first aspect.
In the embodiment of the invention, the terminal device detects the current residual electric quantity value of the battery in the charging process of the battery, so that the current charging voltage value of the battery can be determined according to the detected current residual electric quantity value, then the current to-be-displayed residual electric quantity to be displayed in the interface of the terminal device is calculated by combining the current charging voltage value, the charging cut-off voltage value and the current residual electric quantity value, and the problem that the terminal device displays 100% of the residual electric quantity in advance when the charging voltage of the battery does not reach the charging cut-off voltage value is avoided because the current charging voltage value and the charging cut-off voltage value are considered by the to-be-displayed residual electric quantity.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an electric quantity prompting method according to an embodiment of the present invention;
fig. 3 is a first schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the embodiments of the present invention, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that the intended meaning is consistent when the difference is not emphasized. The meaning of "a plurality" in the embodiments of the present invention means two or more.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the power prompting method provided by the embodiment of the invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the power prompting method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the power prompting method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the power prompting method provided by the embodiment of the invention by running the software program in the android operating system.
The first embodiment:
the following describes an electric quantity prompting method according to an embodiment of the present invention with reference to fig. 2. As shown in fig. 2, the method includes S201 to S204:
s201, in the process of charging the battery of the terminal device, the terminal device detects the current residual electric quantity value of the battery.
In the embodiment of the invention, the terminal device may detect the current remaining capacity value of the battery through a coulomb meter detection method. Wherein the current remaining electric quantity value of the battery can be expressed by coulomb (unit: ampere hour/ampere second). Generally, the remaining capacity displayed in the terminal device is displayed in percentage form for the convenience of the user to view, and for example, the current remaining capacity value is a current remaining capacity value percentage, that is, a ratio between the remaining capacity of the battery and the capacity of the battery.
S202, the terminal equipment determines the current charging voltage value of the battery according to the detected current residual electric quantity value.
Optionally, the above S202 may be implemented by at least the following two display modes:
a first possible implementation:
in this embodiment of the present invention, S202 specifically includes the following steps:
s202a1, the terminal device determines a target open-circuit voltage value corresponding to the current residual current value from the first corresponding relationship.
Here, the Open Circuit Voltage (OCV) is a terminal voltage of the battery in an Open circuit state and is referred to as an Open circuit voltage, and a charging voltage of the battery can be calculated from the Open circuit voltage. The first corresponding relationship is a mapping relationship between the remaining capacity and the open-circuit voltage, and the corresponding relationship includes a mapping relationship between a current remaining capacity value and a target open-circuit voltage value. For example, the first corresponding relationship may be an open-circuit voltage table, where the open-circuit voltage table includes at least one open-circuit voltage value and at least one remaining power value, one open-circuit voltage value corresponds to one remaining power value, and the terminal device uses the current remaining power value as an index to find a target open-circuit voltage value corresponding to the current remaining power value from the open-circuit voltage table.
And S202a2, the terminal equipment calculates the current charging voltage value of the battery according to the target open-circuit voltage value and the preset charging cut-off current value.
In the embodiment of the present invention, the charging voltage may be calculated by the following formula 1.
Charging voltage OCV + charging cutoff current equivalent impedance of battery (formula 1)
For the terminal device, the battery equivalent impedance and the charging cutoff current are hardware parameters of the terminal device, and different terminal devices correspond to different charging cutoff currents. Typically, the off-charge current is a constant value (e.g., 250mA (millivolts)), which may also be referred to as the maximum charge current, and when the charge current of the battery reaches the off-charge current, it indicates that the battery is fully charged. The battery equivalent impedance is mainly related to temperature, and the battery equivalent impedance is different under different temperature scenes.
In one example, embodiments of the present invention may only consider the equivalent impedance of the battery at normal temperature (e.g., 25 degrees). For example, assuming that the battery equivalent impedance is 78 milliohms and the current OCV is 4320mV, the corresponding charging voltage. Therefore, the estimated charge cut-off voltage value was estimated to be 4320+250 × 78/1000 — 4339.5mV, and after rounding, 4339mV was taken as the current charge voltage value.
Further optionally, before S202a1, the method further includes the following steps:
step 1: the terminal equipment acquires the current temperature value of the battery.
Step 2: and the terminal equipment searches out a first corresponding relation corresponding to the current temperature value from the at least one corresponding relation.
Wherein, at least one corresponding relation comprises a first corresponding relation, and each corresponding relation corresponds to a temperature value.
Illustratively, the terminal device is internally provided with a temperature sensor for detecting the temperature of the battery of the terminal device, and the corresponding relation corresponding to the current temperature value is found out from at least one corresponding relation by taking the current temperature value of the battery as an index.
In a second possible implementation:
in this embodiment of the present invention, S202 specifically includes the following steps:
s202b, the terminal device determines a current charging voltage value corresponding to the current remaining electric quantity value from the second corresponding relationship.
The second mapping relationship is a mapping relationship between the remaining capacity and the charging voltage, and the mapping relationship includes a mapping relationship between a current remaining capacity value and a current charging voltage value. For example, the second corresponding relationship may be a charging voltage table, where the charging voltage table includes at least one charging voltage value and at least one remaining power value, one charging voltage value corresponds to one remaining power value, and the terminal device searches the charging voltage value corresponding to the current remaining power value from the charging voltage table by using the current remaining power value as an index. For example, the charging voltage value calculation process in the charging voltage meter may refer to the charging voltage value calculation process, which is not described herein again.
And S203, the terminal equipment calculates the residual electric quantity to be displayed according to the charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value.
For the terminal device, the charging cut-off voltage value is a hardware parameter of the terminal device, and different terminal devices correspond to different charging cut-off voltage values. Generally, the charge cut-off current value is a constant value (e.g., 4.37V (volts)), which may also be referred to as a maximum charge voltage, and when the charge voltage value of the battery reaches the charge cut-off current value, it indicates that the battery is fully charged.
Optionally, the terminal device may measure a current charging progress based on a difference between the charging cut-off voltage value and the current charging voltage value, and determine the remaining power to be displayed finally based on the difference.
In the embodiment of the present invention, S203 specifically includes the following steps:
and S203a, the terminal equipment determines a charging voltage error coefficient according to the difference value between the charging cut-off voltage value and the current charging voltage value.
And S203b, weighting the charging voltage error coefficient and the current residual electric quantity value by the terminal equipment to obtain the residual electric quantity to be displayed.
Further optionally, S203a specifically includes the following steps:
s203a1, the terminal device obtains the difference value M between the charging cut-off voltage value and the current charging voltage value.
And S203a2, the terminal equipment determines a charging voltage error coefficient N according to the difference value M and a preset formula.
In one example, the preset formula is:
Figure BDA0001594733150000041
k is a constant value. Generally, the value of K is related to the accuracy of the difference, for example, K is usually 100 if the unit of the charge cut-off voltage value and the current charge voltage value is V, and K is 0.1 if the unit of the charge cut-off voltage value and the current charge voltage value is mV.
For example, assuming that the charge cut-off voltage value V1 of the terminal device is 4370mV, the estimated current charge voltage value V2 is 4339mV, the error is V1-V2-31 mV, M k-31-0.1-3.1, 3.1 is rounded to 3, 3 is substituted into the above formula 2,
Figure BDA0001594733150000042
in one example, the preset formula is as follows:
Figure BDA0001594733150000043
wherein k is a constant. In general, the value of K is related to the accuracy of the difference, for example, K is usually 100 if the unit of the charge cut-off voltage value and the current charge voltage value is V (volt), and K is 0.1 if the unit of the charge cut-off voltage value and the current charge voltage value is mV (millivolt).
For example, assuming that the charge cut-off voltage value V1 of the terminal device is 4370mV, the estimated current charge voltage value V2 is 4339mV, the error is V1-V2-31 mV, 31 x 0.1-3.1 mV, 3.1 is rounded to 3, 3 is substituted into the above formula 2,
Figure BDA0001594733150000051
for example, assume that the current remaining charge value of the terminal device is 95%, and the charging voltage error coefficient is
Figure BDA0001594733150000052
The corresponding remaining capacity to be displayed
Figure BDA0001594733150000053
And S204, the terminal equipment displays the residual electric quantity to be displayed on a display interface of the terminal equipment.
According to the electric quantity display method provided by the embodiment of the invention, the terminal equipment detects the current residual electric quantity value of the battery in the battery charging process, so that the current charging voltage value of the battery can be determined according to the detected current residual electric quantity value, and then the current residual electric quantity to be displayed in the interface of the terminal equipment is calculated by combining the current charging voltage value, the charging cut-off voltage value and the current residual electric quantity value. Therefore, in the process of charging the battery, the terminal equipment monitors the current charging voltage value of the battery, so that the calculated residual capacity to be displayed considers the current charging voltage value and the charging cut-off voltage value, the increase of the residual capacity displayed in the terminal equipment can be delayed under the condition that the battery is about to be fully charged, finally, the charging cut-off time point of the battery is synchronized with the display of 100% of the residual capacity of the battery, and the problem that the residual capacity is displayed in advance by the terminal equipment to be 100% when the charging voltage of the battery does not reach the charging cut-off voltage value is solved.
Second embodiment:
fig. 3 is a schematic diagram of a possible structure of a terminal device according to an embodiment of the present invention, and as shown in fig. 3, the terminal device 300 includes: a detection module 301, a processing module 302, and a display module 303, wherein:
the detecting module 301 is configured to detect a current remaining capacity value of the battery during a battery charging process of the terminal device.
And the processing module 302 is configured to determine a current charging voltage value of the battery according to the current remaining power value detected by the detecting module 301.
The processing module 302 is further configured to calculate a remaining power to be displayed according to the charge cut-off voltage value, the current charge voltage value, and the current remaining power value.
And the display module 303 is configured to display the remaining power to be displayed, obtained by the processing module, on a display interface of the terminal device.
Optionally, the processing module 302 is further configured to: determining a charging voltage error coefficient according to the difference value of the charging cut-off voltage value and the current charging voltage value; and weighting the current residual electric quantity value by using the charging voltage error coefficient to obtain the residual electric quantity to be displayed.
Optionally, the processing module 302 is further configured to: acquiring a difference value M between a charging cut-off voltage value and a current charging voltage value; according to the differenceDetermining a charging voltage error coefficient N according to the value M and a preset formula; wherein, the preset formula is as follows:
Figure BDA0001594733150000054
optionally, the processing module 302 is further configured to: determining a target open-circuit voltage value corresponding to the current residual electric quantity value detected by the detection module from the first corresponding relation; the first corresponding relation is a mapping relation between the residual electric quantity value and the open-circuit voltage value, and the corresponding relation comprises a mapping relation between the current residual electric quantity value and the target open-circuit voltage value; and calculating the current charging voltage value of the battery according to the target open-circuit voltage value and a preset charging cut-off current value.
Optionally, the detection module 301 is further configured to detect a current temperature value of the battery; the processing module 302 is further configured to determine a first corresponding relationship corresponding to the current temperature value detected by the detection module from the at least one corresponding relationship; wherein, at least one corresponding relation comprises a first corresponding relation, and each corresponding relation corresponds to a temperature value.
According to the terminal device provided by the embodiment of the invention, the terminal device detects the current residual electric quantity value of the battery in the charging process of the battery, so that the current charging voltage value of the battery can be determined according to the detected current residual electric quantity value, then the current charging voltage value, the charging cut-off voltage value and the current residual electric quantity value are combined to calculate the residual electric quantity to be displayed currently in the interface of the terminal device, and the problem that the residual electric quantity to be displayed is 100% in advance when the charging voltage of the battery does not reach the charging cut-off voltage value due to the fact that the current charging voltage value and the charging cut-off voltage value are considered in the residual electric quantity to be displayed is solved.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The third embodiment:
fig. 4 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, 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 configuration of the terminal device 100 shown in fig. 4 does not constitute a limitation of the terminal device, and that the terminal device 100 may include more or less components than those shown, or combine some components, or arrange different components. In the embodiment of the present invention, the terminal device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to detect a current remaining power value of the battery during a battery charging process of the terminal device, and determine a current charging voltage value of the battery according to the current remaining power value; calculating the residual electric quantity to be displayed according to the charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value; and the display unit 106 is configured to display the remaining power to be displayed on a display interface of the terminal device.
According to the terminal device provided by the embodiment of the invention, the terminal device detects the current residual electric quantity value of the battery in the charging process of the battery, so that the current charging voltage value of the battery can be determined according to the detected current residual electric quantity value, then the current charging voltage value, the charging cut-off voltage value and the current residual electric quantity value are combined to calculate the residual electric quantity to be displayed currently in the interface of the terminal device, and the problem that the residual electric quantity to be displayed is 100% in advance when the charging voltage of the battery does not reach the charging cut-off voltage value due to the fact that the current charging voltage value and the charging cut-off voltage value are considered in the residual electric quantity to be displayed is solved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by 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 a wireless communication system.
The terminal device 100 provides the user with wireless broadband internet access via the network module 102, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio 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 terminal device 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 the backlight when the terminal device 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), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
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 terminal device 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). 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 receives and executes 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. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on 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 in fig. 4, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 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 an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
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, an image 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 terminal device 100, connects various parts of the entire terminal device 100 by various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running 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 terminal device 100. Processor 110 may include one or more processing units; alternatively, 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 terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
The fourth embodiment:
optionally, an embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the foregoing power indication method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
Fifth embodiment:
the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned electric quantity prompting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 device (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 (7)

1. An electric quantity prompting method is characterized by comprising the following steps:
detecting the current residual electric quantity value of a battery in the battery charging process of terminal equipment;
determining the current charging voltage value of the battery according to the detected current residual electric quantity value;
calculating the residual electric quantity to be displayed according to the charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value;
displaying the residual electric quantity to be displayed on a display interface of the terminal equipment;
the calculating the residual electric quantity to be displayed according to the charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value comprises the following steps:
determining a charging voltage error coefficient according to the difference value of the charging cut-off voltage value and the current charging voltage value;
weighting the charging voltage error coefficient and the current residual electric quantity value to obtain the residual electric quantity to be displayed;
determining a current charging voltage value of the battery according to the current remaining capacity value includes:
determining a target open-circuit voltage value corresponding to the current residual electric quantity value from the first corresponding relation; the first corresponding relation is a mapping relation between a residual electric quantity value and an open-circuit voltage value, and the corresponding relation comprises a mapping relation between the current residual electric quantity value and the target open-circuit voltage value;
and calculating the current charging voltage value of the battery according to the target open-circuit voltage value and a preset charging cut-off current value.
2. The method of claim 1, wherein determining a charge voltage error factor based on a difference between a charge cutoff voltage value and the current charge voltage value comprises:
acquiring a difference value M between the charging cut-off voltage value and the current charging voltage value;
determining a charging voltage error coefficient N according to the difference value M and a preset formula;
wherein the preset formula is as follows:
Figure FDA0002890067840000011
k is a constant.
3. The method of claim 1, wherein before determining the target open circuit voltage value corresponding to the current remaining power value from the first mapping relationship, the method further comprises:
acquiring a current temperature value of the battery;
finding out the first corresponding relation corresponding to the current temperature value from at least one corresponding relation; wherein the at least one correspondence includes the first correspondence, and each correspondence corresponds to a temperature value.
4. A terminal device, comprising:
the detection module is used for detecting the current residual electric quantity value of the battery in the battery charging process of the terminal equipment;
the processing module is used for determining the current charging voltage value of the battery according to the current residual electric quantity value detected by the detection module;
the processing module is further used for calculating the residual electric quantity to be displayed according to the charge cut-off voltage value, the current charge voltage value and the current residual electric quantity value;
the processing module is specifically configured to determine a charging voltage error coefficient according to a difference between a charging cut-off voltage value and the current charging voltage value; weighting the charging voltage error coefficient and the current residual electric quantity value to obtain the residual electric quantity to be displayed;
the display module is used for displaying the residual electric quantity to be displayed, which is obtained by the processing module, on a display interface of the terminal equipment;
the processing module is further configured to:
determining a target open-circuit voltage value corresponding to the current residual electric quantity value detected by the detection module from the first corresponding relation; the first corresponding relation is a mapping relation between a residual electric quantity value and an open-circuit voltage value, and the corresponding relation comprises a mapping relation between the current residual electric quantity value and the target open-circuit voltage value;
and calculating the current charging voltage value of the battery according to the target open-circuit voltage value and a preset charging cut-off current value.
5. The terminal device of claim 4, wherein the processing module is further configured to:
acquiring a difference value M between the charging cut-off voltage value and the current charging voltage value;
determining a charging voltage error coefficient N according to the difference value M and a preset formula;
wherein the preset formula is as follows:
Figure FDA0002890067840000021
k is a constant.
6. The terminal device of claim 4,
the detection module is also used for acquiring the current temperature value of the battery;
the processing module is further configured to determine the first corresponding relationship corresponding to the current temperature value detected by the detection module from at least one corresponding relationship; wherein the at least one correspondence includes the first correspondence, and each correspondence corresponds to a temperature value.
7. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the power alerting method of any one of claims 1 to 3.
CN201810201898.7A 2018-03-12 2018-03-12 Electric quantity prompting method and terminal equipment Active CN108845261B (en)

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 CN108845261A (en) 2018-11-20
CN108845261B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN112202959B (en) * 2020-09-25 2022-05-27 努比亚技术有限公司 Electric quantity information processing method, electronic equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN108845261A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN108988421B (en) Battery charging method, charging circuit and terminal
CN111142991A (en) Application function page display method and electronic equipment
CN108663627B (en) Battery self-discharge detection method and battery self-discharge detection device
CN109862504B (en) Display method and terminal equipment
CN107608855B (en) Reminding method and mobile terminal
CN107734172B (en) Information display method and mobile terminal
CN109755997B (en) Charging method and terminal equipment
CN111328119A (en) Voice service processing method and electronic equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN110456923B (en) Gesture sensing data processing method and electronic equipment
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN111343710A (en) Power adjustment method and electronic equipment
CN108845261B (en) Electric quantity prompting method and terminal equipment
CN111221602A (en) Interface display method and electronic equipment
CN109450508B (en) Antenna determination method and device and mobile terminal
CN109860743B (en) Charging method and terminal equipment
CN109618278B (en) Positioning method and mobile terminal
CN109856456B (en) Method for measuring impedance, electronic equipment, power adapter and system
CN109582264B (en) Image display method and mobile terminal
CN109348212B (en) Image noise determination method and terminal equipment
CN109068276B (en) Message conversion method and terminal
CN108391305B (en) WiFi hotspot selection method and terminal equipment
CN111049701A (en) Data traffic monitoring method and electronic equipment
CN110912284B (en) Wireless charging control method and wireless charging assembly

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