CN108344952B - Battery electric quantity calculation method and device - Google Patents

Battery electric quantity calculation method and device Download PDF

Info

Publication number
CN108344952B
CN108344952B CN201810162771.9A CN201810162771A CN108344952B CN 108344952 B CN108344952 B CN 108344952B CN 201810162771 A CN201810162771 A CN 201810162771A CN 108344952 B CN108344952 B CN 108344952B
Authority
CN
China
Prior art keywords
electric quantity
value
real
meter
electricity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810162771.9A
Other languages
Chinese (zh)
Other versions
CN108344952A (en
Inventor
刘玉华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Autel Intelligent Aviation Technology Co Ltd
Original Assignee
Shenzhen Autel Intelligent Aviation Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Autel Intelligent Aviation Technology Co Ltd filed Critical Shenzhen Autel Intelligent Aviation Technology Co Ltd
Priority to CN201810162771.9A priority Critical patent/CN108344952B/en
Publication of CN108344952A publication Critical patent/CN108344952A/en
Priority to PCT/CN2018/112879 priority patent/WO2019161677A1/en
Application granted granted Critical
Publication of CN108344952B publication Critical patent/CN108344952B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/382Arrangements for monitoring battery or accumulator variables, e.g. SoC
    • G01R31/3835Arrangements for monitoring battery or accumulator variables, e.g. SoC involving only voltage measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The invention relates to a battery electric quantity calculation method, which comprises the following steps: reading a first electric quantity value calculated after the electric meter is started, and taking the first electric quantity value as an offset correction value, wherein the first electric quantity value is the first electric quantity value calculated after the electric meter is started; performing offset correction on the real-time electric quantity value calculated by the electric quantity meter according to the offset correction value to obtain a second electric quantity value, wherein the second electric quantity value is smaller than or equal to the real-time electric quantity value calculated by the electric quantity meter; and displaying the second electric quantity value. The invention can prevent the situation of electric quantity jump as much as possible, thereby reducing the risk of the battery in the flight process of the airplane.

Description

Battery electric quantity calculation method and device
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of battery management, in particular to a battery electric quantity calculation method and a device thereof.
[ background of the invention ]
With the development and maturity of unmanned aerial vehicle technology, its application scene is more and more extensive. Unmanned aerial vehicle's safe flight needs intelligent electric quantity management scheme to support. The current intelligent power management scheme is mainly implemented by using chips such as BQ30Z55, BQ40Z50, and BQ34Z100 of Texas Instruments (TI) as cores and peripheral devices such as a processor. The information Of the remaining battery capacity (RSOC) is mainly provided by the capacity metering chip (i.e., the fuel gauge) Of the TI. The electricity meter is used as an important integrated chip on the battery protection board, and larger power consumption can be generated during the work of the electricity meter, so that the electricity meter can be selectively closed to reduce the overall power consumption when the battery is stored in a state of lower electric quantity.
However, after the electricity meter is turned off, the electricity meter needs to be reactivated and recalculated when the battery is used next time, and the recalculated electricity quantity is inconsistent with the electricity quantity displayed before the electricity meter is turned off due to various factors, and some electricity meters have larger difference and hop, and the generation of the hop brings risks to the flight of the unmanned aerial vehicle.
[ summary of the invention ]
In order to solve the technical problem, the embodiment of the invention provides a battery power calculation method and a battery power calculation device capable of reducing the flight risk of an unmanned aerial vehicle.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
a battery charge level calculation method, comprising:
reading a first electric quantity value calculated after the electric meter is started, and taking the first electric quantity value as an offset correction value, wherein the first electric quantity value is the first electric quantity value calculated after the electric meter is started;
performing offset correction on the real-time electric quantity value calculated by the electric quantity meter according to the offset correction value to obtain a second electric quantity value, wherein the second electric quantity value is smaller than or equal to the real-time electric quantity value calculated by the electric quantity meter;
and displaying the second electric quantity value.
In one embodiment, the offset correcting the real-time electricity value calculated by the electricity meter according to the offset correction value to obtain a second electricity value includes:
calculating a difference between the real-time electricity value calculated by the electricity meter and the offset correction value;
and comparing the difference value with zero, if the difference value is larger than zero, taking the difference value as the second electric quantity value, and otherwise, taking 0 as the second electric quantity value.
In one embodiment, after performing offset correction on the real-time electricity value calculated by the electricity meter according to the offset correction value to obtain a second electricity value, the method includes:
judging whether the real-time electric quantity value calculated by the electricity meter is smaller than or equal to a preset electric quantity threshold value or not;
if yes, updating the second electric quantity value into a real-time electric quantity value calculated by the electric quantity meter;
if not, judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, and if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
In one embodiment, after performing offset correction on the real-time electricity value calculated by the electricity meter according to the offset correction value to obtain a second electricity value, the method includes:
and judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
In one embodiment, the preset charge threshold is 7% of the remaining charge of the battery.
In one embodiment, after performing offset correction on the real-time electricity value calculated by the electricity meter according to the offset correction value to obtain a second electricity value, the method includes:
and judging whether the battery is fully charged, and if so, taking the real-time electric quantity value calculated by the electric quantity meter as a second electric quantity value.
In order to solve the above technical problems, embodiments of the present invention further provide the following technical solutions:
a battery level calculation device, comprising:
the electric quantity reading module is used for reading a first electric quantity value calculated after the electric quantity meter is started and taking the first electric quantity value as an offset correction value, wherein the first electric quantity value is a first electric quantity value calculated after the electric quantity meter is started;
the electric quantity correction module is used for carrying out offset correction on the real-time electric quantity value calculated by the electric quantity meter according to the offset correction value so as to obtain a second electric quantity value, and the second electric quantity value is smaller than or equal to the real-time electric quantity value calculated by the electric quantity meter;
and the electric quantity display module is used for displaying the second electric quantity value.
In one embodiment, the electric quantity correction module includes:
the calculating unit is used for calculating the difference value between the real-time electric quantity value calculated by the electric quantity meter and the offset correction value;
and the comparison unit is used for comparing the difference value with zero, if the difference value is larger than zero, the difference value is used as a second electric quantity value, and if not, 0 is used as the second electric quantity value.
In one embodiment, the apparatus further comprises:
a first judging module, configured to judge whether the real-time electric quantity value calculated by the electricity meter is smaller than or equal to a preset electric quantity threshold, if so, update the second electric quantity value to the real-time electric quantity value calculated by the electricity meter, and if not, the first judging module is further configured to determine whether the real-time electric quantity value calculated by the electricity meter is smaller than or equal to the preset electric quantity threshold, otherwise, update the second electric quantity value to the real-time
And judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
In one embodiment, the apparatus further comprises:
and the first judgment module is used for judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, and if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
In one embodiment, the preset charge threshold is 7% of the remaining charge of the battery.
In one embodiment, the apparatus further comprises:
and the second judgment module is used for judging whether the battery is fully charged, and if so, taking the real-time electric quantity value calculated by the electric quantity meter as a second electric quantity value.
Compared with the prior art, the battery electric quantity calculation method provided by the embodiment of the invention has the advantages that the first electric quantity value calculated after the electric quantity meter is restarted, namely the first electric quantity value, is used as the offset correction value, the offset correction is carried out on the real-time electric quantity value calculated by the electric quantity meter according to the offset correction value, the corrected second electric quantity value is displayed, and the second electric quantity value is smaller than or equal to the real-time electric quantity value calculated by the electric quantity meter, so that the electric quantity jump is prevented as far as possible, and the risk of the battery in the flight process of the airplane is reduced.
[ description of the drawings ]
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic diagram of an application environment provided by an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a method for calculating battery power according to an embodiment of the present invention;
fig. 3 is a partial flow chart of a battery power calculation method according to an embodiment of the invention;
fig. 4 is a partial flow chart of a battery power calculation method according to an embodiment of the invention;
fig. 5 is a schematic flow chart of a method for calculating battery power in a specific scenario according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a battery power calculating device according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to facilitate an understanding of the invention, the invention is described in more detail below with reference to the accompanying drawings and specific examples. It should be noted that the steps shown in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
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 invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Furthermore, the technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other. The terms "first," "second," "third," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic diagram of an application environment provided in an embodiment of the present invention. As shown in fig. 1, the application environment includes a lithium battery 10, a load 20, and an electricity meter 30.
The lithium battery 10 is a battery pack formed by arranging one or more battery cells in any form for supplying a direct current power to an electric device such as a motor. The lithium battery 10 may have a corresponding capacity, volume size, or packaging form according to the actual situation. The lithium battery 10 can be discharged or charged under controlled conditions, simulating normal operating conditions.
The load 20 is electrically connected with the lithium battery 10, and the lithium battery 10 can supply power to the load 20 to enable the load to normally operate. Load 20 can be any electronic components, functional modules, electrical equipment that need mains voltage to support work, specifically like unmanned aerial vehicle's power module etc.
The electricity meter 30 may be any type or brand of electricity metering system or chip, and calculates and determines the current electricity condition of the lithium battery by collecting corresponding data. The fuel gauge 30 may be run with one or more suitable software programs, recording data and performing calculations based on the data.
The electricity meter 30 establishes necessary electrical connections with the lithium battery 10, and the electricity meter 30 collects and acquires data of the lithium battery 10 through the electrical connections to determine the current amount of electricity of the lithium battery 10.
The first embodiment is as follows:
fig. 2 is a schematic flow chart of a method for calculating battery power according to an embodiment of the present invention. In the present embodiment, the bq3055 chip of TI (Texas Instruments) is described as an example of the coulometer, and it is understood that in other embodiments, the coulometer may also be another integrated chip having similar coulometric algorithm as the bq3055 chip, and is not limited herein.
As shown in fig. 2, the battery power calculation method includes:
step S110: reading a first electric quantity value calculated after the fuel gauge is started, and taking the first electric quantity value as an offset correction value. Since the electricity meter is normally closed when the battery is low, the calculated electricity value is forced to 0% directly after the electricity meter is closed, i.e. the battery electricity value is shown as 0%. When the charger is switched on in the meantime, so that the fuel gauge is reactivated, the first value of the electric quantity, i.e. the aforementioned first value of the electric quantity, is calculated after the fuel gauge is restarted, and the offset correction value offset is assigned to the first value of the electric quantity.
In the present embodiment, the appearing "electric quantity value" refers to the percentage of the remaining electric quantity of the battery, for example, the electric quantity value is 50%, which indicates that half of the electric quantity of the battery remains. It is understood that in other embodiments, "electric quantity value" may also be used to indicate the remaining capacity of the battery, etc., and is not strictly limited herein.
Step S120: and performing offset correction on the real-time electric quantity value calculated by the electric meter according to the offset correction value to obtain a second electric quantity value, wherein the second electric quantity value is smaller than or equal to the real-time electric quantity value calculated by the electric meter.
Specifically, after the electricity meter is restarted, the calculated electricity value of the electricity meter is generally inconsistent with the electricity value displayed before the electricity meter is turned off, and if some electricity values are different from the electricity value displayed before the electricity meter is turned off, the jump can be generated, and the jump can bring risks to the flight of the unmanned aerial vehicle. Therefore, the battery power calculation method in this embodiment needs to perform offset correction on the real-time power value calculated by the power meter with reference to the offset correction value, and ensure that the corrected second power value is less than or equal to the real-time power value calculated by the power meter.
In one embodiment, step S120 specifically includes:
calculating a difference between the real-time electricity value calculated by the electricity meter and the offset correction value;
and comparing the difference value with zero, if the difference value is larger than zero, taking the difference value as a second electric quantity value, and if not, taking 0 as the second electric quantity value.
For example, if the offset correction value is 5%, that is, the first electricity value calculated after the electricity meter is restarted is 5%, and the real-time electricity value calculated by the electricity meter at a certain time is 20% (indicating that the electricity meter is charged during the restart), the difference between the real-time electricity value calculated by the electricity meter and the offset correction value is 15%, and then 15% is displayed as the second electricity value.
In this example, the calculated first 5% of the electricity quantity after the electricity meter is restarted is not necessarily the actual electricity quantity of the battery at the time, and the real-time electricity quantity calculated by the electricity meter at a certain moment in the later charging process is certainly not 20%, and if 20% is directly displayed, the electricity quantity is jumped in the later discharging process. The adoption of the scheme of the embodiment to offset and correct the real-time electric quantity value calculated by the electric quantity meter is equivalent to setting the electric quantity value of the battery to be 0 when the electric quantity meter is restarted, so that although the electric quantity display is possibly slightly low, the risk caused by electric quantity jump is prevented as much as possible.
If the offset correction value is 5%, that is, the first electricity value calculated after the electricity meter is restarted is 5%, and the real-time electricity value calculated by the electricity meter at a certain time is 4% (it is possible to discharge all the time), 0 is directly displayed as the second electricity value.
Step S130: and displaying the second electric quantity value.
Because the displayed second electric quantity value is less than or equal to the real-time electric quantity value calculated by the electric meter, the risk caused by electric quantity jump is prevented as much as possible. For example, the real-time electric quantity value calculated by the electricity meter is 20%, but the battery may not actually have 20% of the electric quantity due to the accuracy problem of the electricity meter itself or other factors, and then the displayed second electric quantity value is certainly lower than 20% after the processing of step S130, so that the possibility of electric quantity jump can be at least reduced.
Example two:
referring to fig. 3, in an embodiment, after the step S120 in the first embodiment, the method further includes:
step S142: and judging whether the real-time electric quantity value calculated by the electric quantity meter is smaller than or equal to a preset electric quantity threshold value, if so, executing the step S152, and if not, executing the step S162.
Step S152: and updating the second electric quantity value into a real-time electric quantity value calculated by the electric meter.
Step S162: and judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, if so, executing the step S172, and if not, returning to the step S120.
Step S172: and updating and maintaining the second electric quantity value as the preset electric quantity threshold value.
Specifically, because the configuration of the bq3055 chip power algorithm may conditionally update the total battery power at a 7% power value, and if the total battery capacity is updated at a 7% power value, it is most likely to jump during the updating process, for example, jump directly from 15% power to 7%, so that the preset power threshold is 7% in this embodiment, it may be understood that, in other embodiments, the corresponding power threshold may be determined according to the power algorithm of a specific chip, and is not strictly limited herein.
For example, if the real-time electric quantity value calculated by the electric meter at a certain time is 7% and is just equal to the preset electric quantity threshold, step S152 is executed to update the second electric quantity value to the real-time electric quantity value calculated by the electric meter, and display it, which is actually equivalent to setting the previously set offset correction value to 0 at this time, that is, the offset of the electric quantity is not considered in the second electric quantity value displayed subsequently.
If the real-time electric quantity value calculated by the electricity meter at a certain time is 15% and is greater than the preset electric quantity threshold value, step S162 is executed, and if the offset correction value is 5%, the second electric quantity value calculated according to step S120 in the first embodiment is 10% and is greater than the electric quantity threshold value 7%, after step S162 is executed, step S120 is continued.
If the real-time electricity quantity value calculated by the electricity meter at a certain time is 10% and is greater than the preset electricity quantity threshold value, step S162 is executed, and if the offset correction value is 5%, the second electricity quantity value calculated according to step S120 in the first embodiment is 5% and is less than the preset electricity quantity threshold value 7%, step S172 is executed to update and reserve the second electricity quantity value as the preset electricity quantity threshold value 7%, which corresponds to the previously set offset correction value being-7% of the real-time electricity quantity value calculated by the electricity meter. Thus, the offset correction value previously set decreases as the real-time electricity value calculated by the electricity meter decreases.
Example three:
referring to fig. 4, in an embodiment, after the step S120 in the first embodiment, the method further includes:
step S144: and judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, if so, executing the step S154, and if not, returning to the step S120.
Step S154: and updating and maintaining the second electric quantity value as a preset electric quantity threshold value.
Specifically, because the configuration of the bq3055 chip power algorithm may conditionally update the total battery power at a 7% power value, and if the total battery capacity is updated at a 7% power value, it is most likely to jump during the updating process, for example, jump directly from 15% power to 7%, so that the preset power threshold is 7% in this embodiment, it may be understood that, in other embodiments, the corresponding power threshold may be determined according to the power algorithm of a specific chip, and is not strictly limited herein.
For example, if the real-time electricity value calculated by the electricity meter at a certain time is 10% and the offset correction value is 5%, and the second electricity value calculated according to step S120 in the first embodiment is 5% and is less than the preset electricity threshold value of 7%, step S154 is executed to update and maintain the second electricity value to the preset electricity threshold value of 7%, which corresponds to the previously set offset correction value of-7% of the real-time electricity value calculated by the electricity meter. Thus, the offset correction value previously set decreases as the real-time electricity value calculated by the electricity meter decreases.
If the real-time electric quantity value calculated by the electric quantity meter is 15% and the offset correction value is 5%, the second electric quantity value calculated according to the step S120 in the first embodiment is 10% and is greater than the preset electric quantity threshold value of 7%, the process returns to the step S120.
Example four:
in one embodiment, the step S120 in the first embodiment further includes:
and judging whether the battery is fully charged, and if so, taking the real-time electric quantity value calculated by the electric quantity meter as a second electric quantity value.
If the battery is fully charged, 100% of the real-time electric quantity value calculated by the fuel gauge is used as a second electric quantity value for displaying, namely the offset correction value offset is set to be 0, the battery cannot be always in a state of being not fully charged, so that the offset value is removed, and the electric quantity calculation does not consider the offset correction value any more as long as the condition that the fuel gauge is closed and restarted does not occur in the subsequent charging and discharging processes.
As shown in fig. 5, the fuel gauge is turned off when the battery capacity is low, and the display capacity C (i.e., the second capacity value) is forced to 0%. After the fuel gauge is restarted, the first electric quantity value calculated at the starting time of the fuel gauge is used as an offset correction value offset, the system performs offset correction on a real-time electric quantity value C1 calculated by the fuel gauge in real time according to the offset correction value offset, and then displays the corrected electric quantity value C, specifically: the display electricity amount C is the real-time electricity amount value C1 calculated by the electricity meter — the offset correction value offset, wherein if the calculation result of the display electricity amount C is less than or equal to 0, it is displayed at 0%. The above is a complete battery power calculation process. In the process, the offset correction value offset always exists under the condition that the total capacity of the battery is not updated subsequently, so that the displayed electric quantity C is smaller than or equal to the real-time electric quantity value calculated by the electric quantity meter, the situation of electric quantity jump can be prevented as far as possible, and the risk brought by the battery in the flight process of the airplane is reduced.
Further, in the above process, it is necessary to determine whether the battery is charged or discharged. Specifically, if the battery is not charged or discharged, the next processing is not needed, if the battery is fully charged, it is further determined whether the battery is fully charged, and if the battery is fully charged, the real-time electric quantity value 100% calculated by the fuel gauge is displayed as a second electric quantity value, that is, the offset correction value offset is set to 0, because the battery cannot be in a state of being not fully charged all the time, which is equivalent to removing the offset value, and in the subsequent charging and discharging processes, as long as the condition that the fuel gauge is turned off and then restarted does not occur, the electric quantity calculation does not consider the offset correction value any more.
If the battery does not reach a fully charged state, the offset correction value offset is considered in the charge calculation during subsequent charging and discharging, and some optimization is performed with reference to the 7% charge point. Specifically, during the discharging process, it is determined whether the real-time electricity value C1 calculated by the electricity meter is less than or equal to 7%, if so, the display electricity amount C is updated to the real-time electricity value calculated by the electricity meter, that is, the offset correction value offset is set to 0, if not, it is further determined whether the display electricity amount C is less than or equal to 7%, and if so, the display electricity amount C is updated and maintained at 7%. Thus, the offset correction value set previously decreases as the real-time electricity value calculated by the electricity meter decreases, and the offset correction value offset is equal to the real-time electricity value C1-7% calculated by the electricity meter until the offset correction value offset decreases to 0.
Example five:
referring to fig. 6, an embodiment of a battery power calculating device provided in the present invention is shown. The battery power calculating device includes: the power reading module 610, the power correcting module 620 and the power displaying module 630.
The electric quantity reading module 610 is configured to read a first electric quantity value calculated after the electric quantity meter is started, and use the first electric quantity value as an offset correction value, where the first electric quantity value is a first electric quantity value calculated after the electric quantity meter is started. The electric quantity correction module 620 is configured to perform offset correction on the real-time electric quantity value calculated by the electric quantity meter according to the offset correction value to obtain a second electric quantity value. The electric quantity display module 630 is configured to display the second electric quantity value.
Specifically, the electricity amount correction module 620 may include a calculation unit for calculating a difference between the real-time electricity amount value calculated by the electricity meter and the offset correction value; and the comparison unit is used for comparing the difference value with zero, if the difference value is larger than zero, the difference value is used as a second electric quantity value, and if not, 0 is used as the second electric quantity value.
Further, in an embodiment, the battery power calculating apparatus further includes a first determining module, configured to determine whether a real-time power value calculated by the power meter is smaller than or equal to a preset power threshold, if so, update the second power value to the real-time power value calculated by the power meter, if not, the first determining module is further configured to determine whether the second power value is smaller than or equal to the preset power threshold, and if so, update and maintain the second power value to the preset power threshold.
Further, in an embodiment, the battery power calculating device further includes a first determining module, configured to determine whether the second power value is smaller than or equal to a preset power threshold, and if so, update and maintain the second power value as the preset power threshold.
In the above embodiment, the preset charge threshold is 7% of the remaining charge of the battery.
Further, in an embodiment, the battery power calculating device further includes a second determining module, configured to determine whether the battery is fully charged, and if so, take a real-time power value calculated by the power meter as a second power value.
It should be noted that, the method embodiment and the apparatus embodiment are implemented based on the same inventive concept, and technical effects and technical features that the method embodiment can have can be executed or implemented by corresponding functional modules in the apparatus embodiment, which are not described herein for simplicity and convenience of presentation.
Example six:
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device can be used as a hardware basis for the electricity meter 30 in fig. 1 and/or a peripheral device to execute the battery charge calculation method provided by the above method embodiment. As shown in fig. 7, the electronic device 70 includes one or more processors 701 and a memory 702. In fig. 7, one processor 701 is taken as an example. The electronic device may further comprise an output means 703. Of course, other suitable device modules may be added or omitted as the actual situation requires.
The processor 701, the memory 702, and the output device 703 may be connected by a bus or other means, and fig. 7 illustrates the bus connection as an example.
The memory 702 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions or modules corresponding to the battery power calculation method in the embodiment of the present invention, for example, the power reading module 610 and the power modification module 620 shown in fig. 6, and the output device 703 in the electronic device can be directly replaced by the display module 630 mentioned in the above embodiment. The processor 701 executes various functional applications of the server and data processing, i.e., implements the battery level calculation method of the above-described method embodiment, by running the nonvolatile software program, instructions, and modules stored in the memory 702.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store some historical data calculated by the electricity meter, and the like. Further, the memory 702 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, the memory 702 may optionally include memory located remotely from the processor 701, examples of which include, but are not limited to, the internet, an intranet, a local area network, a mobile communications network, and combinations thereof.
Those of skill would further appreciate that the various steps of the exemplary motor control methods described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation.
Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. The computer software may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, 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 present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A battery power calculation method, comprising:
when the fuel gauge is shut down and restarted under the condition that the battery power is low, reading a first power value calculated after the fuel gauge is started, and taking the first power value as an offset correction value, wherein the first power value is a first power value calculated after the fuel gauge is started;
offset correcting the real-time electric quantity value calculated by the electric quantity meter according to the offset correction value to obtain a second electric quantity value, wherein the offset correcting comprises the following steps: calculating a difference between the real-time electricity value calculated by the electricity meter and the offset correction value; comparing the difference value with zero, if the difference value is larger than zero, taking the difference value as the second electric quantity value, otherwise, taking 0 as the second electric quantity value; the second electric quantity value is smaller than or equal to a real-time electric quantity value calculated by the electric quantity meter;
and displaying the second electric quantity value.
2. The method of claim 1, wherein after performing offset correction on the real-time electricity value calculated by the electricity meter according to the offset correction value to obtain a second electricity value, the method comprises:
judging whether the real-time electric quantity value calculated by the electricity meter is smaller than or equal to a preset electric quantity threshold value or not;
if yes, updating the second electric quantity value into a real-time electric quantity value calculated by the electric quantity meter;
if not, judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, and if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
3. The method of claim 1, wherein after performing offset correction on the real-time electricity value calculated by the electricity meter according to the offset correction value to obtain a second electricity value, the method comprises:
and judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
4. A method according to claim 2 or 3, wherein the preset charge threshold is 7%.
5. The method according to any one of claim 1, wherein after performing offset correction on the real-time electricity value calculated by the electricity meter according to the offset correction value to obtain a second electricity value, the method comprises:
and judging whether the battery is fully charged, and if so, taking the real-time electric quantity value calculated by the electric quantity meter as a second electric quantity value.
6. A battery level calculating device, comprising:
the electric quantity reading module is used for reading a first electric quantity value calculated after the electric quantity meter is started after the electric quantity meter is closed and restarted under the condition that the electric quantity of the battery is low, and taking the first electric quantity value as an offset correction value, wherein the first electric quantity value is the first electric quantity value calculated after the electric quantity meter is started;
electric quantity correction module includes: a calculation unit and a comparison unit;
the calculating unit is used for calculating the difference value between the real-time electric quantity value calculated by the electric quantity meter and the offset correction value;
the comparison unit is used for comparing the difference value with zero, if the difference value is larger than zero, the difference value is used as a second electric quantity value, otherwise, 0 is used as the second electric quantity value, and the second electric quantity value is smaller than or equal to the real-time electric quantity value calculated by the electric quantity meter;
and the electric quantity display module is used for displaying the second electric quantity value.
7. The apparatus of claim 6, further comprising:
a first judging module, configured to judge whether the real-time electric quantity value calculated by the electricity meter is smaller than or equal to a preset electric quantity threshold, if so, update the second electric quantity value to the real-time electric quantity value calculated by the electricity meter, and if not, the first judging module is further configured to determine whether the real-time electric quantity value calculated by the electricity meter is smaller than or equal to the preset electric quantity threshold, otherwise, update the second electric quantity value to the real-time
And judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
8. The apparatus of claim 6, further comprising:
and the first judgment module is used for judging whether the second electric quantity value is smaller than or equal to a preset electric quantity threshold value, and if so, updating and keeping the second electric quantity value as the preset electric quantity threshold value.
9. The apparatus of claim 7 or 8, wherein the preset charge threshold is 7%.
10. The apparatus of any one of claims 6, further comprising:
and the second judgment module is used for judging whether the battery is fully charged, and if so, taking the real-time electric quantity value calculated by the electric quantity meter as a second electric quantity value.
CN201810162771.9A 2018-02-26 2018-02-26 Battery electric quantity calculation method and device Active CN108344952B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810162771.9A CN108344952B (en) 2018-02-26 2018-02-26 Battery electric quantity calculation method and device
PCT/CN2018/112879 WO2019161677A1 (en) 2018-02-26 2018-10-31 Battery level calculation method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810162771.9A CN108344952B (en) 2018-02-26 2018-02-26 Battery electric quantity calculation method and device

Publications (2)

Publication Number Publication Date
CN108344952A CN108344952A (en) 2018-07-31
CN108344952B true CN108344952B (en) 2021-07-09

Family

ID=62959938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810162771.9A Active CN108344952B (en) 2018-02-26 2018-02-26 Battery electric quantity calculation method and device

Country Status (2)

Country Link
CN (1) CN108344952B (en)
WO (1) WO2019161677A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108344952B (en) * 2018-02-26 2021-07-09 深圳市道通智能航空技术股份有限公司 Battery electric quantity calculation method and device
CN109581245A (en) * 2018-11-30 2019-04-05 中国航空工业集团公司沈阳飞机设计研究所 A kind of aircraft electric load statistics and power supply capacity analysis method and system
CN109541492B (en) * 2018-12-03 2021-11-09 郑州云海信息技术有限公司 Method, device and equipment for determining residual electric quantity of power supply and readable storage medium

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4080859B2 (en) * 2002-12-11 2008-04-23 松下電器産業株式会社 Secondary battery remaining capacity calculation device and remaining capacity calculation method thereof
CN102866357B (en) * 2011-07-06 2014-12-31 珠海全志科技股份有限公司 System and method for measuring electric quantity of battery
US9146280B2 (en) * 2011-10-26 2015-09-29 Industrial Technology Research Institute Method and system for estimating a capacity of a battery
CN102375127B (en) * 2011-11-11 2014-01-08 深圳市中兴移动通信有限公司 Method for displaying residual battery electricity quantity of mobile terminal
CN102590756B (en) * 2012-02-14 2015-01-07 深圳市沛城电子科技有限公司 Method and device for battery capacity detection
CN103792489B (en) * 2013-11-22 2017-03-22 广州视源电子科技股份有限公司 Improved method for measuring and calculating system battery capacity
CN103675701B (en) * 2013-11-29 2016-08-24 宇龙计算机通信科技(深圳)有限公司 The method for correcting of a kind of battery dump energy and device
CN105403835B (en) * 2014-08-29 2018-11-16 展讯通信(深圳)有限公司 A kind of system and method measuring battery capacity
CN104330739B (en) * 2014-10-22 2018-06-08 常州格力博有限公司 Lithium battery SOC computational methods
JP2017003471A (en) * 2015-06-11 2017-01-05 シャープ株式会社 Protection circuit, battery pack, protection program, computer-readable recording medium, and method of driving protection circuit
CN105259508A (en) * 2015-10-14 2016-01-20 惠州Tcl移动通信有限公司 Terminal and method for calculating initial electric energy thereof
CN106814317B (en) * 2015-11-27 2021-08-24 西安中兴新软件有限责任公司 Mobile terminal and mobile terminal electric quantity display method based on charging habit
CN105842632A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 Data processing method and apparatus
CN107561446A (en) * 2016-07-01 2018-01-09 中兴通讯股份有限公司 A kind of terminal battery electricity quantity computational methods and device
CN106740131B (en) * 2016-12-20 2019-11-29 山东元齐新动力科技有限公司 The monitoring method of electric quantity of batteries of electric vehicle, apparatus and system, monitoring server
CN107571747B (en) * 2017-07-07 2020-06-16 北汽福田汽车股份有限公司 Smooth control method and device of SOC (System on chip), battery management system and vehicle
CN107643493A (en) * 2017-09-15 2018-01-30 深圳市道通智能航空技术有限公司 A kind of battery electric quantity predictor method and device, unmanned plane
CN107703458B (en) * 2017-10-17 2020-03-24 北汽福田汽车股份有限公司 Method and device for correcting residual electric quantity of power battery, vehicle and storage medium
CN108344952B (en) * 2018-02-26 2021-07-09 深圳市道通智能航空技术股份有限公司 Battery electric quantity calculation method and device

Also Published As

Publication number Publication date
WO2019161677A1 (en) 2019-08-29
CN108344952A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
BR102018002893B1 (en) SERVER FOR LOAD-UNLOAD SYSTEM, LOAD-DISCHARGE SYSTEM, AND SERVER CONTROL METHOD
CN108344952B (en) Battery electric quantity calculation method and device
EP3510688B1 (en) Apparatus and method for battery management
US20150372514A1 (en) Electric storage device and deterioration determination method
CN109188296B (en) BBU electric quantity verification method, device, terminal and FCC calculation method
CN104749528B (en) Dynamic lithium battery capacity determining methods
CN109307844A (en) A kind of evaluation method and device of lithium battery SOC
CN112018463B (en) Battery charging method, device, equipment and medium
EP4152022B1 (en) Method for determining full-charge capacity of battery pack, method for determining state of health of battery pack, system, and apparatus
CN113589174A (en) Method and device for predicting consistency of battery cells of lithium ion power battery system
CN111301219A (en) Electric vehicle battery control method, system, device and readable storage medium
CN113484763A (en) Method, device, equipment and storage medium for determining residual electric quantity of battery
CN108919132B (en) Method and device for tracking overdischarge of battery, chip, battery and aircraft
CN108021735B (en) Battery simulation method, upper computer, real-time simulator and battery simulation system
CN112994185A (en) Charging control method and device, electronic device and storage medium
CN108535657B (en) Unmanned aerial vehicle battery safety protection method and device thereof
CN114750638A (en) Power battery current control method and device, electric vehicle and storage medium
CN114675193B (en) Allowable power estimation method, battery management system and storage medium
KR101342529B1 (en) Energy storage system controller, method and computer readable recording medium thereof
CN113013935A (en) Control method and system of power supply device, terminal equipment and storage medium
CN114325415B (en) Verification method, device and medium for lithium battery electric quantity
CN117783731B (en) Method, device and terminal for monitoring health state of power supply and utilization system of commercial vehicle
CN110286328B (en) Battery pack simulation power input control method and equipment
CN116424155A (en) Battery charge state determining method, device, equipment, medium and vehicle
CN115015806A (en) Battery cell short circuit judgment method and device and 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
CB02 Change of applicant information

Address after: 518055 Shenzhen, Guangdong, Nanshan District Xili street, No. 1001, Zhiyuan Road, B1 9.

Applicant after: Shenzhen daotong intelligent Aviation Technology Co.,Ltd.

Address before: 518055 Shenzhen, Guangdong, Nanshan District Xili street, No. 1001, Zhiyuan Road, B1 9.

Applicant before: AUTEL ROBOTICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant