Nothing Special   »   [go: up one dir, main page]

CN110600823A - Method and device for displaying battery electric quantity, computer equipment and storage medium - Google Patents

Method and device for displaying battery electric quantity, computer equipment and storage medium Download PDF

Info

Publication number
CN110600823A
CN110600823A CN201910735501.7A CN201910735501A CN110600823A CN 110600823 A CN110600823 A CN 110600823A CN 201910735501 A CN201910735501 A CN 201910735501A CN 110600823 A CN110600823 A CN 110600823A
Authority
CN
China
Prior art keywords
electric quantity
battery
virtual electric
virtual
target
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.)
Pending
Application number
CN201910735501.7A
Other languages
Chinese (zh)
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.)
Shenzhen Top Cloud Information Technology Co Ltd
Original Assignee
Shenzhen Top Cloud Information 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 Shenzhen Top Cloud Information Technology Co Ltd filed Critical Shenzhen Top Cloud Information Technology Co Ltd
Priority to CN201910735501.7A priority Critical patent/CN110600823A/en
Publication of CN110600823A publication Critical patent/CN110600823A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/48Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte
    • 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
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the invention discloses a method for displaying the electric quantity of a battery, which comprises the following steps: acquiring virtual electric quantity corresponding to a target battery; detecting a battery use state of a target battery, wherein the battery use state comprises a charging state and/or an operating state; if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity. The method, the device, the computer equipment and the storage medium for displaying the battery electric quantity can estimate and calculate the battery electric quantity according to the battery use condition, can accurately and stably display the battery electric quantity, improve the accuracy of displaying the battery electric quantity, do not need to arrange a fuel gauge to detect the battery electric quantity in real time, and greatly save the cost on the premise of ensuring the accuracy of the battery electric quantity.

Description

Method and device for displaying battery electric quantity, computer equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent equipment, in particular to a method and a device for displaying battery power, computer equipment and a storage medium.
Background
Along with the use of the large-capacity battery, if the electronic equipment can accurately show the electric quantity of the battery, the overcharge and the discharge of the electronic equipment can be well prevented, a user can know the residual electric quantity to estimate the use time, and important data can be stored in time.
The current electronic equipment with a screen, such as an electric toothbrush, causes the cost of the equipment to increase if a fuel gauge is used for detecting the battery power; if do not use the fuel gauge to carry out the electric quantity and detect, can make equipment battery electric quantity show to have great error usually, can lead to the battery electric quantity to be on the high side during charging, bring not good experience effect for the user.
Therefore, a low-cost and stable method for displaying the battery capacity is needed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method and an apparatus for displaying battery power, a computer device, and a storage medium.
A method for displaying battery power, the method comprising:
acquiring virtual electric quantity corresponding to a target battery;
detecting a battery use state of a target battery, wherein the battery use state comprises a charging state and/or an operating state;
if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, after the step of detecting the battery usage state of the target battery, the method further includes: if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, the step of obtaining the virtual electric quantity corresponding to the target battery further includes: receiving a device starting instruction; and acquiring the current battery electric quantity of the target battery, and acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
In one embodiment, the step of acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery further includes: judging whether the pre-stored virtual electric quantity is larger than the current battery electric quantity; and under the condition that the virtual electric quantity is larger than the current battery electric quantity, reducing the virtual electric quantity according to a preset third speed, and updating the virtual electric quantity according to the reduced virtual electric quantity.
In one embodiment, the step of determining if the target battery is in a charging state further includes: detecting whether the target battery stops charging; and if the charging is detected to be stopped, updating the virtual electric quantity according to a preset electric quantity increasing value.
A device for displaying battery power, the device comprising:
the acquisition module is used for acquiring virtual electric quantity corresponding to the target battery;
the detection module is used for detecting the battery use state of a target battery, and the battery use state comprises a charging state and/or a working state;
and the electric quantity updating module is used for increasing the virtual electric quantity according to a preset first speed if the target battery is in a charging state, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, the power update module is further configured to: if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, the obtaining module further comprises: the receiving unit is used for receiving a device starting instruction; and the updating unit is used for acquiring the current battery electric quantity of the target battery and acquiring the pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
In one embodiment, the update unit further comprises: a judging subunit, configured to judge whether the pre-stored virtual electric quantity is greater than the current battery electric quantity; and the updating subunit is configured to reduce the virtual electric quantity at a preset third speed when the virtual electric quantity is greater than the current battery electric quantity, and update the virtual electric quantity according to the reduced virtual electric quantity.
In one embodiment, the detection module further comprises: a detection unit for detecting whether the target battery stops charging; and the calculating unit is used for updating the virtual electric quantity according to a preset electric quantity increasing value if the charging stop is detected.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring virtual electric quantity corresponding to a target battery;
detecting a battery use state of a target battery, wherein the battery use state comprises a charging state and/or an operating state;
if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring virtual electric quantity corresponding to a target battery;
detecting a battery use state of a target battery, wherein the battery use state comprises a charging state and/or an operating state;
if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
By adopting the method, the device, the computer equipment and the storage medium for displaying the battery electric quantity, when the battery electric quantity of the equipment needs to be displayed, the virtual electric quantity corresponding to the target battery is obtained, the battery use state of the target battery is detected, if the target battery is in a charging state, the virtual electric quantity is increased according to a preset speed, and the virtual electric quantity is displayed as the target display electric quantity. Compared with the existing method for detecting the electric quantity of the battery by the electricity meter, the method, the device, the computer equipment and the storage medium for displaying the electric quantity of the battery provided by the invention can estimate and calculate the electric quantity of the battery according to the service condition of the battery, can display the electric quantity of the battery more accurately and stably, and improve the accuracy of displaying the electric quantity of the battery; in addition, the method, the device, the computer equipment and the storage medium for displaying the battery electric quantity do not need to be provided with an ammeter to detect the battery electric quantity in real time, and the cost is greatly saved on the premise of ensuring the accuracy of the battery electric quantity.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flow chart of a method for displaying battery power in one embodiment;
FIG. 2 is a block diagram of an apparatus for showing a method of displaying battery power according to an embodiment;
FIG. 3 is a block diagram illustrating an acquisition module of the apparatus for displaying battery power according to an embodiment;
FIG. 4 is a block diagram showing a structure of an update unit in the device according to the method for showing the battery power of the embodiment;
FIG. 5 is a block diagram showing a structure of a detection module in the device according to the method for displaying battery power in one embodiment;
FIG. 6 is a block diagram of a computer device in one embodiment.
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.
In the present embodiment, a battery power display method is provided, which may be performed based on a terminal device including a battery and a power display device (e.g., an LED lamp, etc.) for displaying the battery power. In particular, the implementation of the method may rely on a computer program that is executable on a computer system based on the von neumann architecture, which may be a terminal device such as an electric toothbrush, an electric shaver or the like.
As shown in fig. 1, in an embodiment, a flow diagram of a method for displaying battery power is provided, which specifically includes the following steps S102 to S106:
step S102, acquiring virtual electric quantity corresponding to the target battery.
Specifically, the virtual electric quantity is an electric quantity value displayed on the device, and the virtual electric quantity may be displayed in the form of numbers, percentages, or graphs. The electric quantity value of the virtual electric quantity is close to the electric quantity value of the current battery electric quantity of the target battery, and the change of the virtual electric quantity is related to the current battery electric quantity or the use state of the target battery. Acquiring the virtual electric quantity corresponding to the target battery is an initial value for determining the virtual electric quantity.
The virtual electric quantity may be an electric quantity value pre-stored in the device, for example, a virtual electric quantity value finally shown after last power-on use. The virtual charge value may be a virtual charge value that is updated in the use state of the device at present, for example, a virtual charge amount that increases at a first rate when charging.
In an embodiment, the step of obtaining the virtual electric quantity corresponding to the target battery further includes: receiving a device starting instruction; and acquiring the current battery electric quantity of the target battery, and acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
The pre-stored virtual electric quantity is an original value of the virtual electric quantity when the device is started, and may be a preset numerical value, a numerical value of the virtual electric quantity after the device is used last time, or a randomly generated numerical value.
When the equipment is started every time, the virtual electric quantity corresponding to the target battery is updated, so that the virtual electric quantity corresponding to the target battery is close to or consistent with the current battery electric quantity, and the initial value of the virtual electric quantity is more accurate. The virtual electric quantity can be calibrated through the starting equipment, the accuracy of the virtual electric quantity corresponding to the target battery is ensured, and the error of subsequent calculation of the electric quantity of the battery is reduced.
In an embodiment, the step of obtaining a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery further includes: judging whether the pre-stored virtual electric quantity is larger than the current battery electric quantity; and under the condition that the virtual electric quantity is larger than the current battery electric quantity, reducing the virtual electric quantity according to a preset third speed, and updating the virtual electric quantity according to the reduced virtual electric quantity.
That is to say, when the pre-stored virtual electric quantity is smaller than the current battery electric quantity, the virtual electric quantity may be increased at a preset third speed, and the virtual electric quantity may be updated according to the increased virtual electric quantity. For example, in the case that the device is left for a long time, there is a great difference between the actual power of the battery and the power of the battery, and in this case, since the power displayed at the beginning is the originally pre-stored virtual power, the power has a great error. If the displayed electric quantity is directly and greatly changed, the measured battery electric quantity is an accurate value, and the virtual electric quantity can be an approximate numerical value display, for example, the third grid among five grids, and the like, so that the virtual electric quantity needs a judgment and updating process and can display an inaccurate numerical value within a period of time. Therefore, in the process, the electric quantity is slowly changed to the virtual electric quantity corresponding to the current battery electric quantity value and then is stopped, time is reserved for judging and updating the virtual electric quantity, the display accuracy is improved, and the user experience is improved.
However, in order to avoid the complex situation that the virtual electric quantity needs to be continuously modified and updated even when the difference between the pre-stored virtual electric quantity and the current battery electric quantity is small, in an embodiment, in the step of obtaining the pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery, a difference between the pre-stored virtual electric quantity value and the current battery electric quantity needs to be considered.
For example, the pre-stored virtual electric quantity value is 1%, and the current battery electric quantity is 2%, that is, in the case that the error between the pre-stored virtual electric quantity and the current battery electric quantity is negligible, the pre-stored virtual electric quantity is not updated. That is, if the difference between the pre-stored virtual electric quantity value and the current battery electric quantity is smaller than the preset electric quantity difference, the aforementioned step of determining whether the pre-stored virtual electric quantity is larger than the current battery electric quantity is not performed.
The accuracy of the virtual electric quantity corresponding to the target battery when the device is started is ensured to be close to the current battery electric quantity by increasing, reducing or not changing the pre-stored virtual electric quantity.
And step S104, detecting the battery use state of the target battery, wherein the battery use state comprises a charging state and/or an operating state.
Under the condition of a charging state or an operating state of the battery, the electric quantity of the battery can change greatly. In this embodiment, in order to calculate and display the battery power according to different application scenarios, it is first necessary to determine the current battery usage status of the target battery. Specifically, the battery usage state includes a charging state, an operating state, a standby state, and/or the like. In the charging state, the electric quantity of the battery rapidly increases, so that a virtual electric quantity value needs to be increased; in the working state, the battery power is reduced, so that the virtual power value needs to be reduced; in the standby state, the battery power consumption can be ignored, so that the virtual power can not be changed in the standby state.
And step S106, if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
During the charging process, the battery capacity will increase at a fast rate, and the capacity increase rate is generally constant, that is, the battery capacity increases at a certain increase rate. The increasing speed or the increasing numerical value of the battery power can be calculated through experiments, the increasing speed of the virtual power, namely the first speed, can be obtained, and the virtual power is increased through the preset first speed.
In the specific operation, according to the virtual electric quantity of increase of preset first speed, guaranteed that the electric quantity that equipment demonstrates for the user is increasing in the charging process, guaranteed the rationality and the accuracy of electric quantity show, the increase of suggestion user's electric quantity prevents overcharge.
When the battery stops charging, there may be a situation that the battery capacity decreases when the charging is stopped due to the pressure increase during charging, and in one embodiment, in order to avoid the situation that the battery capacity decreases when the charging is stopped, in the case that it is detected that the target battery is in a charging state, it is also necessary to detect whether the charging is stopped, and perform a certain update on the virtual capacity.
Specifically, whether the target battery stops charging is detected; and if the charging is detected to be stopped, updating the virtual electric quantity according to a preset electric quantity increasing value.
Adding the virtual electric quantity to a preset electric quantity increment value to obtain an updated virtual electric quantity, replacing the original virtual electric quantity with the updated virtual electric quantity, and displaying the virtual electric quantity as a virtual electric quantity,
according to the following formula:
the updated virtual electric quantity is the virtual electric quantity plus a preset electric quantity increase value
And calculating the updated virtual electric quantity, updating the original virtual electric quantity after the updated virtual electric quantity is obtained through calculation, and then displaying. That is, the virtual power amount shown is the virtual power amount after the update.
And when the charging is detected to be stopped, the virtual electric quantity is updated according to a preset electric quantity increasing value, so that the phenomenon that the electric quantity of the battery is reduced when the charging is stopped is prevented, and the stability of electric quantity display is ensured.
And S108, if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
Specifically, the virtual electric quantity can be reduced at a plurality of preset speeds when the power used in the working state is different, for example, the power corresponding to different gears of the electric toothbrush is different. That is, when the operating state of the battery is determined, it is also necessary to determine a specific operating range, and set the value of the second speed according to the speed corresponding to the corresponding operating range, so as to improve the accuracy of the virtual electric quantity exhibition.
For example, the working gears of the electric toothbrush have a plurality of gears, such as cleaning, whitening, massaging and sensing gears, and different gears have different cleaning forces, so that the power consumed by the battery is different, and the reduction speed of the battery power is different.
Therefore, the values of the second speeds are different for different gears. For example, a cleaning gear of the power toothbrush may update the virtual power at a rate of reducing the power value by 0.5% of the total amount of the battery per minute, a whitening gear may update the virtual power at a rate of reducing the power value by 0.7% of the total amount of the battery per minute, a massaging gear may update the virtual power at a rate of reducing the power value by 0.8% of the total amount of the battery per minute, and a sensitive gear may update the virtual power at a rate of reducing the power value by 0.4% of the total amount of the battery per minute.
According to the virtual electric quantity reduction of the preset speed, the electric quantity displayed for the user in the use process of the equipment is ensured to be reduced, the reasonability and the accuracy of electric quantity display are ensured, the electric quantity reduction of the user is prompted, and the situations that the use data of the equipment is lost due to automatic shutdown of the over-low electric quantity and the like are prevented.
As shown in fig. 2, in one embodiment, a battery power display device is provided, the device comprising:
an obtaining module 202, configured to obtain a virtual electric quantity corresponding to a target battery;
the detection module 204 is configured to detect a battery usage state of the target battery, where the battery usage state includes a charging state and/or an operating state;
and the electric quantity updating module 206 is configured to, if the target battery is in a charging state, increase the virtual electric quantity at a preset first speed, update the virtual electric quantity according to the increased virtual electric quantity, and display the virtual electric quantity as a target display electric quantity.
In one embodiment, the power update module is further configured to: if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, as shown in fig. 3, the obtaining module further includes: the receiving unit is used for receiving a device starting instruction; and the updating unit is used for acquiring the current battery electric quantity of the target battery and acquiring the pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
In one embodiment, as shown in fig. 4, the updating unit further includes: a judging subunit, configured to judge whether the pre-stored virtual electric quantity is greater than the current battery electric quantity; and the updating subunit is configured to reduce the virtual electric quantity at a preset third speed when the virtual electric quantity is greater than the current battery electric quantity, and update the virtual electric quantity according to the reduced virtual electric quantity.
In one embodiment, as shown in fig. 5, the detection module further includes: a detection unit for detecting whether the target battery stops charging; and the calculating unit is used for updating the virtual electric quantity according to a preset electric quantity increasing value if the charging stop is detected.
FIG. 6 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 6, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and also stores a computer program, and when the computer program is executed by a processor, the computer program can enable the processor to realize the battery power display method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the battery power display method. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of: acquiring virtual electric quantity corresponding to a target battery; detecting a battery use state of a target battery, wherein the battery use state comprises a charging state and/or an operating state; if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, after the step of detecting the battery usage state of the target battery, the method further includes: if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, the step of obtaining the virtual electric quantity corresponding to the target battery further includes: receiving a device starting instruction; and acquiring the current battery electric quantity of the target battery, and acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
In one embodiment, the step of acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery further includes: judging whether the pre-stored virtual electric quantity is larger than the current battery electric quantity; and under the condition that the virtual electric quantity is larger than the current battery electric quantity, reducing the virtual electric quantity according to a preset third speed, and updating the virtual electric quantity according to the reduced virtual electric quantity.
In one embodiment, the step of determining if the target battery is in a charging state further includes: detecting whether the target battery stops charging; and if the charging is detected to be stopped, updating the virtual electric quantity according to a preset electric quantity increasing value.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of: acquiring virtual electric quantity corresponding to a target battery; detecting a battery use state of a target battery, wherein the battery use state comprises a charging state and/or an operating state; if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, after the step of detecting the battery usage state of the target battery, the method further includes: if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
In one embodiment, the step of obtaining the virtual electric quantity corresponding to the target battery further includes: receiving a device starting instruction; and acquiring the current battery electric quantity of the target battery, and acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
In one embodiment, the step of acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery further includes: judging whether the pre-stored virtual electric quantity is larger than the current battery electric quantity; and under the condition that the virtual electric quantity is larger than the current battery electric quantity, reducing the virtual electric quantity according to a preset third speed, and updating the virtual electric quantity according to the reduced virtual electric quantity.
In one embodiment, the step of determining if the target battery is in a charging state further includes: detecting whether the target battery stops charging; and if the charging is detected to be stopped, updating the virtual electric quantity according to a preset electric quantity increasing value.
By adopting the method, the device, the computer equipment and the storage medium for displaying the battery electric quantity, when the battery electric quantity of the equipment needs to be displayed, the virtual electric quantity corresponding to the target battery is obtained, the battery use state of the target battery is detected, if the target battery is in a charging state, the virtual electric quantity is increased according to a preset speed, and the virtual electric quantity is displayed as the target display electric quantity. Compared with the existing method for detecting the electric quantity of the battery by the electricity meter, the method, the device, the computer equipment and the storage medium for displaying the electric quantity of the battery provided by the invention can estimate and calculate the electric quantity of the battery according to the service condition of the battery, can display the electric quantity of the battery more accurately and stably, and improve the accuracy of displaying the electric quantity of the battery; in addition, the method, the device, the computer equipment and the storage medium for displaying the battery electric quantity do not need to be provided with an ammeter to detect the battery electric quantity in real time, and the cost is greatly saved on the premise of ensuring the accuracy of the battery electric quantity.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims. Please enter the implementation content part.

Claims (10)

1. A method for displaying battery capacity is characterized by comprising the following steps:
acquiring virtual electric quantity corresponding to a target battery;
detecting a battery use state of a target battery, wherein the battery use state comprises a charging state and/or an operating state;
if the target battery is in a charging state, increasing the virtual electric quantity according to a preset first speed, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
2. The method of claim 1, wherein after the step of detecting the battery usage status of the target battery, further comprising:
if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
3. The method of claim 1, wherein the step of obtaining the virtual charge amount corresponding to the target battery further comprises:
receiving a device starting instruction;
and acquiring the current battery electric quantity of the target battery, and acquiring a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
4. The method according to claim 3, wherein the step of obtaining a pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery further comprises:
judging whether the pre-stored virtual electric quantity is larger than the current battery electric quantity;
and under the condition that the virtual electric quantity is larger than the current battery electric quantity, reducing the virtual electric quantity according to a preset third speed, and updating the virtual electric quantity according to the reduced virtual electric quantity.
5. The method of claim 1, wherein the step of determining if the target battery is in a charged state further comprises:
detecting whether the target battery stops charging;
and if the charging is detected to be stopped, updating the virtual electric quantity according to a preset electric quantity increasing value.
6. A battery power display device, comprising:
the acquisition module is used for acquiring virtual electric quantity corresponding to the target battery;
the detection module is used for detecting the battery use state of a target battery, and the battery use state comprises a charging state and/or a working state;
and the electric quantity updating module is used for increasing the virtual electric quantity according to a preset first speed if the target battery is in a charging state, updating the virtual electric quantity according to the increased virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
7. The apparatus of claim 6, wherein the power update module is further configured to:
if the target battery is in a working state, reducing the virtual electric quantity according to a preset second speed, updating the virtual electric quantity according to the reduced virtual electric quantity, and displaying the virtual electric quantity as a target display electric quantity.
8. The method of claim 6, wherein the obtaining module further comprises:
the receiving unit is used for receiving a device starting instruction;
and the updating unit is used for acquiring the current battery electric quantity of the target battery and acquiring the pre-stored virtual electric quantity as the virtual electric quantity corresponding to the target battery.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 5.
CN201910735501.7A 2019-08-09 2019-08-09 Method and device for displaying battery electric quantity, computer equipment and storage medium Pending CN110600823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910735501.7A CN110600823A (en) 2019-08-09 2019-08-09 Method and device for displaying battery electric quantity, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910735501.7A CN110600823A (en) 2019-08-09 2019-08-09 Method and device for displaying battery electric quantity, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110600823A true CN110600823A (en) 2019-12-20

Family

ID=68854028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910735501.7A Pending CN110600823A (en) 2019-08-09 2019-08-09 Method and device for displaying battery electric quantity, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110600823A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262636A (en) * 2020-01-17 2020-06-09 惠州Tcl移动通信有限公司 Method and device for enhancing network data transmission speed, storage medium and mobile terminal
CN112964998A (en) * 2021-02-02 2021-06-15 上海深湾能源科技有限公司 Electric quantity display method, battery system and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644210A (en) * 1994-12-28 1997-07-01 Samsung Electronics Co., Ltd. Charging control method and circuit of recharging battery
US7576544B1 (en) * 1998-12-16 2009-08-18 Index Electronic Co., Ltd. Electric quantity indicator for an electromotive vehicle
CN101621557A (en) * 2008-06-30 2010-01-06 乐金电子(中国)研究开发中心有限公司 Method for displaying battery capacity of mobile communication terminal and mobile communication terminal thereof
CN103033758A (en) * 2012-10-25 2013-04-10 北京君正集成电路股份有限公司 Display electric quantity value calibration method and device
CN103364735A (en) * 2013-07-17 2013-10-23 湖南九天科技股份有限公司 Method and device for accurately displaying battery electric quantity of portable power source
CN103901347A (en) * 2012-12-28 2014-07-02 华为终端有限公司 Method for display of battery level and terminal
CN106501730A (en) * 2016-12-06 2017-03-15 歌尔科技有限公司 A kind of battery electric quantity processing method and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5644210A (en) * 1994-12-28 1997-07-01 Samsung Electronics Co., Ltd. Charging control method and circuit of recharging battery
US7576544B1 (en) * 1998-12-16 2009-08-18 Index Electronic Co., Ltd. Electric quantity indicator for an electromotive vehicle
CN101621557A (en) * 2008-06-30 2010-01-06 乐金电子(中国)研究开发中心有限公司 Method for displaying battery capacity of mobile communication terminal and mobile communication terminal thereof
CN103033758A (en) * 2012-10-25 2013-04-10 北京君正集成电路股份有限公司 Display electric quantity value calibration method and device
CN103901347A (en) * 2012-12-28 2014-07-02 华为终端有限公司 Method for display of battery level and terminal
CN103364735A (en) * 2013-07-17 2013-10-23 湖南九天科技股份有限公司 Method and device for accurately displaying battery electric quantity of portable power source
CN106501730A (en) * 2016-12-06 2017-03-15 歌尔科技有限公司 A kind of battery electric quantity processing method and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262636A (en) * 2020-01-17 2020-06-09 惠州Tcl移动通信有限公司 Method and device for enhancing network data transmission speed, storage medium and mobile terminal
CN112964998A (en) * 2021-02-02 2021-06-15 上海深湾能源科技有限公司 Electric quantity display method, battery system and computer readable storage medium

Similar Documents

Publication Publication Date Title
KR102452548B1 (en) Apparatus for determination battery degradation, system having the same and method thereof
EP2851700B1 (en) Method and terminal for displaying capacity of battery
CN102739845B (en) Electronic device capable of detecting battery power and battery power detection method
CN111983495A (en) Battery pack health degree determination method and related device
CN112595980A (en) Method, device and equipment for predicting service life of battery energy storage system
CN109001636A (en) Method and device for determining battery health degree of battery pack, vehicle and computing equipment
CN108061863A (en) Method and device for detecting battery, computer readable storage medium and battery management system
CN112216886A (en) Method and device for predicting battery charging time
CN115575842A (en) Battery management method, device, electronic equipment and storage medium
CN110600823A (en) Method and device for displaying battery electric quantity, computer equipment and storage medium
CN111736083A (en) Battery health state acquisition method and device and storage medium
CN111361448A (en) Self-discharge detection method and device of battery, battery controller and storage medium
CN107015162A (en) A kind of SOC on-line calibration methods for zinc-bromine flow battery
CN110646738A (en) Power battery SOC obtaining method and system and related components
CN114035083A (en) Method, device and system for calculating total capacity of battery and storage medium
CN109001645A (en) A kind of elevator battery detection method, device, equipment and storage medium
CN114137415B (en) Method and device for detecting heating value of battery pack, vehicle and storage medium
KR102196668B1 (en) Apparatus and method for estimating state of charge of battery and method thereof
CN115808624A (en) Battery health degree detection method, equipment and storage medium
CN112034366B (en) SOC dynamic compensation method and electronic system
CN115610277B (en) Vehicle driving range display method, device, computer equipment and storage medium
CN111772248A (en) Electric quantity display method, device and system of electronic cigarette
CN115570980B (en) Method and device for displaying endurance mileage of electric vehicle, computer equipment and storage medium
CN112394290A (en) Method and device for estimating SOH of battery pack, computer equipment and storage medium
CN115436827A (en) Insulation resistance detection method, device and equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220

RJ01 Rejection of invention patent application after publication