BMS threshold configuration upper computer control system

By using Excel table to configure protection thresholds in the upper computer control system for battery pack BMS protection threshold configuration, CAN signal data is dynamically generated and operated in the software interface, the problem of inflexible threshold setting in the prior art is solved, and the function of one-click reading and setting thresholds is realized, which improves the flexibility and scalability of the system.

CN120103746APending Publication Date: 2025-06-06JUNNENG (NINGBO) POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510068831.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The existing battery pack BMS protection threshold setting method has insufficient flexibility and scalability, and the threshold configuration cannot be changed dynamically. It is necessary to redevelop the upper computer control system, resulting in delays in delivery of new demands.

Method used

It provides a BMS threshold configuration upper computer control system, including a data conversion module, a file writing module and an interface generation module. It configures protection thresholds through Excel tables, dynamically generates CAN signal data, and operates in the software interface.

Benefits of technology

One-click reading and setting of protection thresholds is realized, and threshold descriptions and classifications are dynamically modified, without the need to redevelop the host computer system, improving flexibility and scalability and simplifying the configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120103746A_ABST
    Figure CN120103746A_ABST
Patent Text Reader

Abstract

The invention provides a BMS (Battery Management System) threshold configuration upper computer control system, which comprises a data conversion module used for acquiring threshold data of a battery pack BMS and converting the threshold data into CAN (Controller Area Network) signal data according to a threshold communication protocol rule; the file write-in module is connected with the data conversion module and used for analyzing the CAN signal data into a plurality of corresponding protection thresholds and writing the protection thresholds into an Excel table according to a threshold configuration field rule to serve as parameter template files; and the interface generation module is connected with the file write-in module and is used for reading the parameter template file to load the Excel table, traversing a sheet work table name in the Excel table to dynamically generate tab tabs, sequentially inserting the tab tabs into the data read in the Excel table and dynamically inserting all the configured data in the Excel table into a software threshold operation interface. The method has the advantages that one-key reading, inputting and changing of the protection threshold value can be achieved, and an upper computer system does not need to be developed and compiled again.
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 pack management, and in particular to a BMS threshold configuration host computer control system. Background Art

[0002] The existing battery pack BMS protection threshold setting method is generally fixedly written into the host computer management system according to the agreed communication protocol and project requirements. It has certain limitations in functionality, flexibility and scalability. It is often impossible to flexibly and dynamically change the threshold configuration according to new requirements, and technical developers are required to redevelop the host computer control system. For example, when it is necessary to add certain threshold parameters, it is necessary to contact the host computer control system manufacturer, and then pass its internal evaluation, and then spend a certain amount of time to develop new thresholds. The delivery of new requirements is often delayed due to various reasons, which has a certain negative impact on the overall final product delivery period.

[0003] In addition, these host computer control systems often require professional technicians to perform specific configurations when controlling thresholds, or require professional technicians to provide on-site support for threshold configurations, even if these configurations have been verified in other environments and require specific algorithm operation settings.

[0004] In addition, these host control systems often do not have the function of batch configuring the BMS threshold table with one click. It is necessary to click a certain protection threshold to read it, and then send the set protection threshold with a single click. It is impossible to read all protection thresholds with one click, set all protection thresholds or a certain type of protection threshold settings with one click. Moreover, these protection thresholds are generally fixedly classified in the UI layout, and the threshold text descriptions are fixed and cannot be changed. It is impossible to flexibly change the classification of the protection threshold for the application. Summary of the invention

[0005] The technical problem to be solved by the present invention is to realize one-key reading, entry and change of protection thresholds without redeveloping and compiling the host computer system. In order to overcome the defects of the above prior art (or related technology), the present invention provides a BMS threshold configuration host computer control system.

[0006] The present invention provides a BMS threshold configuration host computer control system, comprising: A data conversion module, used to obtain the threshold data of the battery pack BMS and convert the threshold data into CAN signal data according to the threshold communication protocol rules; A file writing module, connected to the data conversion module, for parsing the CAN signal data into a plurality of corresponding protection thresholds, and writing each of the protection thresholds into an Excel table as a parameter template file according to a threshold configuration field rule; An interface generation module is connected to the file writing module, and is used to read the parameter template file to load the Excel table, traverse the sheet worksheet names in the Excel table to dynamically generate tabs and insert the data read from the Excel table in sequence, and dynamically insert all configured data in the Excel table into the software threshold operation interface.

[0007] Compared with the prior art, the BMS threshold configuration host computer control system of the present application has the following advantages: In this application, it is implemented to configure the battery pack BMS protection threshold content based on the commonly used Excel office software, dynamically generate CAN signal data, and dynamically generate the relevant software threshold operation interface after loading the configuration Excel table file, so that the protection threshold can be flexibly added, modified or deleted according to the prescribed template format in the Excel table according to different scenario needs or project development stages, without the need to redevelop and compile the upper computer system, and there is a one-click read and set function for all protection thresholds, and the protection threshold description can be dynamically modified and different protection thresholds can be classified according to the Excel sheet worksheet name without affecting the software. In actual use, it provides great convenience and operability for the division of labor among different personnel.

[0008] In a possible implementation, the data conversion module includes: The first data processing unit is used to read the set threshold of the target row in the current table control of the battery pack BMS, and perform maximum and minimum value filtering, offset calculation, and precision calculation on the set threshold in sequence to obtain target data; The second data processing unit is connected to the first data processing unit and is used to send data length requirements according to different protocols, and based on the corresponding data length requirements, fill the target data segments according to the start bit and the end bit of the target data as the communication data.

[0009] In a possible implementation, the first data processing unit performs maximum and minimum value filtering on the setting threshold in such a manner that when the setting threshold is greater than a preset maximum value, the preset maximum value is used as the setting threshold; or when the setting threshold is less than a preset minimum value, the preset minimum value is used as the setting threshold.

[0010] In a possible implementation, the threshold configuration field rule based on which the file writing module is based includes multiple fields of the Excel table, namely CANID, parameter name, Chinese description, read value, set value, Motorola 0 Intel 1, serial port address, start bit, end bit, offset, precision, maximum value, minimum value, unit, and remarks.

[0011] In a possible implementation, the interface generation module uses a qtxlsx third-party control to read the parameter template file to load the Excel table.

[0012] In a possible implementation, the interface generation module uses the category name of each protection threshold as the sheet worksheet name.

[0013] In a possible implementation, a threshold modification module is further included, which is connected to the file writing module and is used for allowing a user to modify the data in the Excel table.

[0014] In a possible implementation, a modification and update module is further included, which is connected to the threshold modification module and the interface generation module respectively, and is used to control the interface generation module to re-read the data parameter template file after the Excel table is updated. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a structural principle diagram of the present invention; Figure 2 It is a schematic diagram of the working principle of the present invention; Figure 3 Excel representation of the present invention; Figure 4 A schematic diagram of the software threshold operation interface of the present invention; Figure 5 A schematic diagram of different protection thresholds dynamically generated according to the present invention; Explanation of the accompanying drawings: 1. Data conversion module; 11. First data processing unit; 12. Second data processing unit; 2. File writing module; 3. Interface generation module; 4. Threshold modification module; 5. Modification and update module. DETAILED DESCRIPTION

[0016] First, those skilled in the art should understand that these implementations are only used to explain the technical principles of the embodiments of the present application, and are not intended to limit the protection scope of the embodiments of the present application. Those skilled in the art can make adjustments to them as needed to adapt to specific application scenarios.

[0017] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0018] See also Figure 1The embodiment of the present application discloses a BMS threshold configuration host computer control system, which can be used to configure different protection thresholds for different project requirements, or to add protection threshold requirements in the same project in the later stage, or to temporarily add test protection threshold configuration requirements in application scenarios, and the threshold description needs to be easy to modify, the operation is simple, and it is convenient to forward the configuration file. Ordinary testers can also edit and use it, and the threshold protection can be generated based on a relatively common configuration file format, such as a host computer control system generated by the configuration of the conventional office software Excel file format.

[0019] Continue to see Figure 1 The BMS threshold configuration host computer control system in this application includes a data conversion module 1, a file writing module 2, an interface generation module 3, a threshold modification module 4 and a modification and update module 5, wherein the data conversion module 1 is used to obtain the threshold data of the battery pack BMS and convert the threshold data into CAN signal data according to the threshold communication protocol rules; the file writing module 2 is used to parse the CAN signal data into corresponding multiple protection thresholds, and write each protection threshold into an Excel table as a parameter template file according to the threshold configuration field rules, such as Figure 3 As shown; the interface generation module 3 is used to read the parameter template file to load the Excel table, traverse the sheet worksheet name in the Excel table to dynamically generate the tab tab and insert the data read in the Excel table in sequence, and dynamically insert the data in all configured Excel tables into the software threshold operation interface, such as Figure 4 As shown; the threshold modification module 4 is used for the user to modify the data in the Excel table; the modification and update module 5 is used to control the interface generation module 3 to re-read the data parameter template file after the Excel table is updated.

[0020] The BMS threshold configuration host control system function implementation and development plan of this application can be found in Figure 2 ,as follows: 1. Write the protection threshold setting protocol to the Excel file According to the threshold communication protocol rules, the threshold is generated into CAN signal data, and then the CAN signal data is parsed into its protection threshold, and written into an Excel table as a parameter template file for setting the protection threshold according to certain rules. In the future, additions, deletions and modifications must all use this Excel table as a template to facilitate development; among them, the Excel threshold configuration field rules of this system include CANID, parameter name, Chinese description, read value, set value, "Motorola 0 Intel 1", serial port address, start bit, end bit, offset, precision, maximum value, minimum value, unit and remarks, among which, the field description is as follows: CANID: It is used to control the CAN signal data to be sent according to the generated protection threshold. This system uses 18XX8FXX as the threshold configuration feature CANID. In this way, when the feature is detected, the received CAN signal data is analyzed for the threshold. Parameter name: the name of the threshold software parameter, which can be left unconfigured; Chinese description: The Chinese description of the protection threshold is more conducive to later maintenance and can be omitted; Read value: When reading the threshold value, the read CAN communication data will be parsed into this column; Set value: When you need to set the threshold, enter the new threshold in this column and click Generate CAN signal data; Motorola 0 Intel 1: The format of the generated CAN signal data size end; Serial port address: It is the register address in the BMS board chip, which is unique and applicable to all protocols; Start bit: the bit start bit for generating or parsing CAN signal data; End bit: the bit end bit for generating or parsing CAN signal data; Offset, precision, maximum value, minimum value: to generate or parse the value of CAN signal data, and finally used for calculation; Unit and Remarks: Description of the threshold protection, for easy understanding, optional. The above uses Excel table as the configuration format, which is sufficient. The configuration format is convenient to operate and does not require professional software for special configuration. General office staff can complete the operation.

[0021] 2. Read the threshold file Excel table to dynamically generate the threshold configuration control interface This host computer system uses qtxlsx third-party controls to read Excel tables, rather than traditional activeX controls. This way, even if the test computer does not have office software installed, it can still read and write Excel files normally. The threshold control screenshot interface generated dynamically by reading the Excel table is shown below: Figure 4 As shown, the reading process is as follows: First, load the Excel table, traverse the sheet worksheet names, and dynamically generate the corresponding software tab; secondly, read the content of the worksheet name, all the data from beginning to end, dynamically generate a table control in the corresponding tab, and insert the read table contents in sequence. The operation can be completed in sequence, and the data in all configured Excel tables are dynamically inserted into the software threshold operation interface. The general worksheet name is the category name of the protection threshold: such as temperature threshold, voltage threshold, etc. If you need to add, delete or modify the threshold description later, after operating in the Excel table, the software can reload the Excel table without the need for secondary development and compilation of the software. This meets the universality, simplicity and speed requirements of the threshold configuration of the upper computer control system.

[0022] 3. Generation and analysis of protection threshold communication data Through the above two points, the generation of the software threshold control interface from the Excel table has been completed. The user only needs to operate on the interface to complete the relevant settings of the battery protection threshold in the BMS protection board. The specific process of converting the threshold into CAN signal data is as follows: Read the set threshold in the row of the current table control, filter the set threshold by the maximum and minimum values, set the threshold to the maximum value in the rule when it is greater than the maximum value, and set the threshold to the minimum value in the rule when it is less than the minimum value, then calculate the offset, and then calculate the accuracy. At this time, the target data has been generated according to the rules, and then the data length requirements of different protocols are sent, and the data is filled according to the target data segment of the start bit and the end bit, completing the process of converting the threshold into CAN signal data; To parse the received CAN signal data, after receiving the characteristic signal, traverse the characteristic CANID or serial port address in the threshold table in the threshold control tab, find the parsing rule of the corresponding row, and parse the data according to the reverse operation of setting the threshold above. Finally, write the parsed data to the read column in the target row to complete the parsing of the CAN signal data to the protection threshold, such as Figure 5 As shown; Finally, for ease of operation, the one-click reading function traverses all tabs and data in other tables, completes one-click operation on thresholds, or performs batch operations on protection thresholds in certain tabs.

[0023] The conversion from the required protection threshold to CAN signal data is completed and the one-button operation is simple, which is also a function not available in other host computer systems.

[0024] In the description of the present application, the description with reference to the terms "one embodiment", "some embodiments", "in the present embodiment", "specific example", or "some examples" etc. means that the specific features, mechanisms, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, mechanisms, materials or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0025] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A BMS threshold configuration host computer control system, characterized in that: include: A data conversion module (1) is used to obtain threshold data of a battery pack BMS and convert the threshold data into CAN signal data according to a threshold communication protocol rule; A file writing module (2), connected to the data conversion module (1), is used to parse the CAN signal data into a corresponding plurality of protection thresholds, and write each of the protection thresholds into an Excel table as a parameter template file according to a threshold configuration field rule; An interface generation module (3) is connected to the file writing module (2) and is used to read the parameter template file to load the Excel table, traverse the sheet worksheet names in the Excel table to dynamically generate tabs and insert the data read from the Excel table in sequence, and dynamically insert all configured data in the Excel table into the software threshold operation interface.

2. The BMS threshold configuration host computer control system according to claim 1, characterized in that: The data conversion module (1) comprises: A first data processing unit (11) is used to read the set threshold of the target row in the current table control of the battery pack BMS, and perform maximum and minimum value filtering, offset calculation, and precision calculation on the set threshold in sequence to obtain target data; A second data processing unit (12) is connected to the first data processing unit (11) and is used to send data length requirements according to different protocols, and based on the corresponding data length requirements, fill the target data segment with the start bit and the end bit of the target data as the communication data.

3. The BMS threshold configuration host computer control system according to claim 2, characterized in that: The first data processing unit (11) performs maximum and minimum value filtering on the setting threshold in such a manner that when the setting threshold is greater than a preset maximum value, the preset maximum value is used as the setting threshold; or when the setting threshold is less than a preset minimum value, the preset minimum value is used as the setting threshold.

4. The BMS threshold configuration host computer control system according to claim 1, characterized in that: The threshold configuration field rule based on which the file writing module (2) is written includes multiple fields of the Excel table, namely CANID, parameter name, Chinese description, read value, set value, Motorola 0 Intel 1, serial port address, start bit, end bit, offset, precision, maximum value, minimum value, unit, and remarks.

5. The BMS threshold configuration host computer control system according to claim 1, characterized in that: The interface generation module (3) uses a qtxlsx third-party control to read the parameter template file to load the Excel table.

6. The BMS threshold configuration host computer control system according to claim 1, characterized in that: The interface generation module (3) uses the category name of each protection threshold as the sheet worksheet name.

7. The BMS threshold configuration host computer control system according to claim 1, characterized in that: It also includes a threshold modification module (4), which is connected to the file writing module (2) and is used for allowing a user to modify the data in the Excel table.

8. The BMS threshold configuration host computer control system according to claim 7, characterized in that: It also includes a modification and updating module (5), which is respectively connected to the threshold modification module (4) and the interface generation module (3) and is used to control the interface generation module (3) to re-read the data parameter template file after the Excel table is updated.