CN109103518B - Battery capacity updating method and system - Google Patents

Battery capacity updating method and system Download PDF

Info

Publication number
CN109103518B
CN109103518B CN201810779200.XA CN201810779200A CN109103518B CN 109103518 B CN109103518 B CN 109103518B CN 201810779200 A CN201810779200 A CN 201810779200A CN 109103518 B CN109103518 B CN 109103518B
Authority
CN
China
Prior art keywords
battery
state
timing
electric quantity
preset
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
CN201810779200.XA
Other languages
Chinese (zh)
Other versions
CN109103518A (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 Waterward Software Technology Co ltd
Original Assignee
Shenzhen Water World 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 Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN201810779200.XA priority Critical patent/CN109103518B/en
Publication of CN109103518A publication Critical patent/CN109103518A/en
Application granted granted Critical
Publication of CN109103518B publication Critical patent/CN109103518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M10/4257Smart batteries, e.g. electronic circuits inside the housing of the cells or batteries
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/48Accumulators combined with arrangements for measuring, testing or indicating the condition of cells, e.g. the level or density of the electrolyte
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4271Battery management systems including electronic circuits, e.g. control of current or voltage to keep battery in healthy state, cell balancing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

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

Abstract

The invention provides a battery capacity updating method, which is applied to a device terminal, and is characterized in that when the battery power percentage is detected to be 100% and the battery is not charged, timing is started, the battery state is monitored in real time in the timing process, when the battery power percentage is detected to be 0% and no charging record is recorded from the timing starting moment, the timing is stopped, and the calculus calculation is carried out by a formula Q ═ I × t, wherein I is the current in the timing cycle, and t is a preset time interval; and counting the total electric quantity consumed in the timing process, and setting the counted total electric quantity as the new battery capacity of the battery. By the method, the battery data can be updated in real time, and the change of the battery state can be correctly reflected, so that the compatibility of the battery and the equipment is improved, and the use experience of the equipment is optimized.

Description

Battery capacity updating method and system
Technical Field
The present invention relates to the field of battery capacity detection, and in particular, to a method and a system for updating battery capacity.
Background
Traditionally, the optimization method of battery use experience is to find several samples on the same project and then perform targeted optimization to obtain a standard battery curve and battery capacity. However, due to the differences of the circuits, the batteries, the components and even the wiring manner, and the aging of the batteries, the different machines have different differences, which leads to the following problems: (1) the effect of the software matched with the equipment A on the equipment B of the same item is unsatisfactory; (2) the use experience of the software originally matched with the device A after the battery is aged is poor; (3) the software originally matching the device a is not experienced well after the battery is replaced. A large part of the reasons for this is that after a period of use, the originally set standard battery data is no longer accurate with the change of the battery state, so that the compatibility between the battery and the device is problematic, and a good use experience cannot be obtained. In view of the above disadvantages, the present invention provides a method and a system for updating battery capacity, which can update battery data in real time, correctly reflect the change of battery status, and improve compatibility with devices.
Disclosure of Invention
The invention mainly aims to provide a method and a system for updating battery capacity, which are used for updating battery capacity data in real time according to the service condition of a battery and improving the compatibility between the battery and equipment.
The invention provides a battery capacity updating method, which is applied to a device terminal and comprises the following steps:
judging whether the current battery state is a preset starting state or not;
if the starting state is preset, starting timing;
in the timing process, monitoring whether the battery state reaches a preset end state in real time;
if the preset ending state is reached, stopping timing, and counting the total electric quantity consumed by the battery in the timing process;
and updating the battery capacity according to the sum of the electric quantity.
Further, the step of determining whether the current battery state is a preset starting state includes:
judging whether the current electric quantity percentage of the battery is 100%;
if the current state is 100%, judging whether the battery is in a charging state;
and if the battery is not in the charging state, judging that the current battery state is a preset starting state.
Further, the step of monitoring whether the battery state reaches a preset end state in real time includes:
judging whether the percentage of the electric quantity of the battery is 0%;
if so, judging whether a charging record exists between the time of starting timing and the corresponding time when the electric quantity percentage is 0%;
and if no charging record exists, judging that the corresponding battery state is a preset end state when the battery electric quantity percentage is 0%.
Further, the timing process includes a plurality of timing cycles, the timing cycles are composed of preset time intervals, and the step of counting the total amount of electricity consumed by the battery includes:
counting each electric quantity Q consumed by the battery in each timing cycle by the following formula:
q ═ I × t, where I is the current in the clocked cycle and t is the preset time interval;
summing all the electric quantities consumed by the batteries in all the timing cycles to obtain the electric quantity sum;
and recording the sum of the electric quantity.
Further, the step of updating the battery capacity according to the sum of the electric quantity comprises:
reading the recorded electric quantity sum;
the sum of the electric quantity is set as the battery capacity corresponding to the battery electric quantity percentage of 100%.
The invention also provides a battery capacity updating system, which comprises:
the judging module is used for judging whether the current battery state is a preset starting state or not;
the timing module is used for starting timing if the starting state is preset;
the monitoring module is used for monitoring whether the battery state reaches a preset ending state in real time in the timing process;
the counting module is used for stopping timing if the preset ending state is reached and counting the total electric quantity consumed by the battery in the timing process;
and the updating module is used for updating the battery capacity according to the sum of the electric quantity.
Further, the judging module includes:
the first judgment unit is used for judging whether the current electric quantity percentage of the battery is 100 percent;
the second judging unit judges whether the battery is in a charging state if the battery is 100 percent;
and the first judging unit is used for judging that the current battery state is a preset starting state if the battery is not in the charging state.
Further, the listening module comprises:
a third judging unit for judging whether the battery power percentage is 0%;
the fourth judging unit is used for judging whether a charging record exists between the starting timing moment and the corresponding moment when the battery electric quantity percentage is 0% if the charging record exists;
and the second judging unit is used for judging that the corresponding battery state is a preset end state when the battery electric quantity percentage is 0% if no charging record exists.
Further, the statistics module includes:
the counting unit is used for counting each electric quantity Q consumed by the battery in each timing cycle through the following formula:
q ═ I × t, where I is the current in the clocked cycle and t is the preset time interval;
the summing unit is used for summing all the electric quantities consumed by the batteries in all the timing cycles to obtain electric quantity sum;
and the recording unit is used for recording the sum of the electric quantity.
Further, an update module, comprising:
the reading unit is used for reading the recorded electric quantity sum;
and the setting unit is used for setting the sum of the electric quantity as the battery capacity corresponding to the battery electric quantity percentage of 100%.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a battery capacity updating method, which is applied to a device terminal, and is characterized in that when the battery capacity percentage is detected to be 100% and the battery is not charged, timing is started, the battery state is monitored in real time in the timing process, when the battery capacity percentage is detected to be 0% and no charging record is recorded from the starting timing moment, the timing is stopped, the total electric quantity consumed in the timing process is counted through a formula Q-I multiplied by t, and the counted total electric quantity is set as the new battery capacity of the battery. By the method, the battery data can be updated in real time, and the change of the battery state can be correctly reflected, so that the compatibility of the battery and the equipment is improved, and the use experience of the equipment is optimized.
Drawings
Fig. 1 is a schematic flowchart illustrating steps of a battery capacity updating method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating step S1 of the battery capacity updating method according to the second embodiment of the present invention.
Fig. 3 is a flowchart illustrating step S3 of the battery capacity updating method according to the third embodiment of the present invention.
Fig. 4 is a flowchart illustrating step S4 of the battery capacity updating method according to the fourth embodiment of the present invention.
Fig. 5 is a flowchart illustrating step S5 of the battery capacity updating method according to the fifth embodiment of the present invention.
Fig. 6 is a schematic block diagram of a battery capacity update system according to a first embodiment of the present invention.
Fig. 7 is a block diagram of a determination module of a battery capacity update system according to a second embodiment of the present invention.
Fig. 8 is a block diagram of a monitoring module according to a third embodiment of the battery capacity update system of the present invention.
Fig. 9 is a block diagram of a statistical module of a battery capacity update system according to a fourth embodiment of the present invention.
Fig. 10 is a block diagram of a module frame of a refresh module according to a fifth embodiment of the battery capacity refresh system of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly, and the connection may be a direct connection or an indirect connection.
In addition, the descriptions related to "first", "second", etc. in the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for updating battery capacity, which is applied to a device terminal, and includes:
s1: judging whether the current battery state is a preset starting state or not;
s2: if the starting state is preset, starting timing;
s3: in the timing process, monitoring whether the battery state reaches a preset end state in real time;
s4: if the preset ending state is reached, stopping timing, and counting the total electric quantity consumed by the battery in the timing process;
s5: and updating the battery capacity according to the sum of the electric quantity.
In the step S1 of determining whether the current battery status is the preset starting status, the user sets a starting status in the device in advance as a starting point for counting the power consumption of the battery, and in some embodiments, the preset starting status refers to a status where both conditions that the percentage of the power of the battery is 100% and the battery is not in the charging state are satisfied. Only when the percentage of the battery capacity is 100%, the battery capacity is taken as a starting point of the statistics, and the battery capacity consumption counted by updating the battery capacity data is accurate, so that a complete battery capacity data can be obtained. Only when the battery is not in a charging state, namely no external electric quantity is charged for the battery, the statistics of the consumption of the electric quantity of the battery is meaningful, otherwise, the electric quantity of the battery is replenished all the time while being consumed, the total consumption of the counted electric quantity of the battery is larger than the actual capacity of the battery, and the accurate capacity of the battery cannot be obtained. In some embodiments, whether the battery is being charged is determined by detecting whether the USB port is in an active state.
In step S2, if the above-mentioned state is the preset starting state, a timing is started when the percentage of battery power is detected to be 100% and the battery is not in the charging state, and a timing is started to record the time of the subsequent battery power consumption statistics for the subsequent calculation. The timing includes one or more timing cycles consisting of a predetermined time interval, and in some embodiments, the time interval of one timing cycle is set to 10s, i.e., each 10s goes from the previous timing cycle to the next timing cycle, and finally the whole timing process may include one or more timing cycles, i.e., one or more 10 s. The timing is performed by adopting the timing cycle, because in the process of battery power consumption, the battery power is not stably consumed at a certain rate, but is in continuous variation, that is, the current magnitude is continuously varied, the consumption rate at this moment may be completely different from the consumption rate at the next moment, the whole process from the battery power percentage consumption of 100% to the battery power percentage of 0% cannot calculate the power consumption through a uniform constant function, the power consumption can only be calculated by micro-integration according to the power calculation formula Q ═ I × t, and when the time t is sufficiently small, the current I can be regarded as a constant at this moment and is not varied. The current of one timing cycle corresponds to I in the calculation formula, and the time of one timing cycle corresponds to t in the calculation formula, so that the sum of the electric quantity consumed by the battery from 100% of the electric quantity to 0% of the electric quantity can be accurately obtained through the sum of the electric quantity consumed by a plurality of timing cycles.
In the above timing process, in step S3 of monitoring whether the battery status reaches the preset end status in real time, the user sets an end status in the device in advance as an end point of counting the power consumption of the battery, in some embodiments, the preset end status refers to that the battery power percentage is 0%, and there is no charging record from the beginning of timing to the detection that the battery power percentage is 0%. At this time, even if the percentage of battery charge is detected to be 0%, since the presence of the uncharged mark is detected, that is, the charging record exists between the time when the timing is started and the time when the percentage of battery charge is detected to be 0%, the power consumption data corresponding to the actual battery capacity cannot be counted, and the subsequent step of counting the total power consumed by the battery is not performed.
In the step S4 of stopping timing and counting the total amount of power consumed during the battery timing process if the preset end state is reached, if it is detected that the percentage of power of the battery is 0%, and no charging record exists from the start of timing to the detection that the percentage of power of the battery is 0%, it indicates that the battery has consumed from 100% to 0% and no external power is replenished midway, and the condition of calculating the capacity of the complete battery is satisfied, and the total amount of power consumed by the battery can be counted. In some embodiments, during the timing process, after each timing cycle is ended, the consumed electric quantities of each timing cycle are counted, and then the sum of the consumed electric quantities of all timing cycles before the current timing cycle is added to obtain a new sum of the consumed electric quantities. For example, after the timing is started and the first timing cycle is finished, the electric quantity consumed by the first timing cycle is counted, and the counted electric quantity consumed by the first timing cycle is recorded; after the second timing cycle is finished, counting the electric quantity consumed by the second timing cycle, adding the electric quantity consumed by the first timing cycle recorded before to obtain an electric quantity sum, recording the electric quantity sum, and then repeating the third timing cycle, the fourth timing cycle and the last timing cycle to obtain a final electric quantity sum. In other embodiments, after each timing cycle is finished, the amount of power consumed in the timing cycle is counted, the amount of power consumed in the timing cycles is recorded, and after the timing is stopped, the recorded amounts of power consumed in all timing cycles are summed to obtain a final total amount of power consumed.
In the above step S5 of updating the battery capacity according to the total amount of electricity, after counting the total amount of electricity consumed from 100% of the battery capacity to 0% of the battery capacity, the counted total amount of electricity is read and updated to the latest battery capacity. After the battery capacity is updated, the battery capacity recorded data is consistent with the actual data, and in the using process, the compatibility of the battery and the equipment is improved, and the using experience of the equipment is optimized.
As shown in fig. 2, in some embodiments, the step S1 of determining whether the current battery status is the preset starting status includes:
s11: judging whether the current electric quantity percentage of the battery is 100%;
s12: if the current state is 100%, judging whether the battery is in a charging state;
s13: and if the battery is not in the charging state, judging that the current battery state is a preset starting state.
In the step S11 of determining whether the current percentage of battery capacity is 100%, only when the battery capacity percentage is 100%, the battery capacity consumption counted by updating the battery capacity data is accurate as the starting point of the statistics, and a complete battery capacity data can be obtained from the battery capacity percentage of 100% to the battery capacity percentage of 0%.
In the step S12 of determining whether the battery is in a charging state if the current is 100%, in some embodiments, it is determined whether the battery is in a charging state by detecting whether the USB port is in an operating state, and it is meaningful to count the consumption of the battery power only when the battery is not in the charging state, i.e., no external power is supplied to charge the battery, otherwise the battery power is consumed and is replenished all the time, and the total amount of the counted battery power consumption is greater than the actual battery capacity, and an accurate battery capacity cannot be obtained.
In the step S13, if the battery is not in the charging state, the current battery state is determined to be the preset starting state, after the two determinations, that is, the preset starting state refers to a state where the percentage of battery power is 100% and both conditions that the battery is not in the charging state are satisfied, the state is used as the starting point of counting the battery power consumption, so as to update the battery capacity data.
As shown in fig. 3, in some embodiments, the step S3 of monitoring whether the battery status reaches the preset end status in real time includes:
s31: judging whether the percentage of the electric quantity of the battery is 0%;
s32: if yes, judging whether a charging record exists between the time of starting timing and the time corresponding to the time when the electric quantity is 0%;
s33: and if no charging record exists, judging that the corresponding battery state is a preset end state when the battery electric quantity percentage is 0%.
In the step S31 of determining whether the percentage of battery power is 0%, the battery power consumption counted as the updated battery capacity data is accurate only when the percentage of battery power is 0%, and a complete battery capacity data can be obtained from the battery power consumption of 100% to the battery power consumption of 0%.
In step S32, if the charging record exists between the time when the timer is started and the time corresponding to the amount of electricity being 0%, in some embodiments, an uncharged flag is set up when the timer is started when a preset starting state is detected, the battery is monitored in real time during the timer, and if the battery is detected to be in a charged state during the timer, the uncharged flag set up before the timer is covered by the chargeable flag, and the timer is stopped. At this time, even if the percentage of battery charge is detected to be 0%, since the presence of the uncharged mark is detected, that is, the charging record exists between the time when the timing is started and the time when the percentage of battery charge is detected to be 0%, the power consumption data corresponding to the actual battery capacity cannot be counted, and the subsequent step of counting the total power consumed by the battery is not performed.
In the step S33, if there is no charging record, it is determined that the corresponding battery status is the preset end status when the battery power percentage is 0%, that is, the preset end status refers to the status that there is no charging record from the beginning of timing to the detection that the battery power percentage is 0%, and this status is used as the end point of the statistical battery power consumption, so as to update the battery capacity data.
As shown in fig. 4, in some embodiments, the timing process includes a plurality of timing cycles, each timing cycle is composed of a preset time interval, and the step S4 of counting the total amount of power consumed by the battery includes:
s41: counting each electric quantity Q consumed by the battery in each timing cycle by the following formula:
q ═ I × t, where I is the current in the clocked cycle and t is the preset time interval;
s42: summing all the electric quantities consumed by the batteries in all the timing cycles to obtain the electric quantity sum;
s43: and recording the sum of the electric quantity.
Each amount of electricity Q consumed by the battery in each timing cycle is counted by the following formula: in step S41, where I is the current in the timing cycle and t is the preset time interval, when it is detected that the percentage of battery charge is 100% and the battery is not in a charged state, a timing is started and the subsequent battery charge consumption statistics are recorded for subsequent calculation. The timing includes one or more timing cycles consisting of a predetermined time interval, and in some embodiments, the time interval of one timing cycle is set to 10s, i.e., each 10s goes from the previous timing cycle to the next timing cycle, and finally the whole timing process may include one or more timing cycles, i.e., one or more 10 s. The timing is performed by adopting the timing cycle, because in the process of battery power consumption, the battery power is not stably consumed at a certain rate, but is in continuous variation, that is, the current magnitude is continuously varied, the consumption rate at this moment may be completely different from the consumption rate at the next moment, the whole process from the battery power percentage consumption of 100% to the battery power percentage of 0% cannot calculate the power consumption through a uniform constant function, the power consumption can only be calculated by micro-integration according to the power calculation formula Q ═ I × t, and when the time t is sufficiently small, the current I can be regarded as a constant at this moment and is not varied. The current in one timing cycle corresponds to I in the calculation formula, and the time of one timing cycle corresponds to t in the calculation formula, so that the sum of the electric quantity consumed by the battery from 100% to 0% can be accurately obtained through the sum of the electric quantity consumed by a plurality of timing cycles.
In the step S42 of summing the electric quantities consumed by the battery in each timing cycle to obtain the sum of the electric quantities, in some embodiments, in the timing process, after each timing cycle is ended, the electric quantities consumed in each timing cycle are counted, and then the sum of the electric quantities consumed in all timing cycles before the current timing cycle is added to obtain a new sum of the electric quantities. For example, after the timing is started and the first timing cycle is finished, the electric quantity consumed by the first timing cycle is counted, and the counted electric quantity consumed by the first timing cycle is recorded; after the second timing cycle is finished, counting the electric quantity consumed by the second timing cycle, adding the electric quantity consumed by the first timing cycle recorded before to obtain an electric quantity sum, recording the electric quantity sum, and then repeating the third timing cycle, the fourth timing cycle and the last timing cycle to obtain a final electric quantity sum. In other embodiments, after each timing cycle is finished, the amount of power consumed in the timing cycle is counted, the amount of power consumed in the timing cycles is recorded, and after the timing is stopped, the recorded amounts of power consumed in all timing cycles are summed to obtain a final total amount of power consumed.
In the step S43 of recording the sum of electric energy, after the sum of electric energy consumed in the whole timing process is counted, the sum of electric energy is recorded, and in some embodiments, the sum of electric energy recorded before the battery is saved so as to grasp the battery capacity change of the battery, thereby knowing the battery usage.
As shown in fig. 5, the step S5 of updating the battery capacity according to the sum of the electric quantity includes:
s51: reading the recorded electric quantity sum;
s52: the sum of the electric quantity is set as the battery capacity corresponding to the battery electric quantity percentage of 100%.
In the step S51 of reading the recorded electric quantity sum, the electric quantity sum recorded by the battery is read, and if there are a plurality of different electric quantity sum data, the latest electric quantity sum is read.
In the step S52 of setting the total quantity of electricity as the battery capacity corresponding to the battery electricity percentage of 100%, after reading the latest total quantity of electricity recorded by the battery, the total quantity of electricity is set as the current battery capacity of the battery, and the original standard battery capacity is replaced, so that the recorded capacity of the battery is consistent with the actual capacity of the battery, the compatibility between the battery and the device is improved, and the use experience of the device is optimized.
In summary, the present invention provides a method for updating battery capacity, which is applied to a device terminal, and when the percentage of battery capacity is detected to be 100% and no charging is performed, the method starts timing, monitors the battery state in real time during the timing process, stops timing when the percentage of battery capacity is detected to be 0% and no charging record is recorded from the timing, counts the total amount of power consumed during the timing process by using a calculus formula, and sets the counted total amount of power as the new battery capacity of the battery. By the method, the battery data can be updated in real time, and the change of the battery state can be correctly reflected, so that the compatibility of the battery and the equipment is improved, and the use experience of the equipment is optimized.
As shown in fig. 6, an embodiment of the present invention further provides a battery capacity updating system, including:
the judging module 10 is used for judging whether the current battery state is a preset starting state or not;
the timing module 20 is used for starting timing if the starting state is preset;
the monitoring module 30 is used for monitoring whether the battery state reaches a preset ending state in real time in the timing process;
the counting module 40 is used for stopping timing if the preset ending state is reached, and counting the total electric quantity consumed by the battery in the timing process;
and the updating module 50 is used for updating the battery capacity according to the sum of the electric quantity.
In the above-mentioned determining module 10, a starting state is preset in the device by the user as a starting point for counting the power consumption of the battery, and in some embodiments, the preset starting state refers to a state where both conditions that the percentage of the power of the battery is 100% and the battery is not in a charging state are satisfied. Only when the percentage of the battery capacity is 100%, the battery capacity is taken as a starting point of the statistics, and the battery capacity consumption counted by updating the battery capacity data is accurate, so that a complete battery capacity data can be obtained. Only when the battery is not in a charging state, namely no external electric quantity is charged for the battery, the statistics of the consumption of the electric quantity of the battery is meaningful, otherwise, the electric quantity of the battery is replenished all the time while being consumed, the total consumption of the counted electric quantity of the battery is larger than the actual capacity of the battery, and the accurate capacity of the battery cannot be obtained.
In the timing module 20, when the percentage of the battery power is detected to be 100% and the battery is not in a charging state, a timing is started to record the time of the subsequent battery power consumption statistics for subsequent calculation. The timing includes one or more timing cycles consisting of a predetermined time interval, and in some embodiments, the time interval of one timing cycle is set to 10s, i.e., each 10s goes from the previous timing cycle to the next timing cycle, and finally the whole timing process may include one or more timing cycles, i.e., one or more 10 s. The timing is performed by adopting the timing cycle, because in the process of battery power consumption, the battery power is not stably consumed at a certain rate, but is in continuous variation, that is, the current magnitude is continuously varied, the consumption rate at this moment may be completely different from the consumption rate at the next moment, the whole process from the battery power percentage consumption of 100% to the battery power percentage of 0% cannot calculate the power consumption through a uniform constant function, the power consumption can only be calculated by micro-integration according to the power calculation formula Q ═ I × t, and when the time t is sufficiently small, the current I can be regarded as a constant at this moment and is not varied. The time of one timing cycle corresponds to the t in the calculation formula, so that the sum of the electric quantity consumed by the battery from 100% to 0% can be accurately obtained through the sum of the electric quantity consumed by a plurality of timing cycles.
In the monitoring module 30, a user presets an ending state in the device as an end point of counting the power consumption of the battery, in some embodiments, the preset ending state refers to that the power percentage of the battery is 0%, and there is no charging record from the beginning of timing to the detection that the power percentage of the battery is 0%. At this time, even if the percentage of battery charge is detected to be 0%, since the presence of the uncharged mark is detected, that is, the charging record exists between the time when the timing is started and the time when the percentage of battery charge is detected to be 0%, the power consumption data corresponding to the actual battery capacity cannot be counted, and the subsequent step of counting the total power consumed by the battery is not performed.
In the above statistical module 40, if it is detected that the percentage of battery power is 0%, and there is no charging record from the beginning of timing to the detection that the percentage of battery power is 0%, it indicates that the battery has consumed from 100% of battery power to 0% of battery power, and there is no external power supplement midway, and the condition of calculating the complete battery capacity is satisfied, the total of battery power consumption can be counted. In some embodiments, during the timing process, after each timing cycle is ended, the consumed electric quantities of each timing cycle are counted, and then the sum of the consumed electric quantities of all timing cycles before the current timing cycle is added to obtain a new sum of the consumed electric quantities. For example, after the timing is started and the first timing cycle is finished, the electric quantity consumed by the first timing cycle is counted, and the counted electric quantity consumed by the first timing cycle is recorded; after the second timing cycle is finished, counting the electric quantity consumed by the second timing cycle, adding the electric quantity consumed by the first timing cycle recorded before to obtain an electric quantity sum, recording the electric quantity sum, and then repeating the third timing cycle, the fourth timing cycle and the last timing cycle to obtain a final electric quantity sum. In other embodiments, after each timing cycle is finished, the amount of power consumed in the timing cycle is counted, the amount of power consumed in the timing cycles is recorded, and after the timing is stopped, the recorded amounts of power consumed in all timing cycles are summed to obtain a final total amount of power consumed.
In the above-mentioned updating module 50, after counting the total amount of electricity consumed from the battery electricity percentage of 100% to the battery electricity percentage of 0%, the counted total amount of electricity is read and updated to the latest battery capacity. After the battery capacity is updated, the battery capacity recorded data is consistent with the actual data, and in the using process, the compatibility of the battery and the equipment is improved, and the using experience of the equipment is optimized.
As shown in fig. 7, in some embodiments, the determining module 10 includes:
a first judging unit 101, configured to judge whether a current power percentage of the battery is 100%;
a second determining unit 102, configured to determine whether the battery is in a charging state if the battery is in a charging state;
the first determination unit 103 is configured to determine that the current battery state is the preset starting state if the battery is not in the charging state.
In the first determining unit 101, only when the percentage of battery capacity is 100%, the battery capacity counted by the battery capacity data updating is accurate as the starting point of the statistics, and a complete battery capacity data can be obtained from the battery capacity percentage of 100% to the battery capacity percentage of 0%.
In the second determination unit 102, in some embodiments, it is determined whether the battery is in a charging state by determining whether the USB port is in a working state, and it is meaningful to count the consumption of the battery power only when the battery is not in the charging state, that is, no external power is supplied to the battery, otherwise the battery power is consumed and is always replenished, and the counted total consumption of the battery power is greater than the actual battery capacity, so that the accurate battery capacity cannot be obtained.
In the first determination unit 103, after the two determinations, that is, the preset starting state refers to a state in which both conditions that the percentage of battery charge is 100% and the battery is not in the charged state are satisfied, the state is taken as the starting point of the statistical battery charge consumption, so as to update the battery capacity data.
As shown in fig. 8, in some embodiments, the listening module 30 includes:
a third determining unit 301 that determines whether the battery power percentage is 0%;
a fourth determining unit 302, configured to determine whether a charging record exists between the time when the timing is started and the time when the percentage of battery power is 0% if the charging record exists;
the second determining unit 303 is configured to determine that the corresponding battery state is the preset end state when the battery power percentage is 0% if there is no charging record.
In the third determining unit 301, only when the battery capacity percentage is 0%, the battery capacity consumption counted as the updated battery capacity data is accurate, and a complete battery capacity data can be obtained from the battery capacity percentage of 100% to the battery capacity percentage of 0%.
In the above-mentioned fourth determination unit 302, in some embodiments, when the preset start state is detected, an uncharged flag is set up when the timing is started, the battery is monitored in real time during the timing, if the battery is detected to be in a charged state during the timing, a charged flag is set up to cover the uncharged flag set up before, and the timing is stopped. At this time, even if the percentage of battery charge is detected to be 0%, since the presence of the uncharged mark is detected, that is, the charging record exists between the time when the timing is started and the time when the percentage of battery charge is detected to be 0%, the power consumption data corresponding to the actual battery capacity cannot be counted, and the subsequent step of counting the total power consumed by the battery is not performed.
In the second determination unit 303, after the two determinations, that is, the preset end state refers to a state where the battery power percentage is 0% and no charging record is recorded from the beginning of timing to the detection of the battery power percentage being 0%, the state is taken as the statistical battery power consumption, so as to update the end point of the battery capacity data.
As shown in fig. 9, in some embodiments, statistics module 40 includes:
a counting unit 401, configured to count each electric quantity Q consumed by the battery in each timing cycle according to the following formula:
q ═ I × t, where I is the current in the clocked cycle and t is the preset time interval;
a summing unit 402, configured to sum the electric quantities consumed by the batteries in each timing cycle to obtain a sum of the electric quantities;
a recording unit 403 for recording the sum of the electric quantity.
In the above statistical unit 401, when the percentage of battery power is detected to be 100% and the battery is not in a charging state, a timer is started to record the time of the subsequent battery power consumption statistics for subsequent calculation. The timing includes one or more timing cycles consisting of a predetermined time interval, and in some embodiments, the time interval of one timing cycle is set to 10s, i.e., each 10s goes from the previous timing cycle to the next timing cycle, and finally the whole timing process may include one or more timing cycles, i.e., one or more 10 s. The timing is performed by adopting the timing cycle, because in the process of battery power consumption, the battery power is not stably consumed at a certain rate, but is in continuous variation, that is, the current magnitude is continuously varied, the consumption rate at this moment may be completely different from the consumption rate at the next moment, the whole process from the battery power percentage consumption of 100% to the battery power percentage of 0% cannot calculate the power consumption through a uniform constant function, the power consumption can only be calculated by micro-integration according to the power calculation formula Q ═ I × t, and when the time t is sufficiently small, the current I can be regarded as a constant at this moment and is not varied. The time of one timing cycle corresponds to the t in the calculation formula, so that the sum of the electric quantity consumed by the battery from 100% to 0% can be accurately obtained through the sum of the electric quantity consumed by a plurality of timing cycles.
In the above-mentioned summing unit 402, in some embodiments, during the timing process, after each timing cycle is ended, the consumed electric quantities of each timing cycle are counted, and then the sum of the consumed electric quantities of all timing cycles before the current timing cycle is added to obtain a new sum of the electric quantities. For example, after the timing is started and the first timing cycle is finished, the electric quantity consumed by the first timing cycle is counted, and the counted electric quantity consumed by the first timing cycle is recorded; after the second timing cycle is finished, counting the electric quantity consumed by the second timing cycle, adding the electric quantity consumed by the first timing cycle recorded before to obtain an electric quantity sum, recording the electric quantity sum, and then repeating the third timing cycle, the fourth timing cycle and the last timing cycle to obtain a final electric quantity sum. In other embodiments, after each timing cycle is finished, the amount of power consumed in the timing cycle is counted, the amount of power consumed in the timing cycles is recorded, and after the timing is stopped, the recorded amounts of power consumed in all timing cycles are summed to obtain a final total amount of power consumed.
In the recording unit 403, after the total amount of power consumed in the whole timing process is counted, the total amount of power is recorded, and in some embodiments, the total amount of power recorded before the battery is saved so as to grasp the battery capacity change of the battery, thereby knowing the battery usage.
As shown in fig. 10, in some embodiments, the update module 50 includes:
a reading unit 501, configured to read a recorded electric quantity sum;
a setting unit 502 for setting the sum of the capacities as a battery capacity corresponding to 100% of the battery capacity.
In the reading unit 501, the total amount of power recorded by the battery is read, and if there are a plurality of different total amount of power data, the latest total amount of power is read.
In the setting unit 502, after the latest electric quantity sum recorded by the battery is read, the electric quantity sum is set as the current battery capacity of the battery, and the original standard battery capacity is replaced, so that the battery recording capacity is consistent with the actual capacity of the battery, the compatibility between the battery and the equipment is improved, and the use experience of the equipment is optimized.
In summary, the present invention provides a battery capacity updating system, which is applied to a device terminal, and includes a determining module 10, configured to determine whether a current battery state is a preset starting state; the timing module 20 is used for starting timing if the starting state is preset; the monitoring module 30 is used for monitoring whether the battery state reaches a preset ending state in real time in the timing process; the counting module 40 is used for stopping timing and counting the total electric quantity consumed by the battery if a preset ending state is reached; and the updating module 50 is used for updating the battery capacity according to the sum of the electric quantity. The system is simple, and can update the battery data in real time and correctly reflect the change of the battery state, thereby improving the compatibility of the battery and the equipment and optimizing the use experience of the equipment.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A battery capacity updating method is applied to a device terminal, and is characterized by comprising the following steps:
judging whether the current battery state is a preset starting state or not; the preset starting state refers to a state that the battery power percentage is 100% and the two conditions that the battery is not in a charging state are both met;
if the charging state is the preset starting state, starting timing and establishing an uncharged mark;
in the timing process, detecting whether the battery state is in a charging state, if so, stopping timing and setting a charging identifier to cover the uncharged identifier, and if not, monitoring whether the battery state reaches a preset end state in real time; the preset ending state refers to that the battery power percentage is 0%, and no charging record exists from the beginning of timing to the detection that the battery power percentage is 0%;
if the preset ending state is reached, stopping timing, and counting the total electric quantity consumed by the battery in the timing process;
updating the battery capacity according to the sum of the electric quantity;
the timing process comprises a plurality of timing cycles, the timing cycles consist of preset time intervals, and the step of counting the total electric quantity consumed by the battery comprises the following steps:
counting each electric quantity Q consumed by the battery in each timing cycle by the following formula:
q ═ I × t, where I is the current in the clocking cycle and t is the preset time interval, where t ═ 10 s;
summing all the electric quantities consumed by the batteries in all the timing cycles to obtain the electric quantity sum;
and recording the sum of the electric quantity.
2. The method for updating battery capacity according to claim 1, wherein the step of determining whether the current battery state is a preset starting state comprises:
judging whether the current electric quantity percentage of the battery is 100%;
if the current state is 100%, judging whether the battery is in a charging state;
and if the battery is not in a charging state, judging that the current battery state is the preset starting state.
3. The method for updating battery capacity according to claim 1, wherein the step of monitoring whether the battery status reaches a preset end status in real time comprises:
judging whether the percentage of the electric quantity of the battery is 0%;
if yes, judging whether a charging record exists between the time of starting timing and the corresponding time when the battery electric quantity percentage is 0%;
and if no charging record exists, judging that the corresponding battery state is the preset end state when the battery electric quantity percentage is 0%.
4. The method for updating battery capacity according to claim 1, wherein the step of updating battery capacity according to the sum of charge amounts comprises:
reading the recorded electric quantity sum;
and setting the sum of the electric quantity as the corresponding battery capacity when the battery electric quantity percentage is 100%.
5. A battery capacity update system, comprising:
the judging module is used for judging whether the current battery state is a preset starting state or not; the preset starting state refers to a state that the battery power percentage is 100% and the two conditions that the battery is not in a charging state are both met;
the timing module is used for starting timing and establishing an uncharged mark if the preset starting state is achieved;
the monitoring module is used for detecting whether the battery state is in a charging state or not in the timing process, stopping timing and setting a charging identifier to cover the uncharged identifier if the battery state is in the charging state, and monitoring whether the battery state reaches a preset ending state or not in real time if the battery state is not in the charging state; the preset ending state refers to that the battery power percentage is 0%, and no charging record exists from the beginning of timing to the detection that the battery power percentage is 0%;
the counting module is used for stopping timing and counting the total electric quantity consumed by the battery in the timing process if the preset ending state is reached;
the updating module is used for updating the battery capacity according to the sum of the electric quantity;
the timing process includes a plurality of timing cycles, the timing cycle comprises a preset time interval, the statistic module includes:
a counting unit, configured to count each electric quantity Q consumed by the battery in each timing cycle according to the following formula:
q ═ I × t, where I is the current in the timing cycle, t is the preset time interval, and t ═ 10 s;
a summing unit, configured to perform the summation on each of the electric quantities consumed by the battery in each of the timing cycles to obtain a sum of the electric quantities;
and the recording unit is used for recording the sum of the electric quantity.
6. The battery capacity update system according to claim 5, wherein the determination module includes:
a first judging unit, configured to judge whether the current power percentage of the battery is 100%;
a second determination unit, configured to determine whether the battery is in the charging state if the current power percentage is 100%;
a first determination unit, configured to determine that the current battery state is the preset starting state if the battery is not in the charging state.
7. The battery capacity update system of claim 5, wherein the listening module comprises:
a third judging unit for judging whether the battery power percentage is 0%;
a fourth judging unit, configured to judge whether the charging record exists between the time when the timing is started and the time when the percentage of battery power is 0% if the charging record exists;
and the second judging unit is used for judging that the corresponding battery state is the preset end state when the electric quantity of the battery is 0% if the charging record does not exist.
8. The battery capacity update system of claim 5, wherein the update module comprises:
the reading unit is used for reading the recorded electric quantity sum;
and the setting unit is used for setting the electric quantity sum as the battery capacity corresponding to the battery electric quantity percentage of 100%.
CN201810779200.XA 2018-07-16 2018-07-16 Battery capacity updating method and system Active CN109103518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810779200.XA CN109103518B (en) 2018-07-16 2018-07-16 Battery capacity updating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810779200.XA CN109103518B (en) 2018-07-16 2018-07-16 Battery capacity updating method and system

Publications (2)

Publication Number Publication Date
CN109103518A CN109103518A (en) 2018-12-28
CN109103518B true CN109103518B (en) 2020-12-22

Family

ID=64846380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810779200.XA Active CN109103518B (en) 2018-07-16 2018-07-16 Battery capacity updating method and system

Country Status (1)

Country Link
CN (1) CN109103518B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110169885B (en) * 2019-04-25 2021-03-09 青岛市中心医院 Surgical postoperative patient service device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106772091A (en) * 2016-12-30 2017-05-31 广东欧珀移动通信有限公司 The update method of battery capacity value, device and terminal
TWI585429B (en) * 2015-12-31 2017-06-01 環旭電子股份有限公司 Method of estimating battery capacity

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58140654A (en) * 1982-02-16 1983-08-20 Nissan Motor Co Ltd Capacity meter for battery
CN102081143B (en) * 2009-11-27 2013-04-24 宏达国际电子股份有限公司 Estimation method and system of battery capacity
CN104101839A (en) * 2013-04-09 2014-10-15 东莞钜威新能源有限公司 Electric quantity detection system and electric quantity detection method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI585429B (en) * 2015-12-31 2017-06-01 環旭電子股份有限公司 Method of estimating battery capacity
CN106772091A (en) * 2016-12-30 2017-05-31 广东欧珀移动通信有限公司 The update method of battery capacity value, device and terminal

Also Published As

Publication number Publication date
CN109103518A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN105100429B (en) Method and device for determining use time of residual electric quantity of mobile terminal
US20080007221A1 (en) Enhanced-accuracy battery capacity prediction
EP2851700B1 (en) Method and terminal for displaying capacity of battery
EP2728368B1 (en) Condition estimation device and method for battery
JP2002528850A (en) Battery pack having charge status indicator
CN107910607A (en) Modification method, device, electric automobile and the storage medium of battery health degree SOH
WO2024060537A1 (en) Method and system for early warning of abnormal self-discharge of battery, and electronic device and storage medium
CN103185863A (en) Estimation method and system of battery electricity preparation time under condition of varying loading
CN108802616A (en) Electrical equipment and its battery capacity management method and system
CN106740131B (en) The monitoring method of electric quantity of batteries of electric vehicle, apparatus and system, monitoring server
CN105759216A (en) Method for estimating state of charge of soft package lithium-ion battery
CN109103518B (en) Battery capacity updating method and system
KR20220034543A (en) Method for estimating state of charge of battery
JP5058211B2 (en) Secondary battery diagnostic device and useful information collection device
CN115575842A (en) Battery management method, device, electronic equipment and storage medium
CN110768869B (en) Household charging method and device for multi-split system and computer equipment
CN113595174A (en) Battery management method, device, equipment and server
CN117368782A (en) Data analysis method, battery SOH estimation method and device
CN114207909B (en) Electrochemical device management method, electrochemical device management system, electrochemical device and electronic equipment
CN115825750A (en) SOC calibration method and device and energy storage battery system
CN111693884B (en) Battery pack consistency detection method and device, readable storage medium and electronic equipment
CN111324061B (en) Equipment verification calibration management method and related equipment and storage device thereof
CN110244228B (en) Battery control method and device
CN112421721A (en) Electric vehicle power management method, device, equipment and storage medium
JP3128424B2 (en) Rechargeable battery capacity detector

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220525

Address after: 518000 floor 2, building 3, Dexin Chang wisdom Park, No. 23 Heping Road, Qinghua community, Longhua street, Longhua District, Shenzhen, Guangdong Province

Patentee after: Shenzhen waterward Software Technology Co.,Ltd.

Address before: 518000, block B, huayuancheng digital building, 1079 Nanhai Avenue, Shekou, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN WATER WORLD Co.,Ltd.

TR01 Transfer of patent right