Method, device and electronic device for determining remaining charge and discharge time of battery
Through the electrical connection between the central processor and the current acquisition module, the battery current difference is collected and the working current is calculated, which solves the problem of distortion of the remaining battery time display in electronic devices, and realizes accurate determination of the charge and discharge time.
Patent Information
- Application Number
- CN202410613507.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-05-17
AI Technical Summary
In the prior art, there is distortion of the battery discharge remaining time and the charging remaining time displayed by electronic devices, resulting in inaccurate user charging and discharging references.
The central processor is electrically connected to the current acquisition module, and the current difference of the battery is collected, the working current is determined, and the remaining charge and discharge time is calculated according to the current and working mode, and the time difference threshold is set to update the time to ensure accuracy.
It improves the accuracy of the remaining charge and discharge time of the battery, avoids distortion problems, and provides a reliable reference for charge and discharge time.
Smart Images

Figure CN118483605B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a method and device for determining the remaining charge and discharge time of a battery, and an electronic device. Background Art
[0002] Rechargeable batteries can usually be used as a power supply device in various fields (such as new energy vehicles and portable terminals). Electronic devices equipped with rechargeable batteries (such as electric vehicles and portable terminals) need to display the remaining discharge time and the remaining charge time for users to refer to for charging and discharging. When a rechargeable battery is in the process of charging or discharging, the SOC of the rechargeable battery is constantly changing. As the charging and discharging time of the rechargeable battery increases, the charging and discharging capacity will also change, resulting in distortion of the remaining discharge time and the remaining charge time displayed by the electronic device. Summary of the invention
[0003] The present application provides a method, device, and electronic device for determining the remaining charge and discharge time of a battery, which are used to solve the problem of distortion of the remaining discharge time and the remaining charge time displayed by the electronic device in the prior art.
[0004] In a first aspect, the present application provides a method for determining the remaining charge and discharge time of a battery, which is applied to a central processing unit, wherein the central processing unit is electrically connected to a current acquisition module and a battery to be detected in sequence. The method provided by the present application includes:
[0005] receiving a first current of the battery to be detected collected by the current collection module at the Nth sampling moment, where N is an integer greater than or equal to 2;
[0006] Determine a current difference between a first current of the battery to be detected collected at the Nth sampling moment and a second current of the battery to be detected collected at the N-1th sampling moment, wherein the interval between the Nth sampling moment and the N-1th sampling moment is a sampling period;
[0007] When the current difference is greater than the set current difference threshold, the second current of the battery to be detected collected at the N-1th sampling moment is recorded as the working current of the battery to be detected;
[0008] The remaining charge and discharge time of the battery to be detected at the Nth sampling moment is determined according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected.
[0009] In a possible implementation, after determining the remaining charge and discharge time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, the method provided by the present application includes:
[0010] Determine the first duration difference between the remaining charge-discharge duration at the Nth sampling moment and the remaining charge-discharge duration recorded at the (N - 1)th sampling moment;
[0011] When the first duration difference is greater than the set duration difference threshold, update the remaining charge-discharge duration at the Nth sampling moment to the remaining charge-discharge duration at the (N - 1)th sampling moment.
[0012] In a possible implementation manner, the set duration difference threshold satisfies T m = k1T0, where 1% < k1 < 20%, k1 is the first proportionality coefficient, T0 is the remaining charge-discharge duration at the (N - 1)th sampling moment, and T m is the set duration difference threshold.
[0013] In a possible implementation manner, the remaining charge-discharge duration includes the remaining charge duration. According to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, determining the remaining charge-discharge duration of the battery to be detected at the Nth sampling moment includes:
[0014] When the working mode of the working current of the battery to be detected is the charging mode, then determine the remaining charge duration of the battery to be detected at the Nth sampling moment according to the formula T1 = R*(100% - SOC) / I;
[0015] where, T1 is the remaining charge duration at the Nth sampling moment, R is the capacitance of the battery to be detected, SOC is the remaining power of the battery to be detected, and I is the working current of the battery to be detected.
[0016] In a possible implementation manner, the remaining charge-discharge duration includes the remaining discharge duration. According to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, determining the remaining charge-discharge duration of the battery to be detected at the Nth sampling moment includes:
[0017] When the working mode of the working current of the battery to be detected is the discharging mode, then according to the formula T1 = R*SOC / I, where T1 is the remaining discharge duration at the Nth sampling moment, R is the capacitance of the battery to be detected, SOC is the remaining power of the battery to be detected, and I is the working current of the battery to be detected.
[0018] In a possible implementation manner, the remaining charge-discharge duration includes the remaining discharge duration. After determining the remaining charge-discharge duration of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, the method includes:
[0019] The working mode of the working current of the battery to be tested is the discharge mode, and the remaining discharge time of the battery to be tested at the Nth sampling time satisfies T1≤k2*T R , the third current of the battery to be detected collected by the current collection module at the Mth sampling moment is received every preset time slice, wherein T1 is the remaining discharge time at the Nth sampling moment, k2 is the second proportional coefficient, 1% <k2<10%,T R is the remaining discharge time of the battery to be tested when it is fully charged, the preset time slice is less than or equal to 2 minutes, and M is an integer greater than or equal to 1;
[0020] Determine the remaining discharge time of the battery to be detected at the Mth sampling moment according to the third current of the battery to be detected and the working mode of the third current of the battery to be detected;
[0021] When a second time difference between the remaining discharge time at the Mth sampling moment and the remaining discharge time at the recorded M-1th sampling moment is greater than a set first time difference threshold, the remaining discharge time at the Mth sampling moment is updated to the remaining discharge time at the M-1th sampling moment, wherein the interval time between the Mth sampling moment and the M-1th sampling moment is a preset time slice.
[0022] In a possible implementation, the remaining chargeable and dischargeable time includes the remaining chargeable time. After determining the remaining chargeable and dischargeable time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, the method provided by the present application includes:
[0023] The working mode of the working current of the battery to be tested is charging mode, and the remaining charging time of the battery to be tested at the Nth sampling time satisfies T1≤k3*T R At every preset time slice, the third current of the battery to be detected collected by the current collection module at the Mth sampling moment is received. Wherein, T1 is the remaining charging time at the Nth sampling moment, k3 is the third proportional coefficient, 1%≤k3<10%, T R is the remaining charging time of the battery to be tested when it is not charged, the preset time slice is less than or equal to 2 minutes, and M is an integer greater than or equal to 1;
[0024] Determine the remaining chargeable time of the battery to be detected at the Mth sampling moment according to the third current of the battery to be detected and the working mode of the third current of the battery to be detected;
[0025] When the second time difference between the remaining charging time at the Mth sampling moment and the remaining charging time at the M-1th sampling moment is greater than the set first time difference threshold, the remaining charging time at the Mth sampling moment is updated to the remaining charging time at the M-1th sampling moment, wherein the interval between the Mth sampling moment and the M-1th sampling moment is a preset time slice.
[0026] In a second aspect, the present application further provides a device for determining the remaining charge and discharge time of a battery, which is configured in a central processing unit, and the central processing unit is electrically connected to a current acquisition module and a battery to be detected in sequence. The device provided by the present application includes:
[0027] A data receiving unit, used to receive the first current of the battery to be detected collected by the current collection module at the Nth sampling moment, where N is an integer greater than or equal to 2;
[0028] a difference determination unit, used to determine a current difference between a first current of the battery to be detected collected at the Nth sampling moment and a second current of the battery to be detected collected at the N-1th sampling moment, wherein the interval between the Nth sampling moment and the N-1th sampling moment is a sampling period;
[0029] A current correction unit, used for taking the second current of the battery to be detected collected at the N-1th sampling moment as the working current of the battery to be detected when the current difference is greater than a set current difference threshold;
[0030] The usage time determination unit is used to determine the remaining charge and discharge time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected.
[0031] In a third aspect, the present application provides an electronic device, including:
[0032] CPU;
[0033] A memory for storing executable instructions for a central processing unit;
[0034] Among them, the central processing unit is configured to execute instructions to implement the method for determining the remaining charge and discharge time of the battery as provided in the first aspect of the present application.
[0035] In a fourth aspect, the present application further provides a storage medium, which, when the instructions in the storage medium are executed by a central processing unit, enables the central processing unit to execute the method for determining the remaining charge and discharge time of a battery as provided in the first aspect of the present application.
[0036] The present application provides a method, device, and electronic device for determining the remaining charge and discharge time of a battery, which can determine the current difference between a first current of a battery to be detected collected at the Nth sampling moment and a second current of the battery to be detected collected at the N-1th sampling moment;
[0037] When the current difference is greater than the set current difference threshold, it means that the first current of the battery to be detected collected at the Nth sampling moment has a jump change, and the reliability is poor. Therefore, the second current of the battery to be detected collected at the N-1th sampling moment is still recorded as the working current of the battery to be detected, which has high accuracy. Furthermore, according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, the remaining charge and discharge time of the battery to be detected at the Nth sampling moment is also highly reliable and will not be distorted. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 A circuit connection block diagram of a central processing unit provided in an embodiment of the present application, a current acquisition module, and a battery to be detected being electrically connected in sequence;
[0040] Figure 2 One of the flowcharts of a method for determining the remaining charge and discharge time of a battery provided in an embodiment of the present application;
[0041] Figure 3 A second flowchart of a method for determining the remaining charge and discharge time of a battery provided in an embodiment of the present application;
[0042] Figure 4 A flowchart of a method for determining the remaining charge and discharge time of a battery provided in an embodiment of the present application;
[0043] Figure 5 A fourth flowchart of a method for determining the remaining charge and discharge time of a battery provided in an embodiment of the present application;
[0044] Figure 6 A functional module block diagram of a device for determining the remaining charge and discharge time of a battery provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.
[0046] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] The following is a detailed description of the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0048] The present application embodiment provides a method for determining the remaining charge and discharge time of a battery, which is applied to the central processor 101. Figure 1 As shown, the CPU 101 is electrically connected to the current acquisition module 102 and the battery to be detected 103 in sequence. The battery to be detected 103 can be a rechargeable battery of an electric car or a rechargeable battery of a portable terminal, etc., which is not limited here. The type of the battery to be detected 103 can be, but is not limited to, a lithium battery. Figure 2 As shown, the method provided in the embodiment of the present application includes:
[0049] S201: Receive a first current of the battery to be detected 103 collected by the current collection module 102 at the Nth sampling moment.
[0050] Wherein, N is an integer greater than or equal to 2, for example, N is equal to 2 or 3 or 4, etc., which is not limited here. It should be noted that the first current of the battery to be detected 103 can be a charging current or a discharging current which is not limited here.
[0051] S202: Determine a current difference between a first current of the battery to be detected 103 collected at the Nth sampling moment and a second current of the battery to be detected 103 collected at the N-1th sampling moment.
[0052] The interval between the Nth sampling moment and the N-1th sampling moment is the sampling period.
[0053] Specifically, the central processing unit 101 pre-records a data collection flag "0". When the timing reaches the duration corresponding to the sampling period, the central processing unit 101 refreshes the data collection flag from "0" to "1", and then the central processing unit 101 starts to execute S202. After S202 is executed, the central processing unit 101 refreshes the data collection flag from "1" to "0" and restarts the timing.
[0054] S203 : when the current difference is greater than the set current difference threshold, the second current of the battery to be detected 103 collected at the N−1th sampling moment is recorded as the working current of the battery to be detected 103 .
[0055] Exemplarily, when the current difference is greater than the set current difference threshold, if the second current of the battery 103 to be detected collected at the N-1th sampling moment is bat_curr0, and the first current of the battery 103 to be detected collected at the Nth sampling moment is bat_curr1, then bat_curr0 is used as the working current of the battery 103 to be detected at the Nth sampling moment.
[0056] S204: Determine the remaining charge and discharge time of the battery 103 to be detected at the Nth sampling moment according to the working current of the battery 103 to be detected and the working mode of the working current of the battery 103 to be detected.
[0057] Specifically, S204 includes but is not limited to the following two methods:
[0058] The first type: the remaining charge and discharge time includes the remaining charge time. When the working current mode of the battery 103 to be tested is the charging mode, the remaining charge time of the battery 103 to be tested at the Nth sampling moment is determined according to the formula T1=R*(100%-SOC) / I.
[0059] Wherein, T1 is the remaining charging time at the Nth sampling moment, R is the capacity of the battery 103 to be detected, SOC is the remaining power of the battery 103 to be detected, and I is the operating current (ie, charging current) of the battery 103 to be detected.
[0060] The second type: the remaining charge and discharge time includes the remaining discharge time. When the working mode of the working current of the battery 103 to be detected is the discharge mode, the formula T1 = R*SOC / I is used.
[0061] Wherein, T1 is the remaining discharge time at the Nth sampling moment, R is the capacity of the battery 103 to be detected, SOC is the remaining power of the battery 103 to be detected, and I is the operating current (ie, discharge current) of the battery 103 to be detected.
[0062] In addition, the central processor 101 may transmit the remaining charging time at the Nth sampling moment to a display screen (such as a display screen of an energy management system) for display.
[0063] In summary, the embodiment of the present application provides a method for determining the remaining charge and discharge time of a battery, which can determine the current difference between the first current of the battery to be detected 103 collected at the Nth sampling moment and the second current of the battery to be detected 103 collected at the N-1th sampling moment; when the current difference is greater than the set current difference threshold, it means that the first current of the battery to be detected 103 collected at the Nth sampling moment has a jump, and the reliability is poor. Therefore, the second current of the battery to be detected 103 collected at the N-1th sampling moment is still used as the working current of the battery to be detected 103, which has high accuracy. Furthermore, according to the working current of the battery to be detected 103 and the working mode of the working current of the battery to be detected 103, the reliability of the remaining charge and discharge time of the battery to be detected 103 at the Nth sampling moment is also high, and there will be no distortion.
[0064] Furthermore, in the above Figure 2 Based on the corresponding embodiment, after S204, as Figure 3 As shown, the method provided in the embodiment of the present application may also include:
[0065] S301: Determine a first time difference between the remaining chargeable and dischargeable time at the Nth sampling moment and the remaining chargeable and dischargeable time recorded at the N-1th sampling moment.
[0066] S302: When the first time difference is greater than a set time difference threshold, the remaining chargeable and dischargeable time at the Nth sampling moment is updated to the remaining chargeable and dischargeable time at the N-1th sampling moment.
[0067] It can be understood that if the first time difference is greater than the set time difference threshold, it means that the remaining charge and discharge time at the Nth sampling moment has changed. In this case, the remaining charge and discharge time at the Nth sampling moment is updated to the remaining charge and discharge time at the N-1th sampling moment, which is more reliable and will not cause distortion.
[0068] Exemplarily, if the remaining chargeable and dischargeable time at the Nth sampling moment is T1 and the remaining chargeable and dischargeable time at the N-1th sampling moment is T0, the remaining chargeable and dischargeable time T0 is used as the operating current of the battery 103 to be detected at the Nth sampling moment.
[0069] Exemplarily, the set duration difference threshold satisfies T m = k1T0, where 1% < k1 < 20%, k1 is the first proportionality coefficient. For example, k1 can be 2%, 5%, 10%, 15%, etc., which is not limited herein. T0 is the remaining charge and discharge duration at the (N - 1)-th sampling moment, and T m is the set duration difference threshold.
[0070] In some embodiments, the remaining charge and discharge duration includes the remaining discharge duration. Further, based on the corresponding embodiment above, after S204, as Figure 2 shown, the method provided by the embodiment of the present application may further include: Figure 4
[0071] S401: When the working mode of the working current of the battery 103 to be detected is the discharging mode, and the remaining discharge duration of the battery 103 to be detected at the N-th sampling moment satisfies T1 ≤ k2*T R R R
[0072] where T1 is the remaining discharge duration at the N-th sampling moment, k2 is the second proportionality coefficient, 1% < k2 < 10%. For example, k2 can be equal to 2%, 5% or 8%, etc., which is not limited herein. T R is the remaining discharge duration when the battery 103 to be detected is fully charged. The preset time slice is less than or equal to 2 min. For example, the preset time slice can be equal to 1 min, 1.5 min or 2 min, and M is an integer greater than or equal to 1.
[0073] S402: Determine the remaining discharge duration of the battery 103 to be detected at the M-th sampling moment according to the third current of the battery 103 to be detected and the working mode of the third current of the battery 103 to be detected.
[0074] Exemplarily, the working principle of S402 is the same as the second implementation manner of S204 above, and will not be elaborated herein.
[0075] S403: When the second duration difference between the remaining discharge duration at the M-th sampling moment and the recorded remaining discharge duration at the (M - 1)-th sampling moment is greater than the set first duration difference threshold, update the remaining discharge duration at the M-th sampling moment to the remaining discharge duration at the (M - 1)-th sampling moment.
[0076] Among them, the interval between the Mth sampling moment and the M-1th sampling moment is a preset time slice. It can be understood that when the second time difference between the remaining dischargeable time at the Mth sampling moment and the remaining dischargeable time recorded at the M-1th sampling moment is greater than the set first time difference threshold, it means that the remaining dischargeable time of the battery 103 to be detected has a jump (such as a sudden power failure), so the remaining dischargeable time at the Mth sampling moment is updated to the remaining dischargeable time at the M-1th sampling moment with high reliability. Exemplarily, if the remaining dischargeable time at the Mth sampling moment is T1 and the remaining dischargeable time at the M-1th sampling moment is T0, the remaining dischargeable time T0 is used as the working current of the battery 103 to be detected at the Mth sampling moment.
[0077] When the second time difference between the remaining dischargeable time at the Mth sampling moment and the remaining dischargeable time recorded at the M-1th sampling moment is less than the set second time difference threshold, it means that the remaining dischargeable time of the battery 103 to be detected has remained unchanged for a long time (that is, the battery 103 to be detected has been abnormally durable), so the remaining dischargeable time at the Mth sampling moment is discarded, and the remaining dischargeable time at the new Mth sampling moment can be obtained based on the change in the previous remaining dischargeable time within a sampling cycle. For example, the remaining dischargeable time at the M-2th sampling moment is T2, and the remaining dischargeable time at the M-1th sampling moment is T0, then the change in the previous remaining dischargeable time within a sampling cycle is T2-T0, and the remaining dischargeable time at the new Mth sampling moment can be T2-2(T2-T0).
[0078] In some embodiments, the remaining chargeable and dischargeable time includes the remaining chargeable time. Figure 2 Based on the corresponding embodiments, Figure 5 As shown, after S204, as Figure 5 As shown, the method provided in the embodiment of the present application may also include:
[0079] S501: When the working current mode of the battery to be detected 103 is the charging mode, and the remaining chargeable time of the battery to be detected 103 at the Nth sampling time satisfies T1≤k3*T R At every preset time slice, the third current of the battery to be detected 103 collected by the current collection module 102 at the Mth sampling moment is received.
[0080] Wherein, T1 is the remaining charging time at the Nth sampling moment, k3 is the third proportional coefficient, 1%≤k3<10%, T Ris the remaining charging time of the uncharged battery 103 to be detected, the preset time slice is less than or equal to 2 minutes, and M is an integer greater than or equal to 1.
[0081] S502: Determine the remaining chargeable time of the battery 103 to be detected at the Mth sampling moment according to the third current of the battery 103 to be detected and the working mode of the third current of the battery 103 to be detected.
[0082] Exemplarily, the working principle of S502 is the same as the first implementation method of S204 described above, and is not described in detail here.
[0083] S503: When a second time difference between the remaining charging time at the Mth sampling moment and the remaining charging time at the M-1th sampling moment is greater than a set first time difference threshold, the remaining charging time at the Mth sampling moment is updated to the remaining charging time at the M-1th sampling moment.
[0084] The interval between the Mth sampling moment and the M-1th sampling moment is a preset time slice.
[0085] It can be understood that when the second time difference between the remaining rechargeable time at the Mth sampling moment and the remaining rechargeable time at the M-1th sampling moment is greater than the set first time difference threshold, it means that the remaining rechargeable time of the battery 103 to be detected has a jump (such as a sudden power failure), so the remaining rechargeable time at the Mth sampling moment is updated to the remaining rechargeable time at the M-1th sampling moment with high reliability. Exemplarily, if the remaining rechargeable time at the Mth sampling moment is T1 and the remaining rechargeable time at the M-1th sampling moment is T0, the remaining rechargeable time T0 is used as the working current of the battery 103 to be detected at the Mth sampling moment.
[0086] In addition, when the second time difference between the remaining chargeable time at the Mth sampling moment and the remaining chargeable time at the M-1th sampling moment is less than the set second time difference threshold, it means that the remaining chargeable time of the battery 103 to be detected has remained unchanged for a long time (i.e., the battery 103 to be detected has become difficult to charge), and thus the remaining chargeable time at the Mth sampling moment is discarded, and the remaining chargeable time at the new Mth sampling moment can be obtained based on the change in the previous remaining chargeable time within a sampling cycle. For example, the remaining chargeable time at the M-2th sampling moment is T2, and the remaining chargeable time at the M-1th sampling moment is T0, then the change in the previous remaining chargeable time within a sampling cycle is T2-T0, and the remaining chargeable time at the new Mth sampling moment can be T2-2(T2-T0).
[0087] In addition, the method provided in the embodiment of the present application may also include: obtaining the SOC of the battery 103 to be detected at the Nth sampling moment; determining the SOC difference between the SOC at the Nth sampling moment and the SOC at the N-1th sampling moment recorded. When the SOC difference is greater than the set SOC difference threshold, it means that the SOC of the battery 103 to be detected has a jump, so the SOC at the Nth sampling moment is updated to the SOC at the N-1th sampling moment, which has high reliability.
[0088] In addition, the embodiment of the present application also provides a device 600 for determining the remaining charge and discharge time of a battery, which is configured in the central processor 101, and the central processor 101 is electrically connected to the current acquisition module 102 and the battery to be detected 103 in sequence. It should be noted that the basic principle and technical effects of the device 600 for determining the remaining charge and discharge time of a battery provided in the embodiment of the present application are the same as those in the above embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the present application, reference can be made to the corresponding contents in the above embodiment. Specifically, Figure 6 As shown, the device 600 provided in the embodiment of the present application includes a data receiving unit 601, a difference determination unit 602, a current correction unit 603, and a usage duration determination unit 604, wherein:
[0089] The data receiving unit 601 is used to receive the first current of the battery to be detected 103 collected by the current collection module 102 at the Nth sampling time, where N is an integer greater than or equal to 2.
[0090] The difference determination unit 602 is used to determine the current difference between the first current of the battery to be detected 103 collected at the Nth sampling moment and the second current of the battery to be detected 103 collected at the N-1th sampling moment, wherein the interval between the Nth sampling moment and the N-1th sampling moment is the sampling period.
[0091] The current correction unit 603 is used to use the second current of the battery to be detected 103 collected at the N-1th sampling moment as the working current of the battery to be detected 103 when the current difference is greater than a set current difference threshold.
[0092] The usage time determination unit 604 is used to determine the remaining charge and discharge time of the battery 103 to be detected at the Nth sampling moment according to the working current of the battery 103 to be detected and the working mode of the working current of the battery 103 to be detected.
[0093] In some embodiments, the remaining charge-discharge duration includes the remaining charge duration. The usage duration determination unit 604 is specifically configured to, when the working mode of the working current of the battery 103 to be detected is the charging mode, determine the remaining charge duration of the battery 103 to be detected at the Nth sampling moment according to the formula T1 = R*(100%-SOC) / I. Wherein, T1 is the remaining charge duration at the Nth sampling moment, R is the capacitance of the battery 103 to be detected, SOC is the remaining power of the battery 103 to be detected, and I is the working current of the battery 103 to be detected.
[0094] In other embodiments, the remaining charge-discharge duration includes the remaining discharge duration. The usage duration determination unit 604 is specifically configured to, when the working mode of the working current of the battery 103 to be detected is the discharging mode, according to the formula T1 = R*SOC / I, wherein, T1 is the remaining discharge duration at the Nth sampling moment, R is the capacitance of the battery 103 to be detected, SOC is the remaining power of the battery 103 to be detected, and I is the working current of the battery 103 to be detected.
[0095] In addition, in some embodiments, the device 600 provided by the embodiments of the present application includes:
[0096] The usage duration update unit is configured to determine the first duration difference between the remaining charge-discharge duration at the Nth sampling moment and the recorded remaining charge-discharge duration at the (N-1)th sampling moment; when the first duration difference is greater than the set duration difference threshold, update the remaining charge-discharge duration at the Nth sampling moment to the remaining charge-discharge duration at the (N-1)th sampling moment.
[0097] Wherein, the set duration difference threshold satisfies T m = k1T0, where 1% < k1 < 20%, k1 is the first proportionality coefficient, T0 is the remaining charge-discharge duration at the (N-1)th sampling moment, and T m is the set duration difference threshold.
[0098] In addition, in some embodiments, the remaining charge-discharge duration includes the remaining discharge duration. The data receiving unit 601 is further configured to, when the working mode of the working current of the battery 103 to be detected is the discharging mode and the remaining discharge duration of the battery 103 to be detected at the Nth sampling moment satisfies T1 ≤ k2*T R at this time, receive the third current of the battery 103 to be detected collected by the current acquisition module 102 at the Mth sampling moment every preset time slice.
[0099] Wherein, T1 is the remaining discharge duration at the Nth sampling moment, k2 is the second proportionality coefficient, 1% < k2 < 10%, and T Ris the remaining discharge time of the battery to be detected 103 when it is fully charged. The preset time slice is less than or equal to 2 minutes, and M is an integer greater than or equal to 1.
[0100] The usage time determination unit 604 is further used to determine the remaining discharge time of the battery 103 to be detected at the Mth sampling moment according to the third current of the battery 103 to be detected and the working mode of the third current of the battery 103 to be detected.
[0101] The use time updating unit is further used for updating the remaining discharge time at the Mth sampling moment to the remaining discharge time at the M-1th sampling moment when a second time difference between the remaining discharge time at the Mth sampling moment and the remaining discharge time at the M-1th sampling moment is greater than a set first time difference threshold, wherein the interval time between the Mth sampling moment and the M-1th sampling moment is a preset time slice.
[0102] In addition, in some embodiments, the remaining chargeable and dischargeable time includes the remaining chargeable time.
[0103] The data receiving unit 601 is further configured to: when the working current mode of the battery to be detected 103 is the charging mode, and the remaining chargeable time of the battery to be detected 103 at the Nth sampling moment satisfies T1≤k3*T R At every preset time slice, the third current of the battery to be detected 103 collected by the current collection module 102 at the Mth sampling moment is received.
[0104] Wherein, T1 is the remaining charging time at the Nth sampling moment, k3 is the third proportional coefficient, 1%≤k3<10%, T R is the remaining charging time of the uncharged battery 103 to be detected, the preset time slice is less than or equal to 2 minutes, and M is an integer greater than or equal to 1.
[0105] The usage time determination unit 604 is further used to determine the remaining chargeable time of the battery 103 to be detected at the Mth sampling moment according to the third current of the battery 103 to be detected and the working mode of the third current of the battery 103 to be detected.
[0106] The usage duration update unit is also used to update the remaining charging time at the Mth sampling moment to the remaining charging time at the M-1th sampling moment when the second duration difference between the remaining charging time at the Mth sampling moment and the remaining charging time at the M-1th sampling moment is greater than the set first duration difference threshold, wherein the interval duration between the Mth sampling moment and the M-1th sampling moment is a preset time slice.
[0107] In addition, an embodiment of the present application further provides an electronic device, comprising: a central processing unit; a memory for storing executable instructions of the central processing unit; wherein the central processing unit is configured to execute instructions to implement the method for determining the remaining charge and discharge time of a battery as provided in the above embodiment of the present application. The electronic device may be, but is not limited to, an electric vehicle, a portable terminal, etc.
[0108] In addition, an embodiment of the present application further provides a storage medium. When the instructions in the storage medium are executed by a central processing unit, the central processing unit can execute a method for determining the remaining charge and discharge time of a battery as provided in the above embodiment of the present application.
[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for determining the remaining charge and discharge time of a battery, characterized in that: Applied to a central processing unit, the central processing unit is electrically connected to a current acquisition module and a battery to be detected in sequence, and the method comprises: receiving a first current of the battery to be detected collected by a current collection module at an Nth sampling moment, where N is an integer greater than or equal to 2; Determine a current difference between a first current of the battery to be detected collected at the Nth sampling moment and a second current of the battery to be detected collected at the N-1th sampling moment, wherein the interval between the Nth sampling moment and the N-1th sampling moment is a sampling period; When the current difference is greater than a set current difference threshold, the second current of the battery to be detected collected at the N-1th sampling moment is recorded as the working current of the battery to be detected; The remaining charge and discharge time of the battery to be detected at the Nth sampling moment is determined according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected.
2. The method according to claim 1, characterized in that After determining the remaining charge and discharge time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, the method includes: Determine a first duration difference between the remaining chargeable and dischargeable time at the Nth sampling moment and the remaining chargeable and dischargeable time at the N-1th sampling moment recorded; When the first time difference is greater than a set time difference threshold, the remaining chargeable and dischargeable time at the Nth sampling moment is updated to the remaining chargeable and dischargeable time at the N-1th sampling moment.
3. The method according to claim 2, characterized in that The set duration difference threshold satisfies T m = k1T0, where 1% < k1 < 20%, k1 is the first proportionality coefficient, T0 is the remaining charge-discharge duration at the (N - 1)-th sampling moment, and T m is the set duration difference threshold.
4. The method according to claim 1, characterized in that: The remaining chargeable and dischargeable time includes the remaining chargeable time, and determining the remaining chargeable and dischargeable time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected includes: When the working mode of the working current of the battery to be detected is the charging mode, the remaining charging time of the battery to be detected at the Nth sampling moment is determined according to the formula T1=R*(100%-SOC) / I; Wherein, T1 is the remaining charging time at the Nth sampling moment, R is the capacity of the battery to be detected, SOC is the remaining power of the battery to be detected, and I is the operating current of the battery to be detected.
5. The method according to claim 1, characterized in that The remaining chargeable and dischargeable time includes the remaining dischargeable time, and determining the remaining chargeable and dischargeable time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected includes: When the working current working mode of the battery to be detected is the discharge mode, according to the formula T1=R*SOC / I, wherein T1 is the remaining discharge time at the Nth sampling moment, R is the capacity of the battery to be detected, SOC is the remaining power of the battery to be detected, and I is the working current of the battery to be detected.
6. The method according to claim 1, characterized in that The remaining chargeable and dischargeable time includes the remaining dischargeable time. After determining the remaining chargeable and dischargeable time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, the method includes: The working mode of the working current of the battery to be detected is the discharge mode, and the remaining dischargeable time of the battery to be detected at the Nth sampling time satisfies T1≤k2*T R , the third current of the battery to be detected collected by the current collection module at the Mth sampling moment is received every preset time slice, wherein T1 is the remaining dischargeable time at the Nth sampling moment, k2 is the second proportional coefficient, 1% <k2<10%,T R is the remaining discharge time of the battery to be tested when it is fully charged, the preset time slice is less than or equal to 2 minutes, and M is an integer greater than or equal to 1; Determine the remaining discharge time of the battery to be detected at the Mth sampling moment according to the third current of the battery to be detected and the working mode of the third current of the battery to be detected; When a second time difference between the remaining discharge time at the Mth sampling moment and the remaining discharge time at the recorded M-1th sampling moment is greater than a set first time difference threshold, the remaining discharge time at the Mth sampling moment is updated to the remaining discharge time at the M-1th sampling moment, wherein the interval time between the Mth sampling moment and the M-1th sampling moment is the preset time slice.
7. The method according to claim 1, characterized in that The remaining chargeable and dischargeable time includes the remaining chargeable time. After determining the remaining chargeable and dischargeable time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected, the method includes: The working mode of the working current of the battery to be detected is the charging mode, and the remaining charging time of the battery to be detected at the Nth sampling time satisfies T1≤k3*T R , the third current of the battery to be detected collected by the current collection module at the Mth sampling moment is received every preset time slice; wherein T1 is the remaining charging time at the Nth sampling moment, k3 is the third proportional coefficient, 1%≤k3<10%, T R is the remaining charging time of the battery to be detected when it is not charged, the preset time slice is less than or equal to 2 minutes, and M is an integer greater than or equal to 1; Determine the remaining chargeable time of the battery to be detected at the Mth sampling moment according to the third current of the battery to be detected and the working mode of the third current of the battery to be detected; When the second time difference between the remaining charging time at the Mth sampling moment and the remaining charging time at the recorded M-1th sampling moment is greater than the set first time difference threshold, the remaining charging time at the Mth sampling moment is updated to the remaining charging time at the M-1th sampling moment, wherein the interval between the Mth sampling moment and the M-1th sampling moment is the preset time slice.
8. A device for determining the remaining charge and discharge time of a battery, characterized in that: The device is configured in a central processor, the central processor is electrically connected to the current acquisition module and the battery to be detected in sequence, and the device includes: a data receiving unit, configured to receive the first current of the battery to be detected collected by the current collection module at the Nth sampling moment, wherein N is an integer greater than or equal to 2; a difference determination unit, used to determine a current difference between a first current of the battery to be detected collected at an Nth sampling moment and a second current of the battery to be detected collected at an N-1th sampling moment, wherein the interval between the Nth sampling moment and the N-1th sampling moment is a sampling period; a current correction unit, configured to use the second current of the battery to be detected collected at the N-1th sampling moment as the working current of the battery to be detected when the current difference is greater than a set current difference threshold; The usage time determination unit is used to determine the remaining charge and discharge time of the battery to be detected at the Nth sampling moment according to the working current of the battery to be detected and the working mode of the working current of the battery to be detected.
9. An electronic device, characterized in that: include: CPU; A memory for storing executable instructions of the central processing unit; The central processing unit is configured to execute the instructions to implement the method for determining the remaining charge and discharge time of a battery as described in any one of claims 1 to 7.
10. A storage medium, when instructions in the storage medium are executed by a central processing unit, the central processing unit is enabled to execute the method for determining the remaining chargeable and dischargeable time of a battery as claimed in any one of claims 1 to 7.
