Battery control method and device, electronic equipment and storage medium
By employing a dual control mechanism of analog front-end and microcontroller, battery anomalies can be quickly identified and responded to, ensuring that the battery operates normally within a controllable range. This solves the problems of low battery management efficiency and accuracy in existing technologies, and achieves efficient and precise battery control.
Patent Information
- Application Number
- CN202511793072.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-01
- Publication Date
- 2026-02-27
AI Technical Summary
In existing technologies, battery management and control rely on manual analysis, resulting in low control efficiency and low accuracy, which cannot meet the needs of real-time and accurate battery management.
A dual control mechanism of analog front-end and microcontroller is adopted. The analog signal is used to identify abnormal battery states and enter the protection state in abnormal situations. The microcontroller performs in-depth analysis and judgment to ensure that the battery works normally within a controllable range.
It improves the efficiency and accuracy of battery control, enables rapid response to faults, ensures that the battery operates normally within a controllable range, and enhances the accuracy of battery management and control.
Smart Images

Figure CN121584060A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power supply and related technologies or other related technical fields. Specifically, it relates to a battery control method and apparatus, electronic device and storage medium. Background Technology
[0002] With the increasing demand for portable electronic products, electric vehicles, and large-scale energy storage applications, battery management technology has gradually developed. Battery management can analyze relevant battery parameters to identify abnormal conditions such as open circuits and disconnections at battery terminals, thereby ensuring the safe operation of the battery. As battery technology advances and battery pack capacity increases, battery management faces even more complex challenges.
[0003] In related technologies, battery management and control technologies mostly collect real-time status data through data acquisition systems, and then rely on manual analysis to identify abnormal battery states and take corresponding technical measures to control the abnormal battery terminals. This battery control method has low control efficiency and relies on human learning experience, which may lead to misjudgment and low control accuracy, failing to meet the current real-time and accurate battery management and control requirements.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides a battery control method, apparatus, electronic device, and storage medium to at least solve the technical problems of low efficiency and low control accuracy in related technologies that rely on manual analysis for battery monitoring and control.
[0006] According to one aspect of the present invention, a battery control method is provided, comprising: acquiring analog signals from a battery terminal via an analog front-end, and identifying an abnormal state of the battery terminal based on the analog signals to obtain an abnormal state identification result; when the abnormal state identification result indicates that the battery terminal is abnormal, controlling the battery terminal to enter a protection state via the analog front-end; acquiring state data of the battery terminal via a microcontroller, and receiving the abnormal state identification result sent by the analog front-end; analyzing the state data via the microcontroller, determining the abnormal state identification result based on the analysis result, and controlling the battery terminal to enter an emergency working mode via the microcontroller when the determination result indicates that the abnormal state identification result is invalid.
[0007] Further, the step of identifying abnormal states of the battery terminal based on the analog signal to obtain an abnormal state identification result includes: converting the analog signal into a digital signal and preprocessing the converted digital signal; comparing a preset parameter threshold with the preprocessed digital signal, identifying the number of parameters exceeding the parameter threshold based on the comparison result, and determining the abnormal state of the battery terminal based on the number of parameters exceeding the parameter threshold to obtain the abnormal state identification result; matching the preprocessed digital signal with a preset abnormality rule, identifying abnormal situations that match the abnormality rule based on the matching result, and determining the abnormal state of the battery terminal based on the abnormal situations that match the abnormality rule to obtain the abnormal state identification result.
[0008] Furthermore, the step of analyzing the state data through the microcontroller includes: inputting the state data into an abnormal state recognition model, extracting features from the state data through the abnormal state recognition model to obtain state features, wherein the abnormal state recognition model is a pre-built machine learning model for identifying the state of the battery terminal; mapping the state features through the abnormal state recognition model, and identifying the abnormal state of the battery terminal based on the mapping result.
[0009] Furthermore, the step of determining the abnormal state identification result based on the analysis result includes: comparing the analysis result with the abnormal state identification result to obtain a state comparison result; when the state comparison result indicates that the analysis result and the abnormal state identification result are inconsistent, determining that the abnormal state identification result is invalid.
[0010] Furthermore, the step of controlling the battery terminal to enter the protection state through the simulated front end includes: determining the control strategy of the effect transistor based on the abnormality type in the abnormality identification result, wherein the control strategy of the effect transistor includes at least: turning off the charging transistor and turning off the discharging transistor; executing the control strategy to control the battery terminal to enter the protection state.
[0011] Furthermore, the step of controlling the battery terminal to enter the emergency working mode via the microcontroller includes: identifying the real-time working state of the battery terminal via the microcontroller; and when the real-time working state of the battery terminal is driving state, sending an activation command to the driving circuit of the effect transistor to enter the emergency working mode.
[0012] Furthermore, after entering the emergency working mode, the method further includes: acquiring the battery terminal's power time-series data and working status time-series data through the microcontroller; inputting the power time-series data and working status time-series data into the power prediction model, and outputting power trend prediction data for a predetermined future duration, wherein the power prediction model is a pre-constructed long short-term memory network model for battery power prediction; generating early warning information based on the power trend prediction data, and pushing the early warning information to the user terminal.
[0013] According to another aspect of the present invention, a battery control device is also provided, comprising: an identification unit, configured to acquire analog signals from a battery terminal via an analog front-end, and identify an abnormal state of the battery terminal based on the analog signals to obtain an abnormal state identification result; a control unit, configured to control the battery terminal to enter a protection state via the analog front-end when the abnormal state identification result indicates that the battery terminal is abnormal; a receiving unit, configured to acquire state data of the battery terminal via a microcontroller, and receive the abnormal state identification result sent by the analog front-end; and a judgment unit, configured to analyze the state data via the microcontroller, judge the abnormal state identification result based on the analysis result, and control the battery terminal to enter an emergency working mode via the microcontroller when the judgment result indicates that the abnormal state identification result is invalid.
[0014] Further, the identification unit includes: a first conversion module, used to convert the analog signal into a digital signal and preprocess the converted digital signal; a first comparison module, used to compare a preset parameter threshold with the preprocessed digital signal, identify the number of parameters exceeding the parameter threshold based on the comparison result, and determine the abnormal state of the battery terminal based on the number of parameters exceeding the parameter threshold, thereby obtaining the abnormal state identification result; and a first matching module, used to match the preprocessed digital signal using a preset abnormality rule, identify the abnormal situation matching the abnormality rule based on the matching result, and determine the abnormal state of the battery terminal based on the abnormal situation matching the abnormality rule, thereby obtaining the abnormal state identification result.
[0015] Furthermore, the determination unit includes: a first extraction module, used to input the state data into an abnormal state recognition model, and extract features from the state data through the abnormal state recognition model to obtain state features, wherein the abnormal state recognition model is a pre-built machine learning model for identifying the state of a battery terminal; and a first mapping module, used to map the state features through the abnormal state recognition model, and identify the abnormal state of the battery terminal based on the mapping result.
[0016] Furthermore, the determination unit further includes: a second comparison module, used to compare the analysis result with the abnormal state identification result to obtain a state comparison result; and a first determination module, used to determine that the abnormal state identification result is invalid when the state comparison result indicates that the analysis result is inconsistent with the abnormal state identification result.
[0017] Furthermore, the control unit includes: a first determining module, configured to determine a control strategy for the effect transistor based on the anomaly type in the anomaly identification result, wherein the control strategy for the effect transistor includes at least: turning off the charging transistor and turning off the discharging transistor; and a first executing module, configured to execute the control strategy and control the battery terminal to enter a protection state.
[0018] Furthermore, the determination unit also includes: a first identification module, used to identify the real-time operating state of the battery terminal through the microcontroller; and a first sending module, used to send an activation command to the driving circuit of the effect transistor to enter the emergency operating mode when the real-time operating state of the battery terminal is a driving state.
[0019] Furthermore, the battery control device further includes: a first acquisition module, used to acquire the battery terminal's power time-series data and operating status time-series data through the microcontroller; a first prediction module, used to input the power time-series data and operating status time-series data into a power prediction model, and output power trend prediction data for a predetermined future duration, wherein the power prediction model is a pre-constructed long short-term memory network model for battery power prediction; and a first generation module, used to generate early warning information based on the power trend prediction data, and push the early warning information to the user terminal.
[0020] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform any of the above-described battery control methods.
[0021] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement any of the above-described battery control methods.
[0022] In this application, the following steps are performed: Analog signals from the battery terminal are acquired via a simulated front-end, and abnormal states of the battery terminal are identified based on these simulated signals to obtain an abnormal state identification result. Then, if the abnormal state identification result indicates an abnormality in the battery terminal, the simulated front-end controls the battery terminal to enter a protection state. A microcontroller acquires the battery terminal's status data and receives the abnormal state identification result sent by the simulated front-end. Finally, the microcontroller analyzes the status data and determines the abnormal state identification result based on the analysis results. If the determination result indicates that the abnormal state identification result is invalid, the microcontroller controls the battery terminal to enter an emergency working mode.
[0023] In this application, the battery terminal is monitored by a simulated front end, which enables rapid response to battery faults and improves battery control efficiency. At the same time, a microcontroller is used to perform more accurate state analysis and intelligently control whether to enter the emergency working mode based on the current operating state of the battery, so that the battery can work normally within a controllable range. The dual control mechanism improves the accuracy of the battery analysis results of the battery terminal, and can also overcome the problem of normal monitoring and control of the battery even when the single monitoring mode fails, thus improving the accuracy of battery management and control. This solves the technical problem of low efficiency and low control accuracy in related technologies that rely on manual analysis for battery monitoring and control. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0025] Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a battery control method is shown.
[0026] Figure 2 This is a flowchart of an optional battery control method according to an embodiment of the present invention;
[0027] Figure 3 This is a schematic diagram of an optional battery control process according to an embodiment of the present invention;
[0028] Figure 4 This is a schematic diagram of an optional battery control device according to an embodiment of the present invention;
[0029] Figure 5 This is a hardware structure block diagram of an electronic device (or mobile device) that performs an optional battery control method according to an embodiment of the present invention. Detailed Implementation
[0030] 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.
[0031] 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.
[0032] To facilitate understanding of the present invention by those skilled in the art, some terms or nouns involved in the various embodiments of the present invention are explained below:
[0033] A semiconductor field-effect transistor, or MOSFET for short, is the main switch in a battery management system, responsible for turning the current on and off between the battery and external circuits (such as chargers and loads).
[0034] It should be noted that the battery control method and device in this application can be used in the field of power supply and supporting technology when the battery is controlled by a dual analog front-end and a microcontroller, or in any field other than the field of power supply and supporting technology when the battery is controlled by a dual analog front-end and a microcontroller. This application does not limit the application field of the battery control method and device.
[0035] It should be noted that the information collected in this application (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of this data all comply with relevant laws, regulations, and standards, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding access points are provided for users to choose to authorize or refuse. For example, interfaces are set up between this system and relevant users or organizations, providing users with corresponding access points to choose to agree to or refuse automated decision-making results; if the user chooses to refuse, the process proceeds to the expert decision-making stage.
[0036] The following embodiments of the present invention can be applied to various battery control systems / applications / devices. The present invention employs a dual control mechanism based on AFE and MCU. The AFE performs the first level of fault monitoring and control, improving the response efficiency to fault events. When the AFE outputs an erroneous shutdown command due to a hardware fault, the MCU evaluates the battery status in real time through an independent monitoring channel. If the battery status is determined to be controllable, the emergency control mode is immediately activated, directly sending a forced start command to the MOSFET drive circuit to ensure continuous conduction of the charging and discharging circuit. This ensures the battery operates normally within a controllable range, improving battery management and control accuracy.
[0037] The present invention will now be described in detail with reference to various embodiments.
[0038] Example 1
[0039] According to an embodiment of the present invention, an embodiment of a battery control method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0040] The method embodiment provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a battery control method is shown. Figure 1As shown, the computer terminal 10 (or mobile device) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0041] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0042] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the battery control method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned battery control method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0043] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0044] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).
[0045] Under the aforementioned operating environment, this application provides the following: Figure 2 The battery control method shown is implemented by a battery control system. This battery control method can be applied to electric vehicles, electric cars and other battery application scenarios to achieve precise and efficient battery control during the operation of electric vehicles.
[0046] Figure 2 This is a flowchart of an optional battery control method according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following steps:
[0047] Step S201: The analog signal of the battery terminal is collected by the analog front end, and the abnormal state of the battery terminal is identified based on the analog signal to obtain the abnormal state identification result.
[0048] In step S201 above, the analog front-end (AFE) is an electronic device located between the sensor and the digital signal processing device. Its main task is to convert the raw analog signal from the sensor into a format suitable for further processing. It has functions such as signal conditioning and analog-to-digital conversion. The analog front-end of this embodiment of the invention has a simple abnormal state recognition function. It can analyze the collected battery data through preset parameter thresholds or verification rules, thereby quickly identifying the abnormal state of the battery terminal and obtaining the abnormal state recognition result.
[0049] During this stage, the AFE module first monitors analog signals such as voltage, current, and temperature at the battery terminals in real time. These signals are fundamental indicators of the battery's operating status, reflecting its health and operating environment. The AFE's ADC (Analog-to-Digital Converter) function converts these analog signals into digital signals for subsequent processing and analysis. The converted digital signals are then sent to the AFE module's fault detection module for abnormal state identification. The identification process includes, but is not limited to, overvoltage, sudden current changes, and abnormal temperature, which may be signs of battery overcharging, over-discharging, short circuits, or overheating.
[0050] Furthermore, the steps for identifying abnormal states of the battery terminal based on analog signals and obtaining abnormal state identification results include: converting the analog signal into a digital signal and preprocessing the converted digital signal; comparing the preprocessed digital signal with a preset parameter threshold, identifying the number of parameters exceeding the parameter threshold based on the comparison result, and determining the abnormal state of the battery terminal based on the number of parameters exceeding the parameter threshold, thereby obtaining the abnormal state identification result; matching the preprocessed digital signal with preset abnormal rules, identifying abnormal situations that match the abnormal rules based on the matching results, and determining the abnormal state of the battery terminal based on the abnormal situations that match the abnormal rules, thereby obtaining the abnormal state identification result.
[0051] Specifically, firstly, the analog signals (such as voltage, current, and temperature) collected from the battery terminal are converted into digital signals via the analog front-end (AFE). The AFE chip contains an analog-to-digital converter (ADC) that can convert continuously changing analog signals into discrete digital signals, facilitating subsequent digital signal processing and analysis. The converted digital signals may contain noise and data biases, therefore preprocessing is required, including filtering and data correction, to ensure signal purity and accuracy. Filters remove high-frequency noise from the signal, while data correction corrects potential systematic biases based on the long-term statistical characteristics of the signal. The preprocessed digital signals are then compared with preset parameter thresholds. These preset thresholds are set according to the safety and performance requirements of the battery under different operating conditions, such as the normal range of voltage and current, and the safe temperature range. If the digital signal value exceeds the preset threshold, it indicates that the battery terminal may be in an abnormal state. The system will record and analyze these parameters exceeding the threshold to determine the specific abnormal state.
[0052] Furthermore, the preprocessed digital signals are matched using preset anomaly rules. These rules, established based on historical data and expert knowledge, are used to identify specific anomalies, such as internal battery short circuits or external overloads. When a signal matches a particular anomaly rule, the system can quickly identify the corresponding anomaly, thus more accurately determining the abnormal state of the battery terminal. For example, if the battery temperature suddenly rises and exceeds a preset threshold, and the current also increases abnormally, the system will match the anomaly rule for an internal battery short circuit, thereby determining that the battery is in a short-circuit state.
[0053] Step S202: If the abnormal state identification result indicates that there is an abnormality in the battery terminal, the battery terminal is controlled to enter a protection state by simulating the front end.
[0054] In step S202 above, after the AFE detects that parameters such as voltage, current, or temperature at the battery terminal deviate from normal thresholds, it generates an abnormal state identification result, indicating a potential battery failure risk. Based on the received abnormal state identification result, the AFE's internal protection mechanism determines whether immediate action is needed to enter a protection state. For example, if the temperature exceeds a preset safety limit, the AFE will activate overheat protection. When the AFE determines that the battery terminal needs to enter a protection state, it sends a control signal to drive the internal MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor) to cut off the battery's charging and discharging circuit, reducing further damage or the impact of potential safety risks. After the AFE's control signal is received by the MOSFET, the MOSFET immediately turns off, blocking current flow and isolating the battery from the charging or discharging state, thereby entering a protection state.
[0055] As the first line of defense for battery terminals, the analog front-end can respond quickly in the event of abnormalities or potential abnormalities in the battery terminal, preventing the fault from escalating and protecting user safety and system stability.
[0056] Furthermore, the step of controlling the battery terminal to enter the protection state by simulating the front end includes: determining the control strategy of the effect transistor based on the abnormality type in the abnormality identification result, wherein the control strategy of the effect transistor includes at least: turning off the charging transistor and turning off the discharging transistor; executing the control strategy to control the battery terminal to enter the protection state.
[0057] Specifically, the first layer of protection in the analog front-end ensures that the system can respond quickly and take necessary measures to protect the battery and user safety when battery abnormalities occur. After the AFE detects the abnormal state of the battery terminal, the system first needs to determine the appropriate MOSFET control strategy based on the type of abnormality (such as overcharge, over-discharge, short circuit, overheating, etc.). Based on the abnormality type, the AFE will decide the MOSFET control strategy. For example, if the identification result indicates that the battery is overcharged, the AFE will choose to turn off the charging transistor strategy to prevent the battery voltage from rising further; if the battery is detected to be overheated, it can simultaneously turn off the charging and discharging transistors to disconnect the battery from the external circuit until the temperature drops to a safe level. The AFE, through its built-in digital isolator and drive circuit, translates the control strategy into actual operation of the MOSFET, that is, directly driving the MOSFET to turn off through control signals. This operation is usually instantaneous to ensure that action can be taken as soon as a battery abnormality occurs, reducing potential safety risks.
[0058] Step S203: Collect the status data of the battery terminal through the microcontroller and receive the abnormal status identification results sent by the simulated front end.
[0059] In step S203 above, the microcontroller (MCU) is responsible for the overall control logic, data processing, and fault response in the battery management system. The MCU connects to sensors to collect status data from the battery terminals, including but not limited to voltage, current, and battery temperature. The MCU can continuously monitor the battery's operating status and independently determine the battery's health status even when the AFE malfunctions. Simultaneously, the MCU maintains a clear communication link with the AFE, receiving abnormal status results identified by the AFE after analog signal processing.
[0060] By combining the abnormal state identification results of the AFE with the state data it collects, the MCU can perform deeper fault analysis and make more accurate decisions, such as whether it is necessary to forcibly turn on the MOSFET to maintain the conduction of the charging and discharging circuit when the AFE fails.
[0061] Step S204: The microcontroller analyzes the status data and determines the abnormal status identification result based on the analysis results. If the determination result indicates that the abnormal status identification result has failed, the microcontroller controls the battery terminal to enter the emergency working mode.
[0062] Specifically, after receiving the battery terminal's status data, the MCU uses its internal algorithm model to perform a detailed analysis of the data. This analysis process includes data validity verification, battery health assessment, and potential fault prediction, ensuring the MCU can accurately understand the battery's real-time status. Subsequently, the MCU will determine the validity of the abnormal status identification results sent by the AFE based on the analyzed status data. The determination is based on data consistency, logical coherence, and predefined abnormal identification criteria. If the MCU finds that the AFE's identification results are significantly inconsistent with its own analysis, or judges that the AFE may have encountered a hardware failure, it will consider the AFE's abnormal status identification results as invalid. Upon determining that the AFE's abnormal status identification results are invalid, the MCU will control the battery terminal to enter an emergency operating mode based on the battery's current operating state. In this mode, the MCU will assume some of the AFE's responsibilities, such as directly controlling the switching of MOSFETs to ensure continuous conduction of the charging and discharging circuit in the event of an AFE failure, while continuously monitoring the battery status to maintain battery system safety.
[0063] The MCU can not only independently monitor battery status, but also autonomously determine the reliability of AFE identification results in the event of a potential AFE malfunction, and activate emergency working mode in a timely manner to directly intervene in battery management and protection, ensuring system robustness and user riding safety in the face of emergencies. It is particularly optimized for electric vehicle battery swapping, greatly improving the adaptability and reliability of the battery management system under extreme conditions.
[0064] Furthermore, the steps for analyzing the state data using a microcontroller include: inputting the state data into an abnormal state recognition model; extracting features from the state data using the abnormal state recognition model to obtain state features, wherein the abnormal state recognition model is a pre-built machine learning model for identifying the state of the battery terminal; mapping the state features using the abnormal state recognition model; and identifying the abnormal state of the battery terminal based on the mapping results.
[0065] Specifically, first, the MCU collects real-time status data from the battery terminal, such as battery voltage, current, and temperature, and feeds it into the abnormal state recognition model as input data. This data forms the basis for the model to assess the battery's health and operating status. Internally, the abnormal state recognition model performs a series of mathematical operations to extract features from the input status data, obtaining a set of status features that characterize the battery's current state, such as the battery's temperature fluctuation range and voltage change trend. Subsequently, the model maps the extracted status features, using a pre-trained algorithm to convert the features into probability distributions or classification labels, representing the probability that the battery is in a normal state or a specific abnormal state. Finally, the model identifies whether there are abnormal states or faults in the battery terminal based on the mapping results.
[0066] Furthermore, the steps for determining the abnormal state identification result based on the analysis results include: comparing the analysis results with the abnormal state identification result to obtain the state comparison result; and determining that the abnormal state identification result is invalid when the state comparison result indicates that the analysis results and the abnormal state identification result are inconsistent.
[0067] Specifically, after receiving the battery terminal's status data, the MCU performs in-depth analysis, including but not limited to evaluating parameters such as voltage, current, and temperature. Next, these analysis results are compared with the abnormal status identification results sent by the AFE, generating a status comparison result. This comparison process aims to verify the accuracy and reliability of the AFE's identification results to identify possible AFE hardware faults or data anomalies. If the status comparison result indicates a significant inconsistency between the MCU's analysis results and the AFE's abnormal status identification results (e.g., the AFE identifies an abnormal battery voltage while the MCU's analysis result is normal, or the data difference between the AFE and MCU exceeds a preset threshold), the MCU will determine that the AFE's abnormal status identification result is invalid.
[0068] Furthermore, the steps of controlling the battery terminal to enter the emergency working mode via the microcontroller include: identifying the real-time working status of the battery terminal via the microcontroller; and when the real-time working status of the battery terminal is driving, sending an activation command to the driving circuit of the effect transistor to enter the emergency working mode.
[0069] Specifically, the microcontroller assesses the battery terminal's operating status in real time, determining its operational status through sensor data (such as acceleration and GPS position changes). This identification process utilizes the MCU's integrated sensor interface and processing capabilities, ensuring the system can respond instantly to changes in different scenarios. When the MCU determines that the AFE's abnormal state identification result has failed and confirms the battery terminal is operational, this constitutes the trigger condition for activating the emergency operating mode. In operational mode, the battery system's stability and continuous power supply are crucial; therefore, timely activation of the emergency mode is a key step in ensuring user safety and riding experience. In this situation, the MCU immediately sends an enable command to the MOSFET's drive circuit via its control circuit, forcing the MOSFET to conduct, thereby ensuring the continuous operation of the charging and discharging circuit. Even in the event of an AFE failure, it can enter the emergency operating mode to maintain the battery terminal's power supply capability. The MCU's determination and emergency activation not only provide a dual protection mechanism for the battery system but also enable emergency activation under controllable conditions, ensuring user needs are met.
[0070] Furthermore, after entering the emergency working mode, the system also includes: acquiring the battery terminal's power time-series data and working status time-series data through the microcontroller; inputting the power time-series data and working status time-series data into the power prediction model and outputting power trend prediction data for a predetermined period of time in the future, wherein the power prediction model is a pre-built long short-term memory network model for predicting battery power; generating early warning information based on the power trend prediction data and pushing the early warning information to the user terminal.
[0071] Specifically, after the battery terminal enters emergency operating mode, the microcontroller continuously monitors and acquires the battery terminal's power time-series data and operating status time-series data, including key indicators such as the battery's state of charge (SOC), discharge rate, and operating ambient temperature at different time periods, as well as the sequence information of the terminal's states such as driving, stationary, and charging. The collected power time-series data and operating status time-series data are input into a pre-built power prediction model. This model uses Long Short-Term Memory (LSTM) network technology to capture long-term dependencies in the data, thereby predicting the battery power trend within a predetermined time period based on past power and operating status data, and outputting power trend prediction data. Based on the power trend prediction data output by the prediction model, the MCU assesses whether the battery power may drop to a dangerous level within the predetermined time period. If the predicted power is lower than a pre-set safety threshold, a warning message is generated and pushed to the user terminal, such as a mobile application or vehicle dashboard, via the wireless communication module, to notify the user of the power consumption in advance so that preventative measures can be taken, such as finding the nearest battery swapping station or reducing the load.
[0072] Through the MCU's power prediction and early warning information push mechanism, the battery management system can still provide forward-looking power monitoring and early warning services in emergency mode. Even in the adverse situation of AFE failure, the MCU can still predict the future trend of battery power based on existing time-series data through the power prediction model, and issue early warning information in advance to help users avoid riding interruptions due to insufficient battery power, thereby enhancing the intelligence of the system and the user's safety experience.
[0073] Through the above steps, the simulated front end collects the simulated signals of the battery terminal and identifies abnormal states of the battery terminal based on the simulated signals, obtaining the abnormal state identification result. Then, when the abnormal state identification result indicates that the battery terminal is abnormal, the simulated front end controls the battery terminal to enter a protection state. The microcontroller collects the status data of the battery terminal and receives the abnormal state identification result sent by the simulated front end. Finally, the microcontroller analyzes the status data and judges the abnormal state identification result based on the analysis result. When the judgment result indicates that the abnormal state identification result is invalid, the microcontroller controls the battery terminal to enter an emergency working mode.
[0074] In this embodiment, by simulating the front end to perform the first level of monitoring of the battery terminal, it is possible to quickly respond to battery faults and improve battery control efficiency. At the same time, a microcontroller is used to perform more accurate state analysis and intelligently control whether to enter the emergency working mode based on the current operating state of the battery, so that the battery can work normally within a controllable range. The dual control mechanism improves the accuracy of the battery analysis results of the battery terminal, and can also overcome the problem of still being able to monitor and control the battery normally even when the single monitoring mode fails, thus improving the accuracy of battery management and control. This solves the technical problem of low efficiency and low control accuracy in related technologies that rely on manual analysis to monitor and control the battery.
[0075] The following describes in detail another optional implementation method.
[0076] Figure 3 This is a schematic diagram of an optional battery control process according to an embodiment of the present invention, such as... Figure 3 As shown, the battery control process includes:
[0077] Step 1, Begin;
[0078] Step 2: AFE detects battery status;
[0079] Step 3: AFE determines if there is any abnormality in the battery status. If so, it activates the protection mode; otherwise, it operates normally.
[0080] Step 4: The MCU detects the battery status;
[0081] Step 5: Based on the AFE status determination result, the MCU determines whether the AFE protection status is invalid. If yes, proceed to step 6; otherwise, return to step 4 for continuous detection.
[0082] Step Six: Activate Emergency Work Mode;
[0083] Step 7: If the battery finishes working, the fault protection will be triggered.
[0084] Step eight, end.
[0085] This invention employs a dual control mechanism based on AFE and MCU. The AFE performs the first level of fault monitoring and control, improving the response efficiency to fault events. When the AFE outputs an erroneous shutdown command due to a hardware fault, the MCU evaluates the battery status in real time through an independent monitoring channel. If the battery status is determined to be controllable, the emergency control mode is immediately activated, and a forced start command is sent directly to the MOSFET drive circuit to ensure that the charging and discharging circuit remains conductive. This ensures that the battery operates normally within a controllable range and improves battery management and control accuracy.
[0086] The following is a detailed description with reference to another embodiment.
[0087] Example 2
[0088] The battery control device provided in this embodiment includes multiple implementation units, each of which corresponds to a specific implementation step in the above embodiment one. The specific implementation method and beneficial effects can be referred to the foregoing method embodiment, and will not be repeated here.
[0089] Figure 4 This is a schematic diagram of an optional battery control device according to an embodiment of the present invention, such as... Figure 4 As shown, the battery control device may include: an identification unit 41, a control unit 42, a receiving unit 43, and a determination unit 44, wherein,
[0090] The identification unit 41 is used to collect the analog signal of the battery terminal through the analog front end, and to identify the abnormal state of the battery terminal based on the analog signal to obtain the abnormal state identification result.
[0091] Control unit 42 is used to control the battery terminal to enter a protection state by simulating the front end when the abnormal state identification result indicates that there is an abnormality in the battery terminal.
[0092] The receiving unit 43 is used to collect the status data of the battery terminal through the microcontroller and receive the abnormal status identification results sent by the simulated front end.
[0093] The determination unit 44 is used to analyze the status data through the microcontroller, determine the abnormal status identification result based on the analysis result, and control the battery terminal to enter the emergency working mode through the microcontroller when the determination result indicates that the abnormal status identification result has failed.
[0094] The aforementioned battery control device includes an identification unit 41 that collects analog signals from the battery terminal via an analog front-end and identifies abnormal states of the battery terminal based on the analog signals, obtaining an abnormal state identification result. When the abnormal state identification result indicates an abnormality in the battery terminal, the control unit 42 controls the battery terminal to enter a protection state via the analog front-end. A receiving unit 43 collects the status data of the battery terminal via a microcontroller and receives the abnormal state identification result sent by the analog front-end. A judgment unit 44 analyzes the status data via the microcontroller, judges the abnormal state identification result based on the analysis results, and, when the judgment result indicates that the abnormal state identification result is invalid, controls the battery terminal to enter an emergency working mode via the microcontroller.
[0095] In this embodiment, by simulating the front end to perform the first level of monitoring of the battery terminal, it is possible to quickly respond to battery faults and improve battery control efficiency. At the same time, a microcontroller is used to perform more accurate state analysis and intelligently control whether to enter the emergency working mode based on the current operating state of the battery, so that the battery can work normally within a controllable range. The dual control mechanism improves the accuracy of the battery analysis results of the battery terminal, and can also overcome the problem of still being able to monitor and control the battery normally even when the single monitoring mode fails, thus improving the accuracy of battery management and control. This solves the technical problem of low efficiency and low control accuracy in related technologies that rely on manual analysis to monitor and control the battery.
[0096] Furthermore, the identification unit includes: a first conversion module, used to convert analog signals into digital signals and preprocess the converted digital signals; a first comparison module, used to compare a preset parameter threshold with the preprocessed digital signals, identify the number of parameters exceeding the parameter threshold based on the comparison result, and determine the abnormal state of the battery terminal based on the number of parameters exceeding the parameter threshold, thereby obtaining an abnormal state identification result; and a first matching module, used to match the preprocessed digital signals using preset abnormal rules, identify abnormal situations that match the abnormal rules based on the matching results, and determine the abnormal state of the battery terminal based on the abnormal situations that match the abnormal rules, thereby obtaining an abnormal state identification result.
[0097] Furthermore, the determination unit includes: a first extraction module, used to input state data into an abnormal state recognition model, extract features from the state data through the abnormal state recognition model to obtain state features, wherein the abnormal state recognition model is a pre-built machine learning model for identifying the state of the battery terminal; and a first mapping module, used to map the state features through the abnormal state recognition model, and identify the abnormal state of the battery terminal based on the mapping result.
[0098] Furthermore, the determination unit also includes: a second comparison module, used to compare the analysis results with the abnormal state identification results to obtain a state comparison result; and a first determination module, used to determine that the abnormal state identification result is invalid when the state comparison result indicates that the analysis results and the abnormal state identification results are inconsistent.
[0099] Furthermore, the control unit includes: a first determining module, used to determine the control strategy of the effect transistor based on the abnormality type in the abnormality identification result, wherein the control strategy of the effect transistor includes at least: turning off the charging transistor and turning off the discharging transistor; and a first executing module, used to execute the control strategy and control the battery terminal to enter the protection state.
[0100] Furthermore, the determination unit also includes: a first identification module, used to identify the real-time operating status of the battery terminal through the microcontroller; and a first sending module, used to send an activation command to the driving circuit of the effect transistor to enter the emergency operating mode when the real-time operating status of the battery terminal is the driving state.
[0101] Furthermore, the battery control device also includes: a first acquisition module, used to acquire the battery terminal's power time-series data and operating status time-series data through a microcontroller; a first prediction module, used to input the power time-series data and operating status time-series data into a power prediction model, and output power trend prediction data for a predetermined future duration, wherein the power prediction model is a pre-built long short-term memory network model for predicting battery power; and a first generation module, used to generate early warning information based on the power trend prediction data and push the early warning information to the user terminal.
[0102] It should be noted that the identification unit 41, control unit 42, receiving unit 43, and determination unit 44 mentioned above correspond to steps S201 to S204 in Embodiment 1. The instances and application scenarios implemented by the above units and corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1. It should be noted that the above modules or units can be hardware or software components stored in memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above modules or units can also be part of a device and run in the computer terminal 10 provided in Embodiment 1.
[0103] The invention will now be described in conjunction with another alternative embodiment.
[0104] Example 3
[0105] The present invention can also provide an electronic device. Figure 5 This is a hardware structure block diagram of an electronic device (or mobile device) that performs an optional battery control method according to an embodiment of the present invention, such as... Figure 5 As shown, the electronic device may include: one or more ( Figure 5 (Only one is shown) processor 502, memory 504, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0106] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the methods and apparatus in the embodiments of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the above-described methods. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0107] The processor can access information and applications stored in the memory via a transmission device to execute the following steps: acquiring analog signals from the battery terminal via an analog front-end, and identifying abnormal states of the battery terminal based on the analog signals to obtain an abnormal state identification result; if the abnormal state identification result indicates that the battery terminal is abnormal, controlling the battery terminal to enter a protection state via the analog front-end; acquiring the battery terminal's status data via a microcontroller, and receiving the abnormal state identification result sent by the analog front-end; analyzing the status data via the microcontroller, determining the abnormal state identification result based on the analysis result, and if the determination result indicates that the abnormal state identification result is invalid, controlling the battery terminal to enter an emergency working mode via the microcontroller.
[0108] The processor can access information and applications stored in the memory via a transmission device to perform the following steps: converting analog signals into digital signals and preprocessing the converted digital signals; comparing preset parameter thresholds with the preprocessed digital signals, identifying parameters exceeding the parameter thresholds based on the comparison results, determining the abnormal state of the battery terminal based on the parameters exceeding the parameter thresholds, and obtaining an abnormal state identification result; matching the preprocessed digital signals using preset abnormal rules, identifying abnormal situations matching the abnormal rules based on the matching results, and determining the abnormal state of the battery terminal based on the abnormal situations matching the abnormal rules, thus obtaining an abnormal state identification result.
[0109] The processor can access the information and application programs stored in the memory via the transmission device to perform the following steps: inputting state data into the abnormal state recognition model; extracting features from the state data through the abnormal state recognition model to obtain state features, wherein the abnormal state recognition model is a pre-built machine learning model for identifying the state of the battery terminal; mapping the state features through the abnormal state recognition model; and identifying the abnormal state of the battery terminal based on the mapping results.
[0110] The processor can call the information and application program stored in the memory through the transmission device to perform the following steps: compare the analysis results with the abnormal state identification results to obtain the state comparison results; when the state comparison results indicate that the analysis results and the abnormal state identification results are inconsistent, the abnormal state identification results are determined to be invalid.
[0111] The processor can call the information and application program stored in the memory through the transmission device to perform the following steps: determine the control strategy of the effect transistor based on the anomaly type in the anomaly identification result, wherein the control strategy of the effect transistor includes at least: turning off the charging transistor and turning off the discharging transistor; execute the control strategy to control the battery terminal to enter the protection state.
[0112] The processor can access the information and application programs stored in the memory via the transmission device to perform the following steps: identify the real-time operating status of the battery terminal through the microcontroller; when the real-time operating status of the battery terminal is driving, send an enable command to the drive circuit of the effect transistor to enter the emergency operating mode.
[0113] The processor can access information and applications stored in the memory via a transmission device to perform the following steps: acquiring battery power timing data and operating status timing data of the battery terminal through the microcontroller; inputting the battery power timing data and operating status timing data into the battery power prediction model, and outputting battery power trend prediction data for a predetermined future duration, wherein the battery power prediction model is a pre-built long short-term memory network model for battery power prediction; generating early warning information based on the battery power trend prediction data, and pushing the early warning information to the user terminal.
[0114] This invention provides a battery control scheme. By simulating a front-end to perform the first level of monitoring of the battery terminal, it can quickly respond to battery faults and improve battery control efficiency. At the same time, a microcontroller is used to perform more accurate state analysis and intelligently control whether to enter the emergency working mode based on the current operating state of the battery, so that the battery can work normally within a controllable range. The dual control mechanism improves the accuracy of battery analysis results at the battery terminal, and can also overcome the problem of normal battery monitoring and control even in the event of a fault in a single monitoring mode, thus improving battery management and control accuracy. This solves the technical problems of low efficiency and low control accuracy in related technologies that rely on manual analysis for battery monitoring and control.
[0115] Those skilled in the art will understand that Figure 5 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 5This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 5 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 5 The different configurations shown.
[0116] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0117] The invention will now be described in conjunction with another alternative embodiment.
[0118] Example 4
[0119] This invention also provides a computer-readable storage medium. Optionally, in this invention, the computer-readable storage medium can be used to store the program code executed by the battery control method provided in Embodiment 1.
[0120] Optionally, in this embodiment of the invention, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.
[0121] This invention also provides a computer program product, which, when executed on a data processing device, is suitable for performing the steps of a battery control method: acquiring analog signals from the battery terminal through an analog front-end, and identifying abnormal states of the battery terminal based on the analog signals to obtain an abnormal state identification result; when the abnormal state identification result indicates that the battery terminal is abnormal, controlling the battery terminal to enter a protection state through the analog front-end; acquiring the status data of the battery terminal through a microcontroller, and receiving the abnormal state identification result sent by the analog front-end; analyzing the status data through the microcontroller, determining the abnormal state identification result based on the analysis result, and controlling the battery terminal to enter an emergency working mode through the microcontroller when the determination result indicates that the abnormal state identification result is invalid.
[0122] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0123] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0124] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0125] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0126] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0127] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0128] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A battery control method, characterized in that, include: The analog signals of the battery terminal are collected by the analog front end, and the abnormal state of the battery terminal is identified based on the analog signals to obtain the abnormal state identification result. If the abnormal state identification result indicates that the battery terminal is abnormal, the simulated front end controls the battery terminal to enter a protection state. The microcontroller collects the status data of the battery terminal and receives the abnormal status identification results sent by the simulated front end. The microcontroller analyzes the status data and determines the abnormal status identification result based on the analysis results. If the determination result indicates that the abnormal status identification result is invalid, the microcontroller controls the battery terminal to enter the emergency working mode.
2. The method according to claim 1, characterized in that, The steps for identifying abnormal states of the battery terminal based on the analog signal and obtaining the abnormal state identification result include: The analog signal is converted into a digital signal, and the converted digital signal is preprocessed. The preset parameter threshold is compared with the preprocessed digital signal. Based on the comparison result, the number of parameters exceeding the parameter threshold is identified, and the abnormal state of the battery terminal is determined based on the number of parameters exceeding the parameter threshold, thus obtaining the abnormal state identification result. The preprocessed digital signal is matched using preset anomaly rules. Anomalies matching the anomaly rules are identified based on the matching results. The abnormal state of the battery terminal is determined based on the anomalies matching the anomaly rules, and the abnormal state identification result is obtained.
3. The method according to claim 1, characterized in that, The steps for analyzing the state data using the microcontroller include: The state data is input into the abnormal state recognition model, and the abnormal state recognition model extracts features from the state data to obtain state features. The abnormal state recognition model is a pre-built machine learning model for identifying the state of the battery terminal. The abnormal state identification model maps the state features, and the abnormal state of the battery terminal is identified based on the mapping result.
4. The method according to claim 1, characterized in that, The steps for determining the abnormal state identification result based on the analysis results include: The analysis results are compared with the abnormal state identification results to obtain the state comparison results; When the state comparison result indicates that the analysis result is inconsistent with the abnormal state identification result, the abnormal state identification result is determined to be invalid.
5. The method according to claim 1, characterized in that, The steps of controlling the battery terminal to enter a protection state via the simulated front end include: The control strategy of the effect transistor is determined based on the anomaly type in the anomaly identification result, wherein the control strategy of the effect transistor includes at least: turning off the charging transistor and turning off the discharging transistor; The control strategy is executed to control the battery terminal to enter a protection state.
6. The method according to claim 5, characterized in that, The steps of controlling the battery terminal to enter emergency working mode via the microcontroller include: The microcontroller identifies the real-time operating status of the battery terminal; When the real-time operating state of the battery terminal is driving state, an activation command is sent to the driving circuit of the effect transistor to enter the emergency operating mode.
7. The method according to claim 6, characterized in that, After entering the emergency working mode, the following is also included: The microcontroller acquires the battery terminal's power timing data and operating status timing data. The power time series data and working status time series data are input into the power prediction model, and the power trend prediction data for a predetermined period of time is output. The power prediction model is a pre-built long short-term memory network model for predicting battery power. Based on the power consumption trend prediction data, an early warning message is generated and pushed to the user terminal.
8. A battery control device, characterized in that, include: The identification unit is used to collect the analog signal of the battery terminal through the analog front end, and to identify the abnormal state of the battery terminal based on the analog signal to obtain the abnormal state identification result. The control unit is used to control the battery terminal to enter a protection state through the analog front end when the abnormal state identification result indicates that the battery terminal is abnormal. The receiving unit is used to collect the status data of the battery terminal through the microcontroller and receive the abnormal status identification result sent by the simulated front end; The determination unit is used to analyze the status data through the microcontroller, determine the abnormal status identification result based on the analysis result, and control the battery terminal to enter the emergency working mode through the microcontroller when the determination result indicates that the abnormal status identification result is invalid.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device on which the computer-readable storage medium is located to perform the battery control method according to any one of claims 1 to 7.
10. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the battery control method according to any one of claims 1 to 7.