Storage battery charging and discharging management method of power take-off power generation system and computer system
By using the battery charge and discharge management method in the power-taking power generation system, the ranking algorithm is used to calculate the extreme value data to judge the fault, and dynamically update the number of cycles, the problems of inaccurate identification of battery faults and inaccurate calculation of the number of cycles are solved, and the management efficiency and safety of the system are improved.
Patent Information
- Application Number
- CN202411722572.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-02-28
AI Technical Summary
Due to frequent charging and discharging state switching and instantaneous large current changes in the battery in the power-taking power generation system, the fault identification is inaccurate, and the missed or false alarms are serious. It is difficult for traditional battery cycle calculation methods to accurately evaluate the battery service life.
A battery charging and discharging management method is adopted to collect battery cell status data regularly, calculate extreme value data using sorting algorithms, judge single overvoltage, undervoltage and temperature faults, and adjust the fault detection delay according to the current status, and dynamically update the number of battery cycles.
It significantly improves the efficiency and accuracy of battery management, avoids fault missed and false alarms, accurately evaluates the battery life, and enhances the system's response speed and safety.
Smart Images

Figure CN119543368A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery management, and is applied to the charging and discharging process of a battery, and in particular to a battery charging and discharging management method and a computer system for a power generation system. Background Art
[0002] The power generation system is a technical system that converts the mechanical energy of the vehicle engine into electrical energy, which generates electricity by driving the engine. This system is usually equipped with a battery energy storage device such as a lithium battery to ensure the stability of the generator output voltage and meet the needs of high-power electrical equipment on the vehicle for instantaneous high current. With the increasing electrification of modern vehicles and the increasing dependence on electronic equipment in the vehicle, the efficiency and reliability of the power generation system have become particularly important.
[0003] In actual operation, the batteries in the power generation system face a complex working environment. Due to changes in road conditions during vehicle driving, different vehicle power distribution strategies, and the growing demand for on-board electrical loads, the speed and output power of the generator continue to fluctuate. This requires the battery connected to the generator to frequently switch between charge and discharge states in order to adapt to these dynamic changes. In addition, in some cases, when large electrical appliances are started or stopped, they may cause instantaneous large current shocks, which poses a challenge to the stability and life of the battery.
[0004] Existing battery management systems mainly focus on monitoring faults during the battery charging and discharging process, and will only issue an alarm when a fault is detected to have lasted for a certain period of time. However, in power generation systems, since the battery is often in a rapid and frequent charge and discharge cycle, coupled with the possible instantaneous high current events, this management method has obvious shortcomings. Specifically, overvoltage or undervoltage phenomena occurring in a short period of time may cause the system to be unable to accurately identify the true working status of the battery, resulting in failure to report or false alarms, affecting the reliability and safety of the system.
[0005] At the same time, the current battery cycle calculation method is usually based on full charge and discharge or long-term continuous charge-discharge process for estimation. However, the battery operation mode under the power generation system is often shallow charge and shallow discharge, that is, the battery capacity is not completely exhausted before the charging is restarted, or the discharge is started before the full charge state is reached. This atypical operation mode means that traditional methods are difficult to accurately evaluate the actual service life of the battery because they fail to fully consider the impact of multiple small-scale charging and discharging on the overall performance of the battery. Summary of the invention
[0006] The purpose of the present invention is to improve the reliability and accuracy of the battery in the power generation system and extend its service life. Therefore, a battery charge and discharge management method and a computer system for the power generation system are proposed. The present invention is applicable to the power generation system where the battery is frequently in a state of charge-discharge or shallow charge and shallow discharge, and solves the problems of battery fault omission and false alarm, as well as inaccurate calculation of the number of charge and discharge cycles in the prior art.
[0007] The present invention adopts the following technical solutions to achieve the purpose:
[0008] A method for managing battery charging and discharging of a power generation system, the method comprising the following steps:
[0009] S1, when the power generation system is running, waiting to enter the battery charge and discharge management cycle;
[0010] S2. After entering the battery charge and discharge management cycle, collect the status data of the battery cells;
[0011] S3, using a sorting algorithm to calculate the extreme value data corresponding to the battery cells in the status data;
[0012] S4, judging whether a single cell overvoltage fault occurs according to the extreme value data; if so, executing step S5; if not, executing step S6;
[0013] S5. When reporting the overvoltage fault information, the battery cell is prohibited from being in a charging state, but the battery cell is allowed to be in a discharging state;
[0014] S6, judging whether a single cell undervoltage fault occurs according to the extreme value data; if so, executing step S7; if not, executing step S8;
[0015] S7, while reporting the undervoltage fault information, prohibiting the battery cell from being in a discharge state, but allowing the battery cell to be in a charge state;
[0016] S8, judging whether a battery temperature fault occurs according to the extreme value data; if so, executing step S9; if not, executing step S10;
[0017] S9, while reporting the temperature fault information, prohibiting the battery cells within the preset range from being in a charging state, and also prohibiting these battery cells from being in a discharging state;
[0018] S10, while reporting normal status information, allowing the battery cell to be in a charging state or a discharging state;
[0019] S11. When a battery cell is allowed to be in a charging state and / or a discharging state, a charging and / or discharging process of the battery cell is executed, and a corresponding number of cycles is calculated.
[0020] Specifically, in step S1, a timer is set in the power generation system, and the timing period of the timer is set to TP. During the timing period, whenever the time value reaches a preset value, it means that the timing condition is met and the battery charge and discharge management cycle is entered; in step S2, each time the battery charge and discharge management cycle is entered, the status data of the battery cell is collected once, and the time span between two adjacent status data is TP.
[0021] Specifically, in step S2, the voltage, current and temperature data of the battery cells are collected by sensors or lower-level collection devices arranged at the battery energy storage unit in the power generation system; in step S3, the sorting algorithm includes any one of bubble sort, selection sort, insertion sort, quick sort and counting sort; the extreme value data corresponding to the battery cells include the highest cell voltage, the lowest cell voltage, the highest battery temperature and the lowest battery temperature.
[0022] Furthermore, in step S2, for the state data of the battery cells collected at each moment, the data of the same category in the state data are sent to the corresponding queue; in step S3, the data of the same category in the extreme value data are also sent to the corresponding queue;
[0023] The multiple queues corresponding to the status data and the extreme value data are reserved for use in the fault judgment and cycle number calculation of steps S4, S6, S8 and / or S11; when performing fault judgment, by setting the queue judgment length in the corresponding queue, multiple status data or extreme value data in the queue corresponding to the queue judgment length are selected and compared with the preset normal data to determine whether the relevant fault occurs.
[0024] Furthermore, when determining the single cell overvoltage fault in step S4, for N moments T 1 ,T 2 ,…,T N , the corresponding N monomer maximum voltage VMax in the calculated extreme value data 1 ,VMax 2 ,…,VMax N Send to the highest voltage queue QVoltageMax;
[0025] The corresponding N current values in the status data are Current 1 ,Current 2 ,…,Current N Send it to the current queue QCurrent; filter the maximum voltage and current value of the monomer respectively, and record the maximum voltage of the monomer obtained after filtering as VMaxF, and the current value as CurrentF;
[0026] From the highest voltage queue QVoltageMax, determine the single-cell overvoltage fault judgment queue; preset the length value M of the single-cell overvoltage fault judgment queue, and this value is also used to represent the detection time of the single-cell overvoltage fault; after filtering, if the single-cell highest voltage VMaxF is less than or equal to the platform voltage of the battery energy storage unit, or the current value CurrentF is less than or equal to the rated charging current of the battery, then use the preset value M1 to replace the original length value M, where M1 ≥ M; if the single-cell highest voltage VMaxF is greater than the platform voltage of the battery energy storage unit, or the current value CurrentF is greater than the rated charging current of the battery, then use the preset value M2 to replace the original length value M, where M2 < M; the length value M, the preset value M1, and the preset value M2 are all less than the total number of time instants N.
[0027] For the single-cell overvoltage fault judgment queue with a length value of M, when all the single-cell highest voltages corresponding to [VMaxF N-M ,…,VMaxF N-1 ,VMaxF N in this queue are greater than the preset single-cell overvoltage protection value, it is judged that a single-cell overvoltage fault has occurred, otherwise it is judged that there is no such fault.
[0028] The present invention also provides a computer system, including a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the steps of the aforementioned battery charge and discharge management method.
[0029] In summary, due to the adoption of this technical solution, the beneficial effects of the present invention are as follows:
[0030] The method of the present invention can significantly improve the efficiency and accuracy of battery management in the power take-off power generation system. By implementing the battery data filtering technology, the noise and interference in the signal can be effectively removed, making the monitoring of the battery state more accurate and reliable. At the same time, a mechanism for reasonably setting the fault detection delay according to the current working state of the battery is introduced. This adaptive adjustment strategy can ensure that even in the face of instantaneous large current changes, the true fault situation can be quickly and accurately identified, avoiding the problems of missed fault reports or false fault reports that may be caused by traditional methods. The present invention is thus applicable to application scenarios where the battery frequently switches between charging and discharging and is mainly in a shallow charge and discharge state, which not only enhances the response speed of the relevant system but also improves the overall safety and stability.
[0031] For the calculation of the number of cycles, the present invention uses a cumulative method to dynamically update the actual capacity of the battery. This method takes into account the impact of each charge and discharge on the battery life in the shallow charge and discharge mode, thereby achieving a more accurate evaluation of the number of cycles. Compared with the traditional estimation method based on full charge and discharge or long-term continuous state, the method of the present invention can better reflect the actual situation, help to more accurately predict the remaining service life of the battery, and provide a scientific basis for maintenance plans. Through the combined effect of the above-mentioned improvement measures of the present invention, the power generation system can ensure efficient operation while also having higher economy and environmental friendliness. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the overall process of the method of the present invention;
[0033] Figure 2 It is a schematic diagram of the process of judging a single cell overvoltage fault in the method of the present invention;
[0034] Figure 3 It is a schematic diagram of the process of judging a single cell undervoltage fault in the method of the present invention;
[0035] Figure 4 It is a schematic diagram of the process of judging battery temperature failure in the method of the present invention;
[0036] Figure 5 This is a flow chart of calculating the number of battery cycles in this method. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0038] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] Example 1
[0040] A battery charging and discharging management method for a power generation system. The overall process of the method can be found in Figure 1 The steps are summarized as follows:
[0041] S1, when the power generation system is running, waiting to enter the battery charge and discharge management cycle;
[0042] S2. After entering the battery charge and discharge management cycle, collect the status data of the battery cells;
[0043] S3, using a sorting algorithm to calculate the extreme value data corresponding to the battery cells in the status data;
[0044] S4, judging whether a single cell overvoltage fault occurs according to the extreme value data; if so, executing step S5; if not, executing step S6;
[0045] S5. When reporting the overvoltage fault information, the battery cell is prohibited from being in a charging state, but the battery cell is allowed to be in a discharging state; this step can prevent the battery from being overcharged; the method of reporting any fault information in this step and subsequent steps can be achieved by controlling the corresponding control circuit;
[0046] S6, judging whether a single cell undervoltage fault occurs according to the extreme value data; if so, executing step S7; if not, executing step S8;
[0047] S7, while reporting the undervoltage fault information, prohibiting the battery cell from being in a discharge state, but allowing the battery cell to be in a charge state; this step can prevent the battery from being over-discharged;
[0048] S8, judging whether a battery temperature fault occurs according to the extreme value data; if so, executing step S9; if not, executing step S10;
[0049] S9, while reporting the temperature fault information, prohibiting the battery cells within the preset range from being in a charging state, and also prohibiting these battery cells from being in a discharging state;
[0050] S10, while reporting normal status information, allowing the battery cell to be in a charging state or a discharging state;
[0051] S11. When a battery cell is allowed to be in a charging state and / or a discharging state, a charging and / or discharging process of the battery cell is executed, and a corresponding number of cycles is calculated.
[0052] In step S1, a timer is set in the power generation system, and the timing period of the timer is set to TP. During the timing period, whenever the time value reaches a preset value, it means that the timing condition is met and the battery charging and discharging management cycle is entered.
[0053] In step S2, each time the battery charge and discharge management cycle is entered, the state data of the battery cell is collected once, and the time span between two adjacent state data is TP.
[0054] In this embodiment, step S2 collects the voltage, current and temperature data of the battery cells through sensors or lower-level collection devices arranged at the battery energy storage unit in the power generation system. The sorting algorithm in step S3 includes any one of bubble sort, selection sort, insertion sort, quick sort and counting sort; the extreme value data corresponding to the battery cells include the highest voltage of the cell, the lowest voltage of the cell, the highest temperature of the battery and the lowest temperature of the battery.
[0055] As a preferred method of this embodiment, in step S2, for the state data of the battery cells collected at each moment, the data of the same category in the state data are sent to the corresponding queue; in step S3, the data of the same category in the extreme value data are also sent to the corresponding queue.
[0056] The multiple queues corresponding to the status data and the extreme value data are reserved for use in the fault judgment and cycle number calculation of steps S4, S6, S8 and / or S11; when performing fault judgment, by setting the queue judgment length in the corresponding queue, multiple status data or extreme value data in the queue corresponding to the queue judgment length are selected and compared with the preset normal data to determine whether the relevant fault occurs.
[0057] Example 2
[0058] Based on Example 1, this example introduces the details of single cell overvoltage fault judgment.
[0059] like Figure 2 As shown, for N moments T 1 ,T 2 ,…,T N , the corresponding N monomer maximum voltage VMax in the calculated extreme value data 1 ,VMax 2 ,…,VMax N Send to the highest voltage queue QVoltageMax.
[0060] At the same time, the corresponding N current values in the status data are Current 1 ,Current 2 ,…,Current N Send it to the current queue QCurrent. The above content corresponds to Figure 2 Step S41 in .
[0061] In step S42, since the battery of the power take-off power generation system frequently switches between the charging and discharging states and there is an instantaneous large current, it is necessary to filter the maximum voltage and current values of each cell to suppress the measurement errors, noise, and short-term fluctuations of the voltage and current data of the sensor. In this embodiment, the filtering algorithm can adopt algorithms such as mean filtering, median filtering, and Kalman filtering.
[0062] For the maximum voltage and current values of each cell, filtering operations are respectively performed, and the maximum voltage of each cell obtained after filtering is denoted as VMaxF, and the current value is denoted as CurrentF.
[0063] Immediately afterwards, from the maximum voltage queue QVoltageMax, a single-cell overvoltage fault judgment queue is determined; a preset length value M of the single-cell overvoltage fault judgment queue is used, and this value is also used to characterize the detection time of the single-cell overvoltage fault, that is, the longer the fault judgment queue, the longer the fault detection time, and vice versa, the shorter.
[0064] As a preferred method of this embodiment, corresponding to Figure 2 step S43, after filtering, if the maximum voltage VMaxF of each cell is less than or equal to the platform voltage of the battery energy storage unit, or the current value CurrentF is less than or equal to the rated charging current of the battery, then the preset value M1 is used to replace the original length value M, M1≥M; if the maximum voltage VMaxF of each cell is greater than the platform voltage of the battery energy storage unit, it means that the battery power has reached a relatively high level and is likely to trigger a single-cell overvoltage fault, or the current value CurrentF is greater than the rated charging current of the battery, which means that the current is too large and is also likely to trigger a single-cell overvoltage fault. In these two cases, the preset value M2 is used to replace the original length value M, M2<M; the length value M, the preset value M1, and the preset value M2 are all less than the total number of time instants N.
[0065] Finally, step S44 is performed. For the single-cell overvoltage fault judgment queue with a length value of M, when all the maximum voltages of each cell corresponding to [VMaxF N-M ,…,VMaxF N-1 ,VMaxF N are greater than the preset single-cell overvoltage protection value, it is judged that a single-cell overvoltage fault has occurred, otherwise it is judged that there is no such fault.
[0066] Embodiment 3
[0067] Based on Embodiment 2, this embodiment introduces the detailed content of single-cell undervoltage fault judgment. This part lists 4 steps and can also be referred to correspondingly. Figure 3 Lists 4 steps and can also be referred to correspondingly.
[0068] In this embodiment, the N minimum voltages VMin of each cell corresponding to the calculated extreme value data 1 ,VMin2 ,…,VMin N The minimum voltage is sent to the minimum voltage queue QVoltageMin; the same filtering operation as above is performed on the minimum voltage of the monomer, and the minimum voltage of the monomer obtained after filtering is recorded as VMinF.
[0069] As a preferred method of this embodiment, a single cell undervoltage fault judgment queue is determined from the minimum voltage queue QVoltageMin, and the length value M is also used to determine the number of data in the single cell undervoltage fault judgment queue. The length value M is used to characterize the detection time of the single cell undervoltage fault at this time; after filtering, if the single cell minimum voltage VMinF is greater than or equal to the platform voltage of the battery energy storage unit, or the current value CurrentF is less than or equal to the rated discharge current of the battery, the preset value M1 is used to replace the original length value M; if the single cell minimum voltage VMinF is less than the platform voltage of the battery energy storage unit, it means that the battery power has reached a low level, which is easy to trigger a single cell undervoltage fault, or the current value CurrentF is greater than the rated discharge current of the battery, which means that the current is too large, which is also easy to trigger a single cell undervoltage fault. In these two cases, the preset value M2 is used to replace the original length value M.
[0070] Finally, for the single undervoltage fault judgment queue with a length value of M, when [VMinF N-M ,…,VMinF N-1 ,VMinF N ]When the corresponding minimum voltages of all cells are lower than the preset cell undervoltage protection value, it is judged that a cell undervoltage fault has occurred; otherwise, it is judged that no such fault has occurred.
[0071] Example 3
[0072] Based on any of the above embodiments, this embodiment introduces the details of battery temperature fault judgment. Figure 4 There are 4 steps listed, which can also be referred to accordingly.
[0073] Similarly, for N moments T 1 ,t 2 ,…,T N , the corresponding N battery maximum temperatures TMax in the calculated extreme value data 1 ,TMax 2 ,…,TMax N Send to the maximum temperature queue QTemperatureMax; the corresponding N battery minimum temperatures TMin in the calculated extreme value data 1 ,TMin 2 ,…,TMin NSend to the minimum temperature queue QTemperatureMin; perform filtering operations on the maximum battery temperature and the minimum battery temperature, respectively, such as the same filtering operation used in Example 2, and record the maximum battery temperature obtained after filtering as TMaxF, and the minimum battery temperature as TMinF.
[0074] As a preferred method of this embodiment, the battery temperature fault judgment queue is determined from the maximum temperature queue QTemperatureMax and the minimum temperature queue QTemperatureMin respectively; the length value K of the battery temperature fault judgment queue is preset, and the value is also used to characterize the detection time of the battery temperature fault judgment; after filtering, if the maximum battery temperature TMaxF is less than the upper limit of the allowable discharge temperature value of the battery, and the minimum battery temperature TMinF is greater than the lower limit of the allowable discharge temperature value of the battery, the preset value K1 is used to replace the original length value K, K1>K; otherwise, the preset value K2 is used to replace the original length value K, K2≤K; the length value K, the preset value K1 and the preset value K2 are all less than the total number of moments N.
[0075] Finally, for the battery temperature fault judgment queue with a length value of K, when the queue corresponding to the highest temperature [TMaxF N-K ,…,TMaxF N-1 ,TMaxF N ] when the maximum temperature of all batteries corresponding to it is greater than or equal to the preset maximum allowable temperature of the battery, or when the lowest temperature in the queue [TMinF N-K ,…,TMinF N-1 ,TMinF N ]When the corresponding minimum temperatures of all batteries are less than or equal to the preset minimum allowable battery operating temperature value, it is judged that a battery temperature fault has occurred; otherwise, it is judged that no such fault has occurred.
[0076] Example 4
[0077] Based on any of the above embodiments, this embodiment introduces the details of the calculation of the number of cycles. Figure 5 There are 4 steps listed, which can also be referred to accordingly.
[0078] First, also for N moments T 1 ,T 2 ,…,T N , the corresponding N current values in the state data are Current 1 ,Current 2 ,…,Current NSend the current into the current queue QCurrent; then select a preset length value L, where L < N, and generate a QCurrentL queue [Current N-L ,…,Current N-1 ,Current N as the battery state judgment queue.
[0079] In this embodiment, if all the current values Current in the battery state judgment queue are positive, it means that the battery is in a stable charging state within the past L * TP time period; conversely, if all the current values Current in the battery state judgment queue are negative, it means that the battery is in a stable discharging state within the past L * TP time period; based on the determined battery state, the cycle charging times and cycle discharging times of the battery are determined.
[0080] Specifically, if the battery is in a stable charging state, based on the ampere-hour integration method, record the charging current as Current1, calculate the cumulative charging power within the L * TP time period, and divide the cumulative charging power by the current actual capacity Capacity of the battery to obtain the charging power percentage Charge% for this time, as shown in the following formula:
[0081]
[0082] If the battery is in a stable discharging state, based on the ampere-hour integration method, record the discharging current as Current2, calculate the cumulative discharging power within the L * TP time period, and divide the cumulative discharging power by the current actual capacity Capacity of the battery to obtain the discharging power percentage Discharge% for this time, as shown in the following formula:
[0083]
[0084] Accumulate the respective charging power percentages for multiple chargings to obtain the total cycle charging times ChargeCycle; accumulate the respective discharging power percentages for multiple dischargings to obtain the total cycle discharging times DischargeCycle; the combination of the two gives the battery cycle times of the storage battery;
[0085] Finally, based on the correspondence between the battery cycle times provided by the storage battery manufacturer and its actual capacity, the actual capacity Capacity of the battery can be updated.
[0086] The methods of the above embodiments can all be applied to a computer system, which includes a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program, the steps of the storage battery charge and discharge management method described in any embodiment can be implemented.
Claims
1. A battery charging and discharging management method for a power generation system, characterized in that: The method comprises the following steps: S1, when the power generation system is running, waiting to enter the battery charge and discharge management cycle; S2. After entering the battery charge and discharge management cycle, collect the status data of the battery cells; S3, using a sorting algorithm to calculate the extreme value data corresponding to the battery cells in the status data; S4, judging whether a single cell overvoltage fault occurs according to the extreme value data; if so, executing step S5; if not, executing step S6; S5. When reporting the overvoltage fault information, the battery cell is prohibited from being in a charging state, but the battery cell is allowed to be in a discharging state; S6, judging whether a single cell undervoltage fault occurs according to the extreme value data; if so, executing step S7; if not, executing step S8; S7, while reporting the undervoltage fault information, prohibiting the battery cell from being in a discharge state, but allowing the battery cell to be in a charge state; S8. judging whether a battery temperature fault occurs based on the extreme value data; If yes, go to step S9; if no, go to step S10; S9, while reporting the temperature fault information, prohibiting the battery cells within the preset range from being in a charging state, and also prohibiting these battery cells from being in a discharging state; S10, while reporting normal status information, allowing the battery cell to be in a charging state or a discharging state; S11. When a battery cell is allowed to be in a charging state and / or a discharging state, a charging and / or discharging process of the battery cell is executed, and a corresponding number of cycles is calculated.
2. The battery charge and discharge management method according to claim 1, characterized in that: In step S1, a timer is set in the power generation system, and the timing period of the timer is set to TP. During the timing period, whenever the time value reaches the preset value, it means that the timing condition is met and the battery charge and discharge management cycle is entered; in step S2, each time the battery charge and discharge management cycle is entered, the status data of the battery cell is collected once, and the time span between two adjacent status data is TP.
3. The battery charge and discharge management method according to claim 1, characterized in that: In step S2, the voltage, current and temperature data of the battery cells are collected by sensors or lower-level collection devices arranged at the battery energy storage unit in the power generation system; in step S3, the sorting algorithm includes any one of bubble sort, selection sort, insertion sort, quick sort and counting sort; the extreme value data corresponding to the battery cells include the highest cell voltage, the lowest cell voltage, the highest battery temperature and the lowest battery temperature.
4. The battery charge and discharge management method according to claim 2, characterized in that: In step S2, for the state data of the battery cells collected at each moment, the data of the same category in the state data are sent to the corresponding queue; in step S3, the data of the same category in the extreme value data are also sent to the corresponding queue; The multiple queues corresponding to the status data and the extreme value data are reserved for use in the fault judgment and cycle number calculation of steps S4, S6, S8 and / or S11; when performing fault judgment, by setting the queue judgment length in the corresponding queue, multiple status data or extreme value data in the queue corresponding to the queue judgment length are selected and compared with the preset normal data to determine whether the relevant fault occurs.
5. The battery charge and discharge management method according to claim 4, characterized in that: When the single cell overvoltage fault is judged in step S4, for N time points T1, T2, ..., T N , the corresponding N monomer maximum voltages VMax1, VMax2, ..., VMax in the calculated extreme value data N Send to the highest voltage queue QVoltageMax; The corresponding N current values in the state data are Current1, Current2,…,Current N Send it to the current queue QCurrent; filter the maximum voltage and current value of the monomer respectively, and record the maximum voltage of the monomer obtained after filtering as VMaxF, and the current value as CurrentF; From the highest voltage queue QVoltageMax, determine the single-cell overvoltage fault judgment queue; preset the length value M of the single-cell overvoltage fault judgment queue, which is also used to represent the detection time of the single-cell overvoltage fault; after filtering, if the single-cell highest voltage VMaxF is less than or equal to the plateau voltage of the battery energy storage unit, or the current value CurrentF is less than or equal to the rated charging current of the battery, then use the preset value M1 to replace the original length value M, where M1 ≥ M; If the single-cell highest voltage VMaxF is greater than the plateau voltage of the battery energy storage unit, or the current value CurrentF is greater than the rated charging current of the battery, then use the preset value M2 to replace the original length value M, where M2 < M; the length value M, the preset value M1, and the preset value M2 are all less than the total number of time instants N; For a cell overvoltage fault judgment queue with a length of M, when [VMaxF N-M ,…,VMaxF N-1 ,VMaxF N ]When the corresponding maximum voltages of all monomers are greater than the preset monomer overvoltage protection value, it is judged that a monomer overvoltage fault has occurred; otherwise, it is judged that no such fault has occurred.
6. The battery charge and discharge management method according to claim 5, characterized in that: When determining a single-cell undervoltage fault in step S6, the N single-cell minimum voltages VMin1, VMin2, ..., VMin corresponding to the calculated extreme value data are calculated. N Send it to the minimum voltage queue QVoltageMin; perform filtering operation on the minimum voltage of the monomer, and record the minimum voltage of the monomer obtained after filtering as VMinF; From the lowest voltage queue QVoltageMin, determine the single-cell undervoltage fault judgment queue, and also use the length value M to determine the number of data in the single-cell undervoltage fault judgment queue, and this length value M is used to represent the detection time of the single-cell undervoltage fault at this time; after filtering, if the single-cell lowest voltage VMinF is greater than or equal to the plateau voltage of the battery energy storage unit, or the current value CurrentF is less than or equal to the rated discharge current of the battery, then use the preset value M1 to replace the original length value M; If the single-cell lowest voltage VMinF is less than the plateau voltage of the battery energy storage unit, or the current value CurrentF is greater than the rated discharge current of the battery, then use the preset value M2 to replace the original length value M; For a cell undervoltage fault judgment queue with a length of M, when [VMinF N-M ,…,VMinF N-1 ,VminF N ]When the corresponding minimum voltages of all cells are lower than the preset cell undervoltage protection value, it is judged that a cell undervoltage fault has occurred; otherwise, it is judged that no such fault has occurred.
7. The battery charge and discharge management method according to claim 4, characterized in that: When the battery temperature fault is judged in step S8, for N time points T1, T2, ..., T N , the corresponding N battery maximum temperatures TMax1, TMax2, ..., TMax in the calculated extreme value data N Send to the maximum temperature queue QTemperatureMax; the corresponding N battery minimum temperatures TMin1, TMin2, ..., TMin in the calculated extreme value data N Send to the minimum temperature queue QTemperatureMin; filter the battery maximum temperature and battery minimum temperature respectively, and record the battery maximum temperature obtained after filtering as TMaxF, and the battery minimum temperature as TMinF; From the highest temperature queue QTemperatureMax and the lowest temperature queue QTemperatureMin, respectively determine the battery temperature fault judgment queue; preset the length value K of the battery temperature fault judgment queue, which is also used to represent the detection time of the battery temperature fault judgment; After filtering, if the highest battery temperature TMaxF is less than the upper limit of the allowable discharge temperature value of the battery, and at the same time the lowest battery temperature TMinF is greater than the lower limit of the allowable discharge temperature value of the battery, then use the preset value K1 to replace the original length value K, where K1 > K; Otherwise, use the preset value K2 to replace the original length value K, where K2 ≤ K; the length value K, the preset value K1, and the preset value K2 are all less than the total number of time instants N; For a battery temperature fault judgment queue with a length value of K, when the queue corresponding to the highest temperature [TMaxF N-K ,…,TMaxF N-1 ,TMaxF N ] when the maximum temperature of all batteries corresponding to it is greater than or equal to the preset maximum allowable temperature of the battery, or when the lowest temperature in the queue [TMinF N-K ,…,TMinF N-1 ,TMinF N ]When the corresponding minimum temperatures of all batteries are less than or equal to the preset minimum allowable battery operating temperature value, it is judged that a battery temperature fault has occurred; otherwise, it is judged that no such fault has occurred.
8. The battery charge and discharge management method according to claim 4, characterized in that: When calculating the number of loop iterations in step S11, for N moments T1, T2, …, T N , the corresponding N current values Current1, Current2, …, Current N in the state data are sent to the current queue WCurrent; subsequently, a preset length value L is selected, where L < N, and a QCurrentL queue [Current N-L , …, Current N-1 , Current N is generated based on the current queue QCurrent as the battery state judgment queue; If all the current values Current in the battery state judgment queue are positive, it means that the battery has been in a stable charging state in the past L*TP time period; conversely, if all the current values Current in the battery state judgment queue are negative, it means that the battery has been in a stable discharging state in the past L*TP time period; based on the judged battery state, determine the number of cycle charges and the number of cycle discharges of the battery.
9. The battery charge and discharge management method according to claim 8, characterized in that: If the battery is in a stable charging state, based on the ampere-hour integration method, record the charging current as Current1, calculate the cumulative charging power in the L*TP time period, divide the cumulative charging power by the current actual capacity Capacity of the battery to obtain the percentage of the current charging power Charge%, as shown in the following formula: If the battery is in a stable discharge state, based on the ampere-hour integration method, the discharge current is recorded as Current2, and the cumulative discharge power in the L*TP time period is calculated. The cumulative discharge power is divided by the current actual battery capacity Capacity to obtain the current discharge power percentage Discharge%, as shown in the following formula: The total number of charge cycles ChargeCycle is obtained by accumulating the percentage of charge power under multiple charges; the total number of discharge cycles DischargeCycle is obtained by accumulating the percentage of discharge power under multiple discharges; the combination of the two is the number of battery cycles of the battery; Based on the corresponding relationship between the battery cycle number and the actual capacity of the battery, the actual capacity of the battery is updated.
10. A computer system comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the battery charge and discharge management method according to any one of claims 1 to 9.