A battery state machine management method and device
Patent Information
- Application Number
- CN202610964113.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-08-18
AI Technical Summary
[0002]传统电池电量计在状态切换(如静置→放电)时通常仅依赖单一阈值(如电流大于某值),响应速度慢,无法适应电动车等动态工况下的快速变化,影响SOC估算的实时性与准确性
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the battery state machine management method according to any embodiment of the present invention.
Smart Images

Figure CN122585044A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery management system technology, and in particular to a battery state machine control method and apparatus. Background Technology
[0002] Traditional battery fuel gauges typically rely on a single threshold (such as current exceeding a certain value) when switching states (e.g., from rest to discharge), resulting in slow response speeds. They cannot adapt to rapid changes in dynamic operating conditions such as electric vehicles, affecting the real-time performance and accuracy of SOC estimation.
[0003] How to achieve rapid and accurate switching of battery states under complex operating conditions and improve SOC response speed and stability are urgent technical problems to be solved. Summary of the Invention
[0004] This invention provides a battery state machine management method and device to achieve a two-layer architecture of main decision conditions and accelerated decision conditions, combined with multi-dimensional judgment logic of lead-acid battery charging and discharging characteristics, charger working stage, and vehicle static power consumption design, so as to balance anti-interference capability and state response speed.
[0005] According to one aspect of the present invention, a battery state machine management method is provided, comprising: Acquire target signal data corresponding to the battery to be controlled; wherein, the target signal data includes at least one of the following: battery cell voltage, charging current, discharging current, SOC data, charging duration data, charger hardware signal, and vehicle ACC signal; When the target signal data meets the main determination condition and continues to reach the first reference duration, the controllable battery switches its working state. When the target signal data satisfies the main determination condition and the acceleration determination condition, the first reference duration is reduced based on a preset multiplier to obtain the second acceleration duration; Based on the second acceleration duration, the battery to be controlled is controlled to switch operating states; wherein, the operating states include rest, discharge, charging and full charge.
[0006] According to another aspect of the present invention, a battery state machine management device is provided, comprising: The data acquisition module is used to acquire target signal data corresponding to the battery to be controlled; wherein, the target signal data includes at least one of the following: battery cell voltage, charging current, discharging current, SOC data, charging time data, charger hardware signal, and vehicle ACC signal; The first state control module is used to control the battery to be controlled to switch working states when the target signal data meets the main judgment condition and continues to reach the first reference duration. The duration processing module is used to reduce the first reference duration based on a preset multiplier to obtain a second acceleration duration when the target signal data meets the main determination condition and the acceleration determination condition. The second state control module is used to control the battery to be controlled to switch working states according to the second acceleration duration; wherein the working states include rest, discharge, charging and full charge.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the battery state machine management method according to any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the battery state machine management method according to any embodiment of the present invention.
[0009] The technical solution of this invention divides the battery state into four states: idle, discharging, charging, and fully charged, and sets multi-level transition conditions. When trigger conditions such as current, voltage, ACC signal, or charger connection are detected, the system shortens the state transition time according to a preset "acceleration transition factor" (e.g., 11 times, 6 times), achieving rapid response. For example, the default time for idle to discharging is 20 seconds. If the discharge current is >2A, the transition is accelerated by 11 times, completing the transition in approximately 1.8 seconds. This improves the response speed and adaptability of state transitions, avoiding SOC errors caused by delays, and is particularly suitable for high-current discharge or fast charging scenarios.
[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1This is a flowchart of a battery state machine management method provided in an embodiment of the present invention.
[0013] Figure 2 The state machine transition logic diagram provided for an embodiment of the present invention.
[0014] Figure 3 This is a flowchart illustrating the process of determining whether a battery to be controlled is switched from a static state to a discharging state, as provided in an embodiment of the present invention.
[0015] Figure 4 This is a flowchart illustrating the process of determining whether a battery to be controlled is switched from a static state to a charging state, as provided in an embodiment of the present invention.
[0016] Figure 5 This is a flowchart illustrating the process of determining whether a battery to be controlled is switched from a charging state to a stationary state, as provided in an embodiment of the present invention.
[0017] Figure 6 This is a flowchart illustrating the process of determining whether a battery to be controlled is switched from a charging state to a fully charged state, as provided in an embodiment of the present invention.
[0018] Figure 7 This is a flowchart illustrating the process of determining when a battery to be controlled switches from a fully charged state to a static state, as provided in an embodiment of the present invention.
[0019] Figure 8 This is a flowchart illustrating the process of determining when a battery to be controlled switches from a fully charged state to a static state, as provided in an embodiment of the present invention.
[0020] Figure 9 This is a schematic diagram of a battery state machine management device provided in an embodiment of the present invention.
[0021] Figure 10 A schematic diagram of the structure of an electronic device for implementing the battery state machine management method of this invention. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] Figure 1 This is a flowchart illustrating a battery state machine management method provided in an embodiment of the present invention. This embodiment is applicable to situations involving battery operating state switching. The method can be executed by a battery state machine management device, which can be implemented in hardware and / or software. This device can be configured in an electric bicycle. Figure 1 As shown, the method specifically includes the following steps: S110. Obtain the target signal data corresponding to the battery to be controlled.
[0025] The battery to be controlled can be understood as the energy storage battery to be managed in this case, such as the lead-acid battery of an electric bicycle. The target signal data can be data related to the operating status of the battery to be controlled and data corresponding to external devices. The target signal data includes at least one of the following: battery cell voltage, charging current, discharging current, SOC data, charging time data, charger hardware signals, and vehicle ACC signal.
[0026] SOC data can be the remaining battery power, while charging time data can be understood as the timing data of the battery's continuous charging. Charger hardware signals refer to the hardware detection signals that identify whether the charger is connected. The vehicle's ACC signal can be the trigger signal corresponding to the vehicle's power setting.
[0027] Specifically, the target signal data of the battery to be controlled can be collected in real time, and any one or more data combinations in the target signal data can be selected as the basis for judgment to determine whether the battery to be controlled needs to switch its working state.
[0028] S120: When the target signal data meets the main determination condition and continues to reach the first reference duration, control the battery to be controlled to switch working states.
[0029] The primary determination condition can be a pre-set condition used to determine whether the battery needs to switch operating states. The first reference duration can be a pre-set duration.
[0030] Specifically, after acquiring the target signal data, it can be determined whether the target signal data meets the preset main judgment condition. If the main judgment condition is met, a timer can be started to start timing. If the main judgment condition is met and continues for a first reference duration, the battery is controlled to complete the switching of working states.
[0031] S130: When the target signal data satisfies the main determination condition and the acceleration determination condition, the first reference duration is reduced based on a preset multiplier to obtain the second acceleration duration. The acceleration determination condition can be a determination rule set separately for some high-confidence signals. The preset scaling factor refers to the pre-set duration scaling ratio, and the embodiments of the present invention do not impose specific limitations on the size of the preset scaling factor. The second acceleration duration refers to a shorter duration obtained after scaling down.
[0032] In this embodiment of the invention, target signal data can continue to be monitored. When the target signal data simultaneously meets the main judgment condition and the acceleration judgment condition, a preset multiplier can be retrieved, and the first reference duration can be reduced using the preset multiplier to obtain the second acceleration duration.
[0033] S140. Control the battery to be controlled to switch working states according to the second acceleration duration; The operating states include static, discharging, charging, and fully charged.
[0034] Specifically, after the target signal data continuously meets the main judgment condition and the acceleration judgment condition, and reaches the second acceleration duration, the battery to be controlled can be controlled to switch its working state. Figure 2 The state machine transition logic diagram provided for an embodiment of the present invention.
[0035] This invention collects target signal data from the battery and external devices from multiple dimensions, combines the main judgment conditions with the reference duration to complete the normal state switching, and adds accelerated judgment logic to dynamically reduce the judgment time. This solves the problem that traditional battery state management solutions are difficult to balance anti-interference capability and response speed, and are prone to false state switching. It realizes accurate and efficient automatic state switching under all working conditions of battery rest, discharge, charging and full charge, and improves the stability and real-time performance of the battery management system.
[0036] Figure 3 This is a flowchart illustrating the determination process for a battery to switch from a static state to a discharging state, provided in an embodiment of the present invention. This embodiment optimizes the specific rules for determining the switch from a static state to a discharging state, based on the aforementioned embodiments.
[0037] In some possible implementations, when the battery to be controlled switches from a static state to a discharging state, the main determination condition is that the discharge current is greater than a first preset discharge current threshold, and the first reference duration is a first preset duration; the acceleration determination condition is that the discharge current is greater than a second preset discharge current threshold, or the vehicle ACC signal is valid.
[0038] The first preset discharge current threshold and the second preset discharge current threshold can be two current judgment thresholds set separately for the discharge condition. The first preset discharge current threshold can be 0.8A and the second preset discharge current threshold can be 2A. The first preset duration can be 20s.
[0039] It is understandable that when the vehicle is stationary, the total static current of the normally powered equipment (alarms, instrument standby, and controller low-voltage circuits) is approximately 0.2–0.5A. A current of 0.8A, higher than this range, can filter out static noise; at the same time, it is lower than the minimum current during light-load riding (approximately 1.5A), ensuring no missed detections. The first preset duration is set to 20 seconds, which can filter out the current spike at the moment of motor startup (usually <0.5 seconds) and instantaneous fluctuations caused by road bumps.
[0040] Specifically, when the battery is in a static state, if the discharge current exceeds a first preset discharge current threshold and continues for a first preset duration, the battery can be controlled to switch to a discharge state. If the duration has not yet reached the first preset duration, but the discharge current exceeds a second preset discharge current threshold, or a valid vehicle ACC signal is detected, the first reference duration can be reduced to obtain a second acceleration duration. The second acceleration duration is shorter than the first reference duration, allowing the battery to switch states more quickly. Because 2A far exceeds all static currents and alarm pulses (peak <1A), it can be 100% confirmed that the vehicle is being ridden. ACC (key current) is a digital signal for vehicle start-up, which rises earlier than the current and is noiseless, and can be directly used as a strong confidence signal. This embodiment of the invention can effectively solve the problems of delayed state switching and SOC display delay during vehicle start-up.
[0041] For example, such as Figure 3 As shown, the discharge process in the static state is as follows: Starting from the static state, the discharge current I_dis is detected. If I_dis is not greater than 0.8A, the static state is maintained. If I_dis is greater than 0.8A, a 20-second timer is started and accelerated monitoring is activated simultaneously. During the monitoring process, it is determined whether either the discharge current I_dis is greater than 2A or the ACC signal is valid is met. If it is met, accelerated timing is triggered, and the timer decreases at a faster rate. If it is not met, the timer decreases at the normal rate. When the timer reaches zero, the system state jumps to the discharge state, and the process ends.
[0042] Figure 4 This is a flowchart illustrating the process of determining whether a battery is switching from a static state to a charging state, as provided in an embodiment of the present invention. This embodiment optimizes the specific rules for determining whether a battery is switching from a static state to a charging state, based on the aforementioned embodiments.
[0043] In some possible implementations, the main determination condition is that the voltage of the battery cell is greater than a first preset voltage threshold or a first preset charging current threshold, and the first reference duration is a second preset duration; the acceleration determination condition is any one of the following: the charging current is greater than a second preset charging current threshold, the charger hardware access signal is valid, or the cell voltage and the charging current simultaneously meet the corresponding threshold requirements.
[0044] The first preset voltage threshold can be a voltage threshold for determining whether the battery is connected to the charger, and the first preset voltage threshold can be 14.2V. The first preset charging current threshold can be a small charging current threshold, for example, 0.8A, and the second preset charging current threshold can be a large charging current threshold, for example, 2A. The second preset duration can be 20s.
[0045] It is understandable that lead-acid batteries will experience a natural voltage rebound during resting, and this rebound voltage has a fixed upper limit. However, when a three-stage lead-acid charger is connected, the voltage of each individual battery cell will steadily rise to the constant current operating range of the charger. Therefore, selecting a threshold higher than the battery's rebound voltage during resting as the judgment standard can accurately distinguish between "natural voltage rise of the battery" and "charger connection for charging". Combined with a reference anti-shake duration, it filters out voltage fluctuations caused by the instantaneous plugging and unplugging of the charger.
[0046] Specifically, when the battery is in a static state, the individual cell voltage and charging current can be monitored. If the individual cell voltage exceeds a first preset voltage threshold or the charging current exceeds a first preset charging current threshold, the main judgment condition is met. At this time, a timer T=20s can be started, and acceleration monitoring can be activated simultaneously. If the main judgment condition is met continuously for 20s, the system can switch to the discharge working state. Acceleration is triggered if any of the following conditions are detected: the charging current exceeds a second preset charging current threshold, the charger hardware is connected, or the voltage and current synchronization meets the standard. Here, voltage and current synchronization meeting the standard means that the charging current exceeds the first preset charging current threshold and the individual cell voltage exceeds 14.3V.
[0047] It's also important to note that, firstly, a charging current >2A, meaning a high current, definitely indicates a legitimate charger is operating, and this is significantly greater than the float charging current (0.3A), demonstrating extremely high reliability. Secondly, detecting a charger connection signal, meaning the hardware detects a physical connection to the charger (such as auxiliary contacts), occurs earlier than the current rise and is the fastest and most reliable signal. Thirdly, a charging current >0.8A and a single-cell voltage >14.3V simultaneously meet the requirements of medium current and relatively high voltage, indicating that charging has stabilized in the mid-to-late stage of constant current charging, strongly confirming the charging status.
[0048] For example, continue to refer to Figure 4 The charging process in the static state is as follows: Starting from the static state, the charging current I_chg and the single-cell voltage Vcell are detected. If the charging current is not greater than 0.8A and the single-cell voltage is not greater than 14.2V, the static state is maintained. If either the charging current is greater than 0.8A or the single-cell voltage is greater than 14.2V, a 20-second timer is started and accelerated monitoring is activated simultaneously. During the monitoring process, it is determined whether any of the following conditions are met: "charging current greater than 2A", "charger connection signal valid", or "charging current greater than 0.8A and single-cell voltage greater than 14.3V". If the conditions are met, accelerated timing is triggered, and the timer decreases at a faster rate. If the conditions are not met, the timer decreases at the normal rate. When the timer reaches zero, the state transitions to the charging state, and the process ends.
[0049] Figure 5 This is a flowchart illustrating the determination process for a battery to switch from a charging state to a stationary state, provided in an embodiment of the present invention. This embodiment optimizes the specific rules for determining the switch from a charging state to a stationary state, based on the aforementioned embodiments.
[0050] In some possible implementations, when the battery to be controlled switches from a charging state to a resting state, six sets of judgment criteria are configured to constitute the main judgment condition: First determination: The discharge current is greater than the third preset discharge current threshold; Second determination criteria: The voltage of the individual cell is less than the second preset voltage threshold; The third determination criteria: the individual cell voltage is less than the third preset voltage threshold, and the SOC data is less than the first preset power threshold; Fourth determination: The charging current is less than the fourth preset current threshold. Fifth determination criteria: The charging current is less than the fifth preset current threshold and lasts for the third preset duration, while the individual cell voltage is less than the fourth preset voltage threshold. The sixth determination is that the charger is unplugged when the charging signal is valid, and the charging current is less than the sixth preset current threshold. The six sets of judgment contents are combined to form the first condition, the second condition, the third condition, the fourth condition, and the fifth condition. When any one of the first condition, the third condition, the fourth condition, or the fifth condition is met, it is determined that the main judgment condition is satisfied. The first reference time is the fourth preset time. The acceleration determination condition is any one of the following three conditions: the charger disconnection signal is valid, the discharge current is greater than the seventh preset discharge current threshold, and the individual cell voltage drops significantly.
[0051] The third preset discharge current threshold is 0.5A, the second preset voltage threshold is 13.4V, the third preset voltage threshold is 13.7V, and the first preset charge threshold is 96%. The fourth preset current threshold is 0.2A, the fifth preset current threshold is 1A, the third preset duration is 60s, the fourth preset voltage threshold is 13.6V, and the sixth preset current threshold is 0.6A.
[0052] The fourth preset duration is the first baseline duration for this scenario, set to 90 seconds. The seventh preset discharge current threshold is set to 1.5A. The charger disconnect signal is the hardware signal that identifies when the charger is disconnected. A significant drop in single-cell voltage can be understood as a noticeable decrease in battery voltage of 0.5V or more within a short period of time. For example, a single-cell voltage below 13V.
[0053] Specifically, this scenario sets up six independent judgment criteria, which can cover various charging completion scenarios: user actively unplugs the charging gun, charger automatically stops charging, battery is full but the charging gun is not unplugged, etc. Specific values (such as 13.4V, 0.2A, 1A, etc.) are derived from the static voltage curve of lead-acid batteries and the actual measured current of the charger indicator light.
[0054] The six sets of content can be combined into five judgment conditions. When any one of the first, third, fourth, or fifth conditions is met, the main judgment condition is satisfied, and further judgment can be made as to whether the accelerated judgment condition is satisfied. If the accelerated judgment condition is satisfied, the corresponding first baseline time can be reduced.
[0055] Based on the above embodiments, the first condition corresponds to satisfying the first determination content. The second condition corresponds to satisfying either the second determination content or the third determination content. The third condition corresponds to simultaneously satisfying the second condition and the fourth determination content. The fourth condition corresponds to satisfying the fifth judgment content. The fifth condition corresponds to the fulfillment of the sixth judgment content.
[0056] For example, such as Figure 5 As shown, the six criteria for determining the charging-resting process are as follows: 1. (First criterion) Discharge current greater than 0.5A 2 (Second Judgment Item): Single-cell voltage is below 13.4V. 3. (Third Judgment Item) Single-cell voltage is below 13.7V and SOC is below 96%. 4. (Fourth Judgment Item) Charging current is less than 0.2A. 5. (Fifth Judgment Item) Charging current less than 1A for more than 60 minutes and single cell voltage less than 13.6V. 6. (Sixth Judgment) When the charger signal is valid, the charger is unplugged and the charging current is less than 0.6A. The combinations of conditions corresponding to A, B, C, D, and E: A (First condition): Satisfies condition 1 B (Second Condition): Satisfies either 2 or 3. C (Third condition): Both B and 4 must be satisfied. D (Fourth condition): Satisfies condition 5 E (Fifth condition): Satisfies 6 Specifically, starting from the charging state, the system first detects the discharge current I_dis, charging current I_chg, single-cell voltage Vcell, SOC, charger signal, and low-current charging time. If any of conditions A, C, D, or E are not met, the charging state is maintained. If the conditions are met, a timer with T=90s is started and accelerated monitoring is enabled. During the monitoring process, it is determined whether any of the following conditions are met: "charger unplugged while charger is active" or "discharge current greater than 1.5A or single-cell voltage less than 13V". If met, accelerated timing is triggered, and the timer decreases at a faster rate. If not met, it decreases at the normal rate. During the decrease, the condition must be continuously checked. If the condition is no longer met during this period, the system returns to the charging state. If the condition is met continuously and the timer reaches zero, the system transitions to the idle state, and the process ends.
[0057] Figure 6 This is a flowchart illustrating the process of determining whether a battery is switching from a charging state to a fully charged state, as provided in an embodiment of the present invention. This embodiment optimizes the specific rules for determining whether a battery is switching from a charging state to a fully charged state, based on the aforementioned embodiments.
[0058] In some possible implementations, the charging time data includes constant voltage charging time and low current charging time. When the battery to be controlled switches from charging state to full charge state, ten sets of judgment content constitute the main judgment condition: The seventh determination: the voltage of the individual cell is not lower than the fifth preset voltage threshold; Eighth determination: The absolute value of the charging current is less than the seventh preset current threshold; Ninth determination: The SOC data is greater than the second preset power threshold, and the constant voltage charging time is greater than the fifth preset time, or the low current charging time is greater than the sixth preset time; The tenth determination criteria: the SOC data is greater than the third preset power threshold, the discharge current is less than the eighth preset current threshold, and the individual cell voltage is within the specified voltage range; Eleventh determination: The constant voltage charging time is greater than the seventh preset time; The twelfth determination: The charging current is less than the ninth preset current threshold and lasts for the eighth preset duration; The thirteenth determination is that the small current charging time is greater than the ninth preset time, and the single-cell voltage is greater than the sixth preset voltage threshold. Fourteenth determination: The SOC data is greater than the fourth preset power threshold; The fifteenth determination: if the charging signal is invalid, or if the charging signal is valid, the charger is unplugged; The sixteenth determination is: receiving full charge communication data from the charger, and the voltage of the individual unit is greater than the seventh preset voltage threshold; The ten sets of judgment contents are combined to form the sixth condition, the seventh condition, and the eighth condition. When any one of the sixth condition, the seventh condition, or the eighth condition is met, it is determined that the main judgment condition is satisfied. The first reference duration is the tenth preset duration. The acceleration determination condition is that the charger hardware access signal is valid, or a full charge communication message is received from the charger.
[0059] The constant voltage charging time and low current charging time are two subdivided timing data categories derived from the charging time data. The fifth preset voltage threshold is 13.4V; the seventh preset current threshold is 1.1A. The second preset battery level threshold is 96%, the fifth preset time is 45min, and the sixth preset time is 2.5min. The third preset battery level threshold is 97%, the eighth preset current threshold is 0.15A, and the specified voltage range for a single unit is 13.6V–13.9V. The seventh preset time is 150min, the ninth preset current threshold is 1A, and the eighth preset time is 60min. The ninth preset time is 2min, and the sixth preset voltage threshold is 13.65V. The fourth preset battery level threshold is 70%. The seventh preset voltage threshold is 13.6V. The tenth preset time is the first baseline time for this scenario, set at 90s. The charger's full charge communication data refers to the digital signal from the smart charger indicating that the battery is fully charged.
[0060] Specifically, this scenario divides charging time data into constant voltage charging time and low current charging time. It also sets ten basic judgment criteria, from the seventh to the sixteenth, corresponding to dimensions such as voltage, current, battery level, charging time, hardware status, and communication signal. These basic criteria are combined into the sixth, seventh, and eighth conditions. The fulfillment of any one of these conditions determines that the main judgment condition is met, and the corresponding baseline duration is adopted. When a charger is detected to be connected or a full-charge communication message is received, the acceleration judgment condition is triggered.
[0061] Based on the above technical solution, the sixth condition corresponds to simultaneously satisfying the seventh, eighth, fourteenth, and fifteenth judgment criteria. The seventh condition corresponds to satisfying any one of the following judgment conditions: the ninth, the tenth, the eleventh, the twelfth, and the thirteenth. The eighth condition corresponds to the fulfillment of the sixteenth judgment.
[0062] For example, such as Figure 6 As shown: 1. (Seventh Judgment Item) Single-cell voltage is greater than or equal to 13.4V. 2 (Eighth Judgment Item). The absolute value of the current is less than 1.1A. 3 (Ninth Judgment Item): Constant voltage charging time greater than 45 minutes or low current charging time greater than 2.5 minutes. 4 (Tenth Judgment Item). The displayed SOC is greater than 97%, the discharge current is less than 0.15A, and the single-cell voltage is greater than 13.6V and less than 13.9V. 5. (Eleventh Judgment Item) Constant voltage charging time greater than 150 min 6 (Twelfth Judgment Item): Charging current less than 1A for more than 60 minutes. 7 (Thirteenth Judgment): Low-current charging for 20 minutes with a single cell voltage greater than 13.65V. 8. (Fourteenth Judgment Item): Internal SOC greater than 70%. 9. (Fifteenth Judgment): Disconnect the charger when the charging signal is invalid or valid. 10 (Sixteenth Judgment): Charging communication receives fully charged data and single-cell voltage is greater than 13.6V. A (Sixth condition): Conditions 1, 2, 8, and 9 must be met simultaneously. B (Seventh condition): Any one of 3, 4, 5, 6, or 7 must be satisfied. C (Eighth condition): Satisfies 10 Starting from the charging state, the system monitors the discharge current I_dis, charging current I_chg, single-cell voltage Vcell, SOC, charger signal, low-current charging time, and constant-voltage charging time. If condition C is not met, or conditions A and B are not simultaneously met, the charging state is maintained. If condition C is met, or conditions A and B are simultaneously met, a timer of T=90s is started and accelerated monitoring is initiated. During the monitoring process, it is determined whether any of the following conditions are met: "charging communication receives a fully charged signal" or "charger is inserted or I_chg>0.1A". If met, accelerated timing is triggered, and the timer decrements at a faster rate. If not met, it decrements at the normal rate. During the decrementing process, the condition must be continuously checked. If the condition is no longer met during this period, the system returns to the charging state. If the condition remains met and the timer reaches zero, the system transitions to the fully charged state, and the process ends.
[0063] It should be noted that the full charge judgment logic uses three sets of composite conditions: A, B, and C. The core purpose is to ensure that the battery truly reaches 100% SOC, providing a reliable starting point for subsequent zero-point discharge calibration. Condition A requires four indicators to be met simultaneously: single-cell voltage greater than or equal to 13.4V, absolute current less than 1.1A, internal SOC greater than 70%, and the charger being unplugged when the charging signal is invalid or valid. This condition corresponds to the scenario where the user unplugs the charger early but the battery is already relatively full. 13.4V is the typical voltage of a lead-acid battery after full charge and rest (approximately corresponding to 95%-98% SOC). Using this as an anchor point avoids long periods without calibration. Condition B only requires meeting any one of the following: displayed SOC greater than 96% and constant voltage charging time greater than 45 minutes or low-current charging time greater than [missing information]. The system considers the following conditions: a state of charge (SOC) greater than 97% and discharge current less than 0.15A, with single-cell voltage between 13.6V and 13.9V; constant-voltage charging time greater than 150 minutes; charging current less than 1A for more than 60 minutes; and low-current charging for more than 2 minutes with single-cell voltage greater than 13.65V. This group of conditions, confirmed by both accumulated charging time and minute current, corresponds to a scenario where the battery is truly fully charged. Group C conditions have the highest priority: when a full-charge signal is received via charging communication and the single-cell voltage is greater than 13.6V, the full-charge information reported by the smart charger can be directly adopted. To prevent accidental triggering by instantaneous signals, a stable duration of 1.5 minutes is set for the overall judgment, and two acceleration conditions are configured: when the charger is physically inserted or the current is greater than 0.1A, it can quickly enter the full-charge state to avoid delay; the communication full-charge signal, as a highly reliable digital signal, can also trigger a rapid response, further optimizing the efficiency of the full-charge judgment.
[0064] Figure 7This is a flowchart illustrating the process of determining whether a battery is switching from a fully charged state to a static state, as provided in an embodiment of the present invention. This embodiment optimizes the specific rules for determining whether a battery is switching from a fully charged state to a static state, based on the aforementioned embodiments.
[0065] When the battery to be controlled switches from a fully charged state to a static state, the seventeenth to twentieth determination criteria constitute the main determination condition: Seventeenth determination: The charging current is less than the ninth preset current threshold; Eighteenth determination: The charging time exceeds the thirteenth preset time; Nineteenth determination: The charger is in the unplugged state; Twentieth determination: The voltage of the single cell is less than the eighth preset voltage threshold; When any of the seventeenth to nineteenth determinations above are true, and the twentieth determination is true, the determination satisfies the main determination condition, and the first reference duration is the eleventh preset duration. The acceleration determination condition is that the discharge current is greater than the eighth preset discharge current threshold.
[0066] Among them, the ninth preset current threshold is 0.15A; the thirteenth preset duration is 20h; "charger unplugged" means the hardware detects that the charger is disconnected; the eighth preset voltage threshold is 14V. The eleventh preset duration is the first base duration for this scenario, which is 30s, corresponding to "start timer T=30s" in the flowchart. The eighth preset discharge current threshold is 0.5A, corresponding to the condition "trigger acceleration timer" in the flowchart.
[0067] Specifically, this scenario sets four sets of judgment criteria based on four types of data: charging current, charging time, charger status, and individual cell voltage. These criteria must satisfy the logical relationship in the flowchart: "Main condition A or B or C and satisfy D." When any one of A, B, or C is true, and D is also true, the main judgment condition is satisfied, and the corresponding baseline duration is adopted. When the discharge current exceeds 0.5A, the acceleration judgment condition is triggered. The system comprehensively judges the charging stop condition after full charge by combining these four types of parameters, fully covering scenarios such as charging stop due to timeout, low-current float charging, and active unplugging.
[0068] I. Conditions 1.4 basic conditions: A (Seventeenth Judgment): Charging current is less than 0.15A B (Eighteenth Judgment): Charging time exceeds 20 hours C (Nineteenth Judgment): Charger removed when charging signal is valid. D (Twentieth Judgment): Single-cell voltage below 14V 2. Main condition: It must satisfy any one of A, B, and C, and simultaneously satisfy condition D.
[0069] Specifically, starting from the fully charged state, the discharge current I_dis, charging current I_chg, single-cell voltage Vcell, SOC, charger signal, low-current charging time, and constant-voltage charging time are detected. If the requirement of "main condition A or B or C and D is met simultaneously" is not met, the fully charged state is maintained. If the condition is met, a timer of T=30s is started and acceleration monitoring is enabled.
[0070] During the timing process, it is determined whether the condition "discharge current I_dis>0.5A" is met: if it is met, accelerated timing is triggered, and the timer decreases at a faster speed; if it is not met, it decreases at the normal speed.
[0071] During the decrement process, it is necessary to continuously check whether the main condition is true: if the condition is no longer true during the period, the system will return to the full charge state directly; if the condition is true and the timer returns to zero, the system state will change and enter the static state, and the process will end.
[0072] It should be understood that the main condition for switching from fully charged to idle state is to meet any one of the following conditions: "charging current less than 0.15A, charging time exceeding 20 hours, or charger removed," and simultaneously, the single-cell voltage must be below 14V. This condition covers three scenarios: natural charging stop after the battery is fully charged, charging timeout protection, and user actively unplugging the charger. The requirement of a single-cell voltage below 14V can effectively avoid misjudgments caused by the charger's artificially high voltage. The switching process is set to a duration of 30 seconds to filter out voltage and current fluctuations at the moment of unplugging the charger, ensuring the stability of the state judgment. At the same time, an acceleration condition of discharge current greater than 0.5A is configured. When a large current discharge is detected immediately after full charging, the system can quickly exit the fully charged state and enter the idle state. This current threshold is much higher than the static current, which can accurately identify the scenario when the user is about to ride, avoiding state switching delays.
[0073] Figure 8 This is a flowchart illustrating the process of determining whether a battery is switching from a fully charged state to a static state, as provided in an embodiment of the present invention. This embodiment optimizes the specific rules for determining whether a battery is switching from a fully charged state to a static state, based on the aforementioned embodiments.
[0074] In this embodiment, when the battery to be controlled switches from a discharging state to a stationary state, the 21st and 22nd determination criteria constitute the main determination conditions. The requirement is satisfied if either of the two determination criteria is met. The twenty-first determination is that the discharge current is less than the eleventh preset discharge current threshold. The twenty-second determination is: the charging current is greater than the twelfth preset current threshold, or the single-cell voltage is greater than the ninth preset voltage threshold and the change in charging current is less than or equal to the thirteenth preset current threshold; The first reference duration includes a twelfth preset duration and a thirteenth preset duration. The twelfth preset duration corresponds to the twenty-first determination content, and the thirteenth preset duration corresponds to the twenty-second determination content. The acceleration determination condition is that the charger hardware access signal is valid, or the timing duration of the main determination phase is close to the twelfth preset duration.
[0075] The eleventh preset discharge current threshold is set to 0.8A, the twelfth preset current threshold is set to 1.5A, the ninth preset voltage threshold is set to 14V, and the thirteenth preset current threshold is set to 1.5A. The twelfth preset duration is the first reference duration for this scenario, set to 3s. The charging current change refers to the difference in charging current between the sampling times. The main judgment timing duration is close to the preset duration, meaning the remaining judgment timing duration is less than 0.5s.
[0076] For example, starting from the discharge state, the system detects the discharge current I_dis, charging current I_chg, single-cell voltage Vcell, low-current discharge time, and charging current fluctuation. Then, it determines two branch conditions: if condition A (discharge current I_dis < 0.8A) is met, a 120-second timer is started and accelerated monitoring is enabled. When condition A is met for 50 seconds, accelerated timing is triggered, and the timer decreases at a faster rate. If condition B (charging current I_chg > 1.5A or single-cell voltage Vcell > 14V, and charging current fluctuation |ΔI_chg| ≤ 1.5A) is met, a 60-second timer is started and accelerated monitoring is enabled. When the charger connection information is valid, accelerated timing is triggered, and the timer decreases at a faster rate. Both branch timers decrease according to the rules. If the condition is no longer met during the decrease, the system returns to the discharge state. If the condition remains met and the timer reaches zero, the system state transitions to a static state, and the process ends.
[0077] It should be understood that the logic for switching from the discharge state to the resting state includes two main conditions and corresponding acceleration mechanisms: Condition 1 is that the discharge current is less than 0.8A and lasts for 2 minutes, corresponding to the scenario where the vehicle stops riding and the current drops back to the static level. The 2-minute duration ensures that the vehicle has completely stopped, avoiding misjudgment; Condition 2 is that the charging current is greater than 1.5A or the single-cell voltage is greater than 14V, and the charging current fluctuation does not exceed 1.5A and lasts for 60 seconds. This condition is used in the scenario where the charger is detected and the current fluctuation is stable, indicating that the battery is charging and needs to switch from the discharge state to the resting state to transition to the charging process. At the same time, two acceleration conditions are set: when the strong signal of the charger being plugged in is detected, the validity of Condition 2 can be quickly confirmed; when Condition 1 has been met for 50 seconds, the remaining timer will be accelerated to complete, thereby improving the response speed of the state switching.
[0078] Figure 9 This is a schematic diagram of a battery state machine management device provided in an embodiment of the present invention. Figure 9 As shown, the device includes: The data acquisition module 910 is used to acquire target signal data corresponding to the battery to be controlled; wherein, the target signal data includes at least one of the following: battery cell voltage, charging current, discharging current, SOC data, charging time data, charger hardware signal, and vehicle ACC signal; The first state control module 920 is used to control the battery to be controlled to switch working states when the target signal data meets the main determination condition and continues to reach the first reference duration. The duration processing module 930 is used to reduce the first reference duration based on a preset multiplier to obtain a second acceleration duration when the target signal data meets the main determination condition and the acceleration determination condition. The second state control module 940 is used to control the battery to be controlled to switch working states according to the second acceleration duration; wherein the working states include rest, discharge, charging and full charge.
[0079] This invention collects target signal data from the battery and external devices from multiple dimensions, combines the main judgment conditions with the reference duration to complete the normal state switching, and adds accelerated judgment logic to dynamically reduce the judgment time. This solves the problem that traditional battery state management solutions are difficult to balance anti-interference capability and response speed, and are prone to false state switching. It realizes accurate and efficient automatic state switching under all working conditions of battery rest, discharge, charging and full charge, and improves the stability and real-time performance of the battery management system.
[0080] In some possible implementations, when the battery to be controlled switches from a resting state to a discharging state, The main determination condition is that the discharge current is greater than a first preset discharge current threshold, and the first reference duration is a first preset duration. The acceleration determination condition is that the discharge current is greater than the second preset discharge current threshold, or the vehicle ACC signal is valid.
[0081] In some possible implementations, when the battery to be controlled switches from a resting state to a charging state, The main determination condition is that the voltage of the battery cell is greater than a first preset voltage threshold or a first preset charging current threshold, and the first reference duration is a second preset duration. The acceleration determination condition is any one of the following: the charging current is greater than the second preset charging current threshold, the charger hardware access signal is valid, or the individual unit voltage and the charging current simultaneously meet the corresponding threshold requirements.
[0082] In some possible implementations, when the battery to be controlled switches from a charging state to a resting state, six sets of judgment criteria are configured to constitute the main judgment condition: First determination: The discharge current is greater than the third preset discharge current threshold; Second determination criteria: The voltage of the individual cell is less than the second preset voltage threshold; The third determination criteria: the individual cell voltage is less than the third preset voltage threshold, and the SOC data is less than the first preset power threshold; Fourth determination: The charging current is less than the fourth preset current threshold. Fifth determination criteria: The charging current is less than the fifth preset current threshold and lasts for the third preset duration, while the individual cell voltage is less than the fourth preset voltage threshold. The sixth determination is that the charger is unplugged when the charging signal is valid, and the charging current is less than the sixth preset current threshold. The six sets of judgment contents are combined to form the first condition, the second condition, the third condition, the fourth condition, and the fifth condition. When any one of the first condition, the third condition, the fourth condition, or the fifth condition is met, it is determined that the main judgment condition is satisfied. The first reference time is the fourth preset time. The acceleration determination condition is any one of the following three conditions: the charger disconnection signal is valid, the discharge current is greater than the seventh preset discharge current threshold, and the individual cell voltage drops significantly.
[0083] In some possible implementations, the first condition corresponds to satisfying the first judgment content. The second condition corresponds to satisfying either the second determination content or the third determination content. The third condition corresponds to simultaneously satisfying the second condition and the fourth determination content. The fourth condition corresponds to satisfying the fifth judgment content. The fifth condition corresponds to the fulfillment of the sixth judgment content.
[0084] In some possible implementations, the charging time data includes constant voltage charging time and low current charging time. When the battery to be controlled switches from charging state to full charge state, ten sets of judgment content constitute the main judgment condition: The seventh determination: the voltage of the individual cell is not lower than the fifth preset voltage threshold; Eighth determination: The absolute value of the charging current is less than the seventh preset current threshold; Ninth determination: The SOC data is greater than the second preset power threshold, and the constant voltage charging time is greater than the fifth preset time, or the low current charging time is greater than the sixth preset time; The tenth determination criteria: the SOC data is greater than the third preset power threshold, the discharge current is less than the eighth preset current threshold, and the individual cell voltage is within the specified voltage range; Eleventh determination: The constant voltage charging time is greater than the seventh preset time; The twelfth determination: The charging current is less than the ninth preset current threshold and lasts for the eighth preset duration; The thirteenth determination is that the small current charging time is greater than the ninth preset time, and the single-cell voltage is greater than the sixth preset voltage threshold. Fourteenth determination: The SOC data is greater than the fourth preset power threshold; The fifteenth determination: if the charging signal is invalid, or if the charging signal is valid, the charger is unplugged; The sixteenth determination is: receiving full charge communication data from the charger, and the voltage of the individual unit is greater than the seventh preset voltage threshold; The ten sets of judgment contents are combined to form the sixth condition, the seventh condition, and the eighth condition. When any one of the sixth condition, the seventh condition, or the eighth condition is met, it is determined that the main judgment condition is satisfied. The first reference duration is the tenth preset duration. The acceleration determination condition is that the charger hardware access signal is valid, or a full charge communication message is received from the charger.
[0085] In some possible implementations, the sixth condition corresponds to simultaneously satisfying the seventh, eighth, fourteenth, and fifteenth judgment conditions. The seventh condition corresponds to satisfying any one of the following judgment conditions: the ninth, the tenth, the eleventh, the twelfth, and the thirteenth. The eighth condition corresponds to the fulfillment of the sixteenth judgment.
[0086] In some possible implementations, when the battery to be controlled switches from a fully charged state to a static state, the seventeenth to twentieth determination criteria are configured to constitute the main determination condition: Seventeenth determination: The charging current is less than the ninth preset current threshold; Eighteenth determination: The charging time exceeds the thirteenth preset time; Nineteenth determination: The charger is in the unplugged state; Twentieth determination: The voltage of the single cell is less than the eighth preset voltage threshold; When any of the seventeenth to nineteenth determinations above are true, and the twentieth determination is true, the determination satisfies the main determination condition, and the first reference duration is the eleventh preset duration. The acceleration determination condition is that the discharge current is greater than the eighth preset discharge current threshold.
[0087] In some possible implementations, when the battery to be controlled switches from a discharging state to a stationary state, the 21st and 22nd determination criteria constitute the main determination conditions, and the requirement is determined to be met when either of the two determination criteria is satisfied: The twenty-first determination is that the discharge current is less than the eleventh preset discharge current threshold. The twenty-second determination is: the charging current is greater than the twelfth preset current threshold, or the single-cell voltage is greater than the ninth preset voltage threshold and the change in charging current is less than or equal to the thirteenth preset current threshold; The first reference duration includes a twelfth preset duration and a thirteenth preset duration. The twelfth preset duration corresponds to the twenty-first determination content, and the thirteenth preset duration corresponds to the twenty-second determination content. The acceleration determination condition is that the charger hardware access signal is valid, or the timing duration of the main determination phase is close to the twelfth preset duration.
[0088] Figure 10This is a schematic diagram of the structure of an electronic device for implementing the battery state machine management method of this invention. The electronic device is intended to represent various forms of digital computers, such as laptops, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0089] like Figure 10 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0090] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0091] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the battery state machine management method.
[0092] In some embodiments, the battery state machine management method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the battery state machine management method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the battery state machine management method by any other suitable means (e.g., by means of firmware).
[0093] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific integrated circuits (ASICs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0094] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0095] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0096] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0097] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0098] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and Virtual Private Server (VPS) services, such as high management difficulty and weak business scalability.
[0099] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0100] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A battery state machine management method, characterized in that, include: Acquire target signal data corresponding to the battery to be controlled; wherein, the target signal data includes at least one of the following: battery cell voltage, charging current, discharging current, SOC data, charging duration data, charger hardware signal, and vehicle ACC signal; When the target signal data meets the main determination condition and continues to reach the first reference duration, the controllable battery switches its working state. When the target signal data satisfies the main determination condition and the acceleration determination condition, the first reference duration is reduced based on a preset multiplier to obtain the second acceleration duration; Based on the second acceleration duration, the battery to be controlled is controlled to switch operating states; wherein, the operating states include rest, discharge, charging and full charge.
2. The battery state machine management method according to claim 1, characterized in that, When the battery to be controlled switches from a static state to a discharging state... The main determination condition is that the discharge current is greater than a first preset discharge current threshold, and the first reference duration is a first preset duration. The acceleration determination condition is that the discharge current is greater than the second preset discharge current threshold, or the vehicle ACC signal is valid.
3. The battery state machine management method according to claim 2, characterized in that, When the battery to be controlled switches from a static state to a charging state... The main determination condition is that the voltage of the battery cell is greater than a first preset voltage threshold or a first preset charging current threshold, and the first reference duration is a second preset duration. The acceleration determination condition is any one of the following three conditions: the charging current is greater than the second preset charging current threshold, the charger hardware access signal is valid, or the individual unit voltage and the charging current simultaneously meet the corresponding threshold requirements.
4. The battery state machine management method according to claim 1, characterized in that, When the battery to be controlled switches from a charging state to a stationary state, six sets of judgment criteria are configured to constitute the main judgment condition: First determination: The discharge current is greater than the third preset discharge current threshold; Second determination criteria: The voltage of the individual cell is less than the second preset voltage threshold; The third determination criteria: the individual cell voltage is less than the third preset voltage threshold, and the SOC data is less than the first preset power threshold; Fourth determination: The charging current is less than the fourth preset current threshold. Fifth determination criteria: The charging current is less than the fifth preset current threshold and lasts for the third preset duration, while the individual cell voltage is less than the fourth preset voltage threshold. The sixth determination is that the charger is unplugged when the charging signal is valid, and the charging current is less than the sixth preset current threshold. The six sets of judgment contents are combined to form the first condition, the second condition, the third condition, the fourth condition, and the fifth condition. When any one of the first condition, the third condition, the fourth condition, or the fifth condition is met, it is determined that the main judgment condition is satisfied. The first reference time is the fourth preset time. The acceleration determination condition is any one of the following three conditions: the charger disconnection signal is valid, the discharge current is greater than the seventh preset discharge current threshold, and the individual cell voltage drops significantly.
5. The battery state machine management method according to claim 4, characterized in that, The first condition corresponds to satisfying the first judgment content. The second condition corresponds to satisfying either the second determination content or the third determination content. The third condition corresponds to simultaneously satisfying the second condition and the fourth determination content. The fourth condition corresponds to satisfying the fifth judgment content. The fifth condition corresponds to the fulfillment of the sixth judgment content.
6. The battery state machine management method according to claim 1, characterized in that, The charging time data includes constant voltage charging time and low current charging time. When the battery under control switches from charging state to full charge state, ten sets of judgment content constitute the main judgment condition: The seventh determination: the voltage of the individual cell is not lower than the fifth preset voltage threshold; Eighth determination: The absolute value of the charging current is less than the seventh preset current threshold; Ninth determination: The SOC data is greater than the second preset power threshold, and the constant voltage charging time is greater than the fifth preset time, or the low current charging time is greater than the sixth preset time; The tenth determination criteria: the SOC data is greater than the third preset power threshold, the discharge current is less than the eighth preset current threshold, and the individual cell voltage is within the specified voltage range; Eleventh determination: The constant voltage charging time is greater than the seventh preset time; The twelfth determination: The charging current is less than the ninth preset current threshold and lasts for the eighth preset duration; The thirteenth determination is that the small current charging time is greater than the ninth preset time, and the single-cell voltage is greater than the sixth preset voltage threshold. Fourteenth determination: The SOC data is greater than the fourth preset power threshold; The fifteenth determination: if the charging signal is invalid, or if the charging signal is valid, the charger is unplugged; The sixteenth determination is: receiving full charge communication data from the charger, and the voltage of the individual unit is greater than the seventh preset voltage threshold; The ten sets of judgment contents are combined to form the sixth condition, the seventh condition, and the eighth condition. When any one of the sixth condition, the seventh condition, or the eighth condition is met, it is determined that the main judgment condition is satisfied. The first reference duration is the tenth preset duration. The acceleration determination condition is that the charger hardware access signal is valid, or a full charge communication message is received from the charger.
7. The battery state machine management method according to claim 6, characterized in that, The sixth condition corresponds to the simultaneous fulfillment of the seventh, eighth, fourteenth, and fifteenth judgment criteria. The seventh condition corresponds to satisfying any one of the following judgment conditions: the ninth, the tenth, the eleventh, the twelfth, and the thirteenth. The eighth condition corresponds to the fulfillment of the sixteenth judgment.
8. The battery state machine management method according to claim 1, characterized in that, When the battery to be controlled switches from a fully charged state to a static state, the seventeenth to twentieth determination criteria constitute the main determination condition: Seventeenth determination: The charging current is less than the ninth preset current threshold; Eighteenth determination: The charging time exceeds the thirteenth preset time; Nineteenth determination: The charger is in the unplugged state; Twentieth determination: The voltage of the single cell is less than the eighth preset voltage threshold; When any of the seventeenth to nineteenth determinations above are true, and the twentieth determination is true, the determination satisfies the main determination condition, and the first reference duration is the eleventh preset duration. The acceleration determination condition is that the discharge current is greater than the eighth preset discharge current threshold.
9. The battery state machine management method according to claim 1, characterized in that, When the battery to be controlled switches from a discharging state to a stationary state, the twenty-first and twenty-second judgment criteria constitute the main judgment conditions. The requirement is satisfied if either of the two judgment criteria is met. The twenty-first determination is that the discharge current is less than the eleventh preset discharge current threshold. The twenty-second determination is: the charging current is greater than the twelfth preset current threshold, or the single-cell voltage is greater than the ninth preset voltage threshold and the change in charging current is less than or equal to the thirteenth preset current threshold; The first reference duration includes a twelfth preset duration and a thirteenth preset duration. The twelfth preset duration corresponds to the twenty-first determination content, and the thirteenth preset duration corresponds to the twenty-second determination content. The acceleration determination condition is that the charger hardware access signal is valid, or the timing duration of the main determination phase is close to the twelfth preset duration.
10. A battery state machine control device, characterized in that, include: The data acquisition module is used to acquire target signal data corresponding to the battery to be controlled; wherein, the target signal data includes at least one of the following: battery cell voltage, charging current, discharging current, SOC data, charging time data, charger hardware signal, and vehicle ACC signal; The first state control module is used to control the battery to be controlled to switch working states when the target signal data meets the main judgment condition and continues to reach the first reference duration. The duration processing module is used to reduce the first reference duration based on a preset multiplier to obtain a second acceleration duration when the target signal data meets the main determination condition and the acceleration determination condition. The second state control module is used to control the battery to be controlled to switch working states according to the second acceleration duration; wherein the working states include rest, discharge, charging and full charge.