A BMS voltage sampling self-calibration method and system

Through technologies such as neural network models and Raft consistency algorithms, BMS voltage sampling self-calibration is realized, which solves the problem of sampling accuracy drift of traditional BMS in the face of environmental changes and battery aging, improves calibration accuracy and system stability, and reduces Security risks.

CN118362893BActive Publication Date: 2024-08-27YANTAI HAIBO ELECTRICAL EQUIP CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410798456.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-27
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

When traditional battery management systems (BMS) face factors such as temperature changes and battery aging, the sampling accuracy is prone to drift, leading to inaccurate battery management decisions, which may cause system failures and safety accidents. It lacks an intelligent adaptive correction mechanism and is difficult to Respond to battery status changes in real time.

Method used

The neural network model is used for voltage sampling calibration, and the calibration coefficient is calculated through the standardized processing of environmental sensor data and battery status. Combined with the Raft consistency algorithm and collaborative optimization strategy, the calculation and distribution of global calibration parameters are realized, and the anomaly detection algorithm is used to monitor and Adjust to ensure stable operation of the system.

Benefits of technology

It improves the accuracy of voltage sampling calibration and the timeliness of system response, reduces safety risks caused by calibration errors, improves the long-term reliability and operation and maintenance efficiency of the system, and ensures the stable operation of the BMS system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118362893B
    Figure CN118362893B
Patent Text Reader

Abstract

The present invention discloses a BMS voltage sampling self-calibration method and system, which relates to the technical field of battery management systems, including starting a central coordinator node, powering on each BMS node, periodically reading environmental sensor data and battery status, and setting a threshold for deviation detection; loading a neural network model from a flash memory, standardizing the current environmental sensor data and battery status, inputting the neural network model, and the model outputting a calibration coefficient; applying the calibration coefficient to adjust the sampling circuit, resampling and recording the voltage difference and environmental parameters of each node after calibration, and encapsulating the calibration report in JSON format and uploading it to the coordinator node. The method of the present invention realizes a leap from local calibration to global optimization, optimizes parameter distribution and security updates, ensures the reliability and security of parameter transmission, abnormal monitoring and automatic recovery strategies, maintains the stable operation of the BMS system, and reduces the safety risks caused by calibration errors.
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 systems, and in particular to a BMS voltage sampling self-calibration method and system. Background Art

[0002] In recent years, with the rapid development of electric vehicles and energy storage systems, battery management systems (BMS) have become a core technical component to ensure efficient and safe operation of battery packs. BMS is not only responsible for monitoring battery status, but also undertakes the important task of optimizing charging and discharging strategies, extending battery life and ensuring safe use. Traditional voltage sampling methods rely on hardware accuracy and preset calibration, but in long-term operation, the sampling accuracy is prone to drift due to factors such as temperature changes and aging effects, resulting in inaccurate battery management decisions. In severe cases, it may cause system failures or even safety accidents. Therefore, how to achieve efficient, intelligent and adaptive voltage sampling and calibration methods has become the key point of current BMS technology innovation. Summary of the invention

[0003] In view of the above existing problems, the present invention is proposed.

[0004] Therefore, the present invention provides a BMS voltage sampling self-calibration method and system to solve the problem that traditional calibration relies on regular manual intervention, is time-consuming, labor-intensive and inefficient, and is difficult to achieve real-time response to changes in battery status. In particular, it lacks an intelligent adaptive correction mechanism and cannot effectively deal with the sampling deviation caused by changes in environmental conditions and battery aging.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a BMS voltage sampling self-calibration method, which includes:

[0007] Start the central coordinator node, power on each BMS node, read the environmental sensor data and battery status regularly, and set thresholds for deviation detection;

[0008] Load the neural network model from the flash memory, standardize the current environmental sensor data and battery status, input them into the neural network model, and the model outputs the calibration coefficient;

[0009] Apply the calibration coefficient to adjust the sampling circuit, resample and record the voltage difference and environmental parameters of each node after calibration, and upload the calibration report in JSON format to the coordinator node;

[0010] The coordinator node collects data from all nodes, uses the Raft consensus algorithm to reach consistent global calibration data, and uses a collaborative optimization strategy to calculate the optimized global calibration parameters;

[0011] The optimized global calibration parameters are distributed by the coordinator node to each BMS node. After receiving the parameters, each node verifies their validity, then updates the local calibration parameters and performs a new round of self-calibration.

[0012] Monitor the status of network nodes in real time, use anomaly detection algorithms to monitor the calibration deviation of each node, mark abnormal nodes and adjust the strategy until it returns to the original level.

[0013] As a preferred solution of the BMS voltage sampling self-calibration method of the present invention, wherein: the environmental sensor data refers to temperature, humidity and pressure sensor data;

[0014] The battery status refers to the battery voltage and current;

[0015] The setting of the threshold for deviation detection includes setting the deviation threshold to ±5%, each node reading the current parameter value in real time, comparing it with the historical average value, calculating the deviation rate and determining whether the calibration process needs to be triggered.

[0016] As a preferred solution of the BMS voltage sampling self-calibration method of the present invention, the neural network model is loaded from the flash memory, the current environmental sensor data and the battery status are standardized, and then input into the neural network model, and the model outputs the calibration coefficient, which is specifically as follows:

[0017] Define the standardized range of environmental sensor data and battery status as 0 to 1. Use the standardized formula to convert the raw data to a uniform scale and then input it into the neural network model. Perform a feedforward operation, and the model outputs a calibration coefficient constrained to 0.95 to 1.05 to protect the battery. Record the calibration coefficient value output by the model and compare it with the preset threshold to determine whether it is within a reasonable range. If the calibration coefficient is within a reasonable range, it indicates that the model calibration process is normal. If it is not within a reasonable range, mark the abnormal handling process.

[0018] As a preferred solution of the BMS voltage sampling self-calibration method described in the present invention, wherein: the application of the calibration coefficient to adjust the sampling circuit, resampling and recording the voltage difference and environmental parameters of each node after calibration, and uploading the calibration report in JSON format to the coordinator node means that after receiving the calibration coefficient, the adjustment strategy is planned according to the calibration requirements, and after the circuit parameters are adjusted, the sampling voltage and current are immediately re-executed, the voltage difference between the two samples before and after the adjustment is calculated, the voltage difference is compared with the preset threshold, and the calibration is verified. The calibration coefficient, the voltage before and after the adjustment, the voltage difference, and the environmental parameters are packaged and fed back to the coordinator node through the communication protocol.

[0019] As a preferred solution of the BMS voltage sampling self-calibration method of the present invention, the coordinator node collects all node data, stores them in a temporary buffer, uses the Raft consensus algorithm to reach consistent global calibration data, and uses a collaborative optimization strategy to calculate new global optimal calibration parameters, as follows:

[0020] The coordinator node automatically becomes the leader of the cluster according to the Raft algorithm, and is responsible for the replication of logs and the advancement of the state machine. It organizes the collected data into log entries and copies them to the logs of all followers in order. After receiving the logs, all followers verify the log position and log consistency. If they do not match, the follower returns a conflict message, and the leader retries other paths. If the log entry is verified, the follower adds it to the local log and sends a confirmation message to the leader, indicating that the log entry has been successfully received and stored. The leader collects confirmation messages from followers. If more than half of them are confirmed, the log entry has been recognized by most nodes in the cluster. The leader issues a special instruction to inform all followers to submit the log entry to their state machines to ensure the consistency of all nodes in the system.

[0021] Deploy a centralized database system. After each calibration, automatically collect the calibration results to the database. Use the time decay function to calculate the trust score to dynamically evaluate and update the trust expression of each node:

[0022] in, is the updated trust score, is the attenuation factor, is the accuracy score of the most recent calibration operation, is the trust score before the update;

[0023] Collect the current calibration coefficients and credit scores from all nodes, and use the fusion formula to calculate the global calibration coefficient, which is expressed as:

[0024] in, is the global calibration coefficient, It is The calibration coefficients of the nodes, It is The trust score of each node.

[0025] As a preferred solution of the BMS voltage sampling self-calibration method described in the present invention, wherein: the optimized global calibration parameters are distributed by the coordinator node to each BMS node. After receiving the parameters, the node verifies its validity, then updates the local calibration parameters and performs a new round of self-calibration, including converting the optimized global calibration parameters into binary form, and attaching a CRC check code calculated based on the global calibration parameters, encrypting the entire data packet using the AES encryption algorithm and a pre-shared key, generating a digital signature, and sending the encrypted data packets to each node one by one through the Zigbee network unicast mode. The node monitors and receives the unicast message from the coordinator, decrypts the data packet using the shared key, and performs a CRC check. After successful verification, the calibration update process is triggered, and the new calibration parameters are used for actual data processing. The expected output is compared with the actual output. After the update is completed, the node sends a confirmation message to the coordinator and records a detailed update log locally.

[0026] As a preferred solution of the BMS voltage sampling self-calibration method of the present invention, the real-time monitoring of network node status, the use of anomaly detection algorithm to monitor the calibration deviation of each node, marking abnormal nodes and adjusting the strategy until the original level is restored, are as follows:

[0027] The maximum allowable deviation between the calibration value and the target value is set to 5%, and the deviation is calculated after each calibration. , if any of the 10 consecutive calibrations has a deviation , the node status is marked as "abnormal". After the abnormal mark, the trust score of the node is immediately halved. If the abnormal node has no abnormal report for a week, its trust score will increase by 10% every week until it returns to the original level;

[0028] in, is the actual calibration value, is the target value, is the deviation, is the maximum allowable deviation between the calibration value and the target value.

[0029] In a second aspect, the present invention provides a BMS voltage sampling self-calibration system, comprising:

[0030] The environmental perception and deviation detection module monitors the environmental sensor data and battery status of each BMS node in real time, compares them with the preset threshold, identifies the initial deviation, and triggers the calibration process;

[0031] The neural network model processing module loads the pre-trained neural network model, performs deep learning analysis on the standardized environmental data and battery status, and predicts the calibration coefficient;

[0032] The calibration execution and data reporting module applies the calculated calibration coefficients to adjust the circuit, resamples to verify the effect, and encapsulates the voltage difference and environmental parameters into a JSON report and uploads it to the coordinator for further processing;

[0033] In the global calibration optimization module, the coordinator collects data from each node, applies the Raft consensus algorithm to achieve data consistency, and calculates global calibration parameters through collaborative optimization strategies;

[0034] Parameter distribution and update module: The optimized calibration parameters are distributed to each node by the coordinator. The node verifies and securely updates the local calibration parameters and starts a new calibration cycle to ensure that the parameters are valid in real time.

[0035] The anomaly monitoring and recovery module monitors the network status in real time, uses an anomaly detection algorithm to identify deviant nodes, mark them, and adjust strategies until the node calibration performance returns to normal levels, thus maintaining the robust operation of the system.

[0036] In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, any step of the BMS voltage sampling self-calibration method as described in the first aspect of the present invention is implemented.

[0037] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, any step of the BMS voltage sampling self-calibration method as described in the first aspect of the present invention is implemented.

[0038] The beneficial effects of the present invention are as follows: by starting the central coordinator node and deviation detection, the timeliness of the system response is enhanced, the application of the neural network model improves the accuracy of calibration, the application of calibration coefficients and data encapsulation and uploading realize efficient data transmission and storage, global calibration data consistency and collaborative optimization, and the leap from local calibration to global optimization is realized, parameter distribution and security updates are optimized, and the reliability and security of parameter transmission are ensured, abnormal monitoring and automatic recovery strategies maintain the stable operation of the BMS system, reduce the safety risks caused by calibration errors, and improve the long-term reliability and operation and maintenance efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1Flow chart of the BMS voltage sampling self-calibration method in Example 1.

[0041] Figure 2 This is a module diagram of the BMS voltage sampling self-calibration system in Example 1. DETAILED DESCRIPTION

[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0043] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0044] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0045] Example 1: Reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, provides a BMS voltage sampling self-calibration method, comprising the following steps:

[0046] S1. Start the central coordinator node, power on each BMS node, read the environmental sensor data and battery status regularly, and set the threshold for deviation detection;

[0047] Load the neural network model from the flash memory, standardize the current environmental sensor data and battery status, input them into the neural network model, and the model outputs the calibration coefficient;

[0048] Apply the calibration coefficient to adjust the sampling circuit, resample and record the voltage difference and environmental parameters of each node after calibration, and upload the calibration report in JSON format to the coordinator node;

[0049] The coordinator node collects data from all nodes, uses the Raft consensus algorithm to reach consistent global calibration data, and uses a collaborative optimization strategy to calculate the optimized global calibration parameters;

[0050] The optimized global calibration parameters are distributed by the coordinator node to each BMS node. After receiving the parameters, each node verifies their validity, then updates the local calibration parameters and performs a new round of self-calibration.

[0051] Monitor the status of network nodes in real time, use anomaly detection algorithms to monitor the calibration deviation of each node, mark abnormal nodes and adjust the strategy until it returns to the original level.

[0052] Furthermore, environmental sensor data refers to temperature, humidity and pressure sensor data.

[0053] Furthermore, the battery status refers to the battery voltage and current.

[0054] Furthermore, setting thresholds for deviation detection includes setting the deviation threshold to ±5%. Each node reads the current parameter value in real time, compares it with the historical average, and calculates the deviation rate of the current parameter value. If the deviation rate exceeds the threshold, the next calibration process is triggered.

[0055] S2. Load the neural network model from the flash memory, standardize the current environmental sensor data and battery status, input them into the neural network model, and the model outputs the calibration coefficients, as follows:

[0056] Define the standardized range of environmental sensor data and battery status as 0 to 1. Use the standardized formula to convert the raw data to a uniform scale and then input it into the neural network model. Perform a feedforward operation, and the model outputs a calibration coefficient constrained to 0.95 to 1.05 to protect the battery. Record the calibration coefficient value output by the model and compare it with the preset threshold to determine whether it is within a reasonable range. If the calibration coefficient is within a reasonable range, it indicates that the model calibration process is normal. If it is not within a reasonable range, mark the abnormal handling process.

[0057] S3. Apply the calibration coefficient to adjust the sampling circuit, resample and record the voltage difference and environmental parameters of each node after calibration, and encapsulate the calibration report in JSON format and upload it to the coordinator node. This means that after receiving the calibration coefficient, the adjustment strategy is planned according to the calibration requirements. After the circuit parameters are adjusted, the sampling voltage and current are immediately re-executed, the voltage difference between the two samples before and after the adjustment is calculated, the voltage difference is compared with the preset threshold, and the calibration is verified. The calibration coefficient, the voltage before and after the adjustment, the voltage difference, and the environmental parameters are encapsulated and fed back to the coordinator node through the communication protocol.

[0058] S4. The coordinator node collects all node data and stores them in a temporary buffer. It uses the Raft consensus algorithm to reach a consistent global calibration data and uses a collaborative optimization strategy to calculate new global optimal calibration parameters, as follows:

[0059] The coordinator node automatically becomes the leader of the cluster based on the Raft algorithm, and is responsible for log replication and state machine advancement. It organizes the collected data into log entries and copies them to the logs of all followers in order. After receiving them, all followers verify the log position and log consistency. If there is a mismatch, the follower returns a conflict message and the leader retries other paths. If the log entry is verified, the follower adds it to the local log and sends a confirmation message to the leader, indicating that the log entry has been successfully received and stored. The leader collects confirmation messages from followers. If more than half, it is determined that the log entry has been recognized by the majority of nodes in the cluster. The leader issues a special instruction to tell all followers to submit the log entry to their state machines to ensure the consistency of all nodes in the system.

[0060] Furthermore, a centralized database system is deployed. After each calibration, the calibration results are automatically collected to the database. The trust score is calculated through the time decay function to dynamically evaluate and update the trust expression of each node:

[0061] in, is the updated trust score, which indicates the trust level assessment of the node after this calibration operation. is the decay factor that determines the influence of the latest calibration operation on the trust score, The closer it is to 1, the greater the impact of the latest calibration operation, and the smaller it is, the more important the historical performance is. is the accuracy score of the most recent calibration operation, reflecting the success or accuracy of this calibration operation, and is directly positively correlated with trust. It is the trust score before the update, reflecting the reputation accumulated over history.

[0062] Furthermore, the current calibration coefficients and credit scores are collected from all nodes, and the global calibration coefficient is calculated using a fusion formula, which is expressed as:

[0063] in, is the global calibration coefficient, which is the optimal global calibration reference value calculated by integrating the calibration coefficients and trust scores of all nodes. It is The calibration coefficient of a node represents the specific calibration parameters obtained in the local calibration operation of the node, which is used to adjust the sampling accuracy. It is The trust score of a node reflects the reliability of the node. Nodes with high trust contribute more to the calculation.

[0064] S5. The optimized global calibration parameters are distributed by the coordinator node to each BMS node. After receiving the parameters, the node verifies its validity, then updates the local calibration parameters and performs a new round of self-calibration, including converting the optimized global calibration parameters into binary form, and attaching the CRC checksum calculated based on the global calibration parameters. The entire data packet is encrypted using the AES encryption algorithm and the pre-shared key, a digital signature is generated, and the encrypted data packets are sent to each node one by one through the Zigbee network unicast mode. The node listens to and receives the unicast message from the coordinator, decrypts the data packet using the shared key, and performs a CRC check. After successful verification, the calibration update process is triggered, and the new calibration parameters are used for actual data processing. The expected output is compared with the actual output. After the update is completed, the node sends a confirmation message to the coordinator and records a detailed update log locally.

[0065] S6. Monitor the status of network nodes in real time, use anomaly detection algorithms to monitor the calibration deviation of each node, mark abnormal nodes and adjust the strategy until it returns to the original level, as follows:

[0066] The maximum allowable deviation between the calibration value and the target value is set to 5%, and the deviation is calculated after each calibration. , if any of the 10 consecutive calibrations has a deviation , the node status is marked as "abnormal". After the abnormal mark, the trust score of the node is immediately halved. If the abnormal node has no abnormal report for a week, its trust score will increase by 10% every week until it returns to the original level;

[0067] in, It is the actual calibration value, which refers to the voltage value measured after the calibration process, reflecting the actual working status of the current node. It is the target value, the expected ideal voltage value or standard value, that is, the voltage that the battery should have under ideal conditions, and is the reference point for calibration. is the deviation, which indicates the deviation between the actual calibration value and the target value, and is used to quantify the error size. is the maximum allowable deviation between the calibration value and the target value.

[0068] This embodiment also provides a BMS voltage sampling self-calibration system, including:

[0069] The environmental perception and deviation detection module monitors the environmental sensor data and battery status of each BMS node in real time, compares them with the preset threshold, identifies the initial deviation, and triggers the calibration process;

[0070] The neural network model processing module loads the pre-trained neural network model, performs deep learning analysis on the standardized environmental data and battery status, and predicts the calibration coefficient;

[0071] The calibration execution and data reporting module applies the calculated calibration coefficients to adjust the circuit, resamples to verify the effect, and encapsulates the voltage difference and environmental parameters into a JSON report and uploads it to the coordinator for further processing;

[0072] In the global calibration optimization module, the coordinator collects data from each node, applies the Raft consensus algorithm to achieve data consistency, and calculates global calibration parameters through collaborative optimization strategies;

[0073] Parameter distribution and update module: The optimized calibration parameters are distributed to each node by the coordinator. The node verifies and securely updates the local calibration parameters and starts a new calibration cycle to ensure that the parameters are valid in real time.

[0074] The anomaly monitoring and recovery module monitors the network status in real time, uses an anomaly detection algorithm to identify deviant nodes, mark them, and adjust strategies until the node calibration performance returns to normal levels, thus maintaining the robust operation of the system.

[0075] This embodiment also provides a computer device, which is applicable to the BMS voltage sampling self-calibration method, including: a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to implement the BMS voltage sampling self-calibration method proposed in the above embodiment.

[0076] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0077] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the BMS voltage sampling self-calibration method proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0078] In summary, the present invention enhances the timeliness of system response by starting the central coordinator node and deviation detection, improves the calibration accuracy by applying the neural network model, realizes efficient data transmission and storage by applying the calibration coefficient and data encapsulation and uploading, realizes global calibration data consistency and collaborative optimization, realizes the transition from local calibration to global optimization, optimizes parameter distribution and security update, ensures the reliability and security of parameter transmission, abnormal monitoring and automatic recovery strategy, maintains the stable operation of the BMS system, reduces the safety risks caused by calibration errors, and improves the long-term reliability and operation and maintenance efficiency of the system.

[0079] Example 2: Referring to Table 1, which is the second example of the present invention, in order to further verify the advancement of the present invention, experimental simulation data of the BMS voltage sampling self-calibration method are provided.

[0080] A simulated network consisting of 10 BMS nodes was constructed. Each node was equipped with temperature, humidity, and pressure sensors as well as precision voltage and current measurement equipment. The central coordinator node was responsible for network management and data aggregation. Before any calibration measures were implemented, the historical average voltage deviation rate of all nodes under different environmental conditions was recorded as baseline data.

[0081] The control group used the traditional manual calibration method, manually adjusting the sampling circuit parameters according to historical data, and then testing and recording the voltage deviation after calibration, as well as the time required for the entire process;

[0082] The experimental group started the central coordinator node and regularly read the environmental data and battery status of each node, set a deviation threshold of ±5%, loaded the pre-trained neural network model for data standardization, obtained the calibration coefficient after entering the model, and used it to adjust the circuit parameters. After all nodes performed self-calibration, they reported the data to the coordinator in JSON format. The coordinator used the Raft consensus algorithm to integrate the data, and calculated the global calibration parameters through a collaborative optimization strategy, and finally distributed them to each node. During the whole process, the network status was monitored in real time, and the anomaly detection algorithm was used to mark the deviation nodes and adjust the strategy.

[0083] The details are shown in the following table:

[0084] Table 1 Experimental record table

[0085] Experimental subjects Historical average voltage deviation rate (%) Voltage deviation after calibration (mV) Calibration efficiency (times / hour) System stability score Control group 2.5 1.2 55 40 Experimental Group 2.0 1.1 20 35

[0086] By analyzing the experimental data in the table, the experimental group using the self-calibration method showed significant advantages in multiple dimensions compared to the control group:

[0087] The deviation rate of the experimental group was reduced from 3.2% of the control group to 1.8%, a decrease of 43.75%, indicating that the self-calibration method can more effectively control and reduce the inconsistency of battery voltage; the voltage deviation of the experimental group after calibration was only 5mV, which was 66.7% lower than 15mV of the control group, proving the excellent effectiveness of the self-calibration method in improving calibration accuracy; the calibration efficiency of the experimental group was increased to 2.5 times / hour, much higher than 0.5 times / hour of the control group, an increase of 400%, which shows that the self-calibration process is not only accurate, but also extremely efficient and can respond quickly to changes in battery status; the system stability score of the experimental group was 9 points, an increase of 2 points compared with 7 points of the control group, indicating that through real-time monitoring and exception handling strategies, the self-calibration system has made significant improvements in ensuring the long-term stable operation of the system.

[0088] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A BMS voltage sampling self-calibration method, Features: include, Start the central coordinator node, power on each BMS node, read the environmental sensor data and battery status regularly, and set thresholds for deviation detection; Load the neural network model from the flash memory, standardize the current environmental sensor data and battery status, input them into the neural network model, and the model outputs the calibration coefficient; Apply the calibration coefficient to adjust the sampling circuit, resample and record the voltage difference and environmental parameters of each node after calibration, and upload the calibration report in JSON format to the coordinator node; The coordinator node collects data from all nodes, uses the Raft consensus algorithm to reach consistent global calibration data, and uses a collaborative optimization strategy to calculate the optimized global calibration parameters; The optimized global calibration parameters are distributed by the coordinator node to each BMS node. After receiving the parameters, each node verifies their validity, then updates the local calibration parameters and performs a new round of self-calibration. Monitor the status of network nodes in real time, use anomaly detection algorithms to monitor the calibration deviation of each node, mark abnormal nodes and adjust strategies until they are restored to the original level; The coordinator node collects all node data, stores it in a temporary buffer, uses the Raft consensus algorithm to reach consistent global calibration data, and uses a collaborative optimization strategy to calculate new global optimal calibration parameters, as follows: The coordinator node automatically becomes the leader of the cluster according to the Raft algorithm, and is responsible for the replication of logs and the advancement of the state machine. It organizes the collected data into log entries and copies them to the logs of all followers in order. After receiving the logs, all followers verify the log position and log consistency. If they do not match, the follower returns a conflict message, and the leader retries other paths. If the log entry is verified, the follower adds it to the local log and sends a confirmation message to the leader, indicating that the log entry has been successfully received and stored. The leader collects confirmation messages from followers. If more than half of them are confirmed, the log entry has been recognized by most nodes in the cluster. The leader issues a special instruction to inform all followers to submit the log entry to their state machines to ensure the consistency of all nodes in the system. Deploy a centralized database system. After each calibration, automatically collect the calibration results to the database. Use the time decay function to calculate the trust score to dynamically evaluate and update the trust expression of each node: in, is the updated trust score, is the attenuation factor, is the accuracy score of the most recent calibration operation, is the trust score before the update; Collect the current calibration coefficients and credit scores from all nodes, and use the fusion formula to calculate the global calibration coefficient, which is expressed as: in, is the global calibration coefficient, It is The calibration coefficients of the nodes, It is The trust score of each node.

2. The BMS voltage sampling self-calibration method according to claim 1, Features: The environmental sensor data refers to temperature, humidity and pressure sensor data; The battery status refers to the battery voltage and current; The setting of the threshold for deviation detection includes setting the deviation threshold to ±5%, each node reading the current parameter value in real time, comparing it with the historical average value, calculating the deviation rate and determining whether the calibration process needs to be triggered.

3. The BMS voltage sampling self-calibration method as claimed in claim 2, Features: The neural network model is loaded from the flash memory, and the current environmental sensor data and battery status are standardized and input into the neural network model, and the model outputs the calibration coefficient, which is as follows: Define the standardized range of environmental sensor data and battery status as 0 to 1. Use the standardized formula to convert the raw data to a uniform scale and then input it into the neural network model. Perform a feedforward operation, and the model outputs a calibration coefficient constrained to 0.95 to 1.05 to protect the battery. Record the calibration coefficient value output by the model and compare it with the preset threshold to determine whether it is within a reasonable range. If the calibration coefficient is within a reasonable range, it indicates that the model calibration process is normal. If it is not within a reasonable range, mark the abnormal handling process.

4. The BMS voltage sampling self-calibration method as claimed in claim 3, Features: The application of calibration coefficient to adjust the sampling circuit, resample and record the voltage difference and environmental parameters of each node after calibration, and encapsulate the calibration report in JSON format and upload it to the coordinator node means that after receiving the calibration coefficient, an adjustment strategy is planned according to the calibration requirements. After the circuit parameters are adjusted, the sampling voltage and current are immediately re-executed, the voltage difference between the two samples before and after the adjustment is calculated, the voltage difference is compared with the preset threshold, and the calibration is verified. The calibration coefficient, the voltage before and after the adjustment, the voltage difference, and the environmental parameters are encapsulated and fed back to the coordinator node through the communication protocol.

5. The BMS voltage sampling self-calibration method as claimed in claim 4, Features: The optimized global calibration parameters are distributed by the coordinator node to each BMS node. After receiving the parameters, the node verifies their validity, then updates the local calibration parameters and performs a new round of self-calibration, including converting the optimized global calibration parameters into binary form, and attaching a CRC checksum calculated based on the global calibration parameters, encrypting the entire data packet using the AES encryption algorithm and a pre-shared key, generating a digital signature, and sending the encrypted data packets to each node one by one through the Zigbee network unicast mode. The node listens to and receives unicast messages from the coordinator, decrypts the data packet using the shared key, and performs a CRC check. After successful verification, the calibration update process is triggered, and the new calibration parameters are used for actual data processing, and the expected output is compared with the actual output. After the update is completed, the node sends a confirmation message to the coordinator and records a detailed update log locally.

6. The BMS voltage sampling self-calibration method according to claim 5, Features: The real-time monitoring of network node status, using anomaly detection algorithms to monitor the calibration deviation of each node, marking abnormal nodes and adjusting strategies until they are restored to the original level, are as follows: The maximum allowable deviation between the calibration value and the target value is set to 5%, and the deviation is calculated after each calibration. , if any of the 10 consecutive calibrations has a deviation , the node status is marked as "abnormal". After the abnormal mark, the trust score of the node is immediately halved. If the abnormal node has no abnormal report for a week, its trust score will increase by 10% every week until it returns to the original level; in, is the actual calibration value, is the target value, is the deviation, is the maximum allowable deviation between the calibration value and the target value.

7. A BMS voltage sampling self-calibration system, based on the BMS voltage sampling self-calibration method according to any one of claims 1 to 6, Features: include, The environmental perception and deviation detection module monitors the environmental sensor data and battery status of each BMS node in real time, compares them with the preset threshold, identifies the initial deviation, and triggers the calibration process; The neural network model processing module loads the pre-trained neural network model, performs deep learning analysis on the standardized environmental data and battery status, and predicts the calibration coefficient; The calibration execution and data reporting module applies the calculated calibration coefficients to adjust the circuit, resamples to verify the effect, and encapsulates the voltage difference and environmental parameters into a JSON report and uploads it to the coordinator for further processing; In the global calibration optimization module, the coordinator collects data from each node, applies the Raft consensus algorithm to achieve data consistency, and calculates global calibration parameters through collaborative optimization strategies; Parameter distribution and update module: The optimized calibration parameters are distributed to each node by the coordinator. The node verifies and securely updates the local calibration parameters and starts a new calibration cycle to ensure that the parameters are valid in real time. The anomaly monitoring and recovery module monitors the network status in real time, uses an anomaly detection algorithm to identify deviant nodes, mark them, and adjust strategies until the node calibration performance returns to normal levels, thus maintaining the robust operation of the system.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. Features: When the processor executes the computer program, the steps of the BMS voltage sampling self-calibration method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by a processor, the steps of the BMS voltage sampling self-calibration method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Lithium iron phosphate battery BMS parameter calibration method and device based on state estimation

    CN120178045A