A data storage method based on TF card in BMS

By using TF card plug-in and pull-out signal registration and linked list management in the battery management system, the problems of file system damage and low data storage efficiency caused by frequent plug-in and pull-out in the battery management system are solved, and the safety, stability and security of battery operation data are achieved. Efficient storage.

CN117406924BActive Publication Date: 2024-08-27HEFEI LIGAO POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311354465.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2024-08-27
Estimated Expiration
2043-10-19

AI Technical Summary

Technical Problem

When the existing battery management system stores a large amount of battery data, the file system is easily damaged due to frequent plugging and unplugging operations, resulting in the inability to continuously store data, and the software's read and write operation speed and success rate under large data volumes are affected.

Method used

By establishing a TF card insertion and removal signal registration in the BMS, a linked list corresponding to the cluster file is created, and the cluster file is stored cyclically in the storage thread. The number of files is monitored in real time, and head nodes that exceed the set value are deleted to ensure that the file size is controlled within a reasonable range. Within the scope, data security and file system stability are guaranteed.

Benefits of technology

It reduces the failure rate and error rate of software file reading and writing, ensures the safe storage of battery operation data, avoids the problem of excessive hardware load, and ensures the latestness and security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117406924B
    Figure CN117406924B
Patent Text Reader

Abstract

The present invention belongs to the technical field of energy storage battery management system, and specifically relates to a data storage method based on TF card in BMS, including and storing the generated cluster files in a linked list in a loop according to the following storage thread execution order; when the TF card storage module runs the journey and the system time is updated to the current day, the newly generated cluster file in the BMS is added to the linked list as a node, and the establishment order of the subsidiary sub-files corresponding to the number of battery clusters in the BMS is recorded, and the BMS monitors the number of storage files corresponding to each cluster file in the linked list in real time. When the number value exceeds the set value, the storage file of the head node of the established order in the corresponding linked list is deleted. The present invention uses a linked list to record the file creation order and then deletes the linked list header file and the file cluster creation when the file number overflows, thereby ensuring the security of file storage, and achieving the purpose of low load, fixed size of the occupied storage medium, and continuous storage during data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of energy storage battery management systems, and in particular relates to a data storage method based on a TF card in a BMS. Background Art

[0002] Battery modules are important components of energy storage and new energy vehicles. The rationality of battery data needs to be monitored in real time. For later data analysis, the battery data needs to be saved in real time to a certain medium. The battery management system (BMS for short) is a system used to monitor and manage batteries. In the current battery management system, it is necessary to monitor the voltage and current information of a maximum of 30 clusters, each with 600 cells, at the same time, with a storage cycle of 10s. In addition, it is necessary to store the event details, configuration change data, and cell data before and after the failure of the BMS system. In order to facilitate data viewing, TF cards are used as storage media. At the same time, it is necessary to solve the problem of file system damage caused by frequent plugging and unplugging of TF cards.

[0003] According to the traditional storage method, the minimum amount of storage information required for each row is 30 clusters * 600 monomers * 2 types of data = 36,000 data. With the periodic storage of data, the size of the storage file continues to expand. Under the large amount of data, the speed and success rate of the software's file reading and writing operations are significantly affected. Therefore, it is necessary to segment the storage files and manage the files after segmentation. At the same time, in order to facilitate file viewing, TF cards are used as storage media. Therefore, it is also necessary to solve the problem of file system damage caused by TF card plug-in and unplug operation errors and the inability to continuously store data. Summary of the invention

[0004] The purpose of the present invention is to provide a data storage method based on a TF card in a BMS to solve the problems raised in the background technology.

[0005] The present invention achieves the above-mentioned purpose through the following technical solutions:

[0006] A data storage method based on a TF card in a BMS is applied to a TF card storage module for performing real-time cyclic storage of battery operation data in the BMS, and the method comprises:

[0007] The BMS establishes a TF card plug-in and pull-out signal registration, creates a linked list corresponding to the number of pre-established cluster files, and stores the cluster files generated in real time in the linked list in a circular manner according to the following storage thread execution order;

[0008] S1: Perform a status self-check on the TF card storage module. If the operation is normal and the system time in the BMS is updated to the current day, the newly generated cluster file in the BMS is added to the linked list as a node, and the order of establishing the subsidiary sub-files corresponding to the number of battery clusters in the BMS is recorded, and step S2 is executed on the linked list;

[0009] S2: BMS monitors the number of storage files corresponding to each cluster file in the linked list in real time. When the number exceeds the set value, the storage file of the head node of the established order in the corresponding linked list is deleted, and then step S1 is executed for the newly generated cluster file to realize circular storage.

[0010] As a further optimization solution of the present invention, the battery operation data includes single cell voltage data, single cell current data, single cell temperature data and fault information in the BMS.

[0011] As a further optimization solution of the present invention, the cluster file is specifically a storage file containing the battery operation data corresponding to the number of battery clusters in the BMS.

[0012] As a further optimization scheme of the present invention, in step S2, the set value is specifically the number of days for storing the battery operation data in the BMS within an operation cycle of a set number of days.

[0013] As a further optimization solution of the present invention, in step S2, if the quantity value does not exceed the set value, step S1 is preferentially executed on the newly generated cluster file.

[0014] As a further optimization solution of the present invention, the method further includes: if the TF card status detection result is abnormal, the TF card storage module reports the abnormal result to the BMS.

[0015] The beneficial effects of the present invention are:

[0016] (1) The present invention proposes to control the size of a single file within the storage capacity of a single cluster per day in the storage thread execution order, thereby reducing the failure rate and error rate of the software reading and writing files, and solving the problem of excessive hardware load when the battery operation data in the BMS is centrally stored;

[0017] (2) The present invention proposes to use a pluggable mobile device as a storage medium in the BMS to ensure data security. By real-time monitoring of the data volume, the file corresponding to the head node in the linked list is deleted, and the cluster file generated in real time is stored in node order, so that the file size can be safely managed and the file can be guaranteed to be the latest file. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of battery operation data stored in a single battery in the BMS of the present invention;

[0019] Figure 2 It is a schematic diagram of the execution flow of the data storage method in the present invention. DETAILED DESCRIPTION

[0020] The present application is further described in detail below in conjunction with the accompanying drawings. It is necessary to point out here that the following specific implementation methods are only used to further illustrate the present application and cannot be understood as limiting the scope of protection of the present application. Technical personnel in this field can make some non-essential improvements and adjustments to the present application based on the above application content.

[0021] Example 1

[0022] like Figure 1-2 As shown, this embodiment provides a data storage method based on a TF card in a BMS, which is applied to a TF card storage module for executing real-time cyclic storage of battery operation data in the BMS, and the method includes:

[0023] Establish TF card plug-in and pull-out signal registration in BMS, and register the signal processing function as closing file descriptor and kernel file synchronization, create a linked list corresponding to the number of pre-established cluster files, and store the cluster files generated in real time in the linked list in a loop according to the following storage thread execution order;

[0024] If the number of actual battery cell clusters contained in the BMS is 30, the data storage method is performed as follows:

[0025] S1: Perform a status self-check on the TF card storage module. If the operation is normal and the system time in the BMS is updated to the current day, that is, the system time in the BMS is a new day, then create 30 clusters of storage files, add the newly generated cluster file in the BMS as a node to the linked list, and record the order of establishing the subsidiary sub-files corresponding to the number of battery clusters in the BMS. The order of establishing the subsidiary sub-files corresponds to the order of creating the files of the battery operation data, and then execute step S2 on the linked list;

[0026] In step S1 of this embodiment, adding the newly generated cluster file in the BMS as a node to the linked list means that the battery operation data is used as a storage file to generate a cluster file, and then added to the linked list.

[0027] In this embodiment, the battery operation data includes single cell voltage data, single cell current data, single cell temperature data, and fault information in the BMS.

[0028] In addition, the cluster file is specifically a storage file containing battery operation data corresponding to the number of battery clusters in the BMS.

[0029] In step S1 of this embodiment, storage files of 30 clusters are created in the creation mode of "a+", and the newly created files are added as a node to the respective linked lists, so as to achieve the establishment order of recording the 30 clusters of battery subsidiary sub-operation files.

[0030] S2: BMS monitors the number of storage files corresponding to each cluster file in the linked list in real time. When the number exceeds the set value, the storage file of the head node in the corresponding linked list is deleted, and then step S1 is executed for the newly generated cluster file to realize circular storage.

[0031] Assuming that according to the new national standard storage requirements for battery cell voltage and cell temperature for 120 days, the number of files in each cluster obtained by S2 exceeds 120, then the file represented by the head node in the linked list is taken out and deleted, thereby achieving the purpose of quantitative data management, while ensuring that the deleted data is the oldest data.

[0032] In step S2, the set value is specifically the number of days for storing the battery operation data in the BMS within the operation cycle of the set number of days. For example, if the battery operation data is reported for 120 days as assumed above, the set value is 120.

[0033] Preferably, in step S2, if the quantity value does not exceed the set value, step S1 is preferentially executed for the newly generated cluster file, that is, the newly generated cluster file is preferentially stored, of course, it is required that the TF card is in normal operation and the system time is the time of the day when the cluster file is generated.

[0034] Preferably, the method further includes: if the TF card status detection result is abnormal, the TF card storage module reports the abnormal result to the BMS.

[0035] The present invention provides a control storage thread execution order, TF card status detection control and TF card plug-in and pull-out signal registration response, uses a linked list to record the file creation order, and then deletes the linked list header file and creates files in clusters when the number of files overflows, thereby ensuring the purpose of file storage security, low load, fixed size of the occupied storage medium and continuous storage.

[0036] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data storage method based on TF card in BMS, characterized in that: A TF card storage module is used to perform real-time cycle storage of battery operation data in a BMS, and the method includes: The BMS establishes a TF card plug-in and pull-out signal registration, registers the signal processing function as a closing file descriptor and a synchronization kernel file, creates a linked list corresponding to the number of pre-established cluster files, and stores the cluster files generated in real time in the linked list in a circular manner according to the following storage thread execution order; S1: Perform a status self-check on the TF card storage module. If the operation is normal and the system time in the BMS is updated to the current day, the newly generated cluster file in the BMS is added to the linked list as a node, and the order of establishing the subsidiary sub-files corresponding to the number of battery clusters in the BMS is recorded, and step S2 is executed on the linked list; S2: The BMS monitors the number of storage files corresponding to each cluster file in the linked list in real time. When the number exceeds a set value, the storage file of the head node of the established order in the corresponding linked list is deleted, and step S1 is executed for the newly generated cluster file to realize circular storage; The cluster file is specifically a file containing the battery operation data storage corresponding to the number of battery clusters in the BMS; In the step S2, the set value is specifically the number of days for storing the battery operation data in the BMS within the operation cycle of the set number of days; In step S2, if the quantity value does not exceed the set value, step S1 is preferentially executed for the newly generated cluster file; The method further includes: if the TF card status detection result is abnormal, the TF card storage module reports the abnormal result to the BMS.

2. The data storage method based on TF card in BMS according to claim 1, characterized in that: The battery operation data includes single cell voltage data, single cell current data, single cell temperature data and fault information in the BMS.