CN116365620A - Battery electric quantity display method and device and charge and discharge management circuit - Google Patents

Battery electric quantity display method and device and charge and discharge management circuit Download PDF

Info

Publication number
CN116365620A
CN116365620A CN202111625619.8A CN202111625619A CN116365620A CN 116365620 A CN116365620 A CN 116365620A CN 202111625619 A CN202111625619 A CN 202111625619A CN 116365620 A CN116365620 A CN 116365620A
Authority
CN
China
Prior art keywords
electric quantity
battery
current
module
state
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
CN202111625619.8A
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 H&T Intelligent Control Co Ltd
Original Assignee
Shenzhen H&T Intelligent Control 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 H&T Intelligent Control Co Ltd filed Critical Shenzhen H&T Intelligent Control Co Ltd
Priority to CN202111625619.8A priority Critical patent/CN116365620A/en
Publication of CN116365620A publication Critical patent/CN116365620A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • H02J7/0014Circuits for equalisation of charge between batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • 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

Abstract

The embodiment of the application discloses a battery electric quantity display method and device and a charge and discharge management circuit. Wherein the method comprises the following steps: acquiring the current state of a battery, wherein the current state comprises a charging state and/or a discharging state; acquiring a reference time length according to the current state; determining a first rate according to the reference time length; acquiring initial electric quantity of a battery; the display module is controlled to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity. According to the method and the device, different reference time lengths are obtained according to different states of the battery, the different reference time lengths correspond to different first rates, and in the same state, the displayed battery electric quantity is updated at the constant first rate, so that the battery electric quantity is uniformly changed, and a user can more accurately pre-judge the charging time and the discharging time of the battery.

Description

Battery electric quantity display method and device and charge and discharge management circuit
Technical Field
The embodiment of the application relates to the technical field of batteries, in particular to a battery electric quantity display method and device and a charge and discharge management circuit.
Background
The rechargeable battery is a chargeable battery with limited charging times and is matched with a charger for use. The types of rechargeable batteries in the market at present mainly comprise nickel-cadmium, nickel-hydrogen, lithium ions, lead reservoirs and iron-lithium. The rechargeable battery has the advantages of economy, environmental protection, sufficient electric quantity and suitability for high-power and long-time use.
With the development of high integration and microminiaturization of computer hardware technology, a large number of portable mobile devices are emerging, including mobile phones, notebooks, tablet computers, digital cameras and small household appliances, such as electric shavers, hair clippers, electric toothbrushes, electric facial cleaners, etc.
In implementing the embodiments of the present application, the present inventors found that: currently, most of the battery detection methods adopted by portable mobile devices calculate battery power by detecting battery voltage, convert the battery voltage into battery power according to a certain proportion, and then calculate the battery power after detecting the battery voltage through a singlechip. However, the method of calculating the battery power by detecting the battery voltage does not actually reflect the battery power reasonably and accurately, because the charge and discharge curves of each battery are different, after a period of use, the battery is aged, the capacity decays, the discharge curve of the battery is changed greatly, the charge and discharge duration is changed continuously, the charge and discharge speed of the displayed power is unbalanced, for example, in a certain interval, the power is suddenly dropped relatively quickly, and a user cannot evaluate the battery power of the product accurately when using the device.
Disclosure of Invention
The embodiment of the application aims to provide a battery electric quantity display method and device and a charge and discharge management circuit, and solve the problems of inaccurate battery charging time and unbalanced electric quantity change speed caused by battery discharge curve change, battery aging and capacity attenuation.
In order to solve the technical problems, the following technical solutions are adopted in the embodiments of the present application:
in a first aspect, embodiments of the present application provide a method for displaying battery power, including:
acquiring the current state of a battery, wherein the current state comprises a charging state and/or a discharging state;
acquiring a reference time length according to the current state;
determining a first rate according to the reference time length;
acquiring initial electric quantity of a battery;
the display module is controlled to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity.
In some embodiments, when the current state is a state of charge, the method further comprises:
and when the current electric quantity is equal to the first preset electric quantity, if a full signal is not received, controlling the display module to stop updating the current electric quantity.
In some embodiments, when the current state is a state of charge, the method further comprises:
when a full signal is received, the current electric quantity is smaller than the first preset electric quantity, and the display module is controlled to continuously update the current electric quantity according to a first preset rule until the current electric quantity is equal to the first preset electric quantity.
In some embodiments, when the current state is a discharge state, the method further comprises:
acquiring the current voltage of the battery;
and outputting a shutdown signal when the current electric quantity is equal to a second preset electric quantity and the current voltage is larger than a first preset voltage, and controlling the display module to stop updating the current electric quantity.
In some embodiments, when the current state is a discharge state, the method further comprises:
acquiring the current voltage of the battery;
when the current voltage is smaller than a first preset voltage and the current electric quantity is larger than a second preset electric quantity, the display module is controlled to update the current electric quantity according to a second preset rule until the current electric quantity is equal to the second preset electric quantity, the second preset rule is that the current electric quantity is updated to the same direction by taking the second rate as an electric quantity change rate on the basis of the current electric quantity, and the second rate is larger than the first rate.
In a second aspect, the present application further provides a charge and discharge management circuit, including: the device comprises a control module, a charging module, a battery, a discharging module and a display module, wherein the control module is respectively connected with the charging module, the battery, the discharging module and the display module;
the charging module is used for detecting the current state of the battery and transmitting the charging state to the control module when detecting that the battery is in the charging state;
the discharging module is used for detecting the current state of the battery and transmitting the discharging state to the control module when detecting that the battery is in the discharging state;
the control module is used for acquiring a reference duration according to the charging state and/or the discharging state;
the control module is further used for determining a first rate according to the reference time length;
the control module is also used for acquiring the initial electric quantity of the battery;
the control module is further used for controlling the display module to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first rate as the electric quantity change rate on the basis of the initial electric quantity.
In some embodiments, when the current state of the battery is a charging state and the current electric quantity is equal to a first preset electric quantity, the control module is further configured to control the display module to stop updating the current electric quantity and control the charging module to continue charging the battery until the current voltage of the battery reaches a second preset voltage.
In some embodiments, when the current state of the battery is a charging state, the control module receives a full charge signal transmitted by the charging module, and the current electric quantity is smaller than a first preset electric quantity, the control module is further configured to control the charging module to stop charging the battery, and control the display module to continuously update the current electric quantity according to a first preset rule until the current electric quantity is equal to the first preset electric quantity.
In some embodiments, when the current state is a discharging state, the discharging module is further configured to detect a current voltage of the battery, and when the current electric quantity is equal to a second preset electric quantity and the current voltage is greater than a first preset voltage, the control module outputs a shutdown signal to the discharging module, so as to control the discharging module to stop discharging the battery;
When the current electric quantity is equal to the second preset electric quantity and the current voltage is larger than the first preset voltage, the control module is further used for controlling the display module to stop updating the current electric quantity.
In some embodiments, when the current state is a discharging state, the discharging module is further configured to detect a current voltage of the battery, and when the current voltage is less than a first preset voltage and the current electric quantity is greater than a second preset electric quantity, the control module controls the display module to update the current electric quantity according to a second preset rule until the current electric quantity is equal to the second preset electric quantity, where the second preset rule is that, based on the current electric quantity, the current electric quantity is updated in the same direction with the second rate as an electric quantity change rate, and the second rate is greater than the first rate;
and when the current electric quantity is equal to a second preset electric quantity, the control module controls the battery to stop discharging through the discharging module.
In some embodiments, the charging module is further configured to detect a current voltage of the battery, the discharging module is configured to record a discharging duration of the battery, and the control module is further configured to determine, after receiving a full signal transmitted by the charging module, whether the discharging duration is a first preset duration, and when the discharging duration is the first preset duration and the current voltage is less than a third preset voltage, control the charging module to charge the battery.
In a third aspect, the present application further provides a battery power display apparatus, the apparatus comprising:
the state acquisition module is used for acquiring the current state of the battery, wherein the current state comprises a charging state and/or a discharging state;
the reference time length acquisition module is used for acquiring a reference time length according to the current state;
a first rate determining module, configured to determine a first rate according to the reference duration;
the initial electric quantity acquisition module is used for acquiring the initial electric quantity of the battery;
the updating module is used for controlling the display module to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity.
In a fourth aspect, the present application further provides a battery power display apparatus, including:
at least one processor, and
a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspects.
In a fifth aspect, the present application also provides a non-transitory computer readable storage medium storing computer executable instructions which, when executed by a battery charge display device, cause the battery charge display device to perform the method of any of the first aspects.
The beneficial effects of the embodiment of the application are that: different from the situation of the prior art, the battery electric quantity display method and device and the charge-discharge management circuit provided by the embodiment of the application acquire the current state of the battery, wherein the current state comprises a charge state and/or a discharge state, the reference time is acquired according to the current state, the first speed is determined according to the reference time, the initial electric quantity of the battery is acquired, the display module is controlled to update the current electric quantity according to the first preset rule, the first preset rule is based on the initial electric quantity, the first speed is taken as the electric quantity change speed, and the current electric quantity is updated in the same direction, so that the battery electric quantity is changed at a constant first speed, and the problems that the battery charge-discharge time is inaccurate, the electric quantity change speed is unbalanced, and the displayed battery electric quantity cannot reasonably and accurately reflect the actual electric quantity of the battery due to the change of a battery discharge curve and the aging of the battery and the capacity attenuation are solved. According to the method and the device, different reference time lengths are obtained according to different states of the battery, the different reference time lengths correspond to different first rates, so that the control module can control the displayed battery electric quantity to be updated in the same direction at different first rates according to the difference of the states of the battery, in the same state, the displayed battery electric quantity is updated at the constant first rates, the battery electric quantity is enabled to be changed uniformly, and therefore the time when the battery electric quantity reaches the preset electric quantity is the determined time length, and a user can accurately prejudge the charging time and the discharging time of the battery.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a functional block diagram of one embodiment of a charge and discharge management circuit of the present application;
FIG. 2 is a flow chart of one embodiment of a battery charge display method of the present application;
FIG. 3 is a flow chart of yet another embodiment of a battery charge display method of the present application;
FIG. 4 is a flow chart of yet another embodiment of a battery charge display method of the present application;
FIG. 5 is a schematic diagram of one embodiment of a battery power display device of the present application;
FIG. 6 is a schematic view of a further embodiment of a battery power display device of the present application;
fig. 7 is a schematic diagram of a hardware structure of a control module in an embodiment of the battery power display device of the present application.
Detailed Description
The present application is described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the present application, but are not intended to limit the present application in any way. It should be noted that variations and modifications could be made by those skilled in the art without departing from the spirit of the present application. These are all within the scope of the present application.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, if not conflicting, the various features in the embodiments of the present application may be combined with each other, which is within the protection scope of the present application. In addition, while functional block division is performed in a device diagram and logical order is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. Moreover, the words "first," "second," "third," and the like as used herein do not limit the data and order of execution, but merely distinguish between identical or similar items that have substantially the same function and effect.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application in this description is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used in this specification includes any and all combinations of one or more of the associated listed items.
In addition, technical features described below in the various embodiments of the present application may be combined with each other as long as they do not conflict with each other.
The battery power display method and the battery power display device can be applied to battery power display equipment, are usually portable mobile equipment, can comprise electronic equipment such as smart phones, notebook computers, tablet computers and digital cameras, can comprise small household care appliances such as electric shavers, hair cutters, electric toothbrushes, electric face cleaners and the like, and can also comprise wearable electronic equipment such as electronic blood pressure meters, pedometers, intelligent bracelets and the like.
The battery power display device comprises a charge and discharge management circuit for managing the charge and discharge of the battery and displaying the power of the battery.
Referring to fig. 1, fig. 1 is a schematic block diagram of a charge/discharge management circuit, taking a battery power display device of a single lithium battery product as an example, in the battery power display device, a charge/discharge management circuit 100 includes a control module 10, a charging module 20, a battery 30, a discharging module 40 and a display module 50, where the control module 10 is respectively connected with the charging module 20, the battery 30, the discharging module 40 and the display module 50, and the battery 30 is respectively connected with the charging module 20 and the discharging module 40.
The charging module 20 is for connection with a charger 60 and the discharging module 40 is for connection with a load 70. The charger 60 is used for charging the battery 30 through the charging module 20, and the battery 30 supplies power to the load 70 through the discharging module 40.
Specifically, the positive electrode of the battery 30 is connected to the positive electrode of the charging module 20 and the positive electrode of the diode D1, and the negative electrode of the battery 30, the negative electrode of the control module 10, the negative electrode of the charging module 20, the negative electrode of the charger 60, the negative electrode of the display module 50, the negative electrode of the discharging module 40, and the negative electrode of the load 70 are grounded; the positive electrode of the charger 60 is connected with the positive electrode of the charging module 20 and the positive electrode of the diode D2; the cathode of the diode D2 is connected with the anode of the control module 10, the anode of the display module 50 and the anode of the discharge module 40, and the cathode of the diode D1 is connected with the anode of the control module 10, the anode of the display module 50 and the anode of the discharge module 40; the positive electrode of the discharge module 40 is connected with the positive electrode of the load 70; the control module 10 is communicatively connected to the charging module 20, the display module 50, and the discharging module 40.
The control module 10 controls the display module 50, the charging module 20, and the discharging module 40. The display module 50 displays the corresponding electric quantity when receiving the signal of the control module 10. The power display range of the display module 50 may be 0% -100% or other power ranges. During charging, the charger 60 is connected with an external power supply, the external power supply charges the battery 30 sequentially through the charger 60 and the charging module 20, supplies power to the control module 10 and the display module 50 sequentially through the charger 60 and the charging module 20, and supplies power to the load 70 sequentially through the charger 60, the charging module 20 and the discharging module 40. In the case where the charger 60 is not connected to an external power source, the battery 30 supplies power to the control module 10 and the display module 50. Upon discharge, the battery 30 powers the load 70 through the discharge module 40.
The diode D1 and the diode D2 are used to prevent the reverse flow of current.
Specifically, the charging module 20 is configured to detect a current state of the battery 30, and transmit the state of charge to the control module 10 when detecting that the battery 30 is in the state of charge. The discharging module 40 is configured to detect a current state of the battery 30, and transmit the discharging state to the control module 10 when detecting that the battery 30 is in the discharging state. The control module 10 is configured to obtain a reference duration according to the charging state and/or the discharging state. The control module 10 is further configured to determine the first rate based on the reference time duration. The control module 10 is also used to obtain an initial charge of the battery 30. The control module 10 is further configured to control the display module 50 to update the current power according to a first preset rule, where the first preset rule is that the current power is updated in the same direction based on the initial power by using the first rate as a power change rate.
When the charger 60 is connected to an external power source, the control module 10 transmits a charging signal to the charging module 20 when determining that the battery 30 needs to be charged, and the charging module 20 charges the battery 30 according to the charging signal, and at the same time, the charging module 20 transmits the charging state of the battery 30 to the control module 10. The control module 10 may determine whether to charge the battery 30 based on the current voltage of the battery, the current charge of the battery, and the discharge duration of the battery. During charging of the battery 30, the charging module 20 continuously detects the voltage of the battery 30 to obtain a current voltage, the charging module 20 controls the charging current of the battery 30 according to the current voltage, the charging module 20 charges the battery 30 with a first current when the current voltage is smaller than a set voltage value, and charges the battery 30 with a second current when the current voltage is larger than another set voltage value, wherein the first current is larger than the second current, for example, when the current voltage is smaller than 3.6V, the charging module 20 charges the battery 30 with a current of 0.8A, and when the current voltage is smaller than 4.1V, the charging module 20 charges the battery 30 with a current of 0.4A. The charging module 20 may improve the charging efficiency of the battery 30 and the charge protection of the battery 30 by controlling the charging current of the battery 30 according to the present voltage of the battery 30.
Similarly, when the control module 10 determines that the load 70 needs to be powered through the discharging module 40, the control module 10 transmits a discharging signal to the discharging module 40, the discharging module 40 discharges the battery 30 according to the discharging signal, and meanwhile, the discharging module 40 transmits the discharging state of the battery 30 to the control module 10. The discharging module 40 detects the voltage of the load 70 and transmits the voltage of the load 70 to the control module 10 before discharging the battery 30, and the control module 10 can determine whether the load 70 needs to be powered according to the voltage of the load 70. The discharging module 40 may also continuously detect the voltage of the load 70, and the discharging module 40 may adjust the discharging current of the battery 30 according to the voltage of the load 70.
The charge state and the discharge state correspond to different reference durations, respectively. The reference time period may be stored in the control module 10 in advance. The determination of the reference time period corresponding to the state of charge may be: according to the capacity of the battery 30 and the charging time when the average charging current charges the battery 30 from the lowest voltage to the highest voltage, the charging time when the plurality of batteries 30 are charged from the lowest voltage to the highest voltage is obtained, and the reference time length corresponding to the charging state is the average value of the plurality of charging times. The minimum voltage may be the minimum allowable voltage at which the battery 30 is discharged, i.e., the discharge is stopped when the battery 30 is discharged to the minimum voltage, and the maximum voltage is the maximum allowable voltage at which the battery 30 is charged, i.e., the charge is stopped when the battery 30 is charged to the maximum voltage. The capacity of the battery 30 may be 1200mAh, the average charging current of the battery 30 may be 600mA, the lowest voltage may be 3.3V, the highest voltage may be 4.2V, and the reference time period corresponding to the charging state calculated from the plurality of charging times may be 100 minutes.
The determination of the reference time period corresponding to the discharge state may be: according to the capacity of the battery 30 and the discharge time when the average discharge current charges the battery 30 from the highest voltage to the lowest voltage, the discharge time when the plurality of batteries 30 are charged from the highest voltage to the lowest voltage is obtained, and the reference time length corresponding to the discharge state is the average value of the plurality of discharge times. The reference time length corresponding to the discharge state calculated from the plurality of discharge times may be 170 minutes. Further, considering the capacity attenuation of the battery 30 within the life cycle thereof, the reference time corresponding to the discharge state of the battery 30 can be shortened by a certain time according to the attenuation characteristic of the battery capacity, so as to obtain the reference time corresponding to the final discharge state, and the reference time corresponding to the final discharge state is 150 minutes, for example, so that the original cruising ability of the battery 30 can be maintained after the battery capacity is attenuated after the battery 30 is used for a certain time.
The control module 10 is further configured to determine the first rate based on the reference time duration. The control module 10 may determine a first rate corresponding to the state of charge according to a reference duration corresponding to the state of charge. Specifically, when the battery 30 is in the charging state, the electric quantity of the battery 30 increases from the second preset electric quantity to the first preset electric quantity within a reference time period corresponding to the charging state, and then the first rate is a quotient obtained by dividing the electric quantity difference by the reference time period corresponding to the charging state, and the electric quantity difference is a difference between the first preset electric quantity and the second preset electric quantity. The first preset electric quantity may be 100%, and the second preset electric quantity may be 0%, and when the reference time period corresponding to the charging state is 100 minutes, the first rate corresponding to the charging state is 1%/every 60 seconds.
The control module 10 may also determine a first rate corresponding to the discharge state based on the reference time period corresponding to the discharge state. Specifically, when the battery 30 is in the discharging state, the battery 30 is in the reference time period corresponding to the discharging state, the electric quantity is reduced from the first preset electric quantity to the second preset electric quantity, and the first rate is the quotient obtained by dividing the electric quantity difference by the reference time period corresponding to the discharging state. When the reference time period corresponding to the discharge state is 150 minutes, the first rate corresponding to the discharge state is 1%/every 90 seconds.
The initial charge of the battery 30 may be the final charge of the battery 30 when the last charge and/or discharge of the battery 30 is completed, and the control module 10 stores the final charge as the initial charge of the battery 30.
When the battery 30 is in a charged state, the control module 10 controls the display module 50 to increase the current electric quantity in the same direction with the first rate as the electric quantity change rate based on the initial electric quantity, for example, the initial electric quantity is 20%, and the control module 10 controls the current electric quantity of the battery 30 displayed by the display module 50 to increase by 1% every 60 seconds from 20%.
When the battery 30 is in a discharging state, the control module 10 controls the display module 50 to decrease the current electric quantity in the same direction based on the initial electric quantity, for example, the initial electric quantity is 100%, and the control module 10 controls the current electric quantity of the battery 30 displayed by the display module 50 to decrease by 1% every 90 seconds from 100%.
In this embodiment, the charging module 20 and the discharging module 40 acquire a current state of the battery 30, where the current state includes a charging state and/or a discharging state, and the control module 10 acquires a reference duration according to the current state to determine a rate of change of electric quantity; the control module 10 obtains the initial electric quantity of the battery 30, and controls the display module 50 to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity, so that the battery electric quantity displayed by the display module 50 is changed at a constant first speed, and the problems that the battery charge and discharge time is inaccurate, the electric quantity change speed is unbalanced and the displayed battery electric quantity cannot reasonably and accurately reflect the actual electric quantity of the battery due to the change of a battery discharge curve and the aging of the battery and capacity attenuation are solved. According to the method and the device, different reference time lengths are obtained according to different states of the battery, the different reference time lengths correspond to different first rates, so that the control module 10 can control the displayed battery electric quantity to be updated in the same direction at different first rates according to the difference of the states of the battery, in the same state, the displayed battery electric quantity is updated at the constant first rates, the battery electric quantity is enabled to be changed uniformly, and therefore the time when the battery electric quantity reaches the preset electric quantity is the determined time length, and a user can accurately pre-judge the charging time and the discharging time of the battery.
In some embodiments, when the current state of the battery 30 is the charging state and the current power is equal to the first preset power, the control module 10 does not receive the full signal transmitted by the charging module 20, and the control module 10 is further configured to control the display module 50 to stop updating the current power and control the charging module 20 to continue charging the battery 30 until the current voltage of the battery 30 reaches the second preset voltage. For example, when the current state of the battery 30 is a charging state and the current charge of the battery 30 is equal to the first preset charge, the control module 10 does not receive the full charge signal, which indicates that the current voltage of the battery 30 detected by the charging module 20 is less than the second preset voltage, and the second preset voltage is the voltage when the battery 30 is fully charged, so if the charging module 20 does not transmit the full charge signal to the control module 10, it indicates that the battery 30 is not fully charged yet, but the charge indicates that the battery 30 is fully charged, and the first preset charge is used for indicating the full charge of the battery 30. At this time, the control module 10 controls the display module 50 to stop updating the current electric quantity, i.e. the electric quantity remaining in the display of 100%, and controls the charging module 20 to continue charging the battery 30 until the current voltage of the battery 30 reaches the second preset voltage, and then controls the charging module 20 to stop charging the battery 30. The second preset voltage may be 4.2V. When the displayed electric quantity is not matched with the actual electric quantity of the battery, the control continues to charge the battery, so that the displayed electric quantity is matched with the actual electric quantity.
In some embodiments, when the current state of the battery 30 is a charging state, the control module 10 receives a full signal transmitted by the charging module 20 and the current power is less than a first preset power, the control module 10 is further configured to control the charging module 20 to stop charging the battery 30, and control the display module 50 to continuously update the current power according to a first preset rule until the current power is equal to the first preset power. For example, when the battery 30 is in a charged state, the current voltage of the battery 30 detected by the charging module 20 is equal to the second preset voltage, a full charge signal is transmitted to the control module 10, the control module 10 obtains that the battery 30 is full according to the full charge signal, the current electric quantity displayed by the display module 50 is smaller than the first preset electric quantity (for example, 100%), that is, the electric quantity of the battery 30 is actually full, and the electric quantity displayed by the display module 50 does not reach the full electric quantity, if the current electric quantity is 90%, the control module 10 controls the display module 50 to continuously update the current electric quantity according to the first preset rule until the current electric quantity is equal to the first preset electric quantity, and meanwhile controls the charging module 20 to stop charging the battery 30. The first preset rule may be to update the current power to an increasing direction with a first rate of change of 1% per minute as a power change rate based on the initial power of 90%, for example, the current power is updated to 91% after 1 minute. When the battery 30 is in a charged state and the electric quantity of the battery 30 is actually full and the electric quantity displayed by the display module 50 does not reach the full electric quantity, the battery 30 is stopped to be charged, the battery 30 is prevented from being overcharged, and the current electric quantity is updated by the control display according to the first preset rule until the current electric quantity is equal to 100% of the first preset electric quantity, so that the electric quantity displayed by the display module 50 is matched with the actual electric quantity.
In some embodiments, when the current state is a discharging state, the discharging module 40 is further configured to detect a current voltage of the battery 30, and when the current electric quantity is equal to a second preset electric quantity and the current voltage is greater than a first preset voltage, the control module 10 outputs a shutdown signal to the discharging module 40 to control the battery 30 to stop discharging through the discharging module 40; when the current electric quantity is equal to the second preset electric quantity and the current voltage is larger than the first preset voltage, the control module is further used for controlling the display module to stop updating the current electric quantity.
For example, when the current state is a discharging state, the discharging module 40 detects the current voltage of the battery 30, the current voltage is greater than a first preset voltage (e.g. 3.3 v), and when the current electric quantity is equal to a second preset electric quantity (e.g. 0%), this indicates that the display module 50 has already displayed the situation that the battery 30 is the lowest electric quantity at this time, and at this time, the actual electric quantity of the battery 30 does not reach the lowest electric quantity, and the control module 10 also needs to control the discharging module 40 to turn off the load 70, so that the load 70 is controlled by the discharging module 40 to stop discharging the battery 30, so as to turn off the load 70, avoid the situation that the actual electric quantity of the battery 30 is lower than the lowest allowable electric quantity, thereby achieving the purposes of preventing overdischarge of the battery 30 and prolonging the service life of the battery 30.
When the current power is equal to the second preset power and the current voltage is greater than the first preset voltage, the control module 10 is further configured to control the display module 50 to stop updating the current power. Namely: if the current power reaches the minimum power and even if the actual power of the battery 30 is still greater than the minimum power, the control module 10 controls the display module 50 to stop updating the current power because the display module 50 has already displayed as 0% of the minimum power, so that the displayed power will not continue to drop.
In some embodiments, when the current state is a discharging state, the discharging module 40 is further configured to detect a current voltage of the battery 30, and when the current voltage is less than a first preset voltage and the current power is greater than a second preset power, the control module 10 controls the display module 50 to update the current power according to a second preset rule until the current power is equal to the second preset power, where the second preset rule is that, based on the current power, the current power is updated in the same direction with the second rate as a power change rate, and the second rate is greater than the first rate; when the current electric quantity is equal to the second preset electric quantity, the control module 10 controls the battery 30 to stop discharging through the discharging module 40.
For example, in the discharging state, the second preset rule may be to update the current electric quantity in a decreasing direction with the second rate as an electric quantity change rate on the basis of the current electric quantity, the first rate may be changed by 1% every 90 seconds, and the second rate may be changed by 1% every 10 seconds, that is, the second preset rule may be to update the current electric quantity in a decreasing direction with the electric quantity change rate of 1% every 10 seconds on the basis of the current electric quantity.
For example, when the current state is a discharging state, the discharging module 40 detects the current voltage of the battery 30, and when the current voltage is less than 3.3V and the current electric quantity is greater than 0%, the control module 10 controls the display module 50 to update the current electric quantity according to a second preset rule, the current electric quantity is 5%, on the basis of 5% of the current electric quantity, the current electric quantity is changed by 1% every 10 seconds, and is updated in a decreasing direction, and after 10 seconds, the current electric quantity is updated to be 4%. Therefore, when the current voltage is less than the first preset voltage, the battery is discharged continuously to accelerate the battery loss, and at this time, the display module 50 is controlled to display the electric quantity at a faster rate, so that the battery can be put into a low-battery shutdown state as soon as possible to prevent the battery from overdischarging.
When the current electric quantity is equal to the second preset electric quantity, the control module 10 controls the battery 30 to stop discharging through the discharging module 40, that is, if the electric quantity displayed by the display module 50 is 0%, the control module 10 directly controls the battery 30 to stop discharging, so as to avoid the transitional discharging of the battery 30.
In some embodiments, the charging module 40 is further configured to detect a current voltage of the battery 30, the discharging module 40 is configured to record a discharging duration of the battery 30, and the control module 10 is further configured to determine, after receiving a full signal transmitted by the charging module 40, whether the discharging duration is a first preset duration, and when the discharging duration is the first preset duration and the current voltage is less than a third preset voltage, control the charging module 20 to charge the battery 30.
For example, when the charger 60 is continuously connected to the external power supply, and the charging module 20 determines that the battery 30 is actually fully charged according to the detected current voltage of the battery 30, the charging module 20 transmits a fully charged signal to the control module 10, the discharging module 40 records the discharging duration of the battery 30, when the control module 10 receives the fully charged signal transmitted by the charging module 20, the control module 10 transmits a control signal to the charging module 20, so that the charging module 20 can disconnect the charging of the battery 30, but standby current exists between the control module 10 and the display module 50, in the prior art, the charging and discharging management circuit slowly consumes power under the standby condition, if the charging module 20 detects that the current voltage is lower than the second preset voltage, the charging module 20 continuously charges the battery 30, and long-time repeated charging can cause excessive loss of the battery 30. Therefore, in the present embodiment, if the control module 10 receives the full signal, it indicates that the battery 30 is full, and with the power consumption of the standby condition, if it is detected that the discharging duration of the battery 30 is the first preset duration and the current voltage is less than the third preset voltage, the charging module 20 is controlled to charge the battery 30. That is, after the control module 10 receives the full signal, if the discharging period is not the first preset period or the current voltage is greater than or equal to the third preset voltage, charging of the battery 30 is not started, so that the occurrence of overcharge loss of the battery caused by repeated charging of the battery is avoided.
The third preset voltage may be 4.1V and the first preset time period may be a specific value or range of values, for example, 0 or 0 to 10 seconds.
The charger 60 may be a power adapter, which may be 5V/2A in size.
When the current state of the battery 30 is a charging state and a discharging state, that is, the battery 30 is discharged while being charged, the control module 10 may control the display module 50 to display the electric quantity in a display manner that the battery 30 is in the charging state.
Based on the above-mentioned battery level display device, please refer to fig. 2, which is a schematic flow chart of an embodiment of a battery level display method applied to the present application, the method may be executed by the control module 10 in the battery level display device, and the method includes steps S201-S205.
S201: the method comprises the steps of obtaining a current state of a battery, wherein the current state comprises a charging state and/or a discharging state.
The charging module 20 detects the current state of the battery 30 and transmits the charging state to the control module 10 when detecting that the battery 30 is in the charging state;
the discharging module 40 detects the current state of the battery 30 and transmits the discharging state to the control module 10 when detecting that the battery 30 is in the discharging state.
Accordingly, the control module 10 obtains the state of charge of the battery 30 from the charging module 20 and/or obtains the state of discharge of the battery 30 from the discharging module 40.
S202, acquiring a reference time length according to the current state.
The charge state and the discharge state correspond to different reference durations, respectively. The reference time period may be stored in the control module 10 in advance. The determination of the reference time period corresponding to the state of charge may be: according to the capacity of the battery 30 and the charging time when the average charging current charges the battery 30 from the lowest voltage to the highest voltage, the charging time when the plurality of batteries 30 are charged from the lowest voltage to the highest voltage is obtained, and the reference time length corresponding to the charging state is the average value of the plurality of charging times. The minimum voltage may be the minimum allowable voltage at which the battery 30 is discharged, i.e., the discharge is stopped when the battery 30 is discharged to the minimum voltage, and the maximum voltage is the maximum allowable voltage at which the battery 30 is charged, i.e., the charge is stopped when the battery 30 is charged to the maximum voltage. The capacity of the battery 30 may be 1200mAh, the average charging current of the battery 30 may be 600mA, the lowest voltage may be 3.3V, the highest voltage may be 4.2V, and the reference time period corresponding to the charging state calculated from the plurality of charging times may be 100 minutes.
The determination of the reference time period corresponding to the discharge state may be: according to the capacity of the battery 30 and the discharge time when the average discharge current charges the battery 30 from the highest voltage to the lowest voltage, the discharge time when the plurality of batteries 30 are charged from the highest voltage to the lowest voltage is obtained, and the reference time length corresponding to the discharge state is the average value of the plurality of discharge times. The reference time length corresponding to the discharge state calculated from the plurality of discharge times may be 170 minutes. Further, considering the capacity attenuation of the battery 30 within the life cycle thereof, the reference time corresponding to the discharge state of the battery 30 can be shortened by a certain time according to the attenuation characteristic of the battery capacity, so as to obtain the reference time corresponding to the final discharge state, and the reference time corresponding to the final discharge state is 150 minutes, for example, so that the original cruising ability of the battery 30 can be maintained after the battery capacity is attenuated after the battery 30 is used for a certain time.
S203: and determining a first rate according to the reference time length.
When the battery 30 is in the charging state, the battery 30 increases the electric quantity from the second preset electric quantity to the first preset electric quantity within a reference time period corresponding to the charging state, and the first rate is a quotient obtained by dividing the electric quantity difference by the reference time period corresponding to the charging state, and the electric quantity difference is a difference between the first preset electric quantity and the second preset electric quantity. The first preset electric quantity may be 100%, and the second preset electric quantity may be 0%, and when the reference time period corresponding to the charging state is 100 minutes, the first rate corresponding to the charging state is 1%/every 60 seconds.
When the battery 30 is in the discharging state, the battery 30 is in the reference time period corresponding to the discharging state, the electric quantity is reduced from the first preset electric quantity to the second preset electric quantity, and the first rate is the quotient obtained by dividing the electric quantity difference by the reference time period corresponding to the discharging state. When the reference time period corresponding to the discharge state is 150 minutes, the first rate corresponding to the discharge state is 1%/every 90 seconds.
S204: the initial charge of the battery is obtained.
The initial charge of the battery 30 may be the final charge of the battery 30 when the last charge and/or discharge of the battery 30 is completed, and the control module 10 stores the final charge as the initial charge of the battery 30.
S205: the display module is controlled to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity.
Specifically, when the current state is the charging state, the initial electric quantity of the battery is obtained, and then the control display module 50 updates the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction based on the initial electric quantity by taking the first rate as the electric quantity change rate, for example, the initial electric quantity is 40%, the first rate is increased by 1% per minute, and after one minute, the current electric quantity of the battery is displayed as 41%. The change of the electric quantity is displayed at a certain electric quantity change rate under the charging state, so that the user can use the same time length (for example, the charging reference time length is 100 minutes) every time when the user is fully charged, and the acceptance of the user on the stability of the product can be improved.
When the current state is the discharging state, the initial electric quantity of the battery is obtained, and then the control display module 50 updates the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity, for example, the initial electric quantity is 40%, the first speed is reduced by 1% every 90 seconds, and then the current electric quantity of the battery is displayed to be 39% after 90 seconds. And displaying the electric quantity change at a certain electric quantity change rate under the discharge state, so that the displayed electric quantity change is balanced, and a user can clearly estimate the using time of the remaining electric quantity.
In the embodiment of the application, the current state of the battery is obtained, the current state comprises a charging state and/or a discharging state, and a reference duration is obtained according to the current state so as to determine the change rate of the electric quantity; the method comprises the steps of obtaining initial electric quantity of a battery, controlling a display module to update current electric quantity according to a first preset rule, wherein the first preset rule is that on the basis of the initial electric quantity, the current electric quantity is updated to the same direction according to a first speed serving as an electric quantity change speed, so that the battery electric quantity is changed at a constant first speed, and the problems that the battery charge and discharge time is inaccurate, the electric quantity change speed is unbalanced, and the displayed battery electric quantity cannot reasonably and accurately reflect the actual electric quantity of the battery due to battery discharge curve change, battery aging and capacity attenuation are solved. According to the method and the device, different reference time lengths are obtained according to different states of the battery, the different reference time lengths correspond to different first rates, so that the control module 10 can control the displayed battery electric quantity to be updated in the same direction at different first rates according to the difference of the states of the battery, in the same state, the displayed battery electric quantity is updated at the constant first rates, the battery electric quantity is enabled to be changed uniformly, and therefore the time when the battery electric quantity reaches the preset electric quantity is the determined time length, and a user can accurately pre-judge the charging time and the discharging time of the battery.
In some of these embodiments, when the current state is a state of charge, the method further comprises:
and when the current electric quantity is equal to the first preset electric quantity, if a full signal is not received, controlling the display module to stop updating the current electric quantity.
Specifically, when the current state is the charging state, the first preset electric quantity is 100%, if the charging module 20 detects that the current voltage of the battery 30 does not reach the second preset voltage of 4.2V, the charging module 20 does not send a full signal to the control module 10, at this time, the control module 10 does not receive the full signal, which indicates that the actual electric quantity of the battery 30 is in the unfilled state, but the charging reference period has been reached for 100 minutes, and the current electric quantity has been displayed for 100%, then the control module 10 controls the display module 50 to stop updating the current electric quantity, that is, to keep displaying for 100%.
In some of these embodiments, when the current state is a state of charge, the method further comprises:
when a full signal is received, the current electric quantity is smaller than the first preset electric quantity, and the display module is controlled to continuously update the current electric quantity according to a first preset rule until the current electric quantity is equal to the first preset electric quantity.
Specifically, when the current state is the charging state, if the charging module 20 detects that the current voltage of the battery 30 reaches the second preset voltage 4.2V, it indicates that the battery 30 is actually in the full state, at this time, the charging module 20 sends a full signal to the control module 10, after the control module 10 receives the full signal, if the current electric quantity displayed by the display module 50 is less than 100% of the first preset electric quantity, the control module 50 continues to update the current electric quantity according to the first preset rule until the current electric quantity is equal to 100% of the first preset electric quantity, that is, the current electric quantity is increased by 1% per minute, for example, the current electric quantity is 92% after one minute, the current electric quantity is displayed as 93%, and the update of the current electric quantity is not stopped until the current electric quantity is displayed as 100%.
Referring to fig. 3, fig. 3 is a flow chart illustrating an embodiment of a battery power display method according to the present application, in which the state of the battery 30 is a charged state, the method includes:
a: acquiring the current state of a battery, wherein the current state is a charging state;
B. acquiring a reference time length according to the charging state;
C. determining a first rate according to the reference time length;
D. acquiring initial electric quantity of a battery, and judging whether the initial electric quantity is a first preset electric quantity or not;
E. If the initial electric quantity is a first preset electric quantity, judging whether a full signal is received or not;
F. if a full signal is received, judging whether the current voltage of the battery is smaller than a third preset voltage or not, and whether the discharging duration of the battery is a first preset duration or not;
G. if the current voltage of the battery is smaller than the third preset voltage and the discharging duration of the battery is the first preset duration, continuing to charge;
H. if the current voltage of the battery is not less than the third preset voltage, stopping charging;
I. if the initial electric quantity is not the first preset electric quantity, the current electric quantity is increased by taking the first speed as the electric quantity change speed.
In some of these embodiments, when the current state is a discharge state, the method further comprises:
acquiring the current voltage of the battery;
and outputting a shutdown signal when the current electric quantity is equal to a second preset electric quantity and the current voltage is larger than a first preset voltage, and controlling the display module to stop updating the current electric quantity.
Specifically, when the current state is a discharging state, the current voltage of the battery is obtained, and when the current electric quantity is equal to the second preset electric quantity and the current voltage is greater than the first preset voltage, that is, when the current electric quantity is displayed as the second preset electric quantity and the current voltage is greater than the first preset voltage, the control module 10 outputs a shutdown signal to the discharging module 40, so that the discharging module 40 shuts down the load 70 to control the load to be no longer started, and controls the display module 50 to stop updating the current electric quantity, that is, to keep displaying the second preset electric quantity.
In some of these embodiments, when the current state is a discharge state, the method further comprises:
acquiring the current voltage of the battery;
when the current voltage is smaller than a first preset voltage and the current electric quantity is larger than a second preset electric quantity, the display module is controlled to update the current electric quantity according to a second preset rule until the current electric quantity is equal to the second preset electric quantity, the second preset rule is that the current electric quantity is updated to the same direction by taking the second rate as an electric quantity change rate on the basis of the current electric quantity, and the second rate is larger than the first rate.
Specifically, when the current state is a discharging state, the current voltage of the battery is obtained, and when the current voltage is smaller than a first preset voltage and the current electric quantity is larger than a second preset electric quantity, it is indicated that the battery 30 is in a state that the electric quantity is too low, the second rate is larger than the first rate, that is, when in the discharging state, the second preset rule may be to update the current electric quantity in a decreasing direction based on the current electric quantity by taking the second rate as an electric quantity change rate, the first rate may be changed by 1% every 90 seconds, the second rate may be changed by 1% every 10 seconds, that is, the second preset rule may be to update the current electric quantity in a decreasing direction based on the current electric quantity by changing by 1% every 10 seconds. For example, the current power is 20%, and the display module 50 updates the current power in a display manner of decreasing 1% every 10 seconds of the second rate.
When the current voltage is greater than the first preset voltage and the current electric quantity is greater than the second preset electric quantity, if the current electric quantity is 50%, the display module 50 updates the current electric quantity in a display mode of subtracting 1% every 90 seconds.
When the current voltage is smaller than the first preset voltage, the battery is discharged continuously under the condition that the voltage of the battery is lower than a certain voltage, so that the battery loss is accelerated, and at the moment, the display module 50 is controlled to display the electric quantity at a faster speed, so that the battery can be put into a low-electric-quantity shutdown state as soon as possible, and the battery is prevented from being discharged excessively.
Referring to fig. 4, fig. 4 is a flow chart of an embodiment of a battery level display method, in which the battery level display method is a battery level discharge display method, and the method includes:
a: starting discharge;
b: whether the current state of the battery is a charging state and a discharging state;
c, performing operation; if the discharge state is the discharge state, acquiring a discharge reference time length according to the discharge state;
d: determining a first rate according to the discharge reference time length;
e: acquiring initial electric quantity and current voltage of the battery, and judging whether the initial electric quantity is a second preset electric quantity or not;
f: if the current electric quantity is equal to the second preset electric quantity and the current voltage is larger than the first preset voltage, outputting a shutdown signal and controlling the display module to stop updating the current electric quantity.
G: if the current voltage is smaller than the first preset voltage and the current electric quantity is larger than the second preset electric quantity, the display module is controlled to update the current electric quantity at a second rate;
h: if the current voltage is larger than the first preset voltage and the current electric quantity is larger than the second preset electric quantity, the display module is controlled to update the current electric quantity at a first speed;
i: and if the charging state and the discharging state are the same, the display module is controlled to update the current electric quantity according to a first preset rule.
The embodiment of the present application further provides a battery power display device, please refer to fig. 5, which shows a structure of the battery power display device provided in the embodiment of the present application, where the battery power display device 300 includes:
a state acquisition module 301, configured to acquire a current state of the battery, where the current state includes a charging state and/or a discharging state;
a reference duration obtaining module 302, configured to obtain a reference duration according to the current state;
a first rate determining module 303, configured to determine a first rate according to the reference duration;
an initial electric quantity obtaining module 304, configured to obtain an initial electric quantity of the battery;
the updating module 305 is configured to control the display module to update the current electric quantity according to a first preset rule, where the first preset rule is to update the current electric quantity in the same direction based on the initial electric quantity by using the first rate as an electric quantity change rate.
In the embodiment of the application, the current state of the battery is obtained, the current state comprises a charging state and/or a discharging state, and a reference duration is obtained according to the current state so as to determine the change rate of the electric quantity; the method comprises the steps of obtaining initial electric quantity of a battery, controlling a display module to update current electric quantity according to a first preset rule, wherein the first preset rule is that on the basis of the initial electric quantity, the current electric quantity is updated to the same direction according to a first speed serving as an electric quantity change speed, so that the battery electric quantity is changed at a constant first speed, and the problems that the battery charge and discharge time is inaccurate, the electric quantity change speed is unbalanced, and the displayed battery electric quantity cannot reasonably and accurately reflect the actual electric quantity of the battery due to battery discharge curve change, battery aging and capacity attenuation are solved. According to the method and the device, different reference time lengths are obtained according to different states of the battery, the different reference time lengths correspond to different first rates, so that the control module 10 can control the displayed battery electric quantity to be updated in the same direction at different first rates according to the difference of the states of the battery, in the same state, the displayed battery electric quantity is updated at the constant first rates, the battery electric quantity is enabled to be changed uniformly, and therefore the time when the battery electric quantity reaches the preset electric quantity is the determined time length, and a user can accurately pre-judge the charging time and the discharging time of the battery.
In some embodiments, as shown in fig. 6, the battery power display apparatus 300 further includes a first update sub-module 306 for:
and when the current state is a charging state and the current electric quantity is equal to a first preset electric quantity, if a full signal is not received, controlling the display module to stop updating the current electric quantity.
In some embodiments, the battery power display apparatus 300 further comprises a second update sub-module 307 for:
when the current state is a charging state and a full signal is received, the current electric quantity is smaller than a first preset electric quantity, and the display module is controlled to continuously update the current electric quantity according to a first preset rule until the current electric quantity is equal to the first preset electric quantity.
In some embodiments, the battery power display apparatus 300 further includes a third update sub-module 308 for:
when the current state is a discharging state, acquiring the current voltage of the battery;
and outputting a shutdown signal when the current electric quantity is equal to a second preset electric quantity and the current voltage is larger than a first preset voltage, and controlling the display module to stop updating the current electric quantity.
In some embodiments, the battery power display apparatus 300 further includes a fourth update sub-module 309 for:
Acquiring the current voltage of the battery;
when the current voltage is smaller than a first preset voltage and the current electric quantity is larger than a second preset electric quantity, the display module is controlled to update the current electric quantity according to a second preset rule until the current electric quantity is equal to the second preset electric quantity, the second preset rule is that the current electric quantity is updated to the same direction by taking the second rate as an electric quantity change rate on the basis of the current electric quantity, and the second rate is larger than the first rate.
It should be noted that, the above device may execute the method provided by the embodiment of the present application, and has the corresponding functional modules and beneficial effects of executing the method. Technical details which are not described in detail in the device embodiments may be found in the methods provided in the embodiments of the present application.
Fig. 7 is a schematic hardware structure of a control module in one embodiment of the battery power display device, and as shown in fig. 7, the control module 10 includes:
one or more processors 111, a memory 112. In fig. 7, a processor 111 and a memory 112 are taken as examples.
The processor 111, the memory 112 may be connected by a bus or otherwise, which is illustrated in fig. 7 as a bus connection.
The memory 112 is used as a non-volatile computer readable storage medium, and may be used to store a non-volatile software program, a non-volatile computer executable program, and a module, such as program instructions/modules corresponding to the battery power display method in the embodiments of the present application (e.g., the state acquisition module 301, the reference time length acquisition module 302, the first rate determination module 303, the initial power acquisition module 304, the update module 305, the first update sub-module 306, the second update sub-module 307, the third update sub-module 308, and the fourth update sub-module 309 shown in fig. 5-6). The processor 111 executes various functional applications of the control module and data processing, i.e., implements the battery level display method of the above-described method embodiment, by running nonvolatile software programs, instructions, and modules stored in the memory 112.
Memory 112 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the person entering and exiting the detection device, etc. In addition, memory 112 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 112 may optionally include memory located remotely from processor 111, which may be connected to the battery level display device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 112 and when executed by the one or more processors 111 perform the battery level display method of any of the method embodiments described above, for example, performing method steps S201-S205 in fig. 2 described above, to implement the functions of modules 301-309 in fig. 5-6.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be found in the methods provided in the embodiments of the present application.
Embodiments of the present application provide a non-transitory computer readable storage medium storing computer executable instructions for execution by one or more processors, such as one of the processors 111 of fig. 5, to cause the one or more processors to perform the battery level display method of any of the method embodiments described above, such as performing the method steps S201-S205 of fig. 2 described above, to implement the functions of the modules 301-309 of fig. 5-6.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by means of software plus a general hardware platform, and may of course also be implemented by means of hardware. Those skilled in the art will appreciate that all or part of the processes implementing the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and where the program may include processes implementing the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (RandomAccessMemory, RAM), or the like.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the invention, the steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (14)

1. A battery charge display method, the method comprising:
acquiring the current state of a battery, wherein the current state comprises a charging state and/or a discharging state;
acquiring a reference time length according to the current state;
determining a first rate according to the reference time length;
acquiring initial electric quantity of a battery;
the display module is controlled to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity.
2. The method of claim 1, wherein when the current state is a charged state, the method further comprises:
and when the current electric quantity is equal to the first preset electric quantity, if a full signal is not received, controlling the display module to stop updating the current electric quantity.
3. The method of claim 1, wherein when the current state is a charged state, the method further comprises:
when a full signal is received, the current electric quantity is smaller than the first preset electric quantity, and the display module is controlled to continuously update the current electric quantity according to a first preset rule until the current electric quantity is equal to the first preset electric quantity.
4. The method of claim 1, wherein when the current state is a discharge state, the method further comprises:
acquiring the current voltage of the battery;
and outputting a shutdown signal when the current electric quantity is equal to a second preset electric quantity and the current voltage is larger than a first preset voltage, and controlling the display module to stop updating the current electric quantity.
5. The method of claim 1, wherein when the current state is a discharge state, the method further comprises:
acquiring the current voltage of the battery;
when the current voltage is smaller than a first preset voltage and the current electric quantity is larger than a second preset electric quantity, the display module is controlled to update the current electric quantity according to a second preset rule until the current electric quantity is equal to the second preset electric quantity, the second preset rule is that the current electric quantity is updated to the same direction by taking the second rate as an electric quantity change rate on the basis of the current electric quantity, and the second rate is larger than the first rate.
6. A charge-discharge management circuit, characterized by comprising: the device comprises a control module, a charging module, a battery, a discharging module and a display module, wherein the control module is respectively connected with the charging module, the battery, the discharging module and the display module;
The charging module is used for detecting the current state of the battery and transmitting the charging state to the control module when detecting that the battery is in the charging state;
the discharging module is used for detecting the current state of the battery and transmitting the discharging state to the control module when detecting that the battery is in the discharging state;
the control module is used for acquiring a reference duration according to the charging state and/or the discharging state;
the control module is further used for determining a first rate according to the reference time length;
the control module is also used for acquiring the initial electric quantity of the battery;
the control module is further used for controlling the display module to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first rate as the electric quantity change rate on the basis of the initial electric quantity.
7. The charge and discharge management circuit of claim 6, wherein when the current state of the battery is a charging state and the current power is equal to a first preset power, the control module does not receive a full signal transmitted by the charging module, and the control module is further configured to control the display module to stop updating the current power and control the charging module to continue charging the battery until the current voltage of the battery reaches a second preset voltage.
8. The charge and discharge management circuit of claim 6, wherein when the current state of the battery is a charging state, the control module receives a full charge signal transmitted by the charging module, and the current power is less than a first preset power, the control module is further configured to control the charging module to stop charging the battery, and control the display module to continue updating the current power with the first preset rule until the current power is equal to the first preset power.
9. The charge-discharge management circuit of claim 6, wherein when the current state is a discharge state, the discharge module is further configured to detect a current voltage of the battery, and when the current power is equal to a second preset power and the current voltage is greater than a first preset voltage, the control module outputs a shutdown signal to the discharge module to control the battery to stop discharging through the discharge module;
when the current electric quantity is equal to the second preset electric quantity and the current voltage is larger than the first preset voltage, the control module is further used for controlling the display module to stop updating the current electric quantity.
10. The charge-discharge management circuit of claim 6, wherein when the current state is a discharge state, the discharge module is further configured to detect a current voltage of the battery, and when the current voltage is less than a first preset voltage and the current power is greater than a second preset power, the control module controls the display module to update the current power with a second preset rule until the current power is equal to the second preset power, the second preset rule being that, based on the current power, the current power is updated in a same direction with the second rate as a power change rate, wherein the second rate is greater than the first rate;
And when the current electric quantity is equal to a second preset electric quantity, the control module controls the battery to stop discharging through the discharging module.
11. The charge-discharge management circuit of claim 6, wherein the charge module is further configured to detect a current voltage of the battery, the discharge module is configured to record a discharge duration of the battery, and the control module is further configured to determine, after receiving a full signal transmitted by the charge module, whether the discharge duration is a first preset duration, and when the discharge duration is the first preset duration and the current voltage is less than a third preset voltage, control the charge module to charge the battery.
12. A battery charge display device, the device comprising:
the state acquisition module is used for acquiring the current state of the battery, wherein the current state comprises a charging state and/or a discharging state;
the reference time length acquisition module is used for acquiring a reference time length according to the current state;
a first rate determining module, configured to determine a first rate according to the reference duration;
the initial electric quantity acquisition module is used for acquiring the initial electric quantity of the battery;
the updating module is used for controlling the display module to update the current electric quantity according to a first preset rule, wherein the first preset rule is that the current electric quantity is updated in the same direction by taking the first speed as the electric quantity change speed on the basis of the initial electric quantity.
13. A battery charge display device, the battery charge display device comprising:
at least one processor, and
a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
14. A non-transitory computer readable storage medium storing computer executable instructions which, when executed by a battery power display device, cause the battery power display device to perform the method of any of claims 1-5.
CN202111625619.8A 2021-12-28 2021-12-28 Battery electric quantity display method and device and charge and discharge management circuit Pending CN116365620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111625619.8A CN116365620A (en) 2021-12-28 2021-12-28 Battery electric quantity display method and device and charge and discharge management circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111625619.8A CN116365620A (en) 2021-12-28 2021-12-28 Battery electric quantity display method and device and charge and discharge management circuit

Publications (1)

Publication Number Publication Date
CN116365620A true CN116365620A (en) 2023-06-30

Family

ID=86928922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111625619.8A Pending CN116365620A (en) 2021-12-28 2021-12-28 Battery electric quantity display method and device and charge and discharge management circuit

Country Status (1)

Country Link
CN (1) CN116365620A (en)

Similar Documents

Publication Publication Date Title
EP3349324B1 (en) Charging control method, charging control device and terminal
US20160064961A1 (en) User-behavior-driven battery charging
US9300157B2 (en) Context aware battery charging
WO2021008403A1 (en) Battery charging management method, terminal device, and storage medium
US8847543B2 (en) Secondary battery charging device and secondary battery charging system
US9018902B2 (en) Rechargeable battery charging method, charging control apparatus, and battery pack
EP2180573B1 (en) System and method for controlling charging of battery of portable terminal
US20060226812A1 (en) Method and system for charging batteries with improved cycle life
US10756533B2 (en) Battery pack charge control device and method
WO2021190320A1 (en) Battery charging protection method and charging protection apparatus, mobile terminal, and storage medium
CN112858938B (en) Electric quantity calculation method and device, storage medium and electronic equipment
CN109450013A (en) A kind of management method and device of base station battery
WO2020024981A1 (en) Charging method and apparatus, charging terminal, and computer readable storage medium
US20140340051A1 (en) Battery charge management and control
EP3876381B1 (en) Charge and discharge control method and apparatus for terminal
CN109596989B (en) Method and device for displaying electric quantity of electronic equipment and electronic equipment
JP4178141B2 (en) Charging apparatus and charging method
CN104079025A (en) System and method for extending useful life of lithium-ion and batteries of similar type
CN116365620A (en) Battery electric quantity display method and device and charge and discharge management circuit
CN113690960B (en) Lithium battery management method and device and related components
CN114498861A (en) Control method, device, equipment and storage medium of battery management system
CN117081185A (en) Charging control method, device, equipment and storage medium
US9360530B2 (en) Method and system for energy storage capacity estimation of battery cells
CN111092468A (en) Charging management module, method, device and storage medium
CN112448429A (en) Control method, terminal and computer storage medium

Legal Events

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