CN116520147A - Battery consistency calculating method, device, computer equipment and storage medium - Google Patents

Battery consistency calculating method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116520147A
CN116520147A CN202310486011.4A CN202310486011A CN116520147A CN 116520147 A CN116520147 A CN 116520147A CN 202310486011 A CN202310486011 A CN 202310486011A CN 116520147 A CN116520147 A CN 116520147A
Authority
CN
China
Prior art keywords
data
calculated
battery
calculation
consistency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310486011.4A
Other languages
Chinese (zh)
Inventor
蔡宗霖
任浩雯
吴炜坤
顾单飞
江铭臣
严晓
赵恩海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai MS Energy Storage Technology Co Ltd
Original Assignee
Shanghai MS Energy Storage Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai MS Energy Storage Technology Co Ltd filed Critical Shanghai MS Energy Storage Technology Co Ltd
Priority to CN202310486011.4A priority Critical patent/CN116520147A/en
Publication of CN116520147A publication Critical patent/CN116520147A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/3644Constructional arrangements
    • G01R31/3648Constructional arrangements comprising digital calculation means, e.g. for performing an algorithm
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/389Measuring internal impedance, internal conductance or related variables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/396Acquisition or processing of data for testing or for monitoring individual cells or groups of cells within a battery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a battery consistency calculation method, a battery consistency calculation device, a computer device, a storage medium and a computer program product. The method comprises the following steps: responding to a consistency calculation request aiming at a target battery, and acquiring a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data; inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing the storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through two-dimensional matrix conversion and is used for storing the data; reading data to be calculated in the one-dimensional vector according to the second position index; and calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery. By adopting the method, the efficiency of battery consistency calculation is improved.

Description

Battery consistency calculating method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of battery technology, and in particular, to a battery consistency calculation method, apparatus, computer device, storage medium, and computer program product.
Background
Electrochemical energy storage is currently being vigorously developed, and in development, energy storage safety is always an industry hotspot. In the energy storage of the power station, in order to ensure the safety of the battery, some batteries with poor performance and large consistency difference are required to be screened out, so that the spontaneous combustion and explosion of the battery are prevented.
In the prior art, the collected battery data is stored in a two-dimensional matrix data structure. When the consistency calculation of the battery is needed, the data to be calculated is read from the two-dimensional matrix, and then the consistency calculation result of the battery is obtained based on the data calculation.
However, since the two-dimensional matrix has a certain logic structure, it is disadvantageous for the computation and storage of a processor such as an image processor GPU, resulting in low efficiency of battery consistency computation.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a battery consistency calculating method, apparatus, computer device, storage medium, and computer program product capable of improving battery consistency calculating efficiency.
In a first aspect, the present application provides a method for battery consistency calculation. The method comprises the following steps:
responding to a consistency calculation request aiming at a target battery, and acquiring a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of the data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing a storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through the two-dimensional matrix conversion and is used for storing the data;
reading the data to be calculated in the one-dimensional vector according to the second position index;
and calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery.
In one embodiment, the position value calculation formula is as follows:
new_loc=loc_x×num_col+loc_y;
where new_loc represents a position index of data stored in the one-dimensional vector, loc_x and loc_y represent position indexes of data stored in the two-dimensional matrix, and num_col represents a total column number of the two-dimensional matrix.
In one embodiment, the battery consistency calculation mode includes a mean calculation mode, where the mean calculation mode is implemented by adopting the following formula:
sum=∑x i
wherein sum represents the sum of data, x_mean represents the mean value, length represents the number of data, and x i Representing the data to be summed.
In one embodiment, the battery consistency calculation mode includes a standard deviation calculation mode, where the standard deviation calculation mode is implemented by adopting the following formula:
std_step1 i =x i -x_mean;
std_step2 i =std_step1 i 2
std_step3=∑std_step2 i
wherein std_step1 i Representing the difference of the ith data to the mean, std_step2 i The i-th data is represented by squaring the difference, std_step3 is represented by summing the squares of the differences, std_step4 is represented by the average of the sums, length is represented by the number of data, and std_step5 is represented by the standard deviation.
In one embodiment, the calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery includes:
performing thread allocation on the calculation step in a preset battery consistency calculation mode and the data to be calculated through a stream multiprocessor in the graphic processor to obtain a plurality of thread blocks; each thread block comprises an allocated calculation step and allocated data to be calculated;
Calculating the distributed data to be calculated by adopting one thread based on the distributed calculating step to obtain a calculating result;
and obtaining a consistency calculation result of the target battery according to the calculation result.
In one embodiment, the calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery includes:
acquiring the cell voltage of each target battery within a preset time;
data cleaning is carried out on the cell voltage;
calculating voltage standard scores of the battery cells based on the battery cell voltages after data cleaning;
calculating the mean value and standard deviation of the voltage standard score based on the voltage standard score;
drawing scattered points based on the mean value and the standard deviation for each target battery, and performing closed curve fitting on the scattered points;
and when the closed curve obtained by fitting exceeds a judging threshold value, judging that the corresponding target battery is abnormal.
In a second aspect, the present application provides a battery uniformity computing device. The device comprises:
the index obtaining module is used for responding to a consistency calculation request aiming at the target battery and obtaining a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of the data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
The index calculation module is used for inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing a storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through the two-dimensional matrix conversion and is used for storing the data;
the data reading module is used for reading the data to be calculated in the one-dimensional vector according to the second position index;
and the data calculation module is used for calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
responding to a consistency calculation request aiming at a target battery, and acquiring a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of the data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
Inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing a storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through the two-dimensional matrix conversion and is used for storing the data;
reading the data to be calculated in the one-dimensional vector according to the second position index;
and calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
responding to a consistency calculation request aiming at a target battery, and acquiring a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of the data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing a storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through the two-dimensional matrix conversion and is used for storing the data;
Reading the data to be calculated in the one-dimensional vector according to the second position index;
and calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
responding to a consistency calculation request aiming at a target battery, and acquiring a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of the data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing a storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through the two-dimensional matrix conversion and is used for storing the data;
reading the data to be calculated in the one-dimensional vector according to the second position index;
And calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery.
According to the battery consistency calculating method, the device, the computer equipment, the storage medium and the computer program product, the two-dimensional matrix is converted into the one-dimensional vector, and the logic storage structure is simpler than that of the two-dimensional matrix, so that when the data to be calculated is read based on the one-dimensional vector, the addressing time and the data reading time of a computer when the data is read can be reduced, and the calculating efficiency is improved. The data to be calculated can be accurately calculated by a preset battery consistency calculation mode, and a consistency calculation result of the target battery is obtained. The data is stored in a one-dimensional vector structure, so that the data management and storage can be more conveniently carried out, the data redundancy is reduced, and the data storage and reading efficiency is improved. In conclusion, the method can improve the efficiency and accuracy of battery consistency calculation, is convenient for data management and storage, and is an effective battery consistency calculation method.
Drawings
FIG. 1 is a flow chart of a method of battery consistency calculation in one embodiment;
FIG. 2 is a block diagram of a battery consistency calculation device in one embodiment;
FIG. 3 is an internal block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, there is provided a battery consistency calculation method, including the steps of:
step S102, a first position index corresponding to data to be calculated is obtained in response to a consistency calculation request for a target battery.
The target battery is a battery which needs to be subjected to consistency calculation. The target battery is typically a plurality. The first position index is used for representing the storage position of the data to be calculated in the two-dimensional matrix. A two-dimensional matrix, i.e., a two-dimensional table, is used to store data.
It should be noted that in the prior art, for the collected battery data, a two-dimensional table is formed, that is, all the battery data are stored as a two-dimensional matrix. Since the two-dimensional matrix has a certain logic structure, which is disadvantageous for the computation and storage of a processor (such as a graphics processor GPU), it is necessary to convert the two-dimensional matrix into a one-dimensional vector with a simpler logic storage structure.
Specifically, under the condition that a consistency calculation request aiming at a target battery is received, according to calculation requirements, first position subscripts corresponding to data to be calculated are acquired, namely storage position information of the data to be calculated in a two-dimensional matrix is acquired.
Step S104, inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated.
Wherein the second position index is used for representing the storage position of the data to be calculated in the one-dimensional vector. The one-dimensional vector is obtained through two-dimensional matrix conversion and is used for storing data.
Specifically, the original data storage structure-two-dimensional matrix is tiled into a new data storage structure-one-dimensional vector in advance before step S104. Examples of where the two-dimensional matrix is converted into a one-dimensional vector are as follows:
two-dimensional matrix
The two-dimensional matrix is converted into the following one-dimensional vector:
one-dimensional vector
In the two-dimensional matrix, the numbers above each table represent stored data, and the data below each table represent position subscripts after being converted into the two-dimensional matrix. In the one-dimensional vector, upper data represents the one-dimensional vector, and lower data represents a position index of the one-dimensional vector. The above examples are only used to explain the conversion rules, and in actual practice, the data volume can far exceed 20, reaching millions or even tens of millions.
In step S104, the first position index is input into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated. It will be appreciated that the position valued calculation formula represents a functional relationship between the first position index and the second position index.
In one embodiment, the location value calculation formula is as follows:
new_loc=loc_x×num_col+loc_y;
where new_loc represents a position index of data stored in the one-dimensional vector, loc_x and loc_y represent a position index of data stored in the two-dimensional matrix, and num_col represents a total column number of the two-dimensional matrix.
Step S106, reading the data to be calculated in the one-dimensional vector according to the second position index.
Specifically, after the second position index is obtained, the data to be calculated is queried from the one-dimensional vector based on the second position index and read.
Step S108, according to a preset battery consistency calculation mode, calculating the data to be calculated to obtain a consistency calculation result of the target battery.
The battery consistency calculation mode needs to calculate parameters such as mean value, standard deviation and the like.
In one embodiment, step S108 "calculate the data to be calculated according to a preset battery consistency calculation mode, and obtain a consistency calculation result of the target battery" is further implemented by the following steps:
Acquiring the cell voltage of each target battery within a preset time; data cleaning is carried out on the cell voltage; calculating voltage standard scores of the battery cells based on the battery cell voltages after data cleaning; calculating the mean value and standard deviation of the voltage standard score based on the voltage standard score; drawing scattered points based on the mean value and the standard deviation for each target battery, and performing closed curve fitting on the scattered points; and when the closed curve obtained by fitting exceeds a judging threshold value, judging that the corresponding target battery is abnormal. Wherein, for each battery box, drawing scattered points based on the mean value and the standard deviation comprises the following steps: constructing a coordinate system by taking the mean value and the standard deviation as the abscissa and the ordinate; and drawing scattered points corresponding to the battery cells in a coordinate system based on the mean value and standard deviation of the voltage standard deviation of each battery cell in the battery box. In addition, performing a closed curve fit to the scatter points includes any of the following: performing closed curve fitting on the scattered points based on the minimum circumscribed circle; performing closed curve fitting on the scattered points based on the minimum circumscribed rectangle; and performing closed curve fitting on the scattered points based on the minimum circumscribed polygon.
In the battery consistency calculating method, the two-dimensional matrix is converted into the one-dimensional vector, and the logic storage structure of the one-dimensional vector is simpler than that of the two-dimensional matrix, so that the addressing time and the data reading time of a computer when the data is read can be reduced based on the one-dimensional vector when the data to be calculated is read, and the calculating efficiency is improved. The data to be calculated can be accurately calculated by a preset battery consistency calculation mode, and a consistency calculation result of the target battery is obtained. The data is stored in a one-dimensional vector structure, so that the data management and storage can be more conveniently carried out, the data redundancy is reduced, and the data storage and reading efficiency is improved. In conclusion, the method can improve the efficiency and accuracy of battery consistency calculation, is convenient for data management and storage, and is an effective battery consistency calculation method.
In one embodiment, since a particular processor (e.g., GPU) is not good at performing logical operations, it is necessary to logically decompose the computation steps in a battery consistency computation scheme, making it a simple computation procedure. In this regard, the mean value calculation mode and the standard deviation calculation mode in the battery consistency calculation mode are disassembled, and the specific implementation process is as follows:
in one embodiment, since the average calculation needs to calculate the sum of data and divide the sum of data by the total number of data, the average calculation mode can be disassembled into the summation of data and the division, and the specific disassembly is as follows:
sum=∑x i
where sum represents the sum of the data, x_mean represents the mean, length represents the number of data (i.e., data length), x i Representing the data to be summed.
In one embodiment, the standard deviation calculation involves the difference of a single data to the mean, then squaring the differences and summing the squares of the differences, then averaging the sum of squares, and finally squaring the mean, so the standard deviation calculation is broken down as follows:
std_step1 i =x i -x_mean;
std_step2 i =std_step1 i 2
std_step3=∑std_step2 i
wherein std_step1 i Representing the difference of the ith data to the mean, std_step2 i Representing the i-th data squared the difference, std_step3 represents the sum of the squares of the differences, std_step4 represents the mean of the sums, and std_step5 represents the standard deviation.
In one embodiment, step S108 "calculate the data to be calculated according to a preset battery consistency calculation mode, and obtain a consistency calculation result of the target battery" may be further implemented by the following steps:
step S1082, performing thread allocation on the calculation step and the data to be calculated in a preset battery consistency calculation mode through a stream multiprocessor in the graphics processor to obtain a plurality of thread blocks;
step S1084, calculating the distributed data to be calculated by using one thread based on the distributed calculation step to obtain a calculation result by using a stream processor in the graphics processor for each distributed data to be calculated in each thread block;
step S1086, obtaining the consistency calculation result of the target battery according to the calculation result.
Each thread block comprises an assigned calculation step and assigned data to be calculated.
Specifically, during the development of a graphics processor GPU, threads need to be allocated as needed. For example, each cell and corresponding calculation of a large power station need to be subjected to thread allocation, so that the calculation acceleration effect is achieved. In actual operation, the one-dimensional vector is input into the memory of the GPU, and corresponding calculation steps are called according to requirements. In order to achieve the acceleration effect, each computing module and its corresponding data need to be assigned with a thread.
Since the data structure employed is a one-dimensional vector, the thread allocation over large-scale data is: the block is a data length, the thread is 1, the data length is the extracted data, and not all the data. In the computing, data storage and computing are performed according to thread blocks (corresponding GPU physical structures are streaming multiprocessors) in a graphics processor GPU. The data length refers to the maximum number of data that can be stored in the graphics processor GPU. Thread 1 means that each data in the thread block is allocated with one thread in the calculation, so that the multi-core advantage of the GPU of the graphics processor is utilized for parallel calculation. The length of the data is the number of all threads of a thread block of the graphics processor GPU, is a fraction of all data, and not all data.
In this embodiment, a data structure of one-dimensional vector is adopted, so that calculation is optimized for large-scale data, so that a better acceleration effect is achieved on a graphics processor GPU, and the problem that a two-dimensional matrix is too large due to the limitation of threads and cores, exceeds the limitation of the graphics processor GPU threads, and cannot be calculated is solved.
An embodiment of the present application is described below in conjunction with a specific application scenario. In this embodiment, a central processing unit CPU and a graphics processing unit GPU are employed to cooperatively complete the consistency calculation method of the target battery. On the basis of the embodiment, the method comprises the following steps:
The calculation steps for optimizing its execution on the central processing unit CPU are as follows:
step one: converting the two-dimensional matrix into a one-dimensional vector;
step two: during calculation, finding out data to be calculated according to a preset position value calculation formula;
step three: and calculating and outputting a calculation result according to the normal calculation step.
Since the data structure used in the central processing unit CPU is not a complex two-dimensional matrix logical value, but changes the logical value into a calculation value, the logical operation is simplified. Meanwhile, the complete two-dimensional matrix can be directly input in the calculation of the CPU instead of being singly input after the two-dimensional matrix is valued.
The calculation steps that optimize its execution on the graphics processor GPU are as follows:
step one: receiving a one-dimensional vector transmitted by a Central Processing Unit (CPU);
step two: during calculation, finding out data to be calculated according to a preset position value calculation formula;
step three: thread allocation is carried out according to the needs;
step four: and obtaining a calculation result.
For the battery consistency calculation method related to the embodiment of the application, the data of a certain battery pack in one day is adopted to carry out a cyclic test, and the final calculation time statistics are shown in the following table:
Task number CPU GPU acceleration algorithm Existing GPU acceleration algorithm
1 0.0048 0.1177 1.0521
512 2.1335 0.3611 1.5945
1000 3.8626 0.5883 2.1668
4096 14.2164 1.9955 4.7806
8192 25.3427 3.7763 8.5090
10000 30.1412 4.6981 Thread overrun
The second column of data is the result calculated by the CPU by using the one-dimensional vector, the third column of data is the result calculated by the GPU by using the one-dimensional vector, and the fourth column of data is the result calculated by the GPU by using the two-dimensional matrix.
The test example uses 16 cells 8600 data for calculation, and the task number is the number of times the same data is repeatedly calculated. At most 10000 calculations are performed, i.e. there are 1,376,000,000 data.
It can be seen that the time for computation using the image processor GPU is much less than the time for computation using the central processor CPU, the use of a new data structure of one-dimensional vectors can reduce the dependency on the thread limitations of the image processor GPU, data beyond the thread limitations can be computed, and the computation time is also less than the computation time using a two-dimensional matrix.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a battery consistency calculating device for realizing the battery consistency calculating method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the battery consistency calculating device or devices provided below may be referred to the limitation of the battery consistency calculating method hereinabove, and will not be repeated herein.
In one embodiment, as shown in FIG. 2, a battery uniformity computing device 20 is provided, the device 20 comprising:
the subscript obtaining module 202 is configured to obtain a first position subscript corresponding to data to be calculated in response to a request for consistency calculation for the target battery; the first position subscript is used for representing a storage position of data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
the subscript calculation module 204 is configured to input the first position subscript into a preset position value calculation formula, so as to obtain a second position subscript corresponding to the data to be calculated; the second position subscript is used for representing the storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through two-dimensional matrix conversion and is used for storing the data;
The data reading module 206 is configured to read data to be calculated in the one-dimensional vector according to the second position index;
the data calculation module 208 is configured to calculate data to be calculated according to a preset battery consistency calculation mode, so as to obtain a consistency calculation result of the target battery.
In the battery consistency calculating device, the two-dimensional matrix is converted into the one-dimensional vector, and the logic storage structure of the one-dimensional vector is simpler than that of the two-dimensional matrix, so that the addressing time and the data reading time of a computer when the data is read can be reduced based on the one-dimensional vector when the data to be calculated is read, and the calculating efficiency is improved. The data to be calculated can be accurately calculated by a preset battery consistency calculation mode, and a consistency calculation result of the target battery is obtained. The data is stored in a one-dimensional vector structure, so that the data management and storage can be more conveniently carried out, the data redundancy is reduced, and the data storage and reading efficiency is improved. In conclusion, the device can improve the efficiency and accuracy of battery consistency calculation, is convenient for data management and storage, and is an effective battery consistency calculation method.
In one embodiment, the data calculation module 208 is specifically configured to perform thread allocation on the calculation step and the data to be calculated in the preset battery consistency calculation mode through a stream multiprocessor in the graphics processor, so as to obtain a plurality of thread blocks; each thread block comprises an allocated calculation step and allocated data to be calculated; calculating the distributed data to be calculated by adopting one thread based on the distributed calculation step to obtain a calculation result; and obtaining a consistency calculation result of the target battery according to the calculation result.
In one embodiment, the data calculation module 208 is specifically configured to obtain the cell voltage of each target battery within a preset time; data cleaning is carried out on the cell voltage; calculating voltage standard scores of the battery cells based on the battery cell voltages after data cleaning; calculating the mean value and standard deviation of the voltage standard score based on the voltage standard score; drawing scattered points based on the mean value and the standard deviation for each target battery, and performing closed curve fitting on the scattered points; and when the closed curve obtained by fitting exceeds a judging threshold value, judging that the corresponding target battery is abnormal.
It should be noted that, when the battery consistency calculating device provided in the above embodiment implements the corresponding functions, only the division of the above functional modules is used for illustration, and in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the battery consistency calculating device provided in the above embodiment and the battery consistency calculating method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which is not repeated here.
According to one aspect of the present application, the present application embodiment also provides a computer program product comprising a computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through a communication section. When the computer program is executed by the processor, the battery consistency calculating method provided by the embodiment of the application is executed.
In addition, the embodiment of the application further provides a computer device, which comprises a processor and a memory, wherein the memory stores a computer program, the processor can execute the computer program stored in the memory, and when the computer program is executed by the processor, the battery consistency calculation method provided by any embodiment can be realized.
For example, FIG. 3 illustrates a computer device provided by an embodiment of the present application, the device including a bus 1110, a processor 1120, a transceiver 1130, a bus interface 1140, a memory 1150, and a user interface 1160.
In an embodiment of the present application, the apparatus further includes: a computer program stored in the memory 1150 and executable on the processor 1120, which when executed by the processor 1120, performs the processes of the battery consistency calculation method embodiments described above.
A transceiver 1130 for receiving and transmitting data under the control of the processor 1120.
In an embodiment of the present application, represented by bus 1110, bus 1110 may include any number of interconnected buses and bridges, with bus 1110 connecting various circuits, including one or more processors, represented by processor 1120, and memory, represented by memory 1150.
Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and a memory controller, a peripheral bus, an accelerated graphics port (Accelerate Graphical Port, AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such an architecture includes: industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA (EISA) bus, video electronics standards association (Video Electronics Standards Association, VESA) bus, peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Processor 1120 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments may be implemented by instructions in the form of integrated logic circuits in hardware or software in a processor. The processor includes: general purpose processors, central processing units (Central Processing Unit, CPU), network processors (Network Processor, NP), digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA), complex programmable logic devices (Complex Programmable Logic Device, CPLD), programmable logic arrays (Programmable Logic Array, PLA), micro control units (Microcontroller Unit, MCU) or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The methods, steps and logic blocks disclosed in the embodiments of the present application may be implemented or performed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated on a single chip or located on multiple different chips.
The processor 1120 may be a microprocessor or any conventional processor. The steps of the method disclosed in connection with the embodiments of the present application may be performed directly by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software modules may be located in a random access Memory (Random Access Memory, RAM), flash Memory (Flash Memory), read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), registers, and so forth, as are known in the art. The readable storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
Bus 1110 may also connect together various other circuits such as peripheral devices, voltage regulators, or power management circuits, bus interface 1140 providing an interface between bus 1110 and transceiver 1130, all of which are well known in the art. Accordingly, the embodiments of the present application will not be further described.
The transceiver 1130 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. For example: the transceiver 1130 receives external data from other devices, and the transceiver 1130 is configured to transmit the data processed by the processor 1120 to the other devices. Depending on the nature of the computer system, a user interface 1160 may also be provided, for example: touch screen, physical keyboard, display, mouse, speaker, microphone, trackball, joystick, stylus.
It should be appreciated that in embodiments of the present application, the memory 1150 may further include memory located remotely from the processor 1120, such remotely located memory being connectable to a server through a network. One or more portions of the above-described networks may be an ad hoc network (ad hoc network), an intranet, an extranet (extranet), a Virtual Private Network (VPN), a Local Area Network (LAN), a Wireless Local Area Network (WLAN), a Wide Area Network (WAN), a Wireless Wide Area Network (WWAN), a Metropolitan Area Network (MAN), the Internet (Internet), a Public Switched Telephone Network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless fidelity (Wi-Fi) network, and a combination of two or more of the above-described networks. For example, the cellular telephone network and wireless network may be a global system for mobile communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, a long term evolution-advanced (LTE-a) system, a Universal Mobile Telecommunications (UMTS) system, an enhanced mobile broadband (Enhance Mobile Broadband, embbb) system, a mass machine type communication (massive Machine Type of Communication, mctc) system, an ultra reliable low latency communication (Ultra Reliable Low Latency Communications, uirllc) system, and the like.
It should be appreciated that the memory 1150 in embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Wherein the nonvolatile memory includes: read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable EPROM (EPROM), electrically Erasable EPROM (EEPROM), or Flash Memory (Flash Memory).
The volatile memory includes: random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as: static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRAM). The memory 1150 described in the embodiments herein includes, but is not limited to, the above and any other suitable types of memory.
In the present embodiment, memory 1150 stores the following elements of operating system 1151 and application programs 1152: an executable module, a data structure, or a subset thereof, or an extended set thereof.
Specifically, the operating system 1151 includes various system programs, such as: a framework layer, a core library layer, a driving layer and the like, which are used for realizing various basic services and processing tasks based on hardware. The applications 1152 include various applications such as: a Media Player (Media Player), a Browser (Browser) for implementing various application services. A program for implementing the method of the embodiment of the present application may be included in the application 1152. The application 1152 includes: applets, objects, components, logic, data structures, and other computer system executable instructions that perform particular tasks or implement particular abstract data types.
In addition, the embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process of the foregoing embodiment of the battery consistency calculation method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The computer-readable storage medium includes: persistent and non-persistent, removable and non-removable media are tangible devices that may retain and store instructions for use by an instruction execution device. The computer-readable storage medium includes: electronic storage, magnetic storage, optical storage, electromagnetic storage, semiconductor storage, and any suitable combination of the foregoing. The computer-readable storage medium includes: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), non-volatile random access memory (NVRAM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassette storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical coding (e.g., punch cards or bump structures in grooves with instructions recorded thereon), or any other non-transmission medium that may be used to store information that may be accessed by a computing device. As defined in embodiments of the present application, the computer-readable storage medium does not include the transitory signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a pulse of light passing through a fiber optic cable), or an electrical signal transmitted through a wire.
In the several embodiments provided herein, it should be understood that the disclosed apparatus, devices, and methods may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one position, or may be distributed over a plurality of network units. Some or all of the units can be selected according to actual needs to solve the problem to be solved by the scheme of the embodiment of the application.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application are essentially or a part contributing to the prior art, or all or part of the technical solutions may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (including: a personal computer, a server, a data center, or other network device) to perform all or part of the steps of the methods described in the embodiments of the present application. And the storage medium includes various media as exemplified above that can store program codes.
In the description of the embodiments of the present application, those skilled in the art should appreciate that the embodiments of the present application may be implemented as a method, an apparatus, a device, and a storage medium. Thus, embodiments of the present application may be embodied in the following forms: complete hardware, complete software (including firmware, resident software, micro-code, etc.), a combination of hardware and software. Furthermore, in some embodiments, embodiments of the present application may also be implemented in the form of a computer program product in one or more computer-readable storage media, which contain computer program code.
Any combination of one or more computer-readable storage media may be employed by the computer-readable storage media described above. The computer-readable storage medium includes: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer readable storage medium include the following: portable computer diskette, hard disk, random Access Memory (RAM), read-only Memory (ROM), erasable programmable read-only Memory (EPROM), flash Memory (Flash Memory), optical fiber, compact disc read-only Memory (CD-ROM), optical storage device, magnetic storage device, or any combination thereof. In the context of the present application, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, device.
The computer program code embodied in the computer readable storage medium may be transmitted using any appropriate medium, including: wireless, wire, fiber optic cable, radio Frequency (RF), or any suitable combination thereof.
Computer program code for carrying out operations of embodiments of the present application may be written in assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages, or combinations thereof, including an object oriented programming language such as: java, smalltalk, C ++, also include conventional procedural programming languages, such as: c language or similar programming language. The computer program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computers may be connected via any sort of network, including: a Local Area Network (LAN) or a Wide Area Network (WAN), which may be connected to the user's computer or to an external computer.
The embodiments of the present application describe the provided methods, apparatuses, devices through flowcharts and/or block diagrams.
It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions. These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer readable program instructions may also be stored in a computer readable storage medium that can cause a computer or other programmable data processing apparatus to function in a particular manner. Thus, instructions stored in a computer-readable storage medium produce an instruction means which implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The foregoing is merely a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope disclosed in the embodiments of the present application, and all changes and substitutions are included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of battery consistency calculation, the method comprising:
responding to a consistency calculation request aiming at a target battery, and acquiring a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of the data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing a storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through the two-dimensional matrix conversion and is used for storing the data;
Reading the data to be calculated in the one-dimensional vector according to the second position index;
and calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery.
2. The method of claim 1, wherein the location value calculation formula is as follows:
new_loc=loc_x×num_col+loc_y;
where new_loc represents a position index of data stored in the one-dimensional vector, loc_x and loc_y represent position indexes of data stored in the two-dimensional matrix, and num_col represents a total column number of the two-dimensional matrix.
3. The method of claim 1, wherein the battery consistency calculation mode comprises a mean calculation mode implemented using the following formula:
sum=∑x i
wherein sum represents the sum of data, x_mean represents the mean value, length represents the number of data, and x i Representing the data to be summed.
4. The method of claim 1, wherein the battery consistency calculation mode comprises a standard deviation calculation mode, and the standard deviation calculation mode is implemented by adopting the following formula:
std_step1 i =x i -x_mean;
std_step2 i =std_step1 i 2
std_step3=∑std_step2 i
wherein std_step1 i Representing the difference of the ith data to the mean, std_step2 i The i-th data is represented by squaring the difference, std_step3 is represented by summing the squares of the differences, std_step4 is represented by the average of the sums, length is represented by the number of data, and std_step5 is represented by the standard deviation.
5. The method according to claim 1, wherein the calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery includes:
performing thread allocation on the calculation step in a preset battery consistency calculation mode and the data to be calculated through a stream multiprocessor in the graphic processor to obtain a plurality of thread blocks; each thread block comprises an allocated calculation step and allocated data to be calculated;
calculating the distributed data to be calculated by adopting one thread based on the distributed calculating step to obtain a calculating result;
and obtaining a consistency calculation result of the target battery according to the calculation result.
6. The method according to claim 1, wherein the calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery includes:
Acquiring the cell voltage of each target battery within a preset time;
data cleaning is carried out on the cell voltage;
calculating voltage standard scores of the battery cells based on the battery cell voltages after data cleaning;
calculating the mean value and standard deviation of the voltage standard score based on the voltage standard score;
drawing scattered points based on the mean value and the standard deviation for each target battery, and performing closed curve fitting on the scattered points;
and when the closed curve obtained by fitting exceeds a judging threshold value, judging that the corresponding target battery is abnormal.
7. A battery uniformity computing device, the device comprising:
the index obtaining module is used for responding to a consistency calculation request aiming at the target battery and obtaining a first position index corresponding to data to be calculated; the first position subscript is used for representing a storage position of the data to be calculated in a two-dimensional matrix, and the two-dimensional matrix is used for storing the data;
the index calculation module is used for inputting the first position index into a preset position value calculation formula to obtain a second position index corresponding to the data to be calculated; the second position subscript is used for representing a storage position of the data to be calculated in a one-dimensional vector, and the one-dimensional vector is obtained through the two-dimensional matrix conversion and is used for storing the data;
The data reading module is used for reading the data to be calculated in the one-dimensional vector according to the second position index;
and the data calculation module is used for calculating the data to be calculated according to a preset battery consistency calculation mode to obtain a consistency calculation result of the target battery.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310486011.4A 2023-04-28 2023-04-28 Battery consistency calculating method, device, computer equipment and storage medium Pending CN116520147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310486011.4A CN116520147A (en) 2023-04-28 2023-04-28 Battery consistency calculating method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310486011.4A CN116520147A (en) 2023-04-28 2023-04-28 Battery consistency calculating method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116520147A true CN116520147A (en) 2023-08-01

Family

ID=87395533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310486011.4A Pending CN116520147A (en) 2023-04-28 2023-04-28 Battery consistency calculating method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116520147A (en)

Similar Documents

Publication Publication Date Title
CN112508199B (en) Feature selection method and device for cross-feature federal learning and related equipment
CN115496285B (en) Power load prediction method and device and electronic equipment
CN113094746B (en) High-dimensional data publishing method based on localized differential privacy and related equipment
WO2020119188A1 (en) Program detection method, apparatus and device, and readable storage medium
WO2023077857A1 (en) Defense method and apparatus, electronic device, and storage medium
CN112348123B (en) User clustering method and device and electronic equipment
CN113466877B (en) Real-time object detection method and device and electronic equipment
CN115113054A (en) Echelon battery safety assessment method and device and electronic equipment
CN116148680B (en) Battery parameter identification method, device, computer equipment and storage medium
CN114675190A (en) Battery safety assessment method and device and electronic equipment
CN116520147A (en) Battery consistency calculating method, device, computer equipment and storage medium
CN116470607B (en) Battery pack power distribution method, device, equipment and storage medium
Hu et al. Enable pipeline processing of DNN co-inference tasks in the mobile-edge cloud
WO2020252925A1 (en) Method and apparatus for searching user feature group for optimized user feature, electronic device, and computer nonvolatile readable storage medium
CN115618252A (en) Photovoltaic access capacity evaluation method and device and electronic equipment
US20230236904A1 (en) Carbon footprint climate impact scores for datacenter workloads
CN113507120B (en) Method and device for calculating bearing capacity and electronic equipment
CN114268409B (en) Method and device for constructing index sequence of polarization code
CN116047310B (en) Battery model parameter identification method and device and electronic equipment
CN116165542B (en) Battery parameter identification method, device, equipment and storage medium
CN110704222A (en) Dump file analysis method and device, storage medium and electronic equipment
CN118041474B (en) Channel capacity calculation method and device under sense-of-general integrated network sensing constraint
US20240329987A1 (en) Apparatus and method of processing data, electronic device, and storage medium
US9281846B2 (en) Turbo encoding on a parallel processor
CN112651775B (en) Method and device for determining geographic radiation range and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination