Power battery data acquisition method, electronic equipment and storage medium

Through configuration files and binary storage technology, the problem of power battery data files occupying large space is solved, and tightly stacked data storage and efficient battery status monitoring are achieved.

CN118760658APending Publication Date: 2024-10-11GUANGZHOU GREATER BAY TECH CO LTD

Patent Information

Application Number
CN202410984151.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Power battery data files occupy a large space, resulting in uncompact storage and not conducive to battery status monitoring.

Method used

By obtaining the configuration file of the battery module, create a main file stream and multiple sub-file streams, write the battery data in binary form into the sub-file stream according to the configuration file, and when the data writing is completed, splice the data in the sub-file stream into At the end of the main file stream, tightly stacked battery data acquisition files are formed.

Benefits of technology

It reduces the storage space occupied by battery data and improves the efficiency of data storage and the convenience of battery status monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760658A_ABST
    Figure CN118760658A_ABST
Patent Text Reader

Abstract

The invention discloses a power battery data acquisition method, electronic equipment and a storage medium, a configuration file used for acquiring battery data of a battery module in a power battery is acquired, a main file stream and a plurality of sub-file streams are created based on the configuration file, and the number of the sub-file streams is the same as the number of module serial numbers; writing the collected battery data into the corresponding sub-file stream in a binary form according to the configuration file; and when the battery data is written, splicing the battery data in the sub-file streams to the tail end of the main file stream in sequence according to the arrangement sequence of the sub-file streams to obtain a battery data acquisition file. The battery data is acquired through the configuration file, and different configuration files can be set for different battery application products, that is, the type of the battery data is limited, so that redundant battery data can be filtered; the storage capacity of the binary data is small, and the battery data acquisition file obtained by splicing the battery data is a tightly stacked file, so that the occupied space after large-batch acquisition of the battery data can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery management, and in particular to a power battery data acquisition method, electronic equipment and storage medium. Background Art

[0002] Power batteries have different states (performance and parameters) in different application scenarios or different life cycle stages. In order to monitor the state of power batteries, a power battery BMS (Battery Management System) is usually used to collect and transmit battery data, such as battery cell voltage, battery module temperature, etc.

[0003] On the one hand, the power battery BMS usually sends all battery data through one of the CAN buses. In order to quickly adapt to different battery application products and needs, the platform-based BMS products often have a fixed configuration for sending data on this CAN bus with a margin. However, in different types of battery application products, there may be large differences in the number of power battery cells, the number of battery modules, and the type of battery data to be obtained. In this case, the data sent by the CAN bus of the power battery BMS will contain some invalid battery data, which makes the battery data file occupy a large space.

[0004] On the other hand, the collected battery data is often in ASC format. When the file is stored in ASC format, there are problems such as the data is not compact and the file occupies a large space.

[0005] When the battery data file occupies a large space, it is not only not conducive to the storage of battery data, but also not conducive to the monitoring of battery status. Summary of the invention

[0006] The present invention provides a power battery data acquisition method to solve the problem that the power battery data file occupies a large space.

[0007] In a first aspect, the present invention provides a power battery data collection method, comprising:

[0008] Acquire a configuration file for collecting battery data of a battery module in a power battery, wherein the configuration file includes a module serial number, a signal type, a signal length, and a signal quantity;

[0009] Creating a main file stream and a plurality of sub-file streams based on the configuration file, wherein the number of the sub-file streams is the same as the number of the module serial numbers;

[0010] Writing the collected battery data into the corresponding sub-file stream in binary form according to the configuration file;

[0011] When the battery data is written completely, the battery data in the sub-file streams are sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file streams to obtain a battery data collection file.

[0012] In a second aspect, the present invention provides an electronic device, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power battery data collection method described in the first aspect of the present invention.

[0016] In a third aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the power battery data collection method described in the first aspect of the present invention when executed.

[0017] The embodiment of the present invention provides a power battery data acquisition method, firstly obtains a configuration file for acquiring battery data of a battery module in a power battery, the configuration file includes a module serial number, a signal type, a signal length and a signal number; creates a main file stream and multiple sub-file streams based on the configuration file, the number of sub-file streams being the same as the number of module serial numbers; writes the acquired battery data into the corresponding sub-file stream in binary form according to the configuration file; when the data is written, the battery data in the sub-file stream is sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file stream, so as to obtain a battery data acquisition file. On the one hand, by acquiring battery data through the configuration file, different configuration files can be set for different battery application products, that is, the type of battery data is limited, and then the actual required battery data is obtained, and redundant battery data can be filtered, reducing the occupied space for storing battery data; on the other hand, compared with data in ASC format, the binary data storage capacity is small, and the acquired battery data is stored in binary form, which can reduce the storage space; and the battery data acquisition file obtained by splicing the battery data in the sub-file stream is a file in which the battery data is tightly stacked, which can further compress its storage space, can reduce the occupied space after the battery data is collected in large quantities, and is conducive to the storage of battery data and the monitoring of battery status.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flow chart of a power battery data collection method provided by Embodiment 1 of the present invention;

[0021] Figure 2 A power battery data acquisition system provided by Embodiment 2 of the present invention;

[0022] Figure 3 is a flow chart of a power battery data collection method provided by Embodiment 2 of the present invention;

[0023] Figure 4 This is a schematic diagram of a main file stream structure provided by Embodiment 2 of the present invention;

[0024] Figure 5 This is a schematic diagram of a sub-file stream structure provided by Embodiment 2 of the present invention;

[0025] Figure 6 is a flow chart of a power battery data collection method provided by Embodiment 3 of the present invention;

[0026] Figure 7 It is a schematic diagram of a process of splicing battery data in a sub-file stream to the end of a main file stream provided by Embodiment 3 of the present invention;

[0027] Figure 8 It is a structural schematic diagram of a power battery data acquisition device provided by a fourth embodiment of the present invention;

[0028] Fig. 9 It is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] Embodiment 1

[0031] Figure 1 This is a flow chart of a power battery data collection method provided in the first embodiment of the present invention. This embodiment is applicable to the case of power battery data collection. The method can be executed by a power battery data collection device. The power battery data collection device can be implemented in the form of hardware and / or software. The power battery data collection device can be configured in an electronic device. Figure 1 As shown, the power battery data collection method includes:

[0032] S101. Obtain a configuration file for collecting battery data of a battery module in a power battery, where the configuration file includes a module serial number, a signal type, a signal length, and a signal quantity.

[0033] Power batteries are one of the key components of new energy vehicles. For example, new energy vehicles can be new energy vehicles. Power batteries usually include battery modules and battery cells. The battery module in the present invention can refer to a battery module or a battery cell in a battery module. A battery cell is a battery monomer (cell), which is the smallest unit in a power battery. Each battery cell stores a certain amount of electricity. Multiple battery cells are connected and assembled to form a battery module; the battery module further constitutes the battery pack of the entire power battery, and the number of battery modules is usually multiple.

[0034] The configuration file is a guide file for collecting battery data, which is used to specify various options and signal parameters when collecting battery data. The configuration file includes the module serial number, signal type, signal length and signal quantity, where the module serial number can be an option when collecting battery data, and the signal type, signal length and signal quantity can be the signal parameters corresponding to the module serial number. For example, for battery module A, the signal type of the battery data to be collected is set to cell voltage and cell current, and the (single) signal length of the cell voltage is set to L1, the signal quantity is set to K1, and the signal length of the cell current signal is set to J1, and the signal quantity is set to Y1. Among them, the signal length is the size of the storage space occupied by the signal data.

[0035] Each battery module corresponds to a module serial number. In the configuration file, each module serial number corresponds to a set of signal parameters (signal type, signal length and signal quantity). Generally speaking, the capacity grades of multiple battery modules (battery modules or cells) of the power battery are the same or equivalent. Therefore, the signal parameters of different battery modules are usually the same or relatively close, that is, the signal parameters to be collected by multiple battery modules are the same. Of course, in an optional battery data collection scenario, the signal parameters of multiple battery modules can also be set to be different. For example, for cell A1, the corresponding signal type is only the cell voltage, and for cell A2, the corresponding signal type includes the cell voltage and the cell current. Specifically, the configuration parameters of each battery module can be generated according to actual needs, and the present invention is not limited to this.

[0036] In addition, when generating a configuration file for a battery module, a configuration file can be generated only for some battery modules or some cells. For example, the life cycle status of cells A1, B3 and C1 is nearing the end. When only these cells need to be monitored, a configuration file can be generated only for these cells.

[0037] Regarding the module serial number, when the battery module refers to a battery module, the module serial number is the serial number of the battery module. At this time, the battery data to be collected is the data of the corresponding battery module (such as the battery module temperature, etc.) and the data of the battery cells in the battery module (such as the battery cell voltage, etc.); when the battery module refers to a battery cell, the module serial number is the serial number of the battery cell in the battery module. At this time, the battery data to be collected is the data of the corresponding battery cell.

[0038] From the above, it can be seen that by setting different configuration files, the object and content of the data to be collected can be controlled, that is, targeted data collection and monitoring of power batteries can be carried out, thereby meeting the specifications and requirements of different battery application products, and having a wide range of applications.

[0039] S102: Create a main file stream and multiple sub-file streams based on the configuration file, where the number of the sub-file streams is the same as the number of module serial numbers.

[0040] The configuration file is also a guide file for creating a main file stream and multiple sub-file streams. In this step, the initial main file stream and sub-file stream are obtained. The relationship between the main file stream and the sub-file stream is equivalent to the relationship between the "directory" and the "main text". The sub-file stream is used to write specific battery data, while the main file stream writes the module serial number, signal type, signal length and signal quantity corresponding to the battery data in each sub-file stream as the main information. The main file stream includes the configuration information of each battery module.

[0041] If the number of sub-file streams is the same as the number of module serial numbers, the number of sub-file streams can be determined based on the number of module serial numbers, and each sub-file stream corresponds to a module serial number. In addition, the corresponding storage space can be set in the sub-file stream based on the signal parameters (signal type, signal length and signal number) corresponding to the module serial number, that is, the corresponding writing space is set for the battery data collected subsequently.

[0042] In the process of creating a file stream, usually the main file stream is created first, and the corresponding configuration files are entered one by one in the main file stream according to the arrangement order of the module numbers. After the main file stream is created, the sub-file stream is created according to the arrangement order of the module numbers and the signal parameters corresponding to the module numbers. Of course, the sub-file stream can also be created first and then the main file stream, and there is no limitation on this.

[0043] The sub-file streams correspond to the module numbers one by one. If the module numbers are arranged in a certain order, the created sub-file streams are also arranged in the same order. For example, if the module numbers are arranged as 1, 2, 3, and 4, the resulting sub-file streams are sub-file stream 1, sub-file stream 2, sub-file stream 3, and sub-file stream 4.

[0044] S103. Writing the collected battery data into a corresponding sub-file stream in binary form according to the configuration file.

[0045] The module serial numbers are arranged in a certain order, so during the data collection process, the battery data of the corresponding battery modules are collected in sequence according to the arrangement order. The sub-file stream also corresponds to the module serial number one by one, and the storage space for the battery data to be collected by the corresponding battery module is set in the sub-file stream. Therefore, when the battery data is collected in real time, the battery data can be written in sequence according to the arrangement order of the sub-file stream, so that the battery data, sub-file stream, and module serial number all correspond one to one. Since the collected battery data is unclassified, the collected battery data can be classified and cut based on the configuration file, and then stored in the corresponding storage space in sequence.

[0046] Binary files have small storage space and high speed. When writing data, using binary mode to store battery data can reduce storage space and improve data writing efficiency.

[0047] In actual applications, the battery management system (hereinafter referred to as BMS) is a platform-based development product that continuously collects battery-related data and transmits it to the ITO platform. When there is a specific configuration file, the data collected by the BMS will be filtered according to the configuration file to obtain the target battery data and then written into the sub-file stream. In this process, the battery data of the battery modules that do not need to be collected are filtered out, that is, the redundant battery data is filtered out.

[0048] S104. When the battery data is written, the battery data in the sub-file streams are sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file streams to obtain a battery data collection file.

[0049] When the battery data is written, the battery data of each sub-file stream is distributed storage, and all the data is stored on different nodes. The cluster size is large, and the total storage space required is large. In order to further compress the storage space, the battery data in the sub-file stream is spliced ​​to the end of the main file stream in sequence according to the arrangement order of the sub-file stream, and a collection file of tightly stacked current data can be obtained. The battery data of the battery data collection file obtained after splicing is centrally stored, and all the data is stored on the same node, which reduces the total storage space occupied, which is conducive to battery data storage and monitoring of battery status. In addition, the data storage is more secure, which can facilitate centralized data management and maintenance, for example, it is convenient to realize functions such as data statistical analysis and mining.

[0050] In order to clearly describe the battery data collection process of this embodiment, the following example is given as an illustration:

[0051] like Figure 2 As shown, Figure 2 A power battery data acquisition system includes a BMS 3 of a power battery, a wireless data transmission device 2 and an IOT (Internet of Things) platform 1.

[0052] BMS and wireless data transmission equipment transmit data through CAN bus, and wireless data transmission equipment and IOT platform are connected to each other. BMS can collect battery data of power battery and send it to IOT platform through wireless transmission equipment. IOT platform is both an input object and an output object. When used as an input object, configuration files can be generated according to different battery application products and used as input files of wireless data transmission equipment and BMS. When used as an output object, battery data sent back by wireless data transmission equipment is received.

[0053] The working process of the power battery data acquisition system is as follows:

[0054] 1. The IOT platform makes corresponding configuration files according to different battery application products;

[0055] 2. The IOT platform sends the configuration file to the wireless data transmission device;

[0056] 3. BMS collects battery data of power batteries and sends it to wireless transmission equipment;

[0057] 4. The wireless data transmission device filters out redundant data in the battery data according to the configuration file and transmits it back to the IOT platform;

[0058] 5. The IOT platform writes the returned battery data into the sub-file stream in real time according to the configuration file;

[0059] 6. After writing is completed, the battery data in the main file stream and the sub-file stream are spliced ​​into a battery data acquisition file.

[0060] The embodiment of the present invention provides a power battery data acquisition method, firstly obtains a configuration file for acquiring battery data of a battery module in a power battery, the configuration file includes a module serial number, a signal type, a signal length and a signal number; creates a main file stream and multiple sub-file streams based on the configuration file, the number of sub-file streams being the same as the number of module serial numbers; writes the acquired battery data into the corresponding sub-file stream in binary form according to the configuration file; when the data is written, the battery data in the sub-file stream is sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file stream, so as to obtain a battery data acquisition file. On the one hand, by acquiring battery data through the configuration file, different configuration files can be set for different battery application products, that is, the type of battery data is limited, and then the actual required battery data is obtained, and redundant battery data can be filtered, reducing the occupied space for storing battery data; on the other hand, compared with data in ASC format, the binary data storage capacity is small, and the acquired battery data is stored in binary form, which can reduce the storage space; and the battery data acquisition file obtained by splicing the battery data of the sub-file stream is a file in which the battery data is tightly stacked, which can further compress its storage space, can reduce the occupied space after the battery data is collected in large quantities, and is conducive to the storage of battery data and the monitoring of battery status.

[0061] Embodiment 2

[0062] Figure 3 This is a flow chart of a power battery data collection method provided in the second embodiment of the present invention. The embodiment of the present invention is optimized on the basis of the above-mentioned first embodiment to further describe the creation process of the main file stream and the sub-file stream, such as Figure 3 As shown, the power battery data collection method includes:

[0063] S301. Obtain a configuration file for collecting battery data of a battery module in a power battery, where the configuration file includes a module serial number, a signal type, a signal length, and a signal quantity.

[0064] S301 is similar to S101 in the first embodiment, and the details may refer to the relevant description of S101.

[0065] S302: Create a main frame.

[0066] The main frame is the outer frame of the main file stream. In the subsequent process, the main information of the main file stream is built inside the outer frame according to the configuration file.

[0067] S303. Create module file segments in the main framework in sequence based on the module serial numbers and enter the configuration files to obtain a main file stream, wherein each module serial number corresponds to a module file segment.

[0068] Each module file segment corresponds to a module serial number, and the module file segment will record the configuration file corresponding to the module serial number, that is, the module serial number, signal type, signal quantity and signal length.

[0069] In an optional embodiment, module file segments are created in the main frame in sequence based on the module serial number and configuration files are entered to obtain a main file stream, including: creating an acquisition information file segment in the main frame, the acquisition information file segment is used to enter acquisition information; after the acquisition information file segment, corresponding module file segments are created in sequence according to the module serial number, and after the acquisition information file segment, corresponding module file segments are created in sequence according to the module serial number; the signal type, signal length and signal quantity corresponding to the module serial number are written into the module file segment; after the last module file segment is created, a time file segment is created; and the current main frame is used as the main file stream.

[0070] Among them, the time file segment is used to record the timestamp information of the sub-file stream, that is, to record the timestamp when the sub-file stream writes each data. When each sub-file stream continuously writes battery data, the data in the time file segment is also increasing, and the length of the main file stream is also increasing.

[0071] The collected information includes the collection time, product model and collection environment.

[0072] In order to clearly explain the creation process of the main file stream, now combined with Figure 4 to explain. Figure 4 A schematic diagram of the main file stream structure is shown in FIG. Figure 4 As shown, assuming that the battery module is a battery module, the module serial number is 1-M, the signal type includes the battery cell voltage and the battery module temperature, the signal length of the battery cell voltage is L1, the signal quantity is K1, the signal length of the battery module temperature is L2, the signal quantity is K2, and the signal parameters (signal type, signal quantity and signal length) corresponding to each battery module are the same. The specific creation process of the main file stream is: first create a main frame, create an acquisition information file segment in the main frame and enter the acquisition information, then create module file segment 1 after the acquisition information file segment, module file segment 1 corresponds to module serial number 1, and then enter the signal type, signal length and signal quantity information in module file segment 1 in sequence, and then Figure 4In the example shown, the number of signal types, the signal length and number of signals of each signal type and each signal type are entered. After the configuration of module file segment 1 is completed, module file segment 2 is created. Module file segment 2 corresponds to module sequence number 2, and so on, until module file segment M is created and configured. After module file segment M, a time file segment is created, and the current main frame is used as the main file stream. The composition of other module file segments is the same as that of module file segment 1. Figure 4 Not shown.

[0073] S304: For each module file segment, set a starting address of the battery data corresponding to the initial sub-file stream at the end of the module file segment, where the starting address includes index information of the battery data corresponding to the sub-file stream.

[0074] like Figure 4 As shown, after the information entry of the configuration file of the module file segment is completed, the starting address of the battery data corresponding to the initial sub-file stream is also set at its end. The starting address includes the index information of the battery data corresponding to the sub-file stream, that is, the address mapping of the battery data in the sub-file stream. It should be noted that the starting address configured at this time is the initial starting address. In the subsequent process, when the battery data in the sub-file stream is spliced ​​into the main file stream, each starting address will be updated according to the actual address of the battery data corresponding to the sub-file stream. Therefore, before the starting address is updated, the starting address usually cannot play an effective indexing role. The starting address is set in this step to pre-occupy the storage space of the starting address in the module file segment. The starting address usually occupies 4 bytes, and the specific occupied bytes are set according to actual needs. S305. Create a sub-frame based on the module serial number, and each module serial number corresponds to a sub-frame.

[0075] The subframe is the outer frame of the subfile stream. There is a one-to-one correspondence between the subframe (subfile stream), module serial number and module file segment.

[0076] S306: Create data file segments in each sub-frame based on the configuration file to obtain multiple sub-file streams.

[0077] The configuration file includes the signal type, signal length and signal quantity, so that storage space with corresponding signal length and signal quantity can be created for each signal type, that is, a data file segment is created. The data file segment is used to store battery data. After the creation is completed, each sub-frame is a sub-file stream, and the number of sub-file streams is the same as the number of module file segments and the number of module serial numbers.

[0078] In an optional embodiment, data file segments are created in each sub-frame based on a configuration file to obtain multiple sub-file streams, including: for each signal type, determining the number of signals corresponding to the signal type; creating data file segments in each sub-frame whose number is the number of signals to obtain multiple sub-file streams, and in each sub-file stream, the data file segments in the sub-file stream are connected in sequence.

[0079] In order to clearly explain the creation process of the sub-file stream, now combined with Figure 5 to explain. Figure 5 A schematic diagram of a sub-file stream structure is shown in FIG. Figure 5 As shown, assuming that the battery module is a battery module, the module serial number is 1-M, the number of cells in the battery module is K1, the signal type includes the cell voltage and the battery module temperature, the arrangement order is in the front, which means that the collection order is in the front, the length of the cell voltage is L1, the number of signals is K1, the length of the battery module temperature is L2, the number of signals is K2, the signal parameters (signal type, signal number and signal length) corresponding to each battery module are the same, and the number of cells is also the same. The specific creation process of the sub-file stream is as follows: first, M sub-frames are created based on M module numbers (M module file segments). For each sub-frame, the first type of signal with the first acquisition order is determined to be the cell voltage. K1 data file segments are created in the sub-frame. The K1 data file segments are used to store the cell voltage data. For the convenience of description, the K1 data file segments are called the first data file segments. The length of each first data file segment is L1. The first data file segments are connected in sequence. When the K1 first data file segments are created, the second type of signal is determined to be the battery module temperature. After the K1 first data file segment, K2 data file segments are created. The K2 data file segments are used to store the battery module temperature data, which are called the second data file segments. The length of each second data file segment is L2. The second data file segments are connected in sequence. The first second data file segment is connected to the K1 first data file segment. The sub-frame after the data file segment is created is the sub-file stream.

[0080] After the sub-file stream is created, the storage space corresponding to the battery data to be collected is set in each sub-file stream, and the arrangement order of the sub-file stream corresponds to the module serial number, and the order of data collection also corresponds to the module serial number. Therefore, when the battery data is collected in real time, it can be filled into the sub-file box from front to back, without the need to check the storage position, which is convenient for fast storage of battery data. In addition, the writing order and arrangement order of the battery data in the sub-file stream are the same as the collection order of the battery data, so the arrangement of the battery data in the sub-file stream is coherent and orderly. In addition, the arrangement order of the sub-file stream is the same as the arrangement order of the module serial number, so that the battery data in the sub-file stream can be spliced ​​into the main file stream in an orderly manner in the subsequent steps to obtain a battery data collection file.

[0081] It should be noted that in Figure 5 In the example shown, only the structure of the data file segment under one acquisition cycle P is shown in each sub-file frame (sub-file stream). Figure 5 All data file segments in the sub-file frame are regarded as periodic acquisition file segments. In the case of multiple acquisition cycles N*P (N is a positive integer), N identical and sequentially connected periodic acquisition file segments are repeatedly set in the sub-file frame to obtain sub-file streams under N acquisition cycles P.

[0082] In addition, the creation order of the sub-file stream and the main file stream can be exchanged, that is, the main file stream can be created first (corresponding to S302-S304), or the sub-file stream can be created first (corresponding to S305-S306). The creation order of the sub-file stream and the main file stream shown in this embodiment is only an example.

[0083] S307: Write the collected battery data into the corresponding sub-file stream in binary form according to the configuration file.

[0084] S308. When the battery data is written, the battery data in the sub-file streams are sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file streams to obtain a battery data collection file.

[0085] S307-S308 are similar to S103-S104 in the first embodiment, and the details can be referred to the relevant description.

[0086] In this embodiment, a sub-file stream is created in order based on the module serial number, and a data file segment for writing battery data is set in the sub-file stream. When the battery data is written, there is no need to check the storage location, which facilitates the writing of battery data in the battery data collection process and improves the efficiency of battery data collection. In addition, the arrangement order of the sub-file stream is the same as the arrangement order of the module serial number, so that the battery data in the sub-file stream can be spliced ​​into the main file stream in order in the subsequent steps to obtain a battery data collection file.

[0087] Embodiment 3

[0088] Figure 6 This is a flow chart of a power battery data collection method provided in Embodiment 3 of the present invention. This embodiment of the present invention is optimized based on Embodiment 1 above. Figure 6 As shown, the power battery data collection method includes:

[0089] S601. Obtain a configuration file for collecting battery data of a battery module in a power battery, where the configuration file includes a module serial number, a signal type, a signal length, and a signal quantity.

[0090] S602: Create a main file stream and multiple sub-file streams based on the configuration file, where the number of sub-file streams is the same as the number of module serial numbers.

[0091] S601-S602 are similar to S101-S02 in the first embodiment, and the details can be referred to the relevant description.

[0092] S603, the battery data includes a plurality of module data, the number of module data is equal to the number of module serial numbers, and when the module data is collected, the sub-file stream with the module data to be written and arranged in the front order is determined as the first target sub-file stream.

[0093] The module data refers to the data collected for each battery module. The sub-file stream that is currently to be written into the module data and is arranged in the front order is determined as the first target sub-file stream. The storage space for each signal data is set in the sub-file stream, so "the current module data to be written" also refers to the situation where there is still storage space left in the sub-file stream. Exemplarily, the sub-file streams are sub-file streams 1 to sub-file M. When the module data (module data A) is collected, the sub-file streams currently to be written into the module data include sub-file 3 to sub-file stream M, among which sub-file 3 is arranged in the front order. At this time, file stream 3 is used as the first target sub-file stream.

[0094] S604 , segment the module data based on the signal type, signal length and signal quantity to obtain a plurality of battery sub-data.

[0095] S605: Write the battery sub-data into the first target sub-file stream in sequence.

[0096] In the sub-file stream, a corresponding storage space (data file segment) is set for each signal, that is, each signal (corresponding data) needs to be written into the corresponding storage space one by one, and the collected module data may be a continuous data string, so the module data needs to be segmented. The module data is collected in order based on the module serial number, signal type, signal length and signal quantity in the configuration file. Since the determined first target sub-file stream corresponds to the module serial number, the module data can be segmented based on the signal type, signal length and signal quantity in the configuration file.

[0097] Exemplarily, the signal types are cell voltage and cell current, the cell voltage is collected in order first, and the cell current is collected in order later, the cell voltage signal length is L1, and the signal quantity is K1, the cell current signal length is J1, and the signal quantity is Y1. Then, when the module data is received, the module data is split from the head to the tail in sequence. First, K1 battery sub-data are split with the signal length L1, and they are filled in the first target sub-file stream in sequence, and then Y1 battery sub-data are split with the signal length J1, and they are filled in the first target sub-file stream in sequence, to complete the splitting and writing of the current module data.

[0098] S603-S605 describe the process of writing the collected module data into the sub-file stream. In the actual operation process, S603-S605 are repeated until all the module data are written.

[0099] S606: When the battery data is written, the sub-file streams of the battery data to be spliced ​​are traversed in the order of arrangement of the sub-file streams, and each traversed sub-file stream is used as the second target sub-file stream.

[0100] S607: Update the starting address of the battery data corresponding to the second target sub-file stream based on the file length of the existing main file stream.

[0101] Since the battery data corresponding to the second target sub-file stream is spliced ​​to the end of the current main file stream, the file length of the existing main file stream can be used as the starting address of the battery data corresponding to the second target sub-file stream. The starting address at this time is an updated address, which has the function of indexing the location of the battery data corresponding to the file stream.

[0102] S608: Splice the battery data in the second target sub-file stream to the end of the main file stream to obtain an updated main file stream.

[0103] After determining the starting address of the battery data in the second target sub-file stream, the battery data in the second target sub-file stream can be spliced ​​to the end of the main file stream, and the battery data stream in the second target sub-file stream becomes part of the main file stream, that is, the main file stream is updated and the file length of the main file stream increases.

[0104] S606-S608 describe the process of splicing the battery data in the sub-file streams into the main file stream. In the actual operation process, each sub-file stream of battery data to be spliced ​​is traversed until the battery data in all sub-file streams are spliced.

[0105] In an optional embodiment, there may be a situation where the battery data of a second target sub-file stream cannot be successfully spliced ​​into the main file stream. In this case, the starting address of the battery data corresponding to the second target sub-file stream can be updated to an invalid address.

[0106] In order to clearly show the process of splicing the battery data in the sub-file stream into the main file stream, we now combine Figure 7 To explain, Figure 7 FIG. 1 is a schematic diagram of a process of splicing battery data in a sub-file stream to the end of a main file stream. Since only the starting address of the battery data in the sub-file stream is updated in each module file segment, only Figure 7 The starting address of the battery data of the sub-file stream is shown in each module file segment in the module file segment, and other configuration information of the module file segment is omitted. Figure 7 As shown, the main file stream V0 is the initial main file stream. In the main file stream V0, the starting addresses of the battery data corresponding to each sub-file stream are all initial addresses without indexing function.

[0107] Main file stream V0 is updated to main file stream V1: Determine that the sub-file stream that is currently sorted and to be spliced ​​with battery data is sub-file stream 1, which corresponds to module file segment 1. Calculate the file length of the current main file stream V0 as 00000020, and use the file length as the starting address of the battery data corresponding to sub-file stream 1 to update module file 1. Then splice the battery data in sub-file stream 1 to the end of the main file stream V0. At this time, the end of the main file stream V0 is the time period. After splicing, the main file stream V1 is obtained. In the main file stream V1, only the starting address of the battery data corresponding to sub-file stream 1 is updated. The starting addresses of the battery data corresponding to other sub-file streams still do not have an indexing function. Figure 7 In FIG. 1 , the dotted boxes in the main file streams V1 and V2 represent the parts of the main file streams that are updated during the splicing process.

[0108] The main file stream V1 is updated to the main file stream V2: determine that the sub-file stream that is currently sorted and to be spliced ​​with battery data is sub-file stream 2, which corresponds to module file segment 2, and calculate the file length of the current main file stream V1 to be 00000040. Use the file length as the starting address of the battery data corresponding to sub-file stream 2 and update it to module file 2, then splice the battery data of sub-file stream 2 to the end of the main file stream V1. At this time, the end of the main file stream V1 is the battery data of sub-file stream 1. After splicing, the main file stream V2 is obtained. In the main file stream V2, only the starting addresses of the battery data corresponding to sub-file streams 1 and 2 are updated at this time, and the starting addresses of the battery data corresponding to other sub-file streams still do not have an indexing function.

[0109] exist Figure 7In the splicing process shown, only the splicing process of the battery data of the first two sub-file streams is given as an example. The splicing process of the battery data in sub-file streams 3 to M can be inferred based on the given splicing process, so it is not given one by one.

[0110] S609: When the battery data is spliced, a battery data collection file is obtained.

[0111] When the battery data is spliced, the resulting battery data acquisition file includes the battery data in the original main file stream and all sub-file streams, reducing the space occupied by the distributed storage sub-file streams, thereby reducing the data storage space; and the battery data acquisition file sets the starting address of the battery data corresponding to each sub-file stream, and the starting address is stored in the module file segment corresponding to each battery module. The starting address in the module file segment can be used to accurately locate the location of the battery data corresponding to the battery module, which is helpful for the IOT platform to display and analyze data playback.

[0112] In an optional embodiment, after obtaining the battery data acquisition file, it also includes: when it is necessary to collect battery data again, splitting the battery data acquisition file into multiple sub-file streams and a main file stream; updating the sub-file stream based on the configuration file; writing the collected battery data in binary form into the corresponding sub-file stream according to the configuration file; when the battery data is written, splicing the battery data in the sub-file stream to the end of the main file stream in sequence according to the arrangement order of the sub-file stream to obtain a new battery data acquisition file.

[0113] The state of the power battery usually needs to be monitored periodically, so it may be necessary to repeat the same data collection operation on the power battery. After the battery data collection file has been spliced, when the battery data needs to be collected again, the operation during splicing can be restored, that is, the battery data in the sub-file stream is split from the end of the battery data collection file in sequence. Assuming that the battery data of M sub-file streams are spliced ​​in total, then when splitting, the Mth sub-file stream, the M-1th sub-file stream...the first sub-file stream are obtained in sequence. The split sub-file streams can be arranged in the order of the module serial number to restore the data collection scene. Since the storage space in the split sub-file stream has been occupied, it is necessary to update the sub-file stream according to the configuration file to set the storage space for the new battery data. The process of setting the storage space is consistent with the method of setting the storage space in the historical process. The difference is that for the sub-file stream created for the first time, it is sufficient to directly create the storage space inside the sub-file stream. For the sub-file stream obtained after splitting, it is necessary to create the storage space at the end of the sub-file stream. After the sub-file stream is configured, the data collection and writing as well as the battery data splicing process in the sub-file stream are consistent with the historical process.

[0114] When new battery data needs to be collected, the existing battery data collection file can be split to obtain a sub-file stream for writing battery data. The battery data can be incrementally updated on the basis of retaining historical data, and the battery data of the same power battery can be stored and processed in a centralized manner. There is no need to re-set a new main file stream, which can improve the efficiency of data collection.

[0115] Optionally, the main file stream includes the starting address of the battery data corresponding to the sub-file stream, and the battery data acquisition file is split into multiple sub-file streams and a main file stream, including: obtaining each starting address from the battery data acquisition file; sequentially removing the battery data between adjacent starting addresses and the battery data after the last starting address from the battery data acquisition file to obtain multiple sub-file streams, and using the remaining battery data acquisition files as the main file stream.

[0116] Since the battery data collection file is a file in which the battery data of each sub-file stream has been spliced, such as Figure 7 As shown, the battery data of each sub-file stream are closely connected. Therefore, the starting address of the battery data corresponding to the previous sub-file stream and the starting address of the battery data corresponding to the next sub-file stream are the battery data contents of the previous sub-file stream. The starting address of the battery data corresponding to each sub-file stream is recorded. Therefore, the battery data of the corresponding sub-file stream can be accurately extracted based on the adjacent starting addresses.

[0117] Embodiment 4

[0118] Figure 8 This is a schematic diagram of the structure of a power battery data acquisition device provided by the fourth embodiment of the present invention. Figure 8 As shown, the power battery data acquisition device includes:

[0119] A configuration file acquisition module 801 is used to acquire a configuration file for collecting battery data of a battery module in a power battery, wherein the configuration file includes a module serial number, a signal type, a signal length, and a signal quantity;

[0120] A file stream creation module 802, used to create a main file stream and multiple sub-file streams based on the configuration file, the number of the sub-file streams being the same as the number of the module serial numbers;

[0121] A data writing module 803 is used to write the collected battery data into the corresponding sub-file stream in binary form according to the configuration file;

[0122] The data splicing module 804 is used to splice the battery data in the sub-file stream to the end of the main file stream in sequence according to the arrangement order of the sub-file streams when the battery data is written, so as to obtain a battery data collection file.

[0123] Optionally, the file stream creation module 802 includes:

[0124] The main frame creation submodule is used to create the main frame;

[0125] A main file stream determination submodule, used to sequentially create module file segments in the main framework based on the module serial numbers and enter the configuration files to obtain a main file stream, wherein each module serial number corresponds to one module file segment;

[0126] A subframe creation submodule, used to create a subframe based on the module serial number, each module serial number corresponds to a subframe;

[0127] The sub-file stream determination sub-module is used to create a data file segment in each of the sub-frames based on the configuration file to obtain a plurality of sub-file streams, wherein the data file segment is used to store the battery data.

[0128] Optionally, the main file stream determination submodule includes:

[0129] A collection information file segment creation unit, used to create a collection information file segment in the main frame, wherein the collection information file segment is used to input the collection information;

[0130] A module file segment creation unit, used to create corresponding module file segments in sequence according to the module sequence number after the collection information file segment;

[0131] An information writing unit, used for writing the signal type, signal length and signal quantity corresponding to the module serial number into the module file segment;

[0132] The time file segment creation unit is used to create a time file segment after the last module file segment is created, and use the current main frame as the main file stream. The time file segment is used to enter the timestamp information of the sub-file stream.

[0133] Optionally, the power battery data acquisition device further includes:

[0134] The starting address setting module is used to set the starting address of the battery data corresponding to the initial sub-file stream at the end of each module file segment, wherein the starting address includes index information of the battery data corresponding to the sub-file stream.

[0135] Optionally, the sub-file stream determination sub-module includes:

[0136] A quantity determination unit, configured to determine, for each signal type, the number of signals corresponding to the signal type;

[0137] The data file segment creation unit is used to create data file segments in each of the sub-frames, the number of which is the number of the signals, to obtain a plurality of sub-file streams, in each of which the data file segments are sequentially connected.

[0138] Optionally, the battery data includes a plurality of module data, the number of the module data is equal to the number of the module serial numbers, and the data writing module 803 includes:

[0139] A first target sub-file stream determining sub-module, for determining, when the module data is collected, the sub-file stream that is currently to be written into the module data and is arranged first in the order as the first target sub-file stream;

[0140] A data segmentation submodule, used for segmenting the module data based on the signal type, the signal length and the signal quantity to obtain a plurality of battery sub-data;

[0141] The data writing submodule is used to write the battery sub-data into the first target sub-file stream in sequence.

[0142] Optionally, the main file stream includes the starting address of the battery data corresponding to the sub-file stream, and the data splicing module 804 includes:

[0143] A second target sub-file stream determining sub-module is used for traversing the sub-file streams to be spliced ​​with the battery data according to the arrangement order of the sub-file streams when the battery data is written, and taking each traversed sub-file stream as the second target sub-file stream;

[0144] A starting address updating submodule, used for updating the starting address of the battery data corresponding to the second target sub-file stream based on the file length of the existing main file stream;

[0145] A splicing submodule, used for splicing the battery data in the second target sub-file stream to the end of the main file stream to obtain an updated main file stream;

[0146] The battery data acquisition file acquisition submodule is used to obtain the battery data acquisition file when the battery data is spliced.

[0147] Optionally, the power battery data acquisition device further includes:

[0148] A splitting module, used for splitting the battery data collection file into a plurality of sub-file streams and one main file stream when the battery data needs to be collected again;

[0149] A sub-file stream updating module, used for updating the sub-file stream based on the configuration file;

[0150] A data re-writing module, used for writing the collected battery data into the corresponding sub-file stream in binary form according to the configuration file;

[0151] The data re-joining module is used to join the battery data in the sub-file stream to the end of the main file stream in sequence according to the arrangement order of the sub-file streams when the battery data is written, so as to obtain a new battery data collection file.

[0152] Optionally, the main file stream includes a starting address of the battery data corresponding to the sub-file stream, and the splitting module includes:

[0153] A starting address acquisition submodule, used to acquire each starting address from the battery data acquisition file;

[0154] The data splitting submodule is used to sequentially separate the battery data between adjacent starting addresses and the battery data after the last starting address from the battery data acquisition file to obtain multiple sub-file streams, and use the remaining battery data acquisition files as the main file stream.

[0155] The power battery data acquisition device provided in the embodiment of the present invention can execute the power battery data acquisition method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0156] Embodiment 5

[0157] Fig. 9 A schematic diagram of an electronic device 40 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0158] like Fig. 9As shown, the electronic device 40 includes at least one processor 41, and a memory connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 41 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 to the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0159] A number of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0160] The processor 41 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as a power battery data acquisition method.

[0161] In some embodiments, the power battery data collection method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the power battery data collection method described above may be performed. Alternatively, in other embodiments, the processor 41 may be configured to perform the power battery data collection method in any other appropriate manner (e.g., by means of firmware).

[0162] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0163] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0164] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0165] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0166] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0167] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0168] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0169] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A power battery data collection method, characterized in that: include: Acquire a configuration file for collecting battery data of a battery module in a power battery, wherein the configuration file includes a module serial number, a signal type, a signal length, and a signal quantity; Creating a main file stream and a plurality of sub-file streams based on the configuration file, wherein the number of the sub-file streams is the same as the number of the module serial numbers; Writing the collected battery data into the corresponding sub-file stream in binary form according to the configuration file; When the battery data is written completely, the battery data in the sub-file streams are sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file streams to obtain a battery data collection file.

2. The power battery data collection method according to claim 1, characterized in that: The creating a main file stream based on the configuration file comprises: Create the main frame; Based on the module serial number, module file segments are sequentially created in the main frame and the configuration files are entered to obtain a main file stream, wherein each module serial number corresponds to one module file segment; The creating a sub-file stream based on the configuration file comprises: Creating a subframe based on the module serial number, each module serial number corresponds to a subframe; A data file segment is created in each of the sub-frames based on the configuration file to obtain a plurality of sub-file streams, wherein the data file segment is used to store the battery data.

3. The power battery data collection method according to claim 2, characterized in that: The step of sequentially creating module file segments in the main frame based on the module serial number and entering the configuration file to obtain a main file stream includes: Creating a collection information file segment in the main frame, wherein the collection information file segment is used to input the collection information; After the acquisition information file segment, corresponding module file segments are created in sequence according to the module serial numbers; the signal type, signal length and signal quantity corresponding to the module serial number are written into the module file segment; After the last module file segment is created, a time file segment is created; the current main frame is used as the main file stream, and the time file segment is used to enter the timestamp information of the sub-file stream; The step of creating data file segments in each of the subframes based on the configuration file to obtain a plurality of subfile streams includes: For each signal type, determining the number of signals corresponding to the signal type; In each of the sub-frames, data file segments whose number is the number of the signals are created to obtain a plurality of sub-file streams. In each of the sub-file streams, the data file segments are sequentially connected.

4. The power battery data acquisition method according to claim 2, after sequentially creating module file segments in the main frame based on the module serial number and entering the configuration file to obtain a main file stream, further comprising: For each of the module file segments, a starting address of the battery data corresponding to an initial sub-file stream is set at the end of the module file segment, and the starting address includes index information of the battery data corresponding to the sub-file stream.

5. The power battery data collection method according to claim 1, characterized in that: The battery data includes a plurality of module data, the number of the module data is equal to the number of the module serial numbers, and the step of writing the collected battery data in binary form into the corresponding sub-file stream according to the configuration file includes: When the module data is collected, the sub-file stream to be currently written into the module data and which is arranged first in the order is determined as the first target sub-file stream; Segmenting the module data based on the signal type, the signal length and the signal quantity to obtain a plurality of battery sub-data; The battery sub-data are written into the first target sub-file stream in sequence.

6. The power battery data collection method according to any one of claims 1 to 5, characterized in that: The main file stream includes the starting address of the battery data corresponding to the sub-file stream, and the battery data in the sub-file stream is sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file stream to obtain a battery data collection file, including: When the battery data is written, the sub-file streams to be spliced ​​with the battery data are traversed in the order of the sub-file streams, and each traversed sub-file stream is used as the second target sub-file stream; Update the starting address of the battery data corresponding to the second target sub-file stream based on the file length of the existing main file stream; splicing the battery data in the second target sub-file stream to the end of the main file stream to obtain an updated main file stream; When the battery data is spliced, a battery data acquisition file is obtained.

7. The power battery data collection method according to any one of claims 1 to 5, characterized in that: After obtaining the battery data acquisition file, the method further includes: When the battery data needs to be collected again, the battery data collection file is split into a plurality of sub-file streams and one main file stream; Updating the sub-file stream based on the configuration file; Writing the collected battery data into the corresponding sub-file stream in binary form according to the configuration file; When the battery data is written completely, the battery data in the sub-file streams are sequentially spliced ​​to the end of the main file stream according to the arrangement order of the sub-file streams to obtain a new battery data collection file.

8. The power battery data collection method according to claim 7, characterized in that: The main file stream includes the starting address of the battery data corresponding to the sub-file stream, and the battery data acquisition file is split into a plurality of the sub-file streams and one main file stream, including: Acquire each of the starting addresses from the battery data acquisition file; The battery data between adjacent starting addresses and the battery data after the last starting address are sequentially separated from the battery data acquisition file to obtain a plurality of sub-file streams, and the remaining battery data acquisition files are used as the main file stream.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the power battery data collection method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the power battery data collection method according to any one of claims 1 to 8 when executed.

Citation Information

Patent Citations

  • Automatic driving vehicle data recording method and system

    CN116311585A

  • Log collection method, device and equipment and computer readable storage medium

    CN118069454A

Cited By

  • Battery test data storage and synchronization method and system and test equipment

    CN121722764A