CN111836347A - Electric quantity display method, device and equipment and readable storage medium - Google Patents

Electric quantity display method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN111836347A
CN111836347A CN202010547557.2A CN202010547557A CN111836347A CN 111836347 A CN111836347 A CN 111836347A CN 202010547557 A CN202010547557 A CN 202010547557A CN 111836347 A CN111836347 A CN 111836347A
Authority
CN
China
Prior art keywords
voltage value
battery
electric quantity
shutdown
time
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
Application number
CN202010547557.2A
Other languages
Chinese (zh)
Other versions
CN111836347B (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.)
Xiamen Hanyin Co ltd
Original Assignee
Xiamen Hanyin Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202010547557.2A priority Critical patent/CN111836347B/en
Publication of CN111836347A publication Critical patent/CN111836347A/en
Application granted granted Critical
Publication of CN111836347B publication Critical patent/CN111836347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention provides an electric quantity display method, an electric quantity display device, electric quantity display equipment and a readable storage medium, wherein the method comprises the following steps: when the startup operation is detected, starting up, and calculating to obtain the shutdown standing time between the current startup and the last shutdown; when the shutdown standing time is larger than a preset value, acquiring a first voltage value stored in an RTC register; the first voltage value is the voltage value of the battery which is measured and stored in the RTC register when the RTC register is powered off last time; reading a second voltage value of the battery obtained by current measurement every preset time; judging whether the first voltage value is larger than the second voltage value; if so, displaying the electric quantity of the battery obtained by calculation according to the second voltage value on a front-end interface; if not, the electric quantity of the battery calculated according to the first voltage value is displayed on a front-end interface, and the problem that the electric quantity display is abnormal due to the fact that the battery generates floating pressure and is converted into the electric quantity display after the intelligent mobile device is turned off for a long time is solved.

Description

Electric quantity display method, device and equipment and readable storage medium
Technical Field
The present invention relates to the field of power management, and in particular, to a method, an apparatus, a device and a readable storage medium for displaying power.
Background
With the development of technology, various intelligent mobile terminals are applied to life and work of people, and great convenience is brought to life and work of people.
At present, an operating system is installed on intelligent mobile equipment and a battery is configured to be used as a power supply, the operating system can manage the electric quantity of the battery, and the current electric quantity of the battery is typically displayed for a user to check so that the user can know the power utilization condition of the battery, and therefore charging or power saving operation is carried out in time.
Disclosure of Invention
The inventor finds that when the intelligent mobile device is turned off and is not used for a long time, the battery power measured by the system after the intelligent mobile device is turned on is often inaccurate, so that a user does not accurately judge the actual available power of the intelligent mobile device.
The inventor further finds that the power MOS tube can be locked by the battery protection board after the intelligent mobile device is shut down, so that whether the power MOS tube is in a normal protection state or in a protection ending state can be distinguished, and after the power MOS tube is judged to be in the normal protection state, the battery protection board can judge whether the potential chip can be in a dormant period or not at the same time, so that the consumption of the battery in the dormant state is reduced.
However, when the two states are switched, especially from the normal protection state to the protection end state, the actual voltage of the battery may be disturbed, which may cause sudden changes of the actual voltage, and further cause inaccurate measured power at the time of starting.
The invention discloses a method, a device, equipment and a readable storage medium for displaying electric quantity, and aims to solve the problem of abnormal electric quantity display caused by long-time shutdown of intelligent mobile equipment.
A first embodiment of the present invention provides an electric quantity display method, including:
when the startup operation is detected, starting up, and calculating to obtain the shutdown standing time between the current startup and the last shutdown;
when the shutdown standing time is larger than a preset value, acquiring a first voltage value stored in an RTC register; the first voltage value is the voltage value of the battery which is measured and stored in the RTC register when the RTC register is powered off last time;
reading a second voltage value of the battery obtained by current measurement every preset time;
judging whether the first voltage value is larger than the second voltage value;
if so, displaying the electric quantity of the battery obtained by calculation according to the second voltage value on a front-end interface;
and if not, displaying the electric quantity of the battery obtained by calculation according to the first voltage value on a front-end interface.
Preferably, after obtaining the first voltage value stored in the RTC register according to the time when the shutdown leaving time is greater than the preset value, the method further includes:
and starting a timer and sending a timing duration to the timer.
Preferably, the method further comprises the following steps:
when shutdown operation is detected, reading a current voltage value of a battery, and storing the current voltage value as a first voltage value in the RTC register;
and executing shutdown operation after confirming and saving the current voltage value.
Preferably, after reading the currently measured second voltage value of the battery at every predetermined time, the method further includes:
and when the battery is detected to be in a charging state, displaying the electric quantity of the battery obtained by calculating the second voltage value on a front-end interface.
A second embodiment of the present invention provides an electric quantity display device, including:
the power-on detection unit is used for carrying out power-on when the power-on operation is detected, and calculating the power-off standing time between the current power-on and the last power-off;
the first voltage value acquisition unit is used for acquiring a first voltage value stored in the RTC register when the shutdown standing time is greater than a preset value; the first voltage value is the voltage value of the battery which is measured and stored in the RTC register when the RTC register is powered off last time;
the second voltage value acquisition unit is used for reading a second voltage value of the battery obtained by current measurement at intervals of preset time;
the judging unit is used for judging whether the first voltage value is larger than the second voltage value;
the first display unit is used for displaying the electric quantity of the battery obtained by calculation according to the second voltage value on a front-end interface when the first voltage value is judged to be larger than the second voltage value;
and the second display unit is used for displaying the electric quantity of the battery obtained by calculation according to the first voltage value on the front-end interface when the first voltage value is judged to be smaller than the second voltage value.
Preferably, the first voltage value obtaining unit further includes a timer starting module, configured to start a timer, and send a timing duration to the timer.
Preferably, the RTC controller further comprises a shutdown detection unit, configured to, when a shutdown operation is detected, read a current voltage value of the battery, and store the current voltage value as a first voltage value in the RTC register;
and executing shutdown operation after confirming and saving the current voltage value.
Preferably, the second voltage value obtaining unit further includes a charge detection module:
and the electric quantity of the battery obtained by calculating the second voltage value is displayed on a front-end interface when the battery is detected to be in a charging state.
A third embodiment of the present invention provides a power display device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement a power display method as described in any one of the above.
A fourth embodiment of the present invention provides a readable storage medium, which stores a computer program, where the computer program can be executed by a processor of a device on which the storage medium is located, so as to implement the power display method as described in any one of the above.
In the above embodiment, when it is determined that the device enters the power-on state from the power-off state, a voltage value closer to the actual voltage of the battery is selected from the first voltage value and the second voltage value according to the power-off standing time between the power-on state and the last power-off state, the first voltage value of the battery read during the last power-off state, and the magnitude relation between the second voltage value of the battery obtained after the power-on state, so that the problem of abnormal electric quantity display caused by voltage disturbance generated by switching of the use state after the intelligent mobile device is powered off for a long time is solved.
Drawings
Fig. 1 is a schematic flow chart illustrating a method for displaying electric quantity according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electric quantity display device according to a second 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In the embodiments, the references to "first \ second" are merely to distinguish similar objects and do not represent a specific ordering for the objects, and it is to be understood that "first \ second" may be interchanged with a specific order or sequence, where permitted. It should be understood that "first \ second" distinct objects may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced in sequences other than those illustrated or described herein.
The following detailed description of specific embodiments of the invention refers to the accompanying drawings.
The invention discloses a method, a device, equipment and a readable storage medium for displaying electric quantity, and aims to solve the problem of abnormal electric quantity display caused by long-time shutdown of intelligent mobile equipment.
Referring to fig. 1, a first embodiment of the present invention provides a method for displaying electric quantity, including:
s101, when the startup operation is detected, starting up, and calculating to obtain the shutdown standing time between the current startup and the last shutdown; the current time value can be read and stored in the time register when the computer is powered off last time, and the current time value is read when the computer is detected to be powered on and is compared with the time value in the time register to obtain the time for placing the computer in the power off state.
It should be noted that, under the condition that the smart mobile device is not used after being turned off for a long time, the smart mobile device may generate disturbance to the actual voltage of the battery configured in the smart mobile device, which may cause sudden change of the actual voltage.
In this embodiment, when the power-on action is detected, the power-off standing time is obtained, and is used to determine whether the disturbance generated to the actual voltage of the battery in the power-off standing time affects the display of the electric quantity on the front-end interface.
S102, when the shutdown standing time is larger than a preset value, acquiring a first voltage value stored in an RTC register; the first voltage value is the voltage value of the battery which is measured and stored in the RTC register when the RTC register is powered off last time;
it should be noted that, when the shutdown leaving time is within the range of the preset value, the disturbance on the actual voltage of the battery is small, and the electric quantity value displayed on the front-end interface is not affected, and when the shutdown leaving time is outside the range of the preset value (for example, the shutdown leaving time exceeds one hour or other time values), the detected voltage value of the battery is directly converted into the electric quantity value, and the electric quantity value is displayed on the front-end interface with a large error.
In this embodiment, when it is detected that the shutdown leaving time is outside the range of the preset value, the battery voltage value (recorded as the first voltage value) measured when the RTC register is last shutdown and stored is obtained, and at the same time, the timer is started, and the timing duration is sent to the timer, so as to obtain the voltage value of the battery once every predetermined duration.
S103, reading a second voltage value of the battery obtained by current measurement every preset time;
in this embodiment, when a timing command sent by the timer every predetermined time is received, the measured current voltage value (denoted as a second voltage value) of the battery is read.
S104, judging whether the first voltage value is larger than the second voltage value;
s105, if yes, displaying the electric quantity of the battery obtained by calculation according to the second voltage value on a front-end interface;
and S106, if not, displaying the electric quantity of the battery obtained by calculation according to the first voltage value on a front-end interface.
In this embodiment, when it is determined that the time for placing the RTC register is longer than the preset value, the second voltage value is read every predetermined time and compared with the first voltage value placed in the RTC register.
When the first voltage value is judged to be larger than the second voltage value (namely the battery voltage value stored in the RTC register is larger than the measured current voltage value of the battery), no disturbance or small disturbance is generated on the actual voltage of the battery, and the battery can automatically discharge in the shutdown process, so that the second voltage value is closer to the actual voltage of the battery, and the electric quantity of the battery obtained by calculating the second voltage value is displayed on a front-end interface.
When the second voltage value is larger than the first voltage value (namely, the battery voltage value stored in the RTC register is smaller than the measured current voltage value of the battery), and in the shutdown process, under the condition that the battery can discharge automatically, the second voltage value is larger than the first voltage value, the actual voltage of the battery is not disturbed greatly, so that the first voltage value is closer to the actual voltage of the battery, the electric quantity of the battery obtained by calculating the first voltage value is displayed on a front-end interface, and the problem that the actual voltage of the battery is disturbed and converted into the electric quantity for displaying after the intelligent mobile device is shut down for a long time, so that the electric quantity is displayed abnormally is solved.
In this embodiment, the method further includes:
when shutdown operation is detected, reading a current voltage value of a battery, and storing the current voltage value as a first voltage value in the RTC register;
and executing shutdown operation after confirming and saving the current voltage value.
It should be noted that, when a shutdown operation is read, the current voltage value of the current battery is acquired and stored in the RTC register, so as to be called and compared when the RTC register is started next time.
In this embodiment, after reading the currently measured second voltage value of the battery at every predetermined time, the method further includes:
and when the battery is detected to be in a charging state, displaying the electric quantity of the battery obtained by calculating the second voltage value on a front-end interface.
It should be noted that, when it is detected that an adapter is provided outside to charge the battery, it is determined that the battery is in a charging state, the actual voltage is disturbed, and under the condition of sudden change of the actual voltage, the battery is rapidly "filled" by the external power supply, and under the condition of the external power supply, the influence of the external power supply is greater than the influence of sudden change of the voltage generated by the battery, so that when it is detected that the battery is in the charging state, the electric quantity of the battery obtained by calculating the second voltage value is directly displayed on the front-end interface.
Referring to fig. 2, a second embodiment of the present invention provides an electric quantity display device, including:
the starting-up detection unit 201 is used for starting up when starting-up operation is detected, and calculating to obtain the time of standing for shutdown between the current starting-up and the last shutdown;
a first voltage value obtaining unit 202, configured to obtain a first voltage value stored in an RTC register when the shutdown idle time is greater than a preset value; the first voltage value is the voltage value of the battery which is measured and stored in the RTC register when the RTC register is powered off last time;
a second voltage value obtaining unit 203, configured to read a second voltage value of the battery obtained by current measurement every predetermined time;
a determining unit 204, configured to determine whether the first voltage value is greater than the second voltage value;
the first display unit 205 is configured to display, on the front-end interface, the electric quantity of the battery calculated according to the second voltage value when it is determined that the first voltage value is greater than the second voltage value;
and the second display unit 205 is configured to display, on the front-end interface, the electric quantity of the battery calculated according to the first voltage value when it is determined that the first voltage value is smaller than the second voltage value.
Preferably, the first voltage value obtaining unit 202 further includes a timer starting module, configured to start a timer, and send a timing duration to the timer.
Preferably, the RTC controller further comprises a shutdown detection unit, configured to, when a shutdown operation is detected, read a current voltage value of the battery, and store the current voltage value as a first voltage value in the RTC register;
and executing shutdown operation after confirming and saving the current voltage value.
Preferably, the second voltage value obtaining unit 203 further includes a charge detection module:
and the electric quantity of the battery obtained by calculating the second voltage value is displayed on a front-end interface when the battery is detected to be in a charging state.
A third embodiment of the present invention provides a power display device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement a power display method as described in any one of the above.
A fourth embodiment of the present invention provides a readable storage medium, which stores a computer program, where the computer program can be executed by a processor of a device on which the storage medium is located, so as to implement the power display method as described in any one of the above.
Based on the electric quantity display method, the device, the equipment and the readable storage medium provided by the invention, the current voltage value of the battery is read when the battery is shut down, the current voltage value is stored in the RTC register as a first voltage value, the shutdown standing time between the current startup and the last shutdown is judged when the battery is started up, when the standing time is longer than a preset value (when the battery generates sudden voltage when the shutdown duration is judged), the first voltage value stored in the RTC register is read, a timer is started, a second voltage value of the battery is obtained at intervals of preset time, when the battery is charged by detecting the existence of the, the problem of intelligent mobile device because of long-time shutdown back, the battery produces sudden change voltage and changes the electric quantity demonstration into, leads to the electric quantity to show unusually is solved.
Illustratively, the computer programs described in the third and fourth embodiments of the present invention may be partitioned into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the implementation of a power display device. For example, the device described in the second embodiment of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general processor can be a microprocessor or the processor can be any conventional processor, and the processor is a control center of the electric quantity display method, and various interfaces and lines are used for connecting all parts of the electric quantity display method.
The memory may be used to store the computer program and/or module, and the processor may implement various functions of the power display method by operating or executing the computer program and/or module stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the implemented module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An electricity quantity display method, comprising:
when the startup operation is detected, starting up, and calculating to obtain the shutdown standing time between the current startup and the last shutdown;
when the shutdown standing time is larger than a preset value, acquiring a first voltage value stored in an RTC register; the first voltage value is the voltage value of the battery which is measured and stored in the RTC register when the RTC register is powered off last time;
reading a second voltage value of the battery obtained by current measurement every preset time;
judging whether the first voltage value is larger than the second voltage value;
if so, displaying the electric quantity of the battery obtained by calculation according to the second voltage value on a front-end interface;
and if not, displaying the electric quantity of the battery obtained by calculation according to the first voltage value on a front-end interface.
2. The method of claim 1, wherein after obtaining the first voltage value stored in the RTC register when the time period is greater than the preset value according to the shutdown, the method further comprises:
and starting a timer and sending a timing duration to the timer.
3. The method for displaying electric quantity according to claim 1, further comprising:
when shutdown operation is detected, reading a current voltage value of a battery, and storing the current voltage value as a first voltage value in the RTC register;
and executing shutdown operation after confirming and saving the current voltage value.
4. The method for displaying electric quantity according to claim 1, wherein after reading the currently measured second voltage value of the battery every predetermined time, the method further comprises:
and when the battery is detected to be in a charging state, displaying the electric quantity of the battery obtained by calculating the second voltage value on a front-end interface.
5. An electricity quantity display device, comprising:
the starting detection unit is used for starting when the starting operation is detected, and calculating to obtain the standing time of the shutdown between the current starting and the last shutdown;
the first voltage value acquisition unit is used for acquiring a first voltage value stored in the RTC register when the shutdown standing time is greater than a preset value; the first voltage value is the voltage value of the battery which is measured and stored in the RTC register when the RTC register is powered off last time;
the second voltage value acquisition unit is used for reading a second voltage value of the battery obtained by current measurement at intervals of preset time;
the judging unit is used for judging whether the first voltage value is larger than the second voltage value;
the first display unit is used for displaying the electric quantity of the battery obtained by calculation according to the second voltage value on a front-end interface when the first voltage value is judged to be larger than the second voltage value;
and the second display unit is used for displaying the electric quantity of the battery obtained by calculation according to the first voltage value on the front-end interface when the first voltage value is judged to be smaller than the second voltage value.
6. The power consumption display device of claim 5, wherein the first voltage value obtaining unit further comprises a timer starting module, configured to start a timer, and send a timing duration to the timer.
7. The power consumption display device of claim 5, further comprising a power-off detection unit, configured to, when a power-off operation is detected, read a current voltage value of the battery, and store the current voltage value as the first voltage value in the RTC register;
and executing shutdown operation after confirming and saving the current voltage value.
8. The power display device of claim 5, wherein the second voltage value obtaining unit further comprises a charging detection module:
and the electric quantity of the battery obtained by calculating the second voltage value is displayed on a front-end interface when the battery is detected to be in a charging state.
9. A power display device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor executing the computer program to implement a power display method as claimed in any one of claims 1 to 4.
10. A readable storage medium storing a computer program executable by a processor of a device in which the storage medium is located to implement a power display method as claimed in any one of claims 1 to 4.
CN202010547557.2A 2020-06-16 2020-06-16 Electric quantity display method, device, equipment and readable storage medium Active CN111836347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010547557.2A CN111836347B (en) 2020-06-16 2020-06-16 Electric quantity display method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010547557.2A CN111836347B (en) 2020-06-16 2020-06-16 Electric quantity display method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111836347A true CN111836347A (en) 2020-10-27
CN111836347B CN111836347B (en) 2024-07-16

Family

ID=72898844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010547557.2A Active CN111836347B (en) 2020-06-16 2020-06-16 Electric quantity display method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111836347B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114236461A (en) * 2021-12-17 2022-03-25 深圳市百富智能新技术有限公司 Electric quantity calibration method, electronic equipment and storage medium
WO2022257135A1 (en) * 2021-06-11 2022-12-15 浙江今日阳光新能源车业有限公司 Electric quantity display method for electric vehicle, electric vehicle instrument, and computer storage medium
CN116609687A (en) * 2023-05-17 2023-08-18 中山亿联智能科技有限公司 Battery electric quantity stable display algorithm

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103033758A (en) * 2012-10-25 2013-04-10 北京君正集成电路股份有限公司 Display electric quantity value calibration method and device
CN103647877A (en) * 2013-12-10 2014-03-19 Tcl通讯(宁波)有限公司 Method of increasing electric quantity display precision at the time of starting up of mobile terminal and the mobile terminal
CN104333112A (en) * 2014-10-31 2015-02-04 福建星网视易信息系统有限公司 RTC (real time clock) power management device and method
CN107561446A (en) * 2016-07-01 2018-01-09 中兴通讯股份有限公司 A kind of terminal battery electricity quantity computational methods and device
CN109040467A (en) * 2018-09-26 2018-12-18 Oppo广东移动通信有限公司 Interface electricity determines method, apparatus, storage medium and mobile terminal
CN109324292A (en) * 2017-07-31 2019-02-12 北京展讯高科通信技术有限公司 Calculate the method, apparatus and terminal of battery SOC

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103033758A (en) * 2012-10-25 2013-04-10 北京君正集成电路股份有限公司 Display electric quantity value calibration method and device
CN103647877A (en) * 2013-12-10 2014-03-19 Tcl通讯(宁波)有限公司 Method of increasing electric quantity display precision at the time of starting up of mobile terminal and the mobile terminal
CN104333112A (en) * 2014-10-31 2015-02-04 福建星网视易信息系统有限公司 RTC (real time clock) power management device and method
CN107561446A (en) * 2016-07-01 2018-01-09 中兴通讯股份有限公司 A kind of terminal battery electricity quantity computational methods and device
CN109324292A (en) * 2017-07-31 2019-02-12 北京展讯高科通信技术有限公司 Calculate the method, apparatus and terminal of battery SOC
CN109040467A (en) * 2018-09-26 2018-12-18 Oppo广东移动通信有限公司 Interface electricity determines method, apparatus, storage medium and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022257135A1 (en) * 2021-06-11 2022-12-15 浙江今日阳光新能源车业有限公司 Electric quantity display method for electric vehicle, electric vehicle instrument, and computer storage medium
CN114236461A (en) * 2021-12-17 2022-03-25 深圳市百富智能新技术有限公司 Electric quantity calibration method, electronic equipment and storage medium
CN114236461B (en) * 2021-12-17 2023-11-21 深圳市百富智能新技术有限公司 Electric quantity calibration method, electronic equipment and storage medium
CN116609687A (en) * 2023-05-17 2023-08-18 中山亿联智能科技有限公司 Battery electric quantity stable display algorithm

Also Published As

Publication number Publication date
CN111836347B (en) 2024-07-16

Similar Documents

Publication Publication Date Title
CN111836347A (en) Electric quantity display method, device and equipment and readable storage medium
US9831701B2 (en) Monitoring a battery in a portable electronic device
US9524216B2 (en) Method, device and mobile terminal for information backup
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN106877442B (en) Battery management method
US20080222439A1 (en) Notebook battery replacement time-saving method and battery detector thereof
US20090171601A1 (en) Battery detection device and method thereof
CN109040467A (en) Interface electricity determines method, apparatus, storage medium and mobile terminal
US20190026115A1 (en) Method and device for low power power-on processing
CN114236461B (en) Electric quantity calibration method, electronic equipment and storage medium
CN115113719A (en) Low-power startup method, device, equipment and computer readable storage medium
EP3546962B1 (en) Terminal device and electric leakage detection method and detection apparatus therefor
CN110875610A (en) Electronic equipment power supply method and device, electronic equipment and storage medium
CN104348140B (en) The method and electronic equipment that a kind of low battery is reminded
US9632795B2 (en) Electronic device and method for monitoring battery module of the same
KR20140146341A (en) Watt-hour meter and operating method thereof
CN112946562B (en) Power failure protection method and device for double-core intelligent electric meter and double-core intelligent electric meter
US20040059527A1 (en) Electric appliance, computer apparatus, intelligent battery, battery diagnosis method, program, and storage medium
CN110148992B (en) Charging control method, terminal device and storage medium
US9465428B2 (en) Computer device
TW201820144A (en) Motherboard and computer system thereof
JP2004341755A (en) Information processor
CN116707052B (en) Shutdown method and electronic equipment
CN103577236A (en) Mobile terminal for recording number of times of illegal removal of battery and obtaining method thereof
CN102111492A (en) Power-on test method and device for mobile terminal and mobile 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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee after: Xiamen Hanyin Co.,Ltd.

Country or region after: China

Address before: 361000 room 305A, Aung Yip house, Pioneer Park, torch high tech Zone, Xiamen, Fujian

Patentee before: XIAMEN HANIN ELECTRONIC TECHNOLOGY Co.,Ltd.

Country or region before: China