Fault recording data storage method and device of energy storage system and storage medium

By introducing cache, analysis, storage and read and write modules into the energy storage system, multiple data packets sent by the battery management system are cached into the first internal storage medium for analysis and storage, and based on the alarm trigger time of the equipment alarm information, multiple pieces of data within the preset time period are written to the external storage medium, solving the problem of limited storage capacity of fault data in the prior art, realizing the integrity and reliability of fault data, and providing guarantees for fault traceability and positioning.

CN119828968AActive Publication Date: 2025-04-15HANGZHOU GOLD ELECTRONICS EQUIP CO LTD

Patent Information

Application Number
CN202411901402.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15
Estimated Expiration
2044-12-23

AI Technical Summary

Technical Problem

When the existing energy storage system fails, due to the limited storage capacity of the nonvolatile storage medium, the storage time and resolution of the fault data are limited, and the fault data cannot be fully recorded for a long period of time, thus limiting the accurate analysis of the cause of the fault.

Method used

By introducing a cache module, analytical module, a storage module and a read and write module into the energy storage system, multiple data packets sent by the battery management system are cached to the first internal storage medium for analysis and storage, and write multiple pieces of data within the preset time period to the external storage medium according to the alarm trigger time of the device alarm information.

Benefits of technology

It ensures the integrity and reliability of the fault data, provides guarantees for subsequent fault tracing and location, and can fully record the fault data within a long period of time, improving the accuracy of fault cause analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119828968A_ABST
    Figure CN119828968A_ABST
Patent Text Reader

Abstract

The invention provides a fault recording data storage method and device of an energy storage system and a storage medium, and relates to the technical field of energy storage, and the method comprises the steps: sequentially caching a plurality of data packets sequentially sent by a battery management system in the energy storage system for each energy storage device in a plurality of energy storage devices into a first internal storage medium; taking the data packet from the first internal storage medium by adopting an analysis task, and analyzing the taken current data packet to obtain equipment information and analysis data corresponding to the current data packet; according to the equipment information, storing the analysis data into a target storage block of the target equipment corresponding to the equipment information in a second internal storage medium; and according to the alarm triggering time of the equipment alarm information, writing multiple pieces of data in a preset time period before and after the alarm triggering time in the storage block of the target equipment in the second internal storage medium into the external storage medium. According to the invention, the integrity and reliability of the fault data of the energy storage system are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of energy storage technology, and in particular to a method, device and storage medium for storing fault recording data of an energy storage system. Background Art

[0002] With the continuous growth of energy consumption and the increasingly serious 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 operating efficiency and reliability of the entire energy storage system. However, in actual applications, energy storage batteries may have various faults, such as short circuit, overcharge, over discharge, abnormal temperature, etc. These faults may cause battery performance degradation, shorten life, and even cause safety accidents. Therefore, in order to ensure the safe and reliable operation of energy storage batteries, it is convenient to locate and trace the safety accidents of energy storage batteries, and store key data before and after the failure.

[0003] At present, when an energy storage system fails, relevant parameters of the energy storage battery are obtained through the battery management system in the energy storage system, and the relevant parameters of the energy storage battery are sent to a non-volatile storage medium through the battery management system. The non-volatile storage medium stores the relevant parameters of the energy storage battery as fault recording data of the energy storage system.

[0004] However, the storage capacity of non-volatile storage media is limited, resulting in limited storage of energy storage system fault data, which limits the storage time length and resolution of fault data and may not cover all critical time periods before and after the fault. As a result, faults occurring over a long period of time may not be fully recorded or may not cover the data of the energy storage batteries before and after the fault time, making it impossible to accurately analyze the cause of the energy storage system failure. Summary of the invention

[0005] The purpose of this application is to address the deficiencies in the above-mentioned prior art and provide a method, device and storage medium for storing fault recording data of an energy storage system, so as to write multiple data in a preset time period before and after the energy storage system alarm into an external storage, thereby ensuring the integrity and reliability of the fault data and providing a guarantee for subsequent fault tracing and positioning.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, an embodiment of the present application provides a method for storing fault recording data of an energy storage system, the method comprising:

[0008] Cache in sequence a plurality of data packets sent in sequence by the battery management system in the energy storage system to each of the plurality of energy storage devices in sequence into a first internal storage medium;

[0009] Using a parsing task, taking a data packet from the first internal storage medium, and parsing the taken current data packet to obtain device information and parsed data corresponding to the current data packet;

[0010] According to the device information, storing the parsed data in a target storage block of a target device corresponding to the device information in a second internal storage medium;

[0011] If the parsed data contains device alarm status information, multiple data 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 are written to the external storage medium according to the alarm trigger time of the device alarm information.

[0012] Optionally, the step of sequentially caching multiple data packets sequentially sent by the battery management system in the energy storage system to each of the multiple energy storage devices into the first internal storage medium includes:

[0013] The multiple data packets sequentially sent by 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 parsed data includes: information on data types, timestamps, and monitoring data;

[0015] According to the device information, storing the parsed data in a target storage block of a target device corresponding to the device information in a second internal storage medium includes:

[0016] Determine the 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 determine the target data block corresponding to the data type 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, storing the timestamp and the monitoring data as a piece of data in the target data block according to the storage address of the target data block includes:

[0019] 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 circular storage manner.

[0020] Optionally, before determining the target storage block from the storage interval of the second internal storage medium by using a preset address mapping method according to the device information and the information of the data type, and determining the storage address of the target data block corresponding to the data type from multiple data blocks in the target storage block, the method further includes:

[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, information of multiple preset data types, a preset collection cycle, and the length of the fault record;

[0022] Calculate the length of a single data block according to the preset collection period and the length of the fault record;

[0023] Determine the length of a single device storage block according to the information of the plurality of preset data types and the length of the single data 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, each storage block is divided 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 data of the corresponding energy storage device under the corresponding data type.

[0026] Optionally, the step of writing the plurality of pieces of data in the storage block of the target device in the second internal storage medium within a preset time period before and after the alarm triggering time to the external storage medium includes:

[0027] Writing the information of the data types of the plurality of pieces of data and the indication information of the preset storage mode into the file header of the data file of the target device in the external storage medium;

[0028] The plurality of data are written into a file body of a data file of the target device in the external storage medium.

[0029] Optionally, before writing the information about the data types of the plurality of pieces of data and the indication information of the preset storage mode into the file header of the data file of the target device in the external storage medium, the method further comprises:

[0030] Compressing the plurality of data to obtain the compressed plurality of data; the indication information of the preset storage method includes: a time name, a compression mark name, and a compression length name, and the compression mark name is used to indicate whether each data is compressed;

[0031] The step of writing the plurality of pieces of data into a file body of a data file of the target device in the external storage medium comprises:

[0032] The compressed plurality of data are written into a file body of a data file of the target device in the external storage medium.

[0033] Optionally, writing the compressed plurality of data into a file body of a data file of the target device in the external storage medium comprises:

[0034] Writing the compressed data into a preset cache array in the first internal storage medium;

[0035] All data in the preset cache array are written into the file body of the data file of the target device.

[0036] In a second aspect, another embodiment of the present application provides a fault recording data storage device for an energy storage system, the device comprising:

[0037] A cache module, used for sequentially caching multiple data packets sent sequentially by the battery management system in the energy storage system to each of the multiple energy storage devices into a first internal storage medium;

[0038] A parsing module, configured to use a parsing task to retrieve a data packet from the first internal storage medium, and parse the retrieved current data packet to obtain device information and parsed data corresponding to the current data packet;

[0039] A storage module, configured to store the parsed data 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;

[0040] A read-write module is used to write multiple data 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 if the parsed data contains device alarm information.

[0041] In the 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, and when the fault recording device is running, the processor executes the machine-readable instructions to execute the steps of the fault recording data storage method of the energy storage system as described in any of the above-mentioned first aspects, 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 having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for storing fault recording data of an energy storage system as described in any one of the first aspects above are executed.

[0043] The beneficial effects of this application are:

[0044] The present application provides a method, device and storage medium for storing fault recording data of an energy storage system, wherein a plurality of data packets sequentially sent by a battery management system in the energy storage system to each of a plurality of energy storage devices are sequentially cached in a first internal storage medium, a parsing task is used to retrieve a data packet from the first internal storage medium, and the retrieved current data packet is parsed to obtain device information and parsed data corresponding to the current data packet, and the parsed 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 if the parsed data contains device alarm information, multiple data 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 are written to an external storage medium according to the alarm trigger time of the device alarm information. The present application stores multiple data packets sent sequentially by the battery management system in the first internal storage medium in sequence, ensuring the integrity of the data, and stores the parsed data in the target storage block of the target device corresponding to the device information in the second internal storage medium, ensuring that the parsed data is accurately stored in the second internal storage medium. When the parsed data contains device alarm information, multiple data in a preset time period before and after the alarm are written into the external storage, ensuring the integrity of the fault data and providing protection for subsequent fault tracing and positioning. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A schematic diagram of the structure of an energy storage system provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of a flow chart of a method for storing fault recording data of an energy storage system provided in an embodiment of the present application;

[0048] Figure 3 A schematic diagram of data packet storage in a first internal storage medium provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of a data storage process in a method for storing fault wave recording data of an energy storage system provided in 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 schematic diagram of a process for determining multiple data of a data type in a method for processing fault recording data of an energy storage system provided in an embodiment of the present application;

[0052] Figure 7 A schematic diagram of storage area division of a second memory medium provided in an embodiment of the present application;

[0053] Figure 8 A schematic diagram of a process of writing data in a method for processing fault recording data of an energy storage system provided in an embodiment of the present application;

[0054] Fig. 9 A schematic diagram of a process for writing data in a second method for processing fault recording data of an energy storage system provided in an embodiment of the present application;

[0055] Fig.10 A schematic diagram of a process for writing data in a third method for processing fault recording data of an energy storage system provided in an embodiment of the present application;

[0056] Fig.11 A schematic diagram of the structure of a fault recording data storage device for an energy storage system provided in an embodiment of the present application;

[0057] Fig.12 A schematic diagram of the structure of a fault recording device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with 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 explanation and description 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 in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0059] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various 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 application claimed for protection, but merely represents the 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 making creative work belong to 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 existence of the features declared thereafter, but does not exclude the addition of other features.

[0061] In order to clearly describe a method for storing fault recording data of an energy storage system provided in an embodiment of the present application, the method provided in an embodiment of the present application is described below in conjunction with multiple drawings. Figure 1 A schematic diagram of the structure of an energy storage system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the energy storage system includes: a battery management system, an energy storage module, an energy storage inverter and an energy management system. The battery management system includes a master battery management system and multiple slave battery management systems. The slave battery management system is arranged in at least one battery cluster of each energy storage module. The number of slave battery management systems corresponds to the number of battery clusters. The master battery management system is arranged in the energy storage system. Each energy storage module is respectively connected to the battery management system and the energy storage inverter for communication, and interacts with external devices through the battery management system. The energy storage inverter is electrically connected to the battery management system, and the energy storage inverter is connected to the energy management system for communication. The battery management system and the energy management system interact with external devices, and the energy management system is connected to the battery management system for communication.

[0062] Figure 2 A schematic diagram of a method for storing fault recording data of an energy storage system provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:

[0063] Step 202: Cache in sequence a plurality of data packets sequentially sent by a battery management system in the energy storage system to each of a plurality of energy storage devices in sequence into a first internal storage medium.

[0064] The energy storage device is all the devices in the energy storage system, and the multiple 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 first collected data packet is sent first, and the later collected data packet is sent later. The first internal storage medium can be a random access memory (Random Access Memory, referred to as RAM).

[0065] Optionally, multiple data packets sent in sequence by the battery management system corresponding to each device in the multiple devices in the energy storage system are cached in sequence in the first internal storage medium. When the device is a slave battery management system, the multiple data packets are cached in sequence in the first internal storage medium by the slave battery management system; when the device is a master battery management system, the multiple data packets are cached in sequence in the first internal storage medium by the master battery management system; when the device is an energy management system, the multiple data packets are cached in sequence in the first internal storage medium by the energy management system; when the device is an energy storage inverter, the multiple data packets can be cached in sequence in the first internal storage medium by the master battery management system or the energy management system.

[0066] Step 202: Using a parsing task, fetch a data packet from the first internal storage medium, and parse the fetched current data packet to obtain device information and parsed data corresponding to the current data packet.

[0067] The parsing task is queue caching and parsing, which is used to parse the data packets in the order of queue caching to obtain the device information and parsing data corresponding to the data packets.

[0068] Optionally, when no data packet is input, a parsing task is used to retrieve data packets from the first internal storage medium according to a first-in-first-out principle, and the retrieved current data packet is parsed to obtain device information and parsed data corresponding to the current data packet.

[0069] Step 203: according to the device information, the parsed data is stored in a target storage block of the target device corresponding to the device information in the second internal storage medium.

[0070] The second internal storage medium may be a synchronous dynamic random access memory (SDRAM), and the second internal storage medium may be a ring storage structure. In the second internal storage medium, different devices correspond to different storage blocks.

[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] Step 204: If the parsed data contains device alarm information, multiple data 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 are written to the external storage medium according to the alarm trigger time of the device alarm information.

[0073] Among them, the device alarm information is used to indicate a device failure. The device alarm information is determined by the battery management system through the received data to determine whether there is device alarm information, and the information 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 needs of the energy storage device. The preset time period before and after the alarm trigger time can be the same or different. For example, obtain individual data 5 minutes before the device alarm trigger time and multiple data 5 minutes after the device alarm trigger time, or obtain individual data 3 minutes before the device alarm trigger time and multiple data 7 minutes after the device alarm trigger time. The embodiment of the present application does not limit this. The external storage medium is an embedded MultiMedia Card (embedded MultiMedia Card, referred to as eMMC), a removable storage card (SecureDigital Card, referred to as SD card), a solid-state drive (Solid State Drive, referred to as SSD) and other storage media. The embodiment of the present application does not limit this.

[0074] Optionally, whether the parsed data includes device alarm information is determined based on the parsing results of the data packet. If the parsed data contains device alarm information, multiple data within a preset time period before and after the alarm trigger time are determined based on the alarm trigger time of the device alarm information and a preset time period before and after the alarm trigger time, and the multiple data in the storage block of the target device in the second internal storage medium are written to the external storage medium.

[0075] The present application provides a method for storing fault recording data of an energy storage system, wherein a plurality of data packets sequentially sent by a battery management system in the energy storage system to each of a plurality of energy storage devices are sequentially cached in a first internal storage medium, a parsing task is adopted to retrieve a data packet from the first internal storage medium, and the retrieved current data packet is parsed to obtain device information and parsed data corresponding to the current data packet, and the parsed 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 if the parsed data contains device alarm information, then according to the alarm trigger time of the device alarm information, a plurality of data 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 are all written to an external storage medium. The present application stores multiple data packets sent sequentially by the battery management system in the first internal storage medium in sequence, ensuring the integrity of the data, and stores the parsed data in the target storage block of the target device corresponding to the device information in the second internal storage medium, ensuring that the parsed data is accurately stored in the second internal storage medium. When the parsed data contains device alarm information, multiple data in a preset time period before and after the alarm are written into the external storage, ensuring the integrity of the fault data and providing protection for subsequent fault tracing and positioning.

[0076] On the basis of the above embodiment, the present application further provides a process for storing data packets in a method for storing fault recording data of an energy storage system, wherein in the above step 201, multiple data packets sequentially sent by a battery management system in the energy storage system to each of multiple energy storage devices are sequentially cached in a first internal storage medium, including:

[0077] Multiple data packets sequentially sent by each energy storage device through the external communication interface are cached in the first internal storage medium in the form of a queue.

[0078] The queue form is to queue the data packets in order, with the first received data packets being placed at the front of the queue and the later received data packets being placed at the back of the queue. The external communication interface may 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 a first internal storage medium provided in an embodiment of the present application, such as Figure 3 As shown, the first internal storage medium adopts the first-in-first-out storage principle, data packet N is the first incoming data packet, and data packet 1 is the last incoming data packet. When parsing data packets from the first internal storage medium, data packet N is parsed first, and then data packet 1 is parsed according to the queue order.

[0080] In an embodiment of the present application, multiple data packets sent sequentially by each energy storage device through an external communication interface are cached in a first internal storage medium in the form of a queue, thereby ensuring the orderliness of the data packets and ensuring that data will not be lost during the communication process.

[0081] On the basis of the above embodiment, the parsed data includes: information on the data type, timestamp and monitoring data; for this purpose, the present application also provides a data storage process in a method for storing fault recording data of an energy storage system, Figure 4 A schematic diagram of a data storage process in a method for storing fault wave recording data of an energy storage system provided in an embodiment of the present application, wherein in the above step 203, 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, including:

[0082] Step 401: Determine a target storage block from a storage interval of a second internal storage medium according to device information and data type information, and determine a target data block corresponding to the data type from a plurality of data blocks in the target storage block.

[0083] Among them, 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 information of the energy storage system, and the second internal storage medium is evenly divided into pairs of memory blocks with equal memory. The number of memory blocks in the second internal storage medium can be 1, 5, 10, 15, etc., and the embodiment of the present application does not limit this. The second internal storage includes multiple memory blocks, and the second internal storage medium includes multiple storage blocks, each storage block 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 storage block includes multiple data blocks.

[0084] Optionally, a device storage block is determined as the 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 a plurality of data blocks in the target storage block.

[0085] Step 402: Store the timestamp and monitoring data as a piece of data in the target data block.

[0086] Among them, the target data block includes multiple monitoring data and timestamps corresponding to the monitoring data. The timestamp is used to indicate the occurrence time of the monitoring data. The monitoring data includes current data, voltage data, temperature data and other arbitrary data when a failure occurs in the energy storage system. The embodiment of the present application does not limit this.

[0087] In the embodiment of the present application, the timestamp and the monitoring data are stored as a piece of data in the target block, so that the generation time of the monitoring data can be determined, the accuracy of the monitoring data storage can be ensured, and the efficiency of monitoring data management can be improved.

[0088] On the basis of the above embodiment, the present application further provides a process of storing data in a data block in a method for storing fault recording data of an energy storage system. In the above step 202, 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, 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 circular storage manner.

[0090] Ring storage is to organize the storage space into a ring structure, allowing data to be read and written cyclically within the ring. When the data reaches the end of the buffer, 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 provided by an embodiment of the present application, such as Figure 5 As shown, the target data block includes multiple data, each data includes monitoring data and a corresponding timestamp. When new data needs to be stored, first check whether the buffer of the target data block is full. When the buffer 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 embodiments, the present application also provides a process for determining multiple data of a data type in a method for processing fault recording data of an energy storage system. Figure 6 A schematic diagram of a process for determining multiple data of a data type in a method for processing fault recording data of an energy storage system provided in an embodiment of the present application, such as Figure 6 As shown, in step 401, according to the device information and the data type information, a preset address mapping method is used to determine the target storage block from the storage interval of the second internal storage medium, and before determining the storage address of the target data block corresponding to the data type from multiple data blocks in the target storage block, the method further includes:

[0093] Step 601: According to the configuration information of the energy storage system, obtain the device information of multiple energy storage devices in the energy storage system, information of multiple preset data types, preset collection cycle, and fault record duration.

[0094] Among them, the device information of multiple energy storage devices in the energy storage system can be the numbers of different devices, and different energy storage devices are distinguished by different numbers, or it can be the model, capacity, power, status, etc. of the energy storage device. The information of the preset data category 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 for the battery management system to send data packets, and the fault record duration is the sum of the preset time periods before and after the alarm trigger time.

[0095] Step 602: Calculate the length of a single data block according to a preset collection period and the length of the fault record.

[0096] Optionally, based on the length of the fault record and the preset collection period, the number of fault record data is determined by dividing the length of the fault record by the preset collection period, the sum of the byte lengths of each monitoring data and the corresponding timestamp is taken as the byte length of each data, and 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: Determine the length of a single device storage block according to information of multiple preset data types and the length of a single data block.

[0098] Optionally, the sum of the number of multiple data types and the length of a single data block for each data type option is used as the length of a single device storage block.

[0099] Step 604: Determine multiple storage blocks from the storage interval of the second internal storage medium according to the length of the single device storage block and the device information of multiple energy storage devices, so that the length of each storage block is the length of the single device storage block.

[0100] Wherein, the multiple storage blocks correspond to the multiple energy storage devices respectively.

[0101] Optionally, the number of energy storage devices is determined based on device information of multiple energy storage devices, and multiple storage blocks are determined from the storage interval of the second internal storage medium based on 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: divide each storage block into multiple data blocks according to information of multiple preset data types and the length of a single data block, so that the length of each data block is the length of a single data block.

[0103] Among them, the multiple data blocks correspond to multiple preset data types respectively; each data block is used to store multiple data of the corresponding energy storage device under the corresponding data type.

[0104] Optionally, according to multiple data types corresponding to each device, 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 schematic diagram of a storage area division of a second memory medium provided in an embodiment of the present application, such as Figure 7 As shown, according to the lengths of multiple storage blocks in multiple energy storage systems, multiple memory blocks are determined from the storage interval of the second internal storage medium, and the length of each storage block is determined according to the data type of each energy storage device in each energy storage system and the length of a single data block. Each storage block is divided into multiple data blocks, and the multiple data blocks correspond to multiple preset data types respectively. Each data block is used to store multiple data of the corresponding energy storage device under the corresponding data type.

[0106] Based on the above embodiments, the present application also provides a data writing process in a fault recording data processing method of an energy storage system. Figure 8 A schematic diagram of a data writing process in a method for processing fault recording data of an energy storage system provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, in the above step 204, multiple data 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 are written to the external storage medium, including:

[0107] Step 801: Write the data types of the plurality of pieces of data and the indication information of the preset storage mode 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 types of the multiple data pieces and the indication information of the preset storage method, they are written into the file header of the data file of the target device in the external storage medium respectively. Among them, different file headers include different data types and the data storage methods corresponding to the data types. Different data types correspond to different file headers.

[0109] Step 802: Write the plurality of data pieces into the file body of the data file of the target device in the external storage medium.

[0110] Optionally, the plurality of data are written into different files respectively 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 information of the data types of the multiple 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. The name and the corresponding file weight can be optimized to optimize the data storage and processing process, reduce the time and resource consumption of data processing, reasonably allocate storage space, and avoid unnecessary space waste.

[0112] On the basis of the above-mentioned embodiment, the present application also provides a data writing process in a second method for processing fault recording data of an energy storage system. Fig. 9 A schematic diagram of a data writing process in a second method for processing fault recording data of an energy storage system provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, in the above step 801, before writing the file header of the data file of the target device in the external storage medium according to the information of the data types of the plurality of data pieces and the indication information of the preset storage mode, the method further includes:

[0113] Step 901: compress multiple pieces of data to obtain multiple pieces of compressed data.

[0114] The indication information of the preset storage mode includes: time name, compression mark name, and compression length name. The compression mark 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 length of the data before compression and the length of the compressed data.

[0115] Optionally, multiple pieces of data are compressed according to a data compression algorithm to obtain multiple pieces of compressed data. The compressed data are matched according to timestamp information, data length before compression, data length after compression, and compression indication information. The data compression algorithm may be a dictionary-based compression algorithm, transform coding, entropy coding, and other algorithms, which are not limited in the embodiments of the present application.

[0116] As in the above step 801, the plurality of data are written into the file body of the data file of the target device in the external storage medium, including:

[0117] Step 902: Write the compressed data into the file body of the data file of the target device in the external storage medium.

[0118] Optionally, the compressed data are written into a file body of a data file of a target device in an external storage medium according to the correspondence between the timestamp information, the length of the data before compression, the length of the data after compression and the compression indication information.

[0119] For example, Table 1 is a schematic table of data files of a target device provided in an embodiment of the present application.

[0120] Table 1 Schematic diagram of target device data files

[0121]

[0122] The file header includes: time name, compression flag name, and 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 length of the data before compression and the length of the compressed data. The file body stores the timestamps of multiple pieces of data, the compression flag, the length of the data before compression and the length of the compressed data in the compression length name, and the corresponding multiple pieces of data.

[0123] In the embodiment of the present application, multiple pieces of data are compressed to obtain compressed pieces of data, and the compressed pieces of data are written into the file body of the data file of the target device in the external storage medium. This can save storage space, improve data transmission efficiency and transmission readability, and extend the service life of the external storage medium.

[0124] On the basis of the above embodiments, the present application also provides a data writing process in a third method for processing fault recording data of an energy storage system. Fig.10 A schematic diagram of a data writing process in a third method for processing fault recording data of an energy storage system provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, in the above step 902, the compressed multiple data are written into the file body of the data file of the target device in the external storage medium, including:

[0125] Step 1001: Write a plurality of compressed data into a preset cache array in a first internal storage medium.

[0126] The size of the preset cache data is an integer multiple of 512 bytes. Each preset cache array may include multiple 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 multiple data are written into preset cache arrays corresponding to different energy storage devices in the first internal storage medium according to the 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 has completed writing data of multiple data types corresponding to the energy storage device, all data in the preset cache array are written to 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 has completed writing data of multiple data types corresponding to the energy storage device, all data in multiple preset cache arrays are written to the file body of the data file of the target device according to the preset byte length. Among them, 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 present application, the compressed multiple data are written into the preset cache array in the first internal storage medium, and all the data in the preset cache array are written into the file body of the data file of the target device. The present application can significantly increase the data writing speed, reduce the erasing speed of the external storage medium, and increase the life of the external storage medium.

[0131] Based on the same inventive concept, the embodiment of the present application also provides a fault recording data storage device for the energy storage system corresponding to the fault recording data storage method for the energy storage system. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the fault recording data storage method for the energy storage system mentioned in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0132] Fig.11 A schematic diagram of a fault recording data storage device for an energy storage system provided in an embodiment of the present application, the device comprising:

[0133] A cache module 1101, configured to sequentially cache multiple data packets sequentially sent by a battery management system in an energy storage system to each of multiple energy storage devices in sequence into a first internal storage medium;

[0134] The parsing module 1102 is used to adopt a parsing task to retrieve a data packet from the first internal storage medium, and parse the retrieved current data packet to obtain device information and parsed data corresponding to the current data packet;

[0135] The storage module 1103 is used to store the parsed data in a 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 used to write multiple 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 to the external storage medium if the parsed data contains device alarm information.

[0137] Optionally, the cache module 1101 is specifically used to cache multiple data packets sent sequentially by each energy storage device through the external communication interface in a queue into the first internal storage medium.

[0138] Optionally, the parsed data includes: information on the data type, a timestamp, and monitoring data; the storage module 1103 is specifically used to: determine a target storage block from a storage interval of the second internal storage medium according to the device information and the information on the data type, and determine a target data block corresponding to the data type from a plurality of data blocks in the target storage block;

[0139] The timestamp and monitoring data are stored as a piece of data in the target data block.

[0140] Optionally, the storage module 1103 is specifically used to: store the timestamp and the monitoring data as one piece of data in the target data block in a circular storage manner according to the storage address of the target data block.

[0141] Optionally, the storage module 1103 is further used to: obtain device information of multiple energy storage devices in the energy storage system, information of multiple preset data types, a preset collection cycle, and a fault record duration according to the configuration information of the energy storage system;

[0142] Calculate the length of a single data block based on the preset collection cycle and the length of the fault record;

[0143] Determine the length of a single device storage block according to information of a plurality of preset data types and the length of a single data block;

[0144] Determine multiple storage blocks from the storage interval of the second internal storage medium according to the length of the single device storage block and the device information of the multiple energy storage devices, 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;

[0145] According to information of 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 multiple preset data types respectively; each data block is used to store multiple data of the corresponding energy storage device under the corresponding data type.

[0146] Optionally, the read / write module 1104 is specifically configured to: write the plurality of data pieces into a file header of a data file of a target device in an external storage medium according to information of data types of the plurality of data pieces and indication information of a preset storage mode;

[0147] The plurality of data are written into the file body of the data file of the target device in the external storage medium.

[0148] Optionally, the reading and writing module 1104 is further used to: compress the multiple pieces of data to obtain the compressed multiple pieces of data; the indication information of the preset storage method includes: a time name, a compression mark name, and a compression length name, and the compression mark 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 plurality of data into a file body of a data file of a target device in an external storage medium.

[0150] Optionally, the reading and writing module 1104 is specifically used to: write the compressed multiple data into a preset cache array in the first internal storage medium;

[0151] Write all data in the preset cache array to the file body of the data file of the target device.

[0152] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0153] The present application also provides a fault recording device. Fig.12 A structural diagram of a fault recording device provided in an embodiment of the present application is shown in FIG. Fig.12 As shown, the fault recording device includes:

[0154] Processor 1201, instruction memory 1202, first internal storage medium 1203, second internal storage medium 1204 and external storage medium 1205;

[0155] The instruction memory 1201 stores machine-readable instructions executable by the processor 1201. 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 mentioned 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] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for storing fault recording data of the energy system are executed.

[0157] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0158] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.

[0159] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A method for storing fault recording data of an energy storage system, characterized in that: The method comprises: Cache a plurality of data packets sequentially sent by the battery management system in the energy storage system to each of the plurality of energy storage devices in sequence into a first internal storage medium; the data packets include at least one piece of the fault recording data; Using a parsing task, taking a data packet from the first internal storage medium, and parsing the taken current data packet to obtain device information and parsed data corresponding to the current data packet; According to the device information, storing the parsed data in a target storage block of a target device corresponding to the device information in a second internal storage medium; If the parsed data contains device alarm information, multiple data 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 are written to the external storage medium according to the alarm trigger time of the device alarm information.

2. The method according to claim 1, characterized in that The step of sequentially caching multiple data packets sequentially sent by the battery management system in the energy storage system to each of the multiple energy storage devices into a first internal storage medium includes: The multiple data packets sequentially sent by each energy storage device through the external communication interface are cached in the first internal storage medium in the form of a queue.

3. The method according to claim 1, characterized in that The parsed data includes: information on data types, timestamps and monitoring data; According to the device information, storing the parsed data in a target storage block of a target device corresponding to the device information in a second internal storage medium includes: Determine the 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 determine the target data block corresponding to the data type from a plurality of data blocks in the target storage block; The timestamp and the monitoring data are stored as a piece of data in the target data block.

4. The method according to claim 3, characterized in that According to the storage address of the target data block, storing the timestamp and the monitoring data as a piece of data in the target data block includes: 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 circular storage manner.

5. The method according to claim 3, characterized in that: Before determining the 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 the storage address of the target data block corresponding to the data type from a plurality of data blocks in the target storage block, the method further includes: 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, information of multiple preset data types, a preset collection cycle, and the length of the fault record; Calculate the length of a single data block according to the preset collection period and the length of the fault record; Determine the length of a single device storage block according to the information of the plurality of preset data types and the length of the single data block; 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; According to the information of the multiple preset data types and the length of the single data block, each storage block is divided 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 data of the corresponding energy storage device under the corresponding data type.

6. The method according to claim 1, characterized in that The step of writing a plurality of pieces of data in a preset time period before and after the alarm triggering time in the storage block of the target device in the second internal storage medium to the external storage medium includes: Writing the information of the data types of the plurality of data pieces and the indication information of the preset storage mode into the file header of the data file of the target device in the external storage medium; The plurality of data are written into a file body of a data file of the target device in the external storage medium.

7. The method according to claim 6, characterized in that Before writing the information of the data types of the plurality of pieces of data and the indication information of the preset storage mode into the file header of the data file of the target device in the external storage medium, the method further includes: Compressing the plurality of data to obtain the compressed plurality of data; the indication information of the preset storage method includes: a time name, a compression mark name, and a compression length name, and the compression mark name is used to indicate whether each data is compressed; The step of writing the plurality of pieces of data into a file body of a data file of the target device in the external storage medium comprises: The compressed plurality of data are written into a file body of a data file of the target device in the external storage medium.

8. The method according to claim 7, characterized in that The step of writing the compressed plurality of data into a file body of a data file of the target device in the external storage medium comprises: Writing the compressed data into a preset cache array in the first internal storage medium; All data in the preset cache array are written into the file body of the data file of the target device.

9. A fault recording device, characterized in that: 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; 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 for the energy storage system as described 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.

10. A storage medium, characterized in that: The storage medium stores a computer program, which is executed by a processor to execute the steps of the method for storing fault recording data of an energy storage system as claimed in any one of claims 1 to 8.

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

  • Control method for information storage device, information storage device, program, and computer-readable information storage medium

    JP2008158768A

  • Systems and methods for power management and control of multiple power sources

    US20220185493A1

  • Monitoring system and method based on digital converter station

    US20240153257A1

Cited By

  • TF card storage data analysis method and device, equipment and medium

    CN121116706A

  • A TF card data storage parsing method, device, equipment and medium

    CN121116706B

  • Abnormal state record dual-backup method and device and energy storage system

    CN121614319A