Fault recording data storage method, device and storage medium of energy storage system
By caching and parsing data packets in the energy storage system and writing alarm information to external storage media, the problem of capacity limitation of non-volatile storage media is solved, and complete storage and accurate analysis of fault data are achieved.
Patent Information
- Application Number
- CN202411901402.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The limited storage capacity of non-volatile storage media in energy storage systems results in insufficient data storage time and resolution for fault data, making it impossible to fully record key data before and after the fault, thus affecting the analysis of fault causes.
The data packets sent sequentially by the battery management system of the energy storage system are cached in the first internal storage medium. The data is parsed by the parsing task and stored in the target storage block of the second internal storage medium. According to the alarm trigger time of the device alarm information, the data of the preset time period is written to the external storage medium.
This ensured the integrity and reliability of the fault data, providing a guarantee for subsequent fault tracing and location, and ensuring the accurate storage and analysis of the data.
Smart Images

Figure CN119828968B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of energy storage, in particular to a fault recording data storage method of an energy storage system, equipment and a storage medium. BACKGROUND
[0002] With the continuous growth of energy consumption and the increasing environmental pollution problem, energy storage technology plays an increasingly important role in the field of energy storage and conversion. As an important part of energy storage technology, the performance and safety of energy storage batteries directly affect the operation efficiency and reliability of the entire energy storage system. However, in actual application, energy storage batteries may have various faults, such as short circuit, overcharge, overdischarge, temperature anomaly, etc., which may cause battery performance degradation, life shortening, and even safety accidents. Therefore, in order to ensure the safe and reliable operation of energy storage batteries, it is necessary to store key data before and after the fault for the positioning and backtracking of safety accidents of energy storage batteries.
[0003] At present, when the energy storage system fails, the related parameters of the energy storage battery are obtained through the battery management system in the energy storage system, and the related parameters of the energy storage battery are sent to the non-volatile storage medium through the battery management system. The related parameters of the energy storage battery are stored as fault recording data of the energy storage system by the non-volatile storage medium.
[0004] However, the storage capacity of the non-volatile storage medium is limited, resulting in limited storage of fault data of the energy storage system, limiting the storage time length and resolution of the fault data, which may not cover the entire key time period before and after the fault, so that the fault occurring in a long time period may not be recorded completely or the data of the energy storage battery before and after the fault time may not be covered, resulting in inaccurate analysis of the fault cause of the energy storage system. SUMMARY
[0005] The purpose of the present application is to provide a fault recording data storage method of an energy storage system, equipment and a storage medium, which writes multiple data of a preset time period before and after the alarm of the energy storage system into an external storage, ensures the integrity and reliability of the fault data, and provides protection for subsequent fault tracing and positioning.
[0006] To achieve the above purpose, the technical solutions adopted by the embodiments of the present application are as follows:
[0007] In a first aspect, an embodiment of the present application provides a fault recording data storage method of an energy storage system, which comprises:
[0008] The multiple data packets sent by the battery management system in the energy storage system to each of the multiple energy storage devices in turn are cached in the first internal storage medium in turn;
[0009] adopting an analysis task, taking a data packet from the first internal storage medium, and analyzing the taken current data packet to obtain device information corresponding to the current data packet and analysis data;
[0010] According to the device information, the analysis data is stored in the target storage block of the target device corresponding to the device information in the second internal storage medium;
[0011] If the analysis data has device alarm state information, according to the alarm trigger time of the device alarm information, a plurality of data in a preset time period before and after the alarm trigger time in the storage block of the target device in the second internal storage medium is written to the external storage medium.
[0012] Optionally, the plurality of data packets sent by the battery management system in the energy storage system for each energy storage device in the plurality of energy storage devices are sequentially cached in the first internal storage medium, comprising:
[0013] The plurality of data packets sent by the each energy storage device through the external communication interface are cached in the first internal storage medium in the form of a queue.
[0014] Optionally, the analysis data includes: information of data type, timestamp and monitoring data;
[0015] According to the device information, the analysis data is stored in the target storage block of the target device corresponding to the device information in the second internal storage medium;
[0016] According to the device information and the information of the data type, the target storage block is determined from the storage interval of the second internal storage medium, and the target data block corresponding to the data type is determined from a plurality of data blocks in the target storage block;
[0017] The timestamp and the monitoring data are stored as a piece of data in the target data block.
[0018] Optionally, according to the storage address of the target data block, the timestamp and the monitoring data are stored as a piece of data in the target data block, comprising:
[0019] According to the storage address of the target data block, the timestamp and the monitoring data are stored as a piece of data in the target data block in a ring storage mode.
[0020] Optionally, before the determining the storage address of the target data block corresponding to the data type from the multiple data blocks in the target storage block according to the device information and the information of the data type and in a preset address mapping manner, the method further comprises:
[0021] According to the configuration information of the energy storage system, obtain the device information of the multiple energy storage devices in the energy storage system, the information of multiple preset data types, a preset collection period, and a fault record time length;
[0022] According to the preset collection period and the fault record time length, calculate the length of a single data block;
[0023] According to the information of the multiple preset data types and the length of the single data block, determine the length of a single device storage block;
[0024] According to the length of the single device storage block and the device information of the multiple energy storage devices, determine multiple storage blocks from the storage interval of the second internal storage medium, so that the length of each storage block is the length of the single device storage block; wherein the multiple storage blocks correspond to the multiple energy storage devices respectively;
[0025] According to the information of the multiple preset data types and the length of the single data block, divide each storage block into multiple data blocks, so that the length of each data block is the length of the single data block; wherein the multiple data blocks correspond to the multiple preset data types respectively; each data block is used to store multiple pieces of data of the corresponding energy storage device under the corresponding data type.
[0026] Optionally, the writing the multiple pieces of data in the preset time period before and after the alarm triggering time in the storage block of the target device in the second internal storage medium into the external storage medium comprises:
[0027] According to the information of the data type of the multiple pieces of data and the indication information of a preset storage manner, write into the file header of the data file of the target device in the external storage medium;
[0028] Write the multiple pieces of data into the file body of the data file of the target device in the external storage medium.
[0029] Optionally, before the writing the multiple pieces of data into the file header of the data file of the target device in the external storage medium according to the information of the data type of the multiple pieces of data and the indication information of the preset storage manner, the method further comprises:
[0030] The multiple data entries are compressed to obtain compressed data entries; the indication information of the preset storage method includes: time name, compression flag name, and compression length name, wherein the compression flag name is used to indicate whether each data entry is compressed;
[0031] The step of writing the multiple data entries into the file body of the target device's data file in the external storage medium includes:
[0032] The compressed data is written into the file body of the target device's data file in the external storage medium.
[0033] Optionally, writing the compressed data into the file body of the target device's data file in the external storage medium includes:
[0034] The compressed data is written into a preset cache array in the first internal storage medium;
[0035] Write all the data in the preset cache array into the file body of the data file of the target device.
[0036] Secondly, another embodiment of this application provides a fault recording data storage device for an energy storage system, the device comprising:
[0037] The caching module is used to cache multiple data packets sent sequentially by the battery management system for each of the multiple energy storage devices in the energy storage system into the first internal storage medium.
[0038] The parsing module is used to retrieve data packets from the first internal storage medium using a parsing task, and parse the retrieved current data packets to obtain the device information and parsed data corresponding to the current data packets;
[0039] The storage module is used to store the parsed data into the target storage block of the target device corresponding to the device information in the second internal storage medium according to the device information;
[0040] The read / write module is used to write multiple data entries within a preset time period before and after the alarm trigger time in the storage block of the target device in the second internal storage medium to the external storage medium, based on the alarm trigger time of the device alarm information if the parsed data contains device alarm information.
[0041] In a third aspect, another embodiment of the present application provides a fault recording device, comprising: a processor, an instruction memory, a first internal storage medium, a second internal storage medium, and an external storage medium; the instruction memory stores machine readable instructions executable by the processor, when the fault recording device is running, the processor executes the machine readable instructions to perform the steps of the fault recording data storage method of the energy storage system according to any one of the first aspect, and performs access operations between the first internal storage medium, the second internal storage medium, and the external storage medium.
[0042] In a fourth aspect, another embodiment of the present application provides a storage medium, the storage medium stores a computer program, when the computer program is run by a processor, the steps of the fault recording data storage method of the energy storage system according to any one of the first aspect are executed.
[0043] The present application has the following beneficial effects:
[0044] The present application provides a fault recording data storage method, device, and storage medium of an energy storage system, a plurality of data packets sent by a battery management system in the energy storage system in sequence for each energy storage device in a plurality of energy storage devices are cached in the first internal storage medium in sequence, a parsing task is used to take the data packets from the first internal storage medium, and the current data packet taken is parsed to obtain device information corresponding to the current data packet and parsed data, according to the device information, the parsed data is stored in a target storage block of a target device corresponding to the device information in the second internal storage medium, and if the parsed data has device alarm information, according to an alarm trigger time of the device alarm information, a plurality of data in a preset time period before and after the alarm trigger time in the storage block of the target device in the second internal storage medium is written into the external storage medium. The present application stores a plurality of data packets sent by the battery management system in sequence in the first internal storage medium in sequence, guarantees the integrity of the data, stores the parsed data in the target storage block of the target device corresponding to the device information in the second internal storage medium, guarantees that the parsed data is accurately stored in the second internal storage medium, when the parsed data has device alarm information, writes a plurality of data in a preset time period before and after the alarm into the external storage, guarantees the integrity of the fault data, and provides protection for subsequent fault tracing and positioning. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be considered as a limitation to the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.
[0046] Figure 1 A structural schematic diagram of a storage energy system provided by an embodiment of the present application;
[0047] Figure 2 A flowchart of a fault recording data storage method of a storage energy system provided by an embodiment of the present application;
[0048] Figure 3 A schematic diagram of data packet storage in a first internal storage medium provided by an embodiment of the present application;
[0049] Figure 4 A flowchart of data storage in a fault recording data storage method of a storage energy system provided by an embodiment of the present application;
[0050] Figure 5 A schematic diagram of data storage in a target data block provided by an embodiment of the present application;
[0051] Figure 6 A flowchart of determining a plurality of data under a data type in a fault recording data processing method of a storage energy system provided by an embodiment of the present application;
[0052] Figure 7 A storage area division schematic diagram of a second memory medium provided by an embodiment of the present application;
[0053] Figure 8 A flowchart of data writing in a fault recording data processing method of a storage energy system provided by an embodiment of the present application;
[0054] Figure 9 A flowchart of data writing in a second fault recording data processing method of a storage energy system provided by an embodiment of the present application;
[0055] Figure 10 A flowchart of data writing in a third fault recording data processing method of a storage energy system provided by an embodiment of the present application;
[0056] Figure 11 A structural schematic diagram of a fault recording data storage device of a storage energy system provided by an embodiment of the present application;
[0057] Figure 12 A structural schematic diagram of a fault recording device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0058] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of description and illustration, and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn according to the actual proportions. The flowcharts used in the present application show the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can not be implemented in sequence, and the steps without logical context relationship can be reversed in sequence or implemented simultaneously. In addition, one or more other operations can be added to the flowcharts or one or more operations can be removed from the flowcharts under the guidance of the content of the present application.
[0059] In addition, the described embodiments are only some of the embodiments of the present application, not all the embodiments. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0060] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0061] To clearly describe a fault recording data storage method of an energy storage system provided by the embodiments of the present application, the method provided by the embodiments of the present application will be described below in combination with a plurality of drawings. Figure 1 A structural schematic diagram of an energy storage system provided by the embodiments of the present application is shown in Figure 1 As shown, the energy storage system comprises a battery management system, an energy storage module, an energy storage converter and an energy management system. The battery management system comprises a master battery management system and a plurality of slave battery management systems, the slave battery management systems are arranged in at least one battery cluster of each energy storage module, the number of the slave battery management systems corresponds to the number of the battery clusters one by one, and the master battery management system is arranged in the energy storage system. Each energy storage module is in communication connection with the battery management system and the energy storage converter, interacts with external equipment through the battery management system, the energy storage converter is in electrical connection with the battery management system, the energy storage converter is in communication connection with the energy management system, interacts with external equipment through the battery management system and the energy management system, and the energy management system is in communication connection with the battery management system.
[0062] Figure 2 A flowchart of a fault recording data storage method of an energy storage system provided by the embodiments of the present application is shown inFigure 2 The method comprises the following steps:
[0063] In step 202, the battery management system in the energy storage system sequentially stores a plurality of data packets transmitted by the battery management system for each energy storage device in the plurality of energy storage devices into a first internal storage medium.
[0064] The energy storage device is all devices in the energy storage system, and the plurality of energy storage devices can be a master battery management system, a slave battery management system, an energy storage converter, and an energy management system. The sequential transmission can be performed in chronological order, that is, the data packets collected first are transmitted first, and the data packets collected later are transmitted later. The first internal storage medium can be a random access memory (RAM).
[0065] Optionally, the plurality of data packets transmitted by the corresponding battery management system of each device in the plurality of devices in the energy storage system are sequentially stored in the first internal storage medium. When the device is a slave battery management system, the plurality of data packets are sequentially stored in the first internal storage medium by the slave battery management system. When the device is a master battery management system, the plurality of data packets are sequentially stored in the first internal storage medium by the master battery management system. When the device is an energy management system, the plurality of data packets are sequentially stored in the first internal storage medium by the energy management system. When the device is an energy storage converter, the plurality of data packets can be sequentially stored in the first internal storage medium by the master battery management system or the energy management system.
[0066] In step 202, the battery management system in the energy storage system sequentially stores a plurality of data packets transmitted by the battery management system for each energy storage device in the plurality of energy storage devices into a first internal storage medium.
[0067] The analysis task is a queue buffer and analysis, which is used to analyze the data packets in the order of the queue buffer to obtain the device information and analysis data corresponding to the data packets.
[0068] Optionally, when there is no data packet input, the analysis task takes the data packets from the first internal storage medium according to the first-in first-out principle, and analyzes the current data packet to obtain the device information and analysis data corresponding to the current data packet.
[0069] In step 203, the analysis data is stored in the second internal storage medium according to the device information.
[0070] The second internal storage medium can be a synchronous dynamic random access memory (SDRAM), and the second internal storage medium can be a ring storage structure. Different devices correspond to different storage blocks in the second internal storage medium.
[0071] Optionally, according to the device information, a target storage block corresponding to the target device in the second internal storage is determined, and the parsed data is stored in the target storage block.
[0072] In step 204, if the parsed data includes device alarm information, according to an alarm trigger time of the device alarm information, a plurality of pieces of data in a preset time period before and after the alarm trigger time of the target device in the second internal storage medium are written into the external storage medium.
[0073] The device alarm information is used to indicate a device fault. The device alarm information is determined by the battery management system through received data, and is sent to the first memory device through a data packet. The alarm trigger time is the corresponding time of the device alarm information. The preset time period is determined according to the requirement of the energy storage device. The preset time periods before and after the alarm trigger time can be the same or different. For example, a plurality of pieces of data 5 minutes before the device alarm trigger time and a plurality of pieces of data 5 minutes after the device alarm trigger time are obtained, or a plurality of pieces of data 3 minutes before the device alarm trigger time and a plurality of pieces of data 7 minutes after the device alarm trigger time are obtained. The present embodiment does not limit this. The external storage medium is a storage medium such as an embedded multimedia card (eMMC), a secure digital card (SD card), and a solid state drive (SSD).
[0074] Optionally, according to the analysis result of the data packet, it is determined whether the parsed data includes device alarm information. If the parsed data includes device alarm information, according to an alarm trigger time of the device alarm information and a preset time period before and after the alarm trigger time, a plurality of pieces of data in the preset time period before and after the alarm trigger time are determined, and the plurality of pieces of data of the target device in the second internal storage medium are written into the external storage medium.
[0075] The application provides a fault recording data storage method of an energy storage system, a plurality of data packets sent by a battery management system in the energy storage system in sequence for each energy storage device in a plurality of energy storage devices are sequentially cached into a first internal storage medium, a parsing task is adopted to take the data packets from the first internal storage medium, and the current data packet taken is parsed to obtain device information corresponding to the current data packet and parsed data, the parsed data is stored into a target storage block of a target device corresponding to the device information in a second internal storage medium according to the device information, and if the parsed data has device alarm information, a plurality of pieces of data in a preset time period before and after the alarm trigger time of the device alarm information in the storage block of the target device in the second internal storage medium are written into an external storage medium according to the alarm trigger time. The application sequentially stores the plurality of data packets sent by the battery management system in sequence into the first internal storage medium, guarantees the integrity of the data, stores the parsed data into the target storage block of the target device corresponding to the device information in the second internal storage medium, guarantees that the parsed data is accurately stored into the second internal storage medium, when the parsed data has the device alarm information, writes the plurality of pieces of data in the preset time period before and after the alarm into the external storage, guarantees the integrity of the fault data, and provides protection for subsequent fault tracing and positioning.
[0076] On the basis of the above-mentioned embodiment, the application further provides a flow of data packet storage in the fault recording data storage method of the energy storage system, the plurality of data packets sent by the battery management system in the energy storage system in sequence for each energy storage device in the plurality of energy storage devices are sequentially cached into the first internal storage medium in step 201, and the step 201 comprises the following steps.
[0077] The plurality of data packets sent by each energy storage device in sequence through an external communication interface are cached into the first internal storage medium in the form of a queue.
[0078] The queue form is that the data packets are queued in sequence, the data packet received first is arranged at the front of the queue, and the data packet received later is arranged at the back of the queue. The external communication interface can be an Ethernet communication interface or a Controller Area Network (CAN) communication interface.
[0079] For example, Figure 3 A schematic diagram of data packet storage in the first internal storage medium provided by the embodiment of the application is shown in FIG. 1. Figure 3 As shown in FIG. 1, the first internal storage medium adopts a first-in first-out storage principle, the data packet N is a data packet coming in first, and the data packet 1 is a data packet coming in later. When the data packets are parsed from the first internal storage medium, the data packet N is parsed first, and the data packet 1 is parsed later according to the queue order.
[0080] In the embodiment of the present application, the multiple data packets sent by each energy storage device through the external communication interface in turn are cached in the first internal storage medium in the form of a queue, thereby ensuring the orderliness of the data packets and ensuring that the data will not be lost during the communication process.
[0081] On the basis of the above embodiment, the parsed data includes information of the data type, a timestamp, and monitoring data; for this purpose, the present application further provides a data storage process in a fault recording data storage method of an energy storage system, Figure 4 A flowchart of the data storage process in the fault recording data storage method of the energy storage system provided by the embodiment of the present application is shown in the above step 203, wherein the parsed data is stored in the target storage block of the target device corresponding to the device information in the second internal storage medium, including:
[0082] Step 401: determining a target storage block from the storage interval of the second internal storage medium according to the device information and the information of the data type, and determining a target data block corresponding to the data type from the multiple data blocks in the target storage block.
[0083] The second internal storage medium includes multiple memory blocks, different memory blocks correspond to different energy storage systems, and the second internal storage medium can be divided according to the number of energy storage systems. The second internal storage medium is equally divided into multiple memory blocks, and the number of memory blocks in the second internal storage medium can be 1, 5, 10, 15, etc., which is not limited in the embodiment of the present application. The second internal storage medium includes multiple memory blocks, and the second internal storage medium includes multiple storage blocks, each of which includes multiple data blocks. When the second internal storage medium includes only one memory block, the second internal storage medium is regarded as a memory block, and the memory block includes multiple storage blocks, each of which includes multiple data blocks.
[0084] Optionally, a device storage block is determined as a target data block from the storage interval of the second internal storage medium according to the device information, and a target data block corresponding to the data type is determined from the multiple data blocks in the target storage block.
[0085] Step 402: storing the timestamp and the monitoring data as a piece of data in the target data block.
[0086] The target data block includes multiple pieces of monitoring data and timestamps corresponding to the monitoring data, the timestamp is used to indicate the occurrence time of the monitoring data, and the monitoring data includes current data, voltage data, temperature data, and any data of the energy storage system when a fault occurs, which is not limited in the embodiment of the present application.
[0087] In the embodiment of the present application, the timestamp and the monitoring data are stored as one piece of data in the target data block, the generation time of the monitoring data can be determined, the accuracy of the monitoring data storage is ensured, and the efficiency of the monitoring data management is improved.
[0088] On the basis of the above-mentioned embodiment, the present application further provides a data storage method of fault recording data of an energy storage system, and a flow of storing data into a data block, in the step 202, the timestamp and the monitoring data are stored as one piece of data in the target data block according to the storage address of the target data block, including:
[0089] According to the storage address of the target data block, the timestamp and the monitoring data are stored as one piece of data in the target data block in a ring storage manner.
[0090] The ring storage is to organize the storage space into a ring structure, and allows data to be read and written in a loop. When the data reaches the end of the buffer area, it can continue to be read and written from the beginning, forming a loop.
[0091] For example, Figure 5 A schematic diagram of data storage in a target data block is provided for the embodiment of the present application, as shown in Figure 5 The target data block includes multiple pieces of data, each piece of data includes monitoring data and a corresponding timestamp. When new data needs to be stored, first check whether the buffer area of the target data block is full. When the buffer area is not full, write the new data to the current write position. When the write position catches up with the read position, the target data block will be full, and the new data will overwrite the old data. When the read position catches up with the write position, the target data block will be empty, and the newly written data will overwrite the old data.
[0092] On the basis of the above-mentioned embodiment, the present application further provides a flow of determining multiple pieces of data under a data type in a fault recording data processing method of an energy storage system, Figure 6 A flowchart of determining multiple pieces of data under a data type in a fault recording data processing method of an energy storage system is provided for the embodiment of the present application, as shown in Figure 6 In step 401, according to the device information and the information of the data type, the target storage block is determined from the storage interval of the second internal storage medium by using a preset address mapping manner, and the storage address of the target data block corresponding to the data type is determined from the multiple data blocks in the target storage block, and before the step, the method further includes:
[0093] In step 601, according to the configuration information of the energy storage system, the device information of multiple energy storage devices in the energy storage system, the information of multiple preset data types, the preset collection period, and the fault recording time length are obtained.
[0094] The device information of the plurality of energy storage devices in the energy storage system can be the number of different devices, which distinguishes different energy storage devices through different numbers, or the model, capacity, power, state, etc. of the energy storage device. The preset data type information is the fault information in the energy storage system, for example, current, voltage, temperature, and other energy storage system fault related information. The preset collection period is the same as the period of the battery management system sending data packets. The fault record length is the length of the preset time period before and after the alarm trigger time.
[0095] Step 602, according to the preset collection period and the fault record length, the length of a single data block is calculated.
[0096] Optionally, according to the fault record length and the preset collection period, the number of fault record data is determined by dividing the fault record length by the preset collection period. The sum of the byte length of each piece of monitoring data and the corresponding timestamp is taken as the byte length of each data. The product of the byte length of each data and the preset collection period is taken as the length of a single data block.
[0097] Step 603, according to the information of a plurality of preset data types and the length of a single data block, the length of a single device storage block is determined.
[0098] Optionally, the sum of the number of a plurality of data types and the length of a single data block of each data type option is taken as the length of a single device storage block.
[0099] Step 604, according to the length of a single device storage block and the device information of a plurality of energy storage devices, a plurality of storage blocks are determined from the storage interval of the second internal storage medium, so that the length of each storage block is the length of a single device storage block.
[0100] The plurality of storage blocks correspond to the plurality of energy storage devices, respectively.
[0101] Optionally, the number of energy storage devices is determined according to the device information of the plurality of energy storage devices, and a plurality of storage blocks are determined from the storage interval of the second internal storage medium according to the number of energy storage devices. Each storage block corresponds to a different energy storage device, and the length of each storage block is the length of the storage block of the corresponding energy storage device.
[0102] Step 605, according to the information of a plurality of preset data types and the length of a single data block, each storage block is divided into a plurality of data blocks, so that the length of each data block is the length of a single data block.
[0103] The plurality of data blocks correspond to the plurality of preset data types, respectively. Each data block is used to store a plurality of data of the corresponding energy storage device under the corresponding data type.
[0104] Optionally, according to the plurality of data types corresponding to each device, the storage block of each device is divided, and the storage block of each device is divided into data blocks corresponding to the number of data types, and the length of each data block is the length of a single data block corresponding to the data type.
[0105] For example, Figure 7 A storage area division schematic diagram of a second memory medium provided by an embodiment of the application is shown in FIG. 6. Figure 7 As shown, according to the lengths of the plurality of storage blocks in the plurality of energy storage systems, a plurality of memory blocks are determined from the storage area of the second internal storage medium. According to the data type of each energy storage device in each energy storage system and the length of a single data block, the length of each storage block is determined. Each storage block is divided into a plurality of data blocks, and the plurality of data blocks correspond to a plurality of preset data types. Each data block is used to store a plurality of pieces of data of the corresponding energy storage device under the corresponding data type.
[0106] On the basis of the above-mentioned embodiments, the application further provides a data writing flow in a fault recording data processing method of an energy storage system, Figure 8 A flowchart of a data writing process in a fault recording data processing method of an energy storage system provided by an embodiment of the application is shown in FIG. 7. Figure 8 As shown in step 204, the plurality of pieces of data in the preset time period before and after the alarm trigger time in the storage block of the target device in the second internal storage medium are written into the external storage medium, including:
[0107] Step 801, according to the information of the data type of the plurality of pieces of data and the indication information of the preset storage mode, write into the file header of the data file of the target device in the external storage medium.
[0108] Optionally, according to the information of the data type of the plurality of pieces of data and the indication information of the preset storage mode, write into the file header of the data file of the target device in the external storage medium respectively. Different file headers include different data types and the data storage method corresponding to the data type. Different data types correspond to different file headers.
[0109] Step 802, write the plurality of pieces of data into the file body of the data file of the target device in the external storage medium.
[0110] Optionally, the plurality of pieces of data are written into different files according to the file headers, and the corresponding files are written into the file body of the data file of the target device in the external storage medium.
[0111] In the embodiment of the present application, the data type information of the plurality of data and the indication information of the preset storage mode are written into the file header of the data file of the target device in the external storage medium, together with the name and the corresponding file size. The data storage and processing flow can be optimized, the time and resource consumption of data processing can be reduced, the storage space can be reasonably allocated, and unnecessary space waste can be avoided.
[0112] On the basis of the above-mentioned embodiment, the present application further provides a data writing flow in a second fault recording data processing method of a storage energy system, Figure 9 A flowchart of the data writing flow in the second fault recording data processing method of the storage energy system provided by the embodiment of the present application is shown in FIG. 8. Figure 9 Before the step 801, the method further includes the following steps:
[0113] 901, compress the plurality of data to obtain the plurality of compressed data.
[0114] The indication information of the preset storage mode includes a time name, a compression flag name and a compression length name. The compression flag name is used to indicate whether each piece of data is compressed, the time name is the timestamp information, and the compression length name is the data length before compression and the compressed data length.
[0115] Optionally, the plurality of data is compressed according to a data compression algorithm to obtain the plurality of compressed data. The compressed data corresponds to the timestamp information, the data length before compression, the data length after compression and the compression indication information. The data compression algorithm can be a dictionary-based compression algorithm, a transform coding, an entropy coding or the like, which is not limited in the embodiment of the present application.
[0116] In the step 801, the plurality of data is written into the file body of the data file of the target device in the external storage medium, including:
[0117] 902, write the plurality of compressed data into the file body of the data file of the target device in the external storage medium.
[0118] Optionally, after the plurality of compressed data corresponds to the timestamp information, the data length before compression, the data length after compression and the compression indication information, the plurality of compressed data is written into the file body of the data file of the target device in the external storage medium.
[0119] For example, Table 1 is a data file table of a target device provided by the embodiment of the present application.
[0120] Table 1 data file table of a target device
[0121] For example, Table 1 is a data file table of a target device provided by the embodiment of the present application.
[0122] The file header comprises a time name, a compression flag name and a compression length name. The compression flag name is used to indicate whether each piece of data is compressed, the time name is time stamp information, and the compression length name is the data length before compression and the compressed data length. The file body stores the time stamps of the plurality of pieces of data, the compression flag, the data length before compression and the compressed data length in the compression length name, and the corresponding plurality of pieces of data.
[0123] In the embodiment of the application, the plurality of pieces of data are compressed to obtain compressed plurality of pieces of data, and the compressed plurality of pieces of data are written into the file body of the data file of the target device in the external storage medium. The storage space can be saved, the data transmission efficiency and transmission speed can be improved, and the service life of the external storage medium can be prolonged.
[0124] On the basis of the above-mentioned embodiment, the application further provides a third data writing process in a fault recording data processing method of an energy storage system, Figure 10 The third data writing process in the fault recording data processing method of the energy storage system provided in the embodiment of the application is shown in a flowchart as Figure 10 The compressed plurality of pieces of data are written into the file body of the data file of the target device in the external storage medium in step 902, and the step comprises:
[0125] Step 1001, write the compressed plurality of pieces of data into a preset cache array in the first internal storage medium.
[0126] The size of the preset cache data is an integer multiple of 512 bytes. Each preset cache array can comprise a plurality of pieces of data of different data types, and each data type corresponds to a different file header. Different energy storage devices correspond to different preset cache data.
[0127] Optionally, the compressed plurality of pieces of data are respectively written into the preset cache arrays corresponding to different energy storage devices in the first internal storage medium according to device information.
[0128] Step 1002, write all data in the preset cache array into the file body of the data file of the target device.
[0129] Optionally, when the preset cache array is full of data of the plurality of data types corresponding to the plurality of energy storage devices, all data in the preset cache array is written into the file body of the data file of the target device according to the preset byte length. Or when the preset cache array is full, the excess data is stored in another preset cache data, and when the preset cache array is full of data of the plurality of data types corresponding to the plurality of energy storage devices, all data in the plurality of preset cache arrays is written into the file body of the data file of the target device according to the preset byte length. The preset byte length can be an integer multiple of 512 bytes. The specific multiple is the same as the multiple of the first internal storage medium and 512 bytes.
[0130] In the embodiment of the application, the compressed plurality of data is written into the preset cache array in the first internal storage medium, and all data in the preset cache array is written into the file body of the data file of the target device. The application can significantly improve the data writing speed, reduce the erase and write speed of the external storage medium, and improve the service life of the external storage medium.
[0131] Based on the same inventive concept, the embodiment of the application also provides a fault recording data storage device of an energy storage system corresponding to the fault recording data storage method of the energy storage system. Since the principle of solving the problem in the device of the embodiment of the application is similar to the fault recording data storage method of the energy storage system described above, the implementation of the device can be referred to the implementation of the method, and the repeated parts will not be described again.
[0132] Figure 11 A structure diagram of a fault recording data storage device of an energy storage system provided in the embodiment of the application is provided. The device comprises:
[0133] The cache module 1101 is configured to sequentially cache a plurality of data packets sent by the battery management system of the energy storage system for each of the plurality of energy storage devices into the first internal storage medium;
[0134] The analysis module 1102 is configured to use an analysis task to take the data packets from the first internal storage medium, and analyze the current data packet to obtain device information corresponding to the current data packet and analysis data.
[0135] The storage module 1103 is configured to store the analysis data in the target storage block of the target device corresponding to the device information in the second internal storage medium according to the device information.
[0136] The read-write module 1104 is configured to, if the analysis data has device alarm information, write a plurality of data in a preset time period before and after the alarm trigger time of the device alarm information into the external storage medium according to the alarm trigger time of the device alarm information.
[0137] Optionally, the cache module 1101 is specifically configured to cache the multiple data packets sent by each energy storage device in turn through the external communication interface in a queue form into the first internal storage medium.
[0138] Optionally, the parsed data includes information of data types, timestamps, and monitoring data; the storage module 1103 is specifically configured to determine a target storage block from the storage interval of the second internal storage medium according to the device information and the information of data types, and determine a target data block corresponding to the data type from the multiple data blocks in the target storage block.
[0139] The timestamp and the monitoring data are stored as one piece of data in the target data block.
[0140] Optionally, the storage module 1103 is specifically configured to store the timestamp and the monitoring data as one piece of data in the target data block in a ring storage manner according to the storage address of the target data block.
[0141] Optionally, the storage module 1103 is further configured to obtain device information of the multiple energy storage devices, information of multiple preset data types, a preset collection period, and a fault record time length of the energy storage system according to configuration information of the energy storage system.
[0142] According to the preset collection period and the fault record time length, the length of a single data block is calculated.
[0143] According to the information of the multiple preset data types and the length of a single data block, the length of a single device storage block is determined.
[0144] According to the length of a single device storage block and the device information of the multiple energy storage devices, multiple storage blocks are determined from the storage interval of the second internal storage medium, so that the length of each storage block is the length of a single device storage block; wherein the multiple storage blocks correspond to the multiple energy storage devices respectively.
[0145] According to the information of the multiple preset data types and the length of a single data block, each storage block is divided into multiple data blocks, so that the length of each data block is the length of a single data block; wherein the multiple data blocks correspond to the multiple preset data types respectively; and each data block is used to store multiple pieces of data of the corresponding energy storage device under the corresponding data type.
[0146] Optionally, the read-write module 1104 is specifically configured to write, according to the information of the data types of the multiple pieces of data and the indication information of the preset storage manner, the file header of the data file of the target device in the external storage medium.
[0147] The multiple pieces of data are written into the file body of the data file of the target device in the external storage medium.
[0148] Optionally, the read-write module 1104 is further configured to compress the plurality of data to obtain compressed data, and the indication information of the preset storage mode comprises a time name, a compression flag name and a compression length name, and the compression flag name is used to indicate whether each piece of data is compressed.
[0149] Optionally, the read-write module 1104 is specifically configured to write the compressed data into a file body of a data file of the target device.
[0150] Optionally, the read-write module 1104 is specifically configured to write the compressed data into a preset cache array in the first internal storage medium.
[0151] Optionally, the read-write module 1104 is specifically configured to write all data in the preset cache array into the file body of the data file of the target device.
[0152] The description of the processing procedure of each module in the device and the interaction procedure between the modules can refer to the related description in the above method embodiments, and will not be described in detail here.
[0153] The embodiment of the present application also provides a fault recording device, Figure 12 The structure diagram of the fault recording device provided by the embodiment of the present application is shown in Figure 12 The fault recording device comprises:
[0154] a processor 1201, an instruction memory 1202, a first internal storage medium 1203, a second internal storage medium 1204 and an external storage medium 1205.
[0155] The instruction memory 1201 stores machine-readable instructions executable by the processor 1201, and when the fault recording device is running, the processor 1201 executes the machine-readable instructions to perform the steps of the fault recording data storage method of the energy storage system as described above, and performs access operations between the first internal storage medium 1203, the second internal storage medium 1204 and the external storage medium 1205.
[0156] The embodiment of the present application also provides a storage medium, and the storage medium stores a computer program, and the computer program is executed by the processor to perform the steps of the fault recording data storage method of the energy storage system as described above.
[0157] Those skilled in the art can clearly understand the specific working process of the system and the device described above for the convenience and brevity of description, which can refer to the corresponding process in the method embodiment, and will not be repeated herein. In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented by other ways. The device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and the actual implementation can have another division, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some communication interface, device or module, which can be electrical, mechanical or other forms.
[0158] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. When the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or say the parts that make contributions to the prior art or parts of the technical solutions can be embodied in the form of software products, which are stored in a storage medium and include a plurality of instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0159] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application.
Claims
1. A fault recording data storage method of an energy storage system, characterized by, The method comprises: The battery management system in the energy storage system sequentially sends a plurality of data packets to each of a plurality of energy storage devices, and the data packets are sequentially cached in a first internal storage medium; the data packets include at least one fault recording data; Using an analysis task, the data packets are taken from the first internal storage medium, and the current data packet taken is analyzed to obtain device information corresponding to the current data packet and analysis data; According to the device information, the analysis data is stored in a target storage block of a target device corresponding to the device information in a second internal storage medium; If the analysis data has device alarm information, according to the alarm trigger time of the device alarm information, a plurality of data in a preset time period before and after the alarm trigger time in the storage block of the target device in the second internal storage medium are written into an external storage medium.
2. The method of claim 1, wherein, The battery management system in the energy storage system sequentially sends a plurality of data packets to each of a plurality of energy storage devices, and the data packets are sequentially cached in a first internal storage medium; the data packets include at least one fault recording data; The plurality of data packets sent by each energy storage device through an external communication interface are cached in the first internal storage medium in the form of a queue.
3. The method of claim 1, wherein, The analysis data includes information of data type, time stamp and monitoring data; According to the device information, the analysis data is stored in a target storage block of a target device corresponding to the device information in a second internal storage medium; According to the device information and the information of the data type, the target storage block is determined from the storage interval of the second internal storage medium, and the target data block corresponding to the data type is determined from a plurality of data blocks in the target storage block; The time stamp and the monitoring data are stored as a piece of data in the target data block.
4. The method of claim 3, wherein, According to the storage address of the target data block, the time stamp and the monitoring data are stored as a piece of data in the target data block, which comprises: According to the storage address of the target data block, the time stamp and the monitoring data are stored as a piece of data in the target data block in a ring storage mode.
5. The method of claim 3, wherein, Before the target storage block is determined from the storage interval of the second internal storage medium according to the device information and the information of the data type, and the storage address of the target data block corresponding to the data type is determined from a plurality of data blocks in the target storage block, the method further comprises: According to the configuration information of the energy storage system, the device information of the plurality of energy storage devices in the energy storage system, the information of a plurality of preset data types, a preset collection period, and a fault recording time length are obtained; According to the preset collection period and the fault recording time length, the length of a single data block is calculated; According to the information of the plurality of preset data types and the length of the single data block, the length of a single device storage block is determined; According to the length of the single device storage block and the device information of the plurality of energy storage devices, a plurality of storage blocks are determined from the storage block interval of the second internal storage medium, so that the length of each storage block is the length of the single device storage block; wherein the plurality of storage blocks correspond to the plurality of energy storage devices respectively; According to the information of the plurality of preset data types and the length of the single data block, each storage block is divided into a plurality of data blocks, so that the length of each data block is the length of the single data block; wherein the plurality of data blocks correspond to the plurality of preset data types respectively; each data block is used to store a plurality of data of the corresponding energy storage device under the corresponding data type.
6. The method of claim 1, wherein, The method further comprises: According to the information of the data type of the plurality of data and the indication information of the preset storage mode, the file header of the data file of the target device in the external storage medium is written; The plurality of data is written into the file body of the data file of the target device in the external storage medium.
7. The method of claim 6, wherein, Before the plurality of data is written into the file header of the data file of the target device in the external storage medium, the method further comprises: The plurality of data is compressed to obtain compressed data; the indication information of the preset storage mode includes: time name, compression flag name, and compression length name, and the compression flag name is used to indicate whether each data is compressed; The plurality of data is written into the file body of the data file of the target device in the external storage medium. The plurality of data is written into the file body of the data file of the target device in the external storage medium.
8. The method of claim 7, wherein, The plurality of data is written into the file body of the data file of the target device in the external storage medium. The plurality of data is written into the file body of the data file of the target device in the external storage medium. The fault recording device comprises: a processor, an instruction memory, a first internal storage medium, a second internal storage medium, and an external storage medium; 9. A fault recording device, characterized by, The instruction memory stores machine readable instructions executable by the processor, and when the fault recording device is running, the processor executes the machine readable instructions to perform the steps of the fault recording data storage method of the energy storage system as claimed in any one of claims 1 to 8, and performs access operations between the first internal storage medium, the second internal storage medium, and the external storage medium. The storage medium stores a computer program, and the computer program is executed by the processor to perform the steps of the fault recording data storage method of the energy storage system as claimed in any one of claims 1 to 8.
10. A storage medium, characterized by
Citation Information
Patent Citations
Method of power grid fault record real-time data storage selection mode
CN102118020A
Method and device for starting, storing and transmitting various recorded waves of power distribution terminal
CN118659529A