Data transmission method, device, equipment and medium

By setting data transmission thresholds in the battery cluster management unit and performing preprocessing and lossless compression coding, the problems of low data transmission efficiency and unreliability in the energy storage system are solved, and transmission efficiency and reliability are improved.

CN119311616AActive Publication Date: 2025-01-14HANGZHOU BMSER TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411418044.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-01-14
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

The prior art has low data transmission efficiency in energy storage systems and is unreliable due to loss of historical data. Especially in data transmission between the battery cluster management unit and the battery array management unit, the transmitted data volume is large and the compression rate is insufficient. This leads to high transmission bandwidth and difficulty in data parsing.

Method used

By setting a data transmission threshold in the battery cluster management unit, it is determined whether the battery data meets the threshold conditions. If it is met, preprocessing and lossless compression encoding will be performed to transmit compressed data to avoid unreliability caused by invalid data transmission and historical data loss.

Benefits of technology

It improves data transmission efficiency, reduces transmission bandwidth, enhances the reliability of data transmission, avoids the inability to parse data caused by historical data loss, and uses lossless compression algorithms to avoid accuracy conversion and data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311616A_ABST
    Figure CN119311616A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, equipment and a medium, relates to the technical field of energy storage, is applied to a battery cluster management unit, and comprises the following steps: responding to a data reading request sent by a battery array management unit, and determining a data transmission threshold value corresponding to the current charge state and the current current value of a battery cluster; judging whether the current battery data of each single battery in the battery cluster and the historical battery data transmitted to the battery array management unit last time meet a transmission condition set based on a data transmission threshold value or not; if yes, preprocessing the battery data between adjacent single batteries in an initial sequence formed based on the current battery data to obtain a processed sequence; and performing compression coding on the processed sequence by using a preset lossless compression algorithm to obtain compressed data, and transmitting the compressed data to a battery array management unit. The data transmission efficiency can be improved, transmission of invalid data is avoided, and unreliability caused by loss of historical data is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of energy storage technology, and in particular to a data transmission method, device, equipment and medium. Background Art

[0002] With the development of energy storage applications, the scale of energy storage groups is getting larger and larger, and the number of clusters tends to increase. The master control of energy storage is generally used for system decision-making, and the main control of energy storage is used to collect information. The master control needs to read the detailed single cell, detailed temperature, single cell SOC (State of Charge), single cell internal resistance and other battery data collected by each main control in real time. At present, energy storage mainly has a three-level architecture. Among them, the J1939 protocol based on CAN2.0B is used to transmit data between BCU (Battery Cluster Management Unit) and BAU (Battery Array Unit). When BAU manages more BCUs, it brings a large amount of transmission data. Therefore, with the increase in the amount of transmission data, the improvement of transmission efficiency is particularly important. In order to reduce the transmission time of data transmission and the bandwidth occupied by the transmission information, it is necessary to compress the data for transmission. Then choosing a suitable compression algorithm has become an important technical issue for transmission data compression.

[0003] The currently commonly used compression algorithms usually involve differential strategy and Huffman coding. Among them, the differential strategy requires differential processing of previous historical data, but relying on the previous data results reduces the reliability of transmission. For example, when part of the historical data is lost, the data cannot be parsed; in addition, when using Huffman coding, since the Huffman tree needs to be generated, when the transmitted data is less than 2KB, there will be a clear lack of compression rate.

[0004] In summary, how to improve data transmission efficiency, avoid the transmission of invalid data, and avoid the unreliability caused by the loss of historical data are issues that need to be resolved. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a data transmission method, device, equipment and medium, which can improve the data transmission efficiency and avoid the transmission of invalid data and the unreliability caused by the loss of historical data. The specific scheme is as follows:

[0006] In a first aspect, the present application discloses a data transmission method, which is applied to a battery cluster management unit, comprising:

[0007] Responding to a data read request from a battery array management unit and determining a data transmission threshold corresponding to a current state of charge and a current current value of the battery cluster;

[0008] Determine whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold;

[0009] If the conditions are met, pre-processing the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence;

[0010] The processed number series is compressed and encoded using a preset lossless compression algorithm to obtain compressed data, and the compressed data is transmitted to the battery array management unit.

[0011] Optionally, the battery cluster management unit is provided with a voltage transmission threshold table and a temperature transmission threshold table;

[0012] Accordingly, the step of determining a data transmission threshold value corresponding to a current state of charge and a current current value of the battery cluster includes:

[0013] searching the voltage transmission threshold table for a corresponding current voltage transmission threshold based on the current state of charge and the current current value of the battery cluster;

[0014] The current temperature transmission threshold is obtained from the temperature transmission threshold table.

[0015] Optionally, the voltage transmission threshold table includes a first voltage transmission threshold table and a second voltage transmission threshold table; the first voltage transmission threshold table records the correspondence between different charge states and different voltage transmission thresholds, and the second voltage transmission threshold table records the correspondence between different current values ​​and different voltage transmission thresholds;

[0016] Accordingly, searching the voltage transmission threshold table for the corresponding current voltage transmission threshold based on the current state of charge and the current current value of the battery cluster includes:

[0017] searching the first voltage transmission threshold table for a corresponding first target voltage transmission threshold based on the current state of charge of the battery cluster;

[0018] searching the second voltage transmission threshold table for a corresponding second target voltage transmission threshold based on the current value of the battery cluster;

[0019] A smaller value of the first target voltage transfer threshold and the second target voltage transfer threshold is determined as a current voltage transfer threshold.

[0020] Optionally, the current battery data is current single cell voltage data of each single cell in the battery cluster;

[0021] Accordingly, the step of judging whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold includes:

[0022] Determine the current maximum cell voltage and the current minimum cell voltage from the current cell voltage data of each cell, and obtain the historical maximum cell voltage and the historical minimum cell voltage last transmitted to the battery array management unit from a preset historical data storage area;

[0023] If the difference between the current maximum cell voltage and the historical maximum cell voltage is greater than the current voltage transmission threshold, or if the difference between the current minimum cell voltage and the historical minimum cell voltage is greater than the current voltage transmission threshold, it is determined that the voltage data transmission condition set based on the current voltage transmission threshold is currently met;

[0024] Correspondingly, the preprocessing of the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence includes:

[0025] In the initial sequence formed based on the current single cell voltage data, the single cell voltage data between adjacent single cells are pre-processed to obtain a processed sequence.

[0026] Optionally, the current battery data is current temperature data of each single battery in the battery cluster;

[0027] Accordingly, the step of judging whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold includes:

[0028] Determine the current maximum temperature and the current minimum temperature from the current temperature data of each single battery, and obtain the historical maximum temperature and the historical minimum temperature last transmitted to the battery array management unit from the preset historical data storage area;

[0029] If the difference between the current maximum temperature and the historical maximum temperature is greater than the current temperature transmission threshold, or if the difference between the current minimum temperature and the historical minimum temperature is greater than the current temperature transmission threshold, it is determined that the temperature data transmission condition set based on the current temperature transmission threshold is currently met;

[0030] Correspondingly, the preprocessing of the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence includes:

[0031] In the initial sequence formed based on the current temperature data, the temperature data between adjacent single cells are pre-processed to obtain a processed sequence.

[0032] Optionally, after determining whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold, the method further includes:

[0033] If the transmission condition is not met, the current battery data of each single battery in the battery cluster is prohibited from being transmitted to the battery array management unit, and target information representing that the battery data has not changed is sent to the battery array management unit so that the battery array management unit still uses the historical battery data transmitted last time to perform preset management operations.

[0034] Optionally, the compressing and encoding the processed sequence using a preset lossless compression algorithm to obtain compressed data includes:

[0035] Encoding the processed number sequence using a Zigzag encoding algorithm to obtain an encoded number sequence;

[0036] The encoded sequence is compressed and encoded using a target compression algorithm based on dictionary encoding to obtain compressed data; wherein the target compression algorithm is any one of LZSS and LZ77.

[0037] Optionally, preprocessing the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence includes:

[0038] Construct an initial data series of the current battery data collected by daisy chaining;

[0039] For each item in the initial sequence, a difference operation is performed between the original battery data of each item and the battery data of the previous item, and the difference operation result is used to replace the original battery data to obtain a processed sequence.

[0040] In a second aspect, the present application discloses a data transmission device, which is applied to a battery cluster management unit, comprising:

[0041] A threshold determination module, used to respond to a data read request sent by the battery array management unit and determine a data transmission threshold corresponding to a current state of charge and a current current value of the battery cluster;

[0042] A judgment module, used to judge whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold;

[0043] A preprocessing module, configured to preprocess the battery data between adjacent single cells in an initial sequence formed based on each current battery data to obtain a processed sequence if the conditions are met;

[0044] The transmission module is used to compress and encode the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmit the compressed data to the battery array management unit.

[0045] In a third aspect, the present application discloses an electronic device, comprising:

[0046] Memory, used to store computer programs;

[0047] The processor is used to execute the computer program to implement the steps of the aforementioned disclosed data transmission method.

[0048] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed data transmission method are implemented.

[0049] It can be seen that the battery cluster management unit in the present application responds to the data reading request sent by the battery array management unit, and determines the data transmission threshold corresponding to the current state of charge and the current current value of the battery cluster; judges whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission conditions set based on the data transmission threshold; if satisfied, pre-processes the battery data between adjacent single batteries in the initial sequence composed of each current battery data to obtain a processed sequence; compresses and encodes the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmits the compressed data to the battery array management unit.

[0050] Beneficial effect: After the battery cluster management unit in the present application obtains the data reading request sent by the battery array management unit, it first needs to determine the data transmission threshold corresponding to the current state of charge and the current current value of the battery cluster. That is, in this application, the data transmission threshold is determined according to the current state of charge and the current current value of the battery cluster, taking into account the characteristics of the single cell voltage change under different states of charge and the influence of current on voltage change. After the data transmission threshold is determined, the corresponding transmission conditions are set, and it is judged whether the current battery data of each single cell in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission conditions. Only when the transmission conditions are met, the current battery data is transmitted. In this way, by setting the transmission conditions, truly valuable battery data can be transmitted, and the transmission of invalid data can be avoided, which effectively reduces the transmission bandwidth. Further, when the transmission conditions are met, it is first necessary to pre-process the battery data between adjacent single cells in the initial sequence composed of each current battery data to obtain a processed sequence, and then compress and encode the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmit the compressed data to the battery array management unit. That is, the above encoding and compression process only relies on the current state of the data and has nothing to do with the historical state, which effectively prevents the situation where the data cannot be parsed due to the loss of historical data during data transmission, and has better reliability. In addition, the present application uses a lossless compression algorithm for compression, without precision conversion, and will not cause the loss of transmitted data, further improving the data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0052] Figure 1 A flow chart of a data transmission method disclosed in this application;

[0053] Figure 2 A flowchart of a specific data transmission method disclosed in this application;

[0054] Figure 3 A schematic diagram of an LZSS encoding algorithm disclosed in this application;

[0055] Figure 4 This is a schematic diagram of the structure of a data transmission device disclosed in this application;

[0056] Figure 5This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0058] The battery cluster management unit and the battery array management unit use the J1939 protocol based on CAN2.0B to transmit data. When the battery array management unit manages more battery cluster management units, it brings a large amount of transmission data. Therefore, as the amount of transmission data increases, the improvement of transmission efficiency is particularly important. The currently commonly used compression algorithms usually involve differential strategies and Huffman coding. Among them, the differential strategy requires differential processing of previous historical data. However, relying on previous data results reduces the reliability of transmission. For example, when part of the historical data is lost, the data cannot be parsed; in addition, the use of Huffman coding requires the generation of a Huffman tree. When the transmitted data is less than 2KB, there will be an obvious lack of compression rate.

[0059] To this end, the embodiments of the present application disclose a data transmission method, apparatus, device and medium, which can improve the data transmission efficiency, avoid the transmission of invalid data and avoid the unreliability caused by the loss of historical data.

[0060] See also Figure 1 As shown, the embodiment of the present application discloses a data transmission method, which is applied to a battery cluster management unit. The method includes:

[0061] Step S11: responding to a data reading request sent by the battery array management unit, and determining a data transmission threshold corresponding to the current state of charge and current value of the battery cluster.

[0062] First of all, it should be pointed out that the battery array management unit, as the management core of the battery array, needs to fully understand the status of the entire battery system. By obtaining the battery data of the battery cluster management unit, the battery array management unit can accurately grasp the working status of each battery cluster in the battery array, thereby evaluating and analyzing the health of the battery. The battery array management unit can also perform battery balancing management. When the voltage of some single cells or battery clusters in the battery pack is different from that of other parts, the battery array management unit can adjust the power distribution between batteries through the balancing circuit to improve the overall performance and service life of the battery pack. Therefore, when the battery array management unit sends a data read request to the battery cluster management unit, the battery cluster management unit needs to send the locally collected battery data to the battery array management unit.

[0063] In this embodiment, after obtaining the data reading request sent by the battery array management unit, the battery cluster management unit first needs to determine the data transmission threshold corresponding to the current state of charge and current value of the battery cluster. That is, since the present application takes into account the characteristics of the voltage variation of the single cell under different states of charge of the current battery and the influence of the current on the voltage variation, the data transmission threshold needs to be determined according to the current state of charge and current value of the battery cluster.

[0064] Step S12: determining whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold.

[0065] In this embodiment, after determining the data transmission threshold, the corresponding transmission condition is set, and it is determined whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition. Only when the transmission condition is met, the current battery data is transmitted. In this way, by setting the transmission condition, truly valuable battery data can be transmitted, and the transmission of invalid data can be avoided, which effectively reduces the transmission bandwidth.

[0066] Step S13: If the conditions are met, pre-processing the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence.

[0067] In this embodiment, when the transmission conditions are met, it is first necessary to pre-process the battery data between adjacent single cells in the initial sequence based on the current battery data to obtain a processed sequence. That is, in the data pre-processing stage, the processing process only depends on the current state of the data and has nothing to do with the historical state, thereby preventing the situation where the data cannot be parsed due to the loss of historical data during data transmission, and having better reliability.

[0068] In addition, after the above-mentioned determination of whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold, it also includes: if the transmission condition is not met, prohibiting the current battery data of each single battery in the battery cluster from being transmitted to the battery array management unit, and sending target information to the battery array management unit for characterizing that the battery data has not changed, so that the battery array management unit still uses the historical battery data transmitted last time to perform preset management operations.

[0069] That is, if the transmission conditions are not met, it means that although there are information differences between the current battery data and the historical battery data last transmitted to the battery array management unit, the range of change is not large. Therefore, it is prohibited to transmit the current battery data of each single battery in the battery cluster to the battery array management unit, so as to avoid the transmission of other data being affected by more invalid detailed data. Therefore, the target information used to characterize that the battery data has not changed is sent to the battery array management unit, so that the battery array management unit still uses the historical battery data transmitted last time to perform the preset management operation. It should be pointed out that the data changes greatly at the end of battery charging and discharging, but the actual battery capacity does not change much, so the data transmission threshold can be set to a larger value to avoid the transmission of invalid data.

[0070] Step S14: compressing and encoding the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmitting the compressed data to the battery array management unit.

[0071] In this embodiment, a preset lossless compression algorithm is used to compress and encode the processed sequence to obtain compressed data, and the compressed data is transmitted to the battery array management unit. By using a lossless compression algorithm for compression, there is no precision conversion, and no loss of transmitted data will occur, which further improves the data transmission efficiency.

[0072] It can be seen that the battery cluster management unit in the present application responds to the data reading request sent by the battery array management unit, and determines the data transmission threshold corresponding to the current state of charge and the current current value of the battery cluster; judges whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission conditions set based on the data transmission threshold; if satisfied, pre-processes the battery data between adjacent single batteries in the initial sequence composed of each current battery data to obtain a processed sequence; compresses and encodes the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmits the compressed data to the battery array management unit.

[0073] Beneficial effect: After the battery cluster management unit in the present application obtains the data reading request sent by the battery array management unit, it first needs to determine the data transmission threshold corresponding to the current state of charge and the current current value of the battery cluster. That is, in this application, the data transmission threshold is determined according to the current state of charge and the current current value of the battery cluster, taking into account the characteristics of the single cell voltage change under different states of charge and the influence of current on voltage change. After the data transmission threshold is determined, the corresponding transmission conditions are set, and it is judged whether the current battery data of each single cell in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission conditions. Only when the transmission conditions are met, the current battery data is transmitted. In this way, by setting the transmission conditions, truly valuable battery data can be transmitted, and the transmission of invalid data can be avoided, which effectively reduces the transmission bandwidth. Further, when the transmission conditions are met, it is first necessary to pre-process the battery data between adjacent single cells in the initial sequence composed of each current battery data to obtain a processed sequence, and then compress and encode the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmit the compressed data to the battery array management unit. That is, the above encoding and compression process only relies on the current state of the data and has nothing to do with the historical state, which effectively prevents the situation where the data cannot be parsed due to the loss of historical data during data transmission, and has better reliability. In addition, the present application uses a lossless compression algorithm for compression, without precision conversion, and will not cause the loss of transmitted data, further improving the data transmission efficiency.

[0074] See also Figure 2 As shown, the embodiment of the present application discloses a specific data transmission method. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:

[0075] Step S21: responding to the data read request sent by the battery array management unit, and searching the voltage transmission threshold table for the corresponding current voltage transmission threshold based on the current state of charge and current current value of the battery cluster, and obtaining the current temperature transmission threshold from the temperature transmission threshold table.

[0076] In this embodiment, a voltage transmission threshold table and a temperature transmission threshold table are pre-set in the battery cluster management unit. Therefore, when determining the data transmission threshold corresponding to the current state of charge and the current current value of the battery cluster, the current voltage transmission threshold corresponding to the current state of charge and the current current value of the battery cluster is searched from the voltage transmission threshold table, and the current temperature transmission threshold is obtained from the temperature transmission threshold table. For example, a correspondence between the state of charge, the current value, and the voltage transmission threshold can be established in the table, so as to find the corresponding current voltage transmission threshold. In addition, the temperature transmission threshold table can store pre-written values, or the influence of temperature on the state of charge and the current can be referred to to establish an association relationship between the three.

[0077] In a specific embodiment, the voltage transmission threshold table includes a first voltage transmission threshold table and a second voltage transmission threshold table; the first voltage transmission threshold table records the correspondence between different charge states and different voltage transmission thresholds, and the second voltage transmission threshold table records the correspondence between different current values ​​and different voltage transmission thresholds.

[0078] That is, the battery cluster management unit sets the {SOC segment, voltage transmission threshold} table and the {current, voltage transmission threshold} table. In different SOC stages, the battery cluster management unit has different judgment criteria for the voltage data to be transmitted and sets different voltage transmission thresholds. In addition, since the current will also affect the voltage change and working state of the battery, different current values ​​also correspond to different voltage transmission thresholds.

[0079] Correspondingly, the method of searching the voltage transmission threshold table for the corresponding current voltage transmission threshold based on the current state of charge and the current current value of the battery cluster includes: searching the first target voltage transmission threshold from the first voltage transmission threshold table based on the current state of charge of the battery cluster; searching the second target voltage transmission threshold from the second voltage transmission threshold table based on the current current value of the battery cluster; and determining the smaller value of the first target voltage transmission threshold and the second target voltage transmission threshold as the current voltage transmission threshold. That is, since two voltage transmission threshold tables are set in the present application, the first target voltage transmission threshold can be searched from the first voltage transmission threshold table based on the current state of charge of the battery cluster, and the second target voltage transmission threshold can be searched from the second voltage transmission threshold table based on the current current value of the battery cluster. The final current voltage transmission threshold can be the smaller value of the first target voltage transmission threshold and the second target voltage transmission threshold.

[0080] Step S22: determining whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold.

[0081] In this embodiment, the data transmitted between the battery cluster management unit and the battery array management unit mainly includes the voltage data and temperature data of the single cell. The single cell voltage data reflects the charge and discharge status of each single cell in the battery cluster, and the temperature data is used to monitor the temperature condition of the battery to ensure that the battery operates within a safe temperature range.

[0082] In a specific embodiment, the current battery data is the current cell voltage data of each cell in the battery cluster; accordingly, the determination of whether the current battery data of each cell in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold includes: determining the current maximum cell voltage and the current minimum cell voltage from the current cell voltage data of each cell, and obtaining the historical maximum cell voltage and the historical minimum cell voltage last transmitted to the battery array management unit from a preset historical data storage area; if the difference between the current maximum cell voltage and the historical maximum cell voltage is greater than the current voltage transmission threshold, or if the difference between the current minimum cell voltage and the historical minimum cell voltage is greater than the current voltage transmission threshold, then it is determined that the voltage data transmission condition set based on the current voltage transmission threshold is currently met.

[0083] It is understandable that the battery cluster management unit is provided with a preset historical data storage area, which records the historical maximum single cell voltage and the historical minimum single cell voltage that were last transmitted to the battery array management unit. Therefore, if the difference between the current maximum single cell voltage and the historical maximum single cell voltage in the current single cell voltage data is greater than the current voltage transmission threshold, or, if the difference between the current minimum single cell voltage and the historical minimum single cell voltage in the current single cell voltage data is greater than the current voltage transmission threshold, it is determined that the voltage data transmission condition set based on the current voltage transmission threshold is currently met, that is, the compression transmission process of the single cell voltage data is started. The specific expression is as follows:

[0084] Current maximum single cell voltage - historical maximum single cell voltage > current voltage transmission threshold;

[0085] Or, the current minimum single cell voltage - the historical minimum single cell voltage > the current voltage transmission threshold.

[0086] Correspondingly, the battery data between adjacent single cells are subsequently preprocessed in the initial sequence based on the current battery data to obtain a processed sequence, specifically including: preprocessing the cell voltage data between adjacent single cells in the initial sequence based on the current cell voltage data to obtain a processed sequence.

[0087] In another specific embodiment, the current battery data is the current temperature data of each single cell in the battery cluster; accordingly, the determination of whether the current battery data of each single cell in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold includes: determining the current maximum temperature and the current minimum temperature from the current temperature data of each single cell, and obtaining the historical maximum temperature and the historical minimum temperature last transmitted to the battery array management unit from a preset historical data storage area; if the difference between the current maximum temperature and the historical maximum temperature is greater than the current temperature transmission threshold, or if the difference between the current minimum temperature and the historical minimum temperature is greater than the current temperature transmission threshold, then it is determined that the temperature data transmission condition set based on the current temperature transmission threshold is currently met.

[0088] Similarly, the battery cluster management unit is provided with a preset historical data storage area, which records the historical highest temperature and the historical lowest temperature last transmitted to the battery array management unit. Therefore, if the difference between the current highest temperature and the historical highest temperature in the current temperature data is greater than the current temperature transmission threshold, or, if the difference between the current lowest temperature and the historical lowest temperature in the current temperature data is greater than the current temperature transmission threshold, it is determined that the temperature data transmission condition set based on the current temperature transmission threshold is currently met, that is, the compression transmission process of the temperature data is started. The specific expression is as follows:

[0089] Current maximum temperature - historical maximum temperature > current temperature transmission threshold;

[0090] Or, current minimum temperature - historical minimum temperature > current temperature transmission threshold.

[0091] Correspondingly, the battery data between adjacent single cells are subsequently preprocessed in the initial sequence based on each current battery data to obtain a processed sequence, specifically including: preprocessing the temperature data between adjacent single cells in the initial sequence based on each current temperature data to obtain a processed sequence.

[0092] Step S23: If the conditions are met, construct an initial sequence for the current battery data collected in a daisy chain manner.

[0093] In this embodiment, the battery cluster management unit collects the current battery data of each single cell in a daisy chain manner. It can be understood that in the battery system, the voltage detection modules of each single cell are connected in sequence through a specific communication line to form a chain structure. The battery cluster management unit is connected to one end of the daisy chain, and reads the voltage data of each single cell one by one through this chain structure. Compared with the method of configuring a communication line for each single cell to connect to the battery cluster management unit, the daisy chain connection can reduce the number of communication lines and reduce the system cost; and the daisy chain connection method makes the wiring of the battery system more concise, reduces the complexity and confusion of the line, and is conducive to the installation and maintenance of the system; in addition, the daisy chain structure is relatively easy to expand, and the number of single cells can be easily increased or decreased without large-scale modifications to the hardware and software of the battery cluster management unit. Therefore, the present application constructs an initial sequence A according to the collection order for the current battery data collected by the daisy chain method: A={b0, b1, b2,…, b n-1 , b n ), where b represents the current battery data of the single cell, and 0 to n represent the serial numbers of the single cells.

[0094] Step S24: for each item in the initial sequence, perform a difference operation on the original battery data of each item and the battery data of the previous item, and use the difference operation result to replace the original battery data to obtain a processed sequence.

[0095] In this embodiment, for each item in the initial sequence, the original battery data of each item is subjected to a difference operation (recorded as a Delt operation) with the battery data of the previous item, and the difference operation result is used to replace the original battery data to obtain a processed sequence. That is, according to the characteristic that the difference between adjacent collected amounts is small during actual battery data collection, the collected amounts between adjacent cells are differentially encoded to obtain a processed sequence B: B={b0, b1-b0, b2-b1,…, b n-1 -b n-2 , b n -b n-1}.

[0096] This solution uses adjacent data for difference. The decompression of the entire data depends only on the current state and has nothing to do with the historical state. It has better reliability and effectively prevents the loss of previous frames due to historical loss or other reasons in CAN transmission. In addition, there is a higher similarity between adjacent data, and the difference result is more conducive to the subsequent encoding and compression.

[0097] Step S25: Encode the processed sequence using a Zigzag encoding algorithm to obtain an encoded sequence, compress the encoded sequence using a target compression algorithm based on dictionary encoding to obtain compressed data, and transmit the compressed data to the battery array management unit; wherein the target compression algorithm is any one of LZSS and LZ77.

[0098] In this embodiment, the Zigzag encoding algorithm is first used to perform Zigzag transformation on the processed sequence B. It can be understood that there are many data compression algorithms, but the principle of most data compression algorithms is to not store 0 bits in the data through a certain encoding method, so the more 0 bits, the better the data compression effect, and ZigZag encoding is a coding method that increases 0 bits.

[0099] ZigZag encoding is different for positive and negative numbers. The following example uses the positive number 11 and the negative number -11 as examples:

[0100] (1) Assume that the data type is a positive number 11, whose binary representation is: 00000000 00001011. Shift the data left by one bit to get 000000000 00010110. Move the sign bit (the sign of a positive number is 0) to the last bit to get 00000000 00010110.

[0101] (2) Assume that the negative number -11 is of data type byte. Its binary representation is in two's complement in the computer. The calculation process is as follows:

[0102] Positive number original code: 00000000 0001011;

[0103] Inverse code: 11111111 11110100;

[0104] Two’s complement (one’s complement plus 1): 11111111 11110101.

[0105] The processing process is:

[0106] a. Shift left one bit: 11111111 11101010;

[0107] b. Put the sign bit at the last bit: 11111111 11101011;

[0108] c. Invert all except the last digit: 00000000 00010101.

[0109] The coded sequence obtained by encoding the sequence B using the Zigzag coding algorithm is denoted as C: ={C0,C1,C2,C3,C4,…,C m}.

[0110] Furthermore, the encoded sequence is compressed and encoded using a target compression algorithm based on dictionary coding to obtain compressed data; the target compression algorithm is any one of LZSS and LZ77.

[0111] This embodiment takes LZSS as an example for specific description:

[0112] LZSS is a lossless data compression algorithm. The core of the compression algorithm is to replace the repeated part with the string that has already appeared. The output of the encoder is just a pointer to the string that appeared earlier. LZSS, also known as "sliding window compression", uses a virtual window that can slide with the compression process as a dictionary. If the string to be compressed appears in the window, its position and length are output. If it does not appear, the character is output as it is.

[0113] See also Figure 3 As shown, Figure 3 This is a schematic diagram of an LZSS encoding algorithm disclosed in this application, and its specific execution steps are as follows:

[0114] 1. Place the encoding position at the beginning of the input data stream;

[0115] 2. Search the forward buffer for the longest matching string in the sliding window; the sliding window is used to store the most recently processed data, and the forward buffer is used to store the data to be processed;

[0116] ①Pointer:=matching string pointer.

[0117] ②Length: = length of the matching string.

[0118] 3. Determine whether the length of the matching string Length is greater than or equal to the minimum matching string length (MIN_LENGTH);

[0119] If "yes": output the pointer, and then move the encoding position forward by Length characters;

[0120] If "No": output the first character in the forward buffer, and then move the encoding position forward one character;

[0121] 4. If the forward buffer is not empty, return to step 2.

[0122] The compressed sequence (compressed data) formed after LZSS compression;

[0123] R={R0, R1, R2, R3, R4,…, R k}.

[0124] Finally, the present application transmits the compressed data R to the battery array management unit. Specifically, the R data series is put into J1939 and transmitted using the CAN (Controller Area Network) bus.

[0125] After receiving the compressed data, the battery array management unit first uses the LZSS decompression algorithm to decompress it, then uses the Zigzag encoding method to restore it, and finally uses Delt to reversely restore the transmitted sequence. Since the above three encoding and compression algorithms are all lossless compression and there is no precision conversion, there will be no loss of transmitted data.

[0126] It can be seen that the embodiment of the present application sets the corresponding voltage transmission threshold and temperature transmission threshold according to the characteristics of the current battery, the difference in the impact of the battery voltage in different SOC segments, and the impact of different currents, so that valuable data is transmitted only when necessary, effectively reducing the actual bandwidth. In addition, this method uses Delt, Zigzag, and LZSS compression encoding. The compression and decompression method process is simple, the algorithm complexity is low, and it is more in line with the efficiency of embedded systems; compared with other algorithms, this compression algorithm has a higher compression ratio for data compression less than 2KB. Other algorithms use Huffman coding trees and require more redundant information.

[0127] See also Figure 4 As shown, the embodiment of the present application discloses a data transmission device, which is applied to a battery cluster management unit, and the device includes:

[0128] The threshold determination module 11 is used to respond to the data reading request sent by the battery array management unit and determine the data transmission threshold corresponding to the current state of charge and current current value of the battery cluster;

[0129] A judgment module 12, used to judge whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold;

[0130] A preprocessing module 13, configured to preprocess the battery data between adjacent single cells in an initial sequence formed based on each current battery data to obtain a processed sequence if the conditions are met;

[0131] The transmission module 14 is used to compress and encode the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmit the compressed data to the battery array management unit.

[0132] Beneficial effect: After the battery cluster management unit in the present application obtains the data reading request sent by the battery array management unit, it first needs to determine the data transmission threshold corresponding to the current state of charge and the current current value of the battery cluster. That is, in this application, the data transmission threshold is determined according to the current state of charge and the current current value of the battery cluster, taking into account the characteristics of the single cell voltage change under different states of charge and the influence of current on voltage change. After the data transmission threshold is determined, the corresponding transmission conditions are set, and it is judged whether the current battery data of each single cell in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission conditions. Only when the transmission conditions are met, the current battery data is transmitted. In this way, by setting the transmission conditions, truly valuable battery data can be transmitted, and the transmission of invalid data can be avoided, which effectively reduces the transmission bandwidth. Further, when the transmission conditions are met, it is first necessary to pre-process the battery data between adjacent single cells in the initial sequence composed of each current battery data to obtain a processed sequence, and then compress and encode the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmit the compressed data to the battery array management unit. That is, the above encoding and compression process only relies on the current state of the data and has nothing to do with the historical state, which effectively prevents the situation where the data cannot be parsed due to the loss of historical data during data transmission, and has better reliability. In addition, the present application uses a lossless compression algorithm for compression, without precision conversion, and will not cause the loss of transmitted data, further improving the data transmission efficiency.

[0133] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, which will not be described here. In addition, the invention has the same beneficial effects as the above-mentioned data transmission method.

[0134] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data transmission method performed by the electronic device disclosed in any of the aforementioned embodiments.

[0135] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0136] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0137] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.

[0138] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the data transmission method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can also further include a computer program that can be used to complete other specific tasks. In addition to data transmitted from an external device received by the electronic device, the data 223 can also include data collected by its own input and output interface 25, etc.

[0139] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the data transmission method disclosed in any of the aforementioned embodiments are implemented.

[0140] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0141] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0142] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a compact disc read-only memory (CD-ROM), or any other form of storage medium known in the art.

[0143] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0144] The above is a detailed introduction to a data transmission method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for a person skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A data transmission method, characterized in that: Applied to battery cluster management units, including: Responding to a data read request sent by a battery array management unit, and determining a data transmission threshold corresponding to a current state of charge and a current current value of the battery cluster; Determine whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold; If the conditions are met, pre-processing the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence; The processed number series is compressed and encoded using a preset lossless compression algorithm to obtain compressed data, and the compressed data is transmitted to the battery array management unit.

2. The data transmission method according to claim 1, characterized in that: The battery cluster management unit is provided with a voltage transmission threshold table and a temperature transmission threshold table; Accordingly, the step of determining a data transmission threshold value corresponding to a current state of charge and a current current value of the battery cluster includes: searching the voltage transmission threshold table for a corresponding current voltage transmission threshold based on the current state of charge and the current current value of the battery cluster; The current temperature transmission threshold is obtained from the temperature transmission threshold table.

3. The data transmission method according to claim 2, characterized in that: The voltage transmission threshold table includes a first voltage transmission threshold table and a second voltage transmission threshold table; the first voltage transmission threshold table records the correspondence between different charge states and different voltage transmission thresholds, and the second voltage transmission threshold table records the correspondence between different current values ​​and different voltage transmission thresholds; Accordingly, searching the voltage transmission threshold table for the corresponding current voltage transmission threshold based on the current state of charge and the current current value of the battery cluster includes: searching the first voltage transmission threshold table for a corresponding first target voltage transmission threshold based on the current state of charge of the battery cluster; searching the second voltage transmission threshold table for a corresponding second target voltage transmission threshold based on the current value of the battery cluster; A smaller value of the first target voltage transfer threshold and the second target voltage transfer threshold is determined as a current voltage transfer threshold.

4. The data transmission method according to claim 2, characterized in that: The current battery data is the current single cell voltage data of each single cell in the battery cluster; Accordingly, the step of judging whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold includes: Determine the current maximum cell voltage and the current minimum cell voltage from the current cell voltage data of each cell, and obtain the historical maximum cell voltage and the historical minimum cell voltage last transmitted to the battery array management unit from a preset historical data storage area; If the difference between the current maximum cell voltage and the historical maximum cell voltage is greater than the current voltage transmission threshold, or if the difference between the current minimum cell voltage and the historical minimum cell voltage is greater than the current voltage transmission threshold, it is determined that the voltage data transmission condition set based on the current voltage transmission threshold is currently met; Correspondingly, the preprocessing of the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence includes: In the initial sequence formed based on the current single cell voltage data, the single cell voltage data between adjacent single cells are pre-processed to obtain a processed sequence.

5. The data transmission method according to claim 2, characterized in that: The current battery data is the current temperature data of each single battery in the battery cluster; Accordingly, the step of judging whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold includes: Determine the current maximum temperature and the current minimum temperature from the current temperature data of each single battery, and obtain the historical maximum temperature and the historical minimum temperature last transmitted to the battery array management unit from the preset historical data storage area; If the difference between the current maximum temperature and the historical maximum temperature is greater than the current temperature transmission threshold, or if the difference between the current minimum temperature and the historical minimum temperature is greater than the current temperature transmission threshold, it is determined that the temperature data transmission condition set based on the current temperature transmission threshold is currently met; Correspondingly, the preprocessing of the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence includes: In the initial sequence formed based on each of the current temperature data, the temperature data between adjacent single cells are pre-processed to obtain a processed sequence.

6. The data transmission method according to claim 1, characterized in that: After determining whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold, the method further includes: If the transmission condition is not met, the current battery data of each single battery in the battery cluster is prohibited from being transmitted to the battery array management unit, and target information representing that the battery data has not changed is sent to the battery array management unit so that the battery array management unit still uses the historical battery data transmitted last time to perform preset management operations.

7. The data transmission method according to claim 1, characterized in that: The method of compressing and encoding the processed sequence using a preset lossless compression algorithm to obtain compressed data includes: Encoding the processed number sequence using a Zigzag encoding algorithm to obtain an encoded number sequence; The encoded sequence is compressed and encoded using a target compression algorithm based on dictionary encoding to obtain compressed data; wherein the target compression algorithm is any one of LZSS and LZ77.

8. The data transmission method according to any one of claims 1 to 7, characterized in that: The preprocessing of the battery data between adjacent single cells in the initial sequence formed based on the current battery data to obtain a processed sequence includes: Construct an initial data series of the current battery data collected by daisy chaining; For each item in the initial sequence, a difference operation is performed between the original battery data of each item and the battery data of the previous item, and the difference operation result is used to replace the original battery data to obtain a processed sequence.

9. A data transmission device, characterized in that: Applied to battery cluster management units, including: A threshold determination module, used to respond to a data read request sent by the battery array management unit and determine a data transmission threshold corresponding to a current state of charge and a current current value of the battery cluster; A judgment module, used to judge whether the current battery data of each single battery in the battery cluster and the historical battery data last transmitted to the battery array management unit meet the transmission condition set based on the data transmission threshold; A preprocessing module, configured to preprocess the battery data between adjacent single cells in an initial sequence formed based on each current battery data to obtain a processed sequence if the conditions are met; The transmission module is used to compress and encode the processed sequence using a preset lossless compression algorithm to obtain compressed data, and transmit the compressed data to the battery array management unit.

10. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the data transmission method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Early warning method and device for battery energy storage system, electronic equipment and storage medium

    CN114839555A

  • Compression method and storage method of battery data and battery management system

    CN115913249A

  • Battery data transmission and storage method, device and equipment and storage medium

    CN116819376A

  • Energy storage system high-voltage access control method, energy storage system, equipment and storage medium

    CN117375054A

  • Battery control method and device, computer equipment and medium

    CN118232447A