Method, device and equipment for identifying number of analog front ends, medium and product

By acquiring the cumulative voltage and PACK voltage of the cell module and combining them with the voltage conservation relationship, the problem of the unknown number of analog front-ends in the battery system is solved, achieving accurate and reliable identification of analog front-ends and improving the efficiency and reliability of battery system management.

CN120895759APending Publication Date: 2025-11-04BYD CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510797619.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-11-04

AI Technical Summary

Technical Problem

In battery systems, when the number of cell modules is unknown, determining the number of analog front-ends becomes a pressing issue. Existing technologies struggle to accurately identify the number of modules when it changes dynamically.

Method used

By obtaining the sum of the cumulative voltages of the battery cell modules and the PACK voltage, and combining the voltage conservation relationship with the one-to-one correspondence between the analog front-end and the battery cell modules, the number of analog front-ends is determined by using ADC sampling circuits and control devices for logical judgment.

Benefits of technology

It improves the accuracy of analog front-end quantity detection, eliminates abnormal interference caused by individual cell or module failures, ensures the reliability of detection results, and reduces hardware complexity and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120895759A_ABST
    Figure CN120895759A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a number identification method and device for analog front ends, equipment, a medium and a product. At least one analog front end is arranged in a battery management system of the battery system, each analog front end is connected with a group of battery cell modules in the battery system, and the method comprises the following steps: acquiring the sum of accumulated voltages of the battery cell modules read from the analog front ends, the number of the read battery cell modules and the PACK voltage of the battery system acquired by an ADC sampling circuit; and determining the number of analog front ends based on the number of the battery cell modules, the sum of the accumulated voltages and the PACK voltage. According to the method, the sum of the accumulated voltages and the PACK voltage are combined, the number of the analog front ends can be accurately determined, and the accuracy of number detection of the analog front ends is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of batteries, and more particularly to a method, apparatus, device, medium, and product for quantity identification of an analog front end. Background Technology

[0002] With the increasing demands for voltage and power in energy storage and new battery technologies, fixed-module battery systems struggle to meet the ever-changing requirements. Therefore, the number of cell modules connected in series in a battery system is dynamically stacked according to actual needs, resulting in an unknown number of cell modules.

[0003] Currently, to effectively manage battery operating conditions, it is necessary to design simulation front-ends to collect cell information from the battery cell modules. Generally, one simulation front-end is used to collect data from one battery cell module. Therefore, to obtain data from all cells, the number of simulation front-ends needs to be determined. Thus, determining the number of simulation front-ends when the number of battery cell modules is unknown becomes a pressing issue. Summary of the Invention

[0004] This application provides a method, apparatus, device, medium, and product for accurately identifying the number of analog front-ends.

[0005] Firstly, embodiments of this application provide a method for identifying the number of simulated front-end devices.

[0006] The battery management system of the battery system includes at least one analog front-end, each of which is connected to a set of cell modules in the battery system, including:

[0007] The cumulative sum of the cell modules read from the analog front end, the number of cell modules read, and the PACK voltage of the battery system acquired by the ADC sampling circuit are obtained.

[0008] The number of analog front-ends is determined based on the number of battery cell modules, the sum of the cumulative voltages, and the PACK voltage.

[0009] In one possible implementation, acquiring the sum of the cumulative voltages of the cell modules read from the analog front end, the number of cell modules read, and the PACK voltage of the battery system acquired by the ADC sampling circuit includes:

[0010] Based on the maximum number of battery cell modules supported by the battery system, the cell voltage of each battery cell module collected by the analog front end is read sequentially, and the read cell voltages are accumulated until the maximum number of battery cell modules is reached, or an incorrect cell voltage is read.

[0011] The sum of the accumulated cell voltages is taken as the sum of the cumulative voltages of the cell modules, and the number of cell modules corresponding to the sum of the accumulated cell voltages is taken as the number of cell modules read.

[0012] In one possible implementation, determining the number of battery cell modules based on the read number of battery cell modules, the sum of the cumulative voltages, and the PACK voltage includes:

[0013] If the difference between the sum of the cumulative voltages and the PACK voltage is less than or equal to the module discharge voltage, the number of the battery cell modules read is taken as the number of the analog front end.

[0014] In one possible implementation, the method further includes:

[0015] If the difference between the sum of the accumulated voltages and the PACK voltage is greater than the module discharge voltage, reset the analog front end;

[0016] The number of battery cell modules is determined again based on the number of battery cell modules read from the reset analog front end and the sum of the cumulative voltages of the battery cell modules.

[0017] In one possible implementation, resetting the analog front end includes:

[0018] If the cumulative number of resets of the simulated front end has not reached the preset number of resets, the simulated front end shall be reset.

[0019] In one possible implementation, the method further includes:

[0020] If the cumulative number of resets reaches the preset number of resets, a prompt message simulating a front-end communication failure will be output.

[0021] In one possible implementation, acquiring the number of battery cell modules read from the analog front end, the sum of the cumulative voltages of the battery cell modules, and the PACK voltage of the battery system sampled by the ADC sampling circuit includes:

[0022] In response to a power-on command, the system acquires the number of battery cell modules read from the analog front end, the sum of the cumulative voltages of the battery cell modules, and the PACK voltage of the battery system acquired by the ADC sampling circuit.

[0023] Secondly, embodiments of this application provide a quantity recognition device for a simulated front end, comprising:

[0024] The acquisition module is used to acquire the sum of the cumulative voltages of the battery cell modules read from the analog front end, the number of battery cell modules read, and the PACK voltage of the battery system acquired by the ADC sampling circuit.

[0025] The determination module is used to determine the number of analog front-ends based on the number of the battery cell modules, the sum of the cumulative voltages, and the PACK voltage.

[0026] Thirdly, embodiments of this application provide a control device, including: a memory and a processor;

[0027] The memory stores computer-executed instructions;

[0028] The processor executes computer execution instructions stored in the memory, causing the processor to perform any of the possible implementations of the first aspect above.

[0029] Fourthly, embodiments of this application provide a battery management system, including: at least one analog front end, an ADC sampling circuit, and a control device;

[0030] The analog front end is used to electrically connect with the corresponding cell module in the battery system and to collect the cell voltage in the connected cell module;

[0031] The ADC sampling circuit is connected to the cell module of the battery system and is used to collect the PACK voltage of the battery system.

[0032] The control device is electrically connected to the analog front end and the ADC sampling circuit, and is used to perform any possible implementation of the first aspect above.

[0033] Fifthly, embodiments of this application provide a battery system, the battery system including at least one cell module, and a battery management system as described in the fourth aspect.

[0034] Sixthly, embodiments of this application provide an electrical power device, the electrical power device including the battery system described in the fifth aspect above.

[0035] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement any possible implementation of the first aspect described above.

[0036] Eighthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements any of the possible implementations of the first aspect described above.

[0037] The methods, apparatus, devices, media, and products for identifying the number of simulated front-ends provided in this application utilize the conservation relationship between PACK voltage and cell voltage in the battery system, as well as the one-to-one correspondence between simulated front-ends and cell modules. By obtaining the sum of accumulated voltages and PACK voltage, and combining these two voltage data, the number of simulated front-ends can be determined relatively accurately, improving the accuracy of simulated front-end quantity detection. Secondly, this method eliminates interference from abnormal situations caused by individual cell or cell module failures, ensuring the reliability of the detection results. This allows the BMS to effectively monitor and manage the battery system based on accurate simulated front-end quantity information. Attached Figure Description

[0038] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0039] Figure 1 A schematic diagram of the circuit structure of an existing ADC sampling circuit is provided;

[0040] Figure 2 Flowchart of the analog front-end quantity recognition method provided in this application Figure 1 ;

[0041] Figure 3 Flowchart of the analog front-end quantity recognition method provided in this application Figure 2 ;

[0042] Figure 4 A schematic diagram of the structure of the analog front-end quantity recognition device provided in this application;

[0043] Figure 5 A schematic diagram of the control device provided in this application.

[0044] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0045] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0046] First, let's explain the terms used in this application:

[0047] Analog Front End (AFE): In the battery management system, the analog front end (AFE) is an important circuit module. It is mainly responsible for interacting with the battery cells, collecting various analog signals (such as voltage, temperature, etc.) from the cells, and converting these analog signals into digital signals for subsequent processing.

[0048] Cell module: A cell is the basic building block of a battery. Multiple cells are combined in series, parallel or other ways to form a cell module.

[0049] With the development of energy storage and new battery technologies, the demands on battery system voltage and power are increasing. To meet these demands, the number of battery cell modules connected in series in battery systems is constantly increasing. Against this backdrop, to more effectively manage the operating status of battery cell modules, it is necessary to design battery simulation front-ends for data acquisition. However, in battery systems with tower-stacking module designs, battery cell modules are dynamically stacked according to actual needs (such as voltage and power), resulting in an unknown number of cell modules. Generally, one simulation front-end is used to acquire data from one cell module; therefore, the number of simulation front-ends is equal to the number of cell modules. Thus, when the number of cell modules is unknown, determining the number of simulation front-ends is crucial for fully monitoring all cell modules.

[0050] In battery series connection scenarios for backup, energy storage, and power applications, analog-to-digital converter (ADC) sampling circuits are commonly used to determine the number of analog front-ends. Specifically, this method utilizes a resistor divider circuit to divide the voltage signal from the analog front-ends. By appropriately configuring the resistor values, the high-voltage signal can be proportionally reduced to a range that the ADC can handle. The ADC then converts the divided analog voltage signal into a digital signal, thus obtaining the divided voltage value. Finally, the number of analog front-ends is identified and determined based on preset voltage ranges.

[0051] Figure 1 A schematic diagram of an existing ADC sampling circuit is provided, such as... Figure 1 As shown, the ADC sampling circuit consists of a power supply VCC, resistors R1 and R2, a battery cell module (such as R3, R4, R5, etc.), and the ADC. Because the battery cell module has internal resistance, when connected to the circuit, this internal resistance will cause a voltage drop and affect the current. Therefore, [the circuit designation is missing here]. Figure 1 The battery cell modules in the diagram are equivalent to resistors to simplify circuit analysis. R3, R4, R5, etc. represent the resistors connected to each battery cell module (each battery cell module corresponds to one connected resistor; only three equivalent resistors are shown in the diagram, but the actual number can be increased according to the number of battery cell modules).

[0052] When no module is connected, only R1 and R2 form a voltage divider circuit, and the voltage value sampled by the ADC is the voltage after dividing the power supply VCC by R1 and R2. When a module is connected, it is equivalent to adding additional resistors (such as R3, R4, R5, etc.) in parallel to the voltage divider circuit. Increasing the number of parallel resistors reduces the equivalent resistance at the lower end. According to the voltage divider formula, the voltage value sampled by the ADC decreases as the number of modules increases.

[0053] Beforehand, through experiments or calculations, the corresponding ADC voltage range for different numbers of connected modules is determined. In practice, the ADC collects voltage in real time, compares the collected values ​​with the preset voltage range, and determines the current number of modules based on the range of the collected values. Since the number of analog front-ends equals the number of modules, the number of analog front-ends is thus determined.

[0054] However, the method described above for determining the number of analog front-ends using an ADC sampling circuit requires pre-setting multiple voltage ranges to correspond to different numbers of analog front-ends, which is not flexible or efficient enough when the number of modules changes dynamically. Furthermore, when the number of modules is large or the voltage ranges are similar, this method may struggle to accurately distinguish the number of different analog front-ends, thus affecting the monitoring and management of the battery system.

[0055] To address the aforementioned issues, this application provides a method for identifying the number of simulated front-ends. This method determines the number of simulated front-ends by accumulating the cell module voltage values ​​collected by the simulated front-ends and the battery pack voltage (PACK voltage) collected by the ADC. Because battery systems typically employ a modular design, each module contains a certain number of cells, and these modules are connected in series. Based on the principle of voltage conservation, the battery pack voltage is the sum of the voltages of all modules, and the module voltage is the sum of the cell voltages within it. Therefore, the number of simulated front-ends equals the number of modules. By monitoring the accumulation of cell voltages, the number of modules involved in the series connection can be inferred, thus determining the number of simulated front-ends. This method improves the accuracy of simulated front-end quantity detection. Through reasonable logical judgment, interference from abnormal situations caused by individual cell or module failures is eliminated, ensuring the reliability of the detection results.

[0056] This application can be applied to power management scenarios for electrical equipment, enabling the power supply to accurately provide power when needed, and effectively monitor battery status by accurately controlling the number of analog front-ends; it can also be applied to energy storage battery system management scenarios, helping to optimize the charging and discharging strategies of energy storage batteries, and improve energy storage efficiency and battery life.

[0057] The executing entity of this application can be a control device in a battery management system (BMS) that has data processing and logical judgment capabilities and can analyze and process the collected data; it can also be a specially designed voltage monitoring module that integrates data acquisition, calculation and judgment functions and can independently determine the number of analog front-ends; or it can be an intelligent control terminal that is matched with the battery system, which can communicate with the battery system and obtain relevant data, and then execute the method.

[0058] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0059] Figure 2 Flowchart of the analog front-end quantity recognition method provided in this application Figure 1 ,like Figure 2 As shown, the method includes:

[0060] S201. Obtain the sum of the cumulative voltages of the battery cell modules read from the analog front end, the number of battery cell modules read, and the PACK voltage of the battery system acquired by the ADC sampling circuit.

[0061] The number of cell modules refers to the total number of cell modules contained in the battery system. The number of cell modules is read from the analog front-end because the analog front-end can typically acquire and manage signals for each cell module, thus obtaining information related to the cell modules.

[0062] An ADC (Analog-to-Digital Converter) sampling circuit can convert analog signals into digital signals. In a battery management system (BMS), the ADC sampling circuit can sample the PACK voltage (i.e., the total voltage of the entire battery system) and convert it from an analog voltage signal into a digital signal so that the BMS control unit can process and analyze it.

[0063] Understandably, the analog front-end can typically connect to the control device via specific pins or communication interfaces in its hardware design. The control device can communicate with the analog front-end (e.g., using I2C, SPI, or other communication protocols) to send query commands. Upon receiving the command, the analog front-end returns the stored quantity information of the battery cell modules to the control device in the form of a digital signal. Alternatively, the analog front-end can write the collected battery cell module information into pre-set registers, and the control device can obtain the quantity of battery cell modules by reading the values ​​of these registers.

[0064] To calculate the cumulative voltage sum, the analog front-end can collect and sum the cell voltages of each cell module to obtain the module voltage value. Then, it accumulates all the collected module voltage values ​​to get the cumulative voltage sum. The control device can communicate with the analog front-end to request the cumulative voltage sum of the cell modules. The analog front-end sends the calculation result to the control device in the form of a digital signal. Alternatively, the control device can acquire the voltage value of each cell module separately and then perform the accumulation calculation internally to obtain the cumulative voltage sum.

[0065] The PACK voltage of a battery system represents the overall voltage level of the entire system. The ADC sampling circuit converts the acquired analog PACK voltage signal into a digital signal, which is typically transmitted to the control device via a specific interface. The control device can directly read the digital signals from these interfaces to obtain the PACK voltage value.

[0066] One possible implementation involves sequentially reading the cell voltage of each cell module collected by the analog front end, based on the maximum number of cell modules supported by the battery system, and accumulating the read cell voltages until the maximum number of cell modules is reached, or until an incorrect cell voltage is read.

[0067] Among them, the battery system has its specific design specifications, such as the maximum number of battery cell modules. The maximum number of battery cell modules is determined by the hardware architecture and design of the battery system, which specifies the maximum number of battery cell modules that the battery system can accommodate and manage.

[0068] The analog front-end can acquire the cell voltage of each cell module. To gain a comprehensive understanding of the voltage state of each cell module in the battery system, the control device can sequentially read the cell voltage of each cell module from the analog front-end. This sequential reading means acquiring the voltage value of each cell module one by one in a certain order. The order can be, for example, a pre-set cell module numbering order, or the physical arrangement order of the cell modules in the battery system.

[0069] During the process of reading the cell voltage, the control device can accumulate the read voltage values. The purpose of this accumulation is to subsequently calculate the sum of the cumulative voltages of all cell modules, thereby understanding the overall voltage status of the battery system.

[0070] The cell voltage accumulation process can continue until one of two conditions is met: Condition one is that the number of cell modules read has reached the maximum number of cell modules supported by the battery system. When this number is reached, it indicates that the voltage information of all cell modules in the battery system has been acquired according to design requirements, and the reading and accumulation operation can be stopped. This indicates that the number of analog front-ends is consistent with the maximum number of cell modules, and all analog front-ends are working normally, successfully acquiring the cell voltage.

[0071] Condition two is that an incorrect cell voltage was read. In actual operation, when the maximum number of cell modules exceeds the number of analog front-ends designed in the actual design, some cell modules may not have a corresponding analog front-end to read voltage information. In this case, the control device may read incorrect voltage information.

[0072] Furthermore, even if the number of analog front-ends is sufficient, factors such as analog front-end hardware failure, connection problems between the cell module and the analog front-end (such as open circuits or short circuits), or external electromagnetic interference may cause the analog front-ends to fail to read voltage information correctly, or to read empty voltage values ​​or abnormal erroneous values. In the event of these situations, the control device can stop the reading and accumulation operations to avoid inaccurate summation of the acquired voltages.

[0073] If one of the above two conditions is met, the sum of the currently accumulated cell voltages is taken as the sum of the accumulated cell voltages of the cell modules, and the number of cell modules corresponding to the sum of the accumulated cell voltages is taken as the number of cell modules read.

[0074] Understandably, after completing the process of sequentially reading and accumulating the cell voltages, the control device can process the accumulation result to obtain the sum of accumulated voltages. This sum reflects the total voltage of the cell modules for which voltage information was successfully acquired during the reading process. Simultaneously, the number of cell modules corresponding to the accumulated cell voltage sum can be used as the number of cell modules read. This number records the actual number of cell modules for which valid cell voltages were successfully read from the analog front-end during the reading and accumulation process.

[0075] S202. Based on the number of battery cell modules read, the sum of cumulative voltages, and the PACK voltage, determine the number of analog front-ends.

[0076] Understandably, the number of cell modules refers to the number of cell modules whose voltage information can be obtained. The PACK voltage is the voltage of the entire battery system. By considering these three parameters comprehensively, the number of operating analog front-ends can be determined.

[0077] For example, the number of analog front-ends can be determined by establishing a mapping relationship between voltage and the number of analog front-ends. Specifically, the number of analog front-ends corresponding to different cumulative voltage ranges is preset to form a mapping table. After obtaining the sum of cumulative voltages, the required number of analog front-ends can be determined by looking up the mapping table.

[0078] Alternatively, the number of analog front-ends can be determined by building a model. Specifically, a large amount of data on the sum of known cumulative voltages and the corresponding number of analog front-ends can be collected. This data can be used to train a model (such as a neural network model) so that the model learns the relationship between the two. When a new sum of cumulative voltages is input, the model can output the corresponding number of analog front-ends.

[0079] The number of analog front-ends can also be determined by comparing the sum of the cumulative voltages and the PACK voltage. One possible implementation is to use the number of cell modules read as the number of analog front-ends when the difference between the sum of the cumulative voltages and the PACK voltage is less than or equal to the module discharge voltage.

[0080] Understandably, the module discharge voltage refers to the voltage value of the battery cell module when it is near fully discharged; it is an important reference threshold. When the difference between the sum of accumulated voltages and the PACK voltage is less than or equal to the module discharge voltage, it means that the sum of accumulated voltages is very close to the PACK voltage, and this closeness is within a reasonable error range. In this case, it can be considered that the analog front-end has collected voltage information from all battery cell modules relatively completely. As mentioned earlier, one analog front-end collects voltage information from one battery cell module. Therefore, in this case, the number of battery cell modules read can be used as the number of analog front-ends. This implementation provides a simple and effective basis for judgment, which can quickly and accurately determine the number of analog front-ends, ensuring that the BMS can effectively monitor and manage the battery system based on accurate data.

[0081] The analog front-end quantity identification method provided in this application utilizes the conservation relationship between PACK voltage and cell voltage in the battery system, as well as the one-to-one correspondence between analog front-ends and cell modules. By comparing the sum of accumulated voltages with the PACK voltage, the quantity of analog front-ends can be determined more accurately, improving the accuracy of analog front-end quantity detection. Secondly, this method eliminates interference from abnormal situations caused by individual cell or cell module failures, ensuring the reliability of the detection results. This allows the BMS to effectively monitor and manage the battery system based on accurate analog front-end quantity information.

[0082] Meanwhile, this method does not require additional complex hardware circuits. It mainly relies on existing ADC acquisition and SPI communication functions to perform logical judgments at the software level, which reduces the complexity and hardware cost of the battery system while improving resource utilization.

[0083] In some embodiments, if the difference between the sum of the accumulated voltages and the PACK voltage is greater than the module discharge voltage, the analog front end can be reset.

[0084] Understandably, when the difference between the sum of the accumulated voltages and the PACK voltage is greater than the voltage of the battery module near its fully discharged state, it means that the difference exceeds the normal range. This large difference may indicate a problem with the analog front-end in acquiring voltage data, such as inaccurate data acquisition, interference, or a fault in the analog front-end itself. In this case, a reset operation can be performed on the analog front-end to attempt to restore it to normal operating condition.

[0085] A reset operation is equivalent to giving the analog front-end a chance to reinitialize and restart its normal workflow. If the difference between the sum of the accumulated voltages and the PACK voltage is greater than the module's discharge voltage, the analog front-end can be reset multiple times to collect cell module voltage information. Alternatively, a preset number of resets can be set for a limited number of resets.

[0086] Optionally, a preset number of resets can be set. If the cumulative number of resets of the analog front-end has not reached the preset number of resets, the analog front-end will be reset. Based on the number of cell modules read from the reset analog front-end and the sum of the cumulative voltages of the cell modules, the number of cell modules will be determined again.

[0087] Based on this new data, the number of battery cell modules can be re-determined, ensuring that the battery management system's monitoring and control of the battery system is based on accurate and reliable data. If problems persist with the data read after a reset, such as the difference between the sum of accumulated voltages and the PACK voltage still exceeding the module's discharge voltage, further measures can be taken, such as resetting again or replacing the analog front-end, to thoroughly investigate other potential problems in the battery management system, thereby ensuring the normal operation of the battery management system and the safety of the battery system.

[0088] In the above embodiments, during data acquisition and transmission, the data may be affected by accidental factors such as electromagnetic interference and fluctuations in sensor accuracy, leading to deviations in the cell voltage or PACK voltage collected at a particular time. When the accumulated voltage minus the PACK voltage is greater than the module's minimum voltage, it does not necessarily mean that there is a real fault in the battery system; it could be caused by these accidental errors. By re-collecting the cell voltage from the analog front-end and re-evaluating it, these accidental factors can be eliminated, false alarms can be avoided, and the accuracy of determining the number of analog front-ends can be improved. At the same time, it avoids triggering the error mechanism due to a single abnormal judgment, reducing unnecessary alarms and battery system interruptions, and also reducing ineffective maintenance and repair work due to false alarms.

[0089] Understandably, the preset reset count is a pre-set threshold, used only to limit the maximum number of resets during the process of determining the number of analog front-ends. During operation, resetting the analog front-end may resolve some temporary faults, but frequent resets may cause the analog front-end to get stuck in a loop when collecting cell voltage information. Therefore, the number of resets for the analog front-end can be limited. When the cumulative reset count has not reached the preset reset count, it indicates that the analog front-end still has a chance to recover normal operation through reset, and a reset operation can be performed at this time. Setting a preset reset count avoids continuing meaningless reset operations when the analog front-end has already tried to reset multiple times and still cannot work normally, thus saving resources. For example, the preset reset count could be set to 3 times.

[0090] Optionally, if the cumulative number of resets reaches the preset number of resets, a prompt message simulating a front-end communication failure can be output.

[0091] Understandably, when the cumulative number of resets by the analog front-end reaches the preset number, it means that after multiple reset attempts, the analog front-end still cannot collect voltage data normally, resulting in the difference between the sum of the cumulative voltages and the PACK voltage still being greater than the module's discharge voltage. This situation is likely due to a communication failure between the analog front-end and the control device, causing the analog front-end to be unable to accurately transmit the collected voltage data to the control device, or the analog front-end itself being damaged and unable to function properly.

[0092] To promptly alert technicians to troubleshoot and resolve issues, a simulated front-end communication fault message can be output. This message can be presented in various forms, such as displaying incorrect voltage data or text prompts on the battery system's screen, providing an audible alarm, displaying incorrect voltage data or text prompts on the power equipment's screen, or using indicator lights on the power equipment. The flashing or color change of these indicator lights can then alert technicians, enabling them to identify the problem and take appropriate action. The following is a specific embodiment illustrating the simulated front-end quantity identification method. Figure 3 Flowchart of the analog front-end quantity recognition method provided in this application Figure 2 ,like Figure 3 As shown in the following example, taking a new energy vehicle as an example, the implementing entity of this application can be the control device of the BMS.

[0093] S301, in response to the power-on command, obtain the maximum number of battery cell modules supported by the battery system.

[0094] Understandably, when the entire battery system is ready to start working, the control device (the core component of the BMS used to receive instructions, process information, and issue control signals) can receive a power-on command. This command may come from external devices (such as the start button of a new energy vehicle, the start signal of a charging pile, etc.) or may be triggered by preset automatic power-on conditions within the battery system. Once the control device receives this power-on command, the BMS control device begins to operate, obtaining the maximum number of cell modules supported by the battery system, so that the analog port can determine the range of module numbers that need to be processed.

[0095] S302. Based on the maximum number of battery cell modules, sequentially read the battery cell voltage information of the battery cell modules from the analog front end, accumulate the read battery cell voltages until the maximum number of battery cell modules is reached, or until an incorrect battery cell voltage is read.

[0096] Understandably, based on the maximum number of battery cell modules acquired, the control device sequentially reads the voltage information of each battery cell module from the analog front end and accumulates these voltage values. This step collects voltage data from all battery cell modules in the battery system, and the overall voltage state of the battery system is evaluated by accumulating the voltage. Simultaneously, if an incorrect cell voltage is encountered during the reading process, it can be identified and accumulation stopped promptly to prevent erroneous data from affecting subsequent judgments and ensure data accuracy.

[0097] S303. The sum of the accumulated cell voltages is taken as the sum of the accumulated cell voltages of the cell modules, and the number of cell modules corresponding to the sum of the accumulated cell voltages is taken as the number of cell modules read.

[0098] Understandably, this step involves organizing and recording the reading results, converting the accumulated voltage value and the number of modules read into specific values, providing basic data for subsequent comparison with the PACK voltage.

[0099] S304. Acquire the PACK voltage of the battery system based on the ADC sampling circuit.

[0100] Understandably, the PACK voltage is a direct reflection of the overall voltage of the battery system. By acquiring the PACK voltage of the battery system through the ADC sampling circuit, the actual voltage value of the overall battery system can be obtained, providing a benchmark for subsequent comparison with the sum of accumulated voltages.

[0101] S305. Determine whether the difference between the sum of accumulated voltages and the PACK voltage is less than the module discharge voltage. If yes, proceed to step S307; otherwise, proceed to step S306.

[0102] Understandably, the sum of accumulated voltages reflects the total voltage of all currently read cell modules, while the PACK voltage directly reflects the overall voltage of the battery system. The module discharge voltage is a preset threshold used to measure the voltage change range of a battery module when it approaches a discharge state. By comparing the difference between these two values ​​with the magnitude of the module discharge voltage, we can preliminarily determine whether the number of currently read cell modules matches the actual number of the designed analog front-end, and whether there are any abnormalities in the battery system, such as the analog front-end failing to collect data correctly or having large voltage measurement errors.

[0103] S306. Reset the analog front end. Based on the number of battery cell modules read from the reset analog front end and the sum of the cumulative voltages of the battery cell modules, determine the number of battery cell modules again.

[0104] Understandably, if the difference between the sum of the accumulated voltages and the PACK voltage is not less than the module's discharge voltage, the control device will reset the analog front-end. Resetting the analog front-end can eliminate possible abnormal states, such as data reading errors caused by interference or malfunctions in the analog front-end.

[0105] After resetting, the number of battery cell modules and the sum of their cumulative voltages are read again from the analog front end. The process of re-determining the number of battery cell modules is similar to before, but the reset operation gives the control device the opportunity to reacquire accurate data, enhancing the accuracy of the analog front end's quantity identification.

[0106] S307. Use the number of battery cell modules read as the number of analog front-ends.

[0107] Understandably, if the difference between the sum of accumulated voltages and the PACK voltage is less than the module's discharge voltage, the number of cell modules read is taken as the number of simulated front-ends. When the difference is within a reasonable range, the number of cell modules currently read is the actual number of simulated front-ends designed. At this point, the number of simulated front-ends can be determined and used for subsequent battery system management and control, such as battery balancing management and capacity estimation. This result provides accurate basic data for the battery management system, facilitating more precise operation and monitoring of the battery system.

[0108] The above embodiment, starting from obtaining the maximum number of battery cell modules, to reading and accumulating the cell voltage information, then comparing and judging it with the PACK voltage, and finally determining the number of analog front-ends or performing a reset based on the judgment result, has a rigorous logical process and clear steps. Using this method, the number of analog front-ends in the battery system can be accurately identified, and the state of the battery system can be evaluated, providing reliable data support for subsequent BMS management and control. At the same time, this method can handle possible anomalies during the analog front-end data reading process, ensuring the accuracy and reliability of the analog front-end quantity determination.

[0109] Figure 4 A schematic diagram of the structure of the analog front-end quantity recognition device provided in this application is shown below. Figure 4 As shown, the simulated front-end quantity recognition device 40 provided in this embodiment includes:

[0110] The acquisition module 401 is used to acquire the sum of the cumulative voltages of the battery cell modules read from the analog front end, the number of battery cell modules read, and the PACK voltage of the battery system acquired by the ADC sampling circuit.

[0111] The determination module 402 is used to determine the number of analog front-ends based on the number of battery cell modules, the sum of the cumulative voltages, and the PACK voltage.

[0112] In one possible implementation, the acquisition module 401 is specifically configured to sequentially read the cell voltage of each cell module collected by the analog front end based on the maximum number of cell modules supported by the battery system, and accumulate the read cell voltages until the maximum number of cell modules is reached, or an incorrect cell voltage is read; the sum of the accumulated cell voltages is taken as the cumulative voltage sum of the cell modules, and the number of cell modules corresponding to the sum of the accumulated cell voltages is taken as the number of cell modules read.

[0113] In one possible implementation, the determining module 402 is specifically used to take the number of the battery cell modules read as the number of the analog front end when the difference between the sum of the accumulated voltages and the PACK voltage is less than or equal to the module discharge voltage.

[0114] In one possible implementation, the device further includes: a reset module 403;

[0115] The reset module 403 is used to reset the analog front end when the difference between the sum of the accumulated voltages and the PACK voltage is greater than the module discharge voltage; and to determine the number of battery modules again based on the number of battery modules read from the reset analog front end and the sum of the accumulated voltages of the battery modules.

[0116] In one possible implementation, the reset module 403 is specifically used to reset the analog front-end if the cumulative number of resets of the analog front-end has not reached a preset number of resets.

[0117] In one possible implementation, the device further includes: an output module 404;

[0118] The output module 404 is used to output a simulated front-end communication failure prompt message when the cumulative number of resets reaches a preset number of resets.

[0119] In one possible implementation, the acquisition module 401 is specifically used to acquire, in response to a power-on command, the number of the battery cell modules read from the analog front end, the sum of the cumulative voltages of the battery cell modules, and the PACK voltage of the battery system acquired by the ADC sampling circuit.

[0120] The simulated front-end quantity recognition device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0121] Figure 5 A schematic diagram of the control device provided in this application. Figure 5 As shown, the control device 50 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the control device 50 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus.

[0122] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.

[0123] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0124] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0125] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0126] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0127] This application also provides a battery management system, including: at least one analog front end, an ADC sampling circuit, and a control device;

[0128] The analog front end is used to electrically connect with the corresponding cell module in the battery system and to collect the cell voltage in the connected cell module;

[0129] The ADC sampling circuit is connected to the cell module of the battery system and is used to collect the PACK voltage of the battery system.

[0130] The control device is electrically connected to the analog front end and the ADC sampling circuit, and is used to execute the quantity identification method of the analog front end.

[0131] This application also provides a battery system, the battery system including at least one cell module, an ADC sampling circuit, and the above-mentioned battery management system;

[0132] This application also provides an electrical energy device, which includes the battery system described above. The electrical energy device described herein can be, for example, a vehicle, such as a car or a ship, or a medical device, laboratory equipment, etc., and is not limited thereto.

[0133] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0134] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0135] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0136] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0137] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0138] 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 network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0139] In addition, 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.

[0140] If a function 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 this invention, or the part that contributes to the prior art, or a 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 of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0141] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0142] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A method for identifying the quantity of a simulated front end, characterized in that, The battery management system of the battery system includes at least one analog front-end, each of which is connected to a set of cell modules in the battery system, including: The cumulative sum of the cell modules read from the analog front end, the number of cell modules read, and the PACK voltage of the battery system acquired by the ADC sampling circuit are obtained. The number of analog front-ends is determined based on the number of battery cell modules, the sum of the cumulative voltages, and the PACK voltage.

2. The method according to claim 1, characterized in that, The acquisition of the sum of the cumulative voltages of the cell modules read from the analog front end, the number of cell modules read, and the PACK voltage of the battery system acquired by the ADC sampling circuit includes: Based on the maximum number of battery cell modules supported by the battery system, the cell voltage of each battery cell module collected by the analog front end is read sequentially, and the read cell voltages are accumulated until the maximum number of battery cell modules is reached, or an incorrect cell voltage is read. The sum of the accumulated cell voltages is taken as the sum of the cumulative voltages of the cell modules, and the number of cell modules corresponding to the sum of the accumulated cell voltages is taken as the number of cell modules read.

3. The method according to claim 1 or 2, characterized in that, Determining the number of battery cell modules based on the read number of battery cell modules, the sum of the cumulative voltages, and the PACK voltage includes: If the difference between the sum of the cumulative voltages and the PACK voltage is less than or equal to the module discharge voltage, the number of the battery cell modules read is taken as the number of the analog front end.

4. The method according to claim 3, characterized in that, The method further includes: If the difference between the sum of the accumulated voltages and the PACK voltage is greater than the module discharge voltage, reset the analog front end; The number of battery cell modules is determined again based on the number of battery cell modules read from the reset analog front end and the sum of the cumulative voltages of the battery cell modules.

5. The method according to claim 4, characterized in that, The reset of the analog front end includes: If the cumulative number of resets of the simulated front end has not reached the preset number of resets, the simulated front end shall be reset.

6. The method according to claim 5, characterized in that, The method further includes: If the cumulative number of resets reaches the preset number of resets, a prompt message simulating a front-end communication failure will be output.

7. The method according to any one of claims 1-6, characterized in that, The acquisition of the number of battery cell modules read from the analog front end, the sum of the cumulative voltages of the battery cell modules, and the PACK voltage of the battery system sampled by the ADC sampling circuit includes: In response to a power-on command, the system acquires the number of battery cell modules read from the analog front end, the sum of the cumulative voltages of the battery cell modules, and the PACK voltage of the battery system acquired by the ADC sampling circuit.

8. A quantity recognition device for a simulated front end, characterized in that, include: The acquisition module is used to acquire the number of the battery cell modules read from the analog front end, the sum of the cumulative voltages of the battery cell modules, and the PACK voltage of the battery system acquired by the ADC sampling circuit. The determination module is used to determine the number of analog front-ends based on the number of read battery cell modules, the sum of the cumulative voltages, and the PACK voltage.

9. A control device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.

10. A battery management system, characterized in that, include: At least one analog front-end, an ADC sampling circuit, and a control device; The analog front end is used to electrically connect with the corresponding cell module in the battery system and to collect the cell voltage in the connected cell module; The ADC sampling circuit is connected to the cell module of the battery system and is used to collect the PACK voltage of the battery system. The control device is electrically connected to the analog front end and the ADC sampling circuit, and is used to perform the method as described in any one of claims 1-7.

11. A battery system, characterized in that, The battery system includes at least one cell module, and a battery management system as described in claim 10.

12. An electrical energy device, characterized in that, The electrical power equipment includes the battery system as described in claim 11.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.

14. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.