A universal energy storage BMS protocol configurable debugging device and method

CN115665018BActive Publication Date: 2026-07-03JIANGSU GUOXIA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JIANGSU GUOXIA TECH CO LTD
Filing Date
2022-10-20
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Incompatibility of BMS communication protocols between different manufacturers leads to low compatibility of general energy storage BMS test protocols, increases maintenance costs, and hinders the digitalization process of energy storage systems.

Method used

A configurable debugging device for a general energy storage BMS protocol was designed, including a device communication module, a model processing module, a level conversion module, a host computer communication module, and a host computer configuration system. It achieves fast communication and data transmission through serial port tools, and uses the model processing module to parse and decompose the communication protocol to generate visualized configuration model parameters.

Benefits of technology

It improved the efficiency of BMS protocol testing and debugging, reduced maintenance costs, and promoted the digitalization process of energy storage systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115665018B_ABST
    Figure CN115665018B_ABST
Patent Text Reader

Abstract

The application discloses a universal energy storage BMS protocol configurable debugging device and method, which comprises a device communication module, a model processing module, a level conversion module, an upper computer communication module and an upper computer configuration system; the device communication module comprises a plurality of physical interfaces and a serial port protocol chip and is used for switching various communication protocols; the model processing module is used for analyzing a model; the level conversion module is used for converting a level; the upper computer communication module is used for communication protocol transmission; and the upper computer configuration system is used for serial port communication with the debugging device. The model processing module, the upper computer communication module and the upper computer configuration system are matched and set, so that the upper computer can adopt a universal serial port tool or an upper computer configuration system to simultaneously perform data transmission by calling a serial port driver, mutual communication can be realized quickly by using a basic serial port tool, problems can be easily found and solved, the universal energy storage BMS protocol test protocol debugging efficiency is improved, and the later maintenance cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of energy storage technology, and in particular to a configurable debugging device and method for a universal energy storage BMS protocol. Background Technology

[0002] BMS, or Battery Management System, is the core of the entire energy storage system. It directly contacts the battery cells and is used to comprehensively manage the charging, discharging, and safety of the cells. This requires comprehensive monitoring of the battery cells, and the communication protocol for interfacing with the BMS is crucial.

[0003] The existing upper-level monitoring systems of different manufacturers are also incompatible with each other, and there are differences in BMS functions and communication protocols. This results in a long time to establish a BMS protocol, which reduces the efficiency of adaptability development for debugging general energy storage BMS test protocols and leads to high maintenance costs in the later stages, thus hindering the current digitalization process of energy storage. Summary of the Invention

[0004] The purpose of this invention is to provide a configurable debugging device and method for a universal energy storage BMS protocol to solve the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides the following technical solution: a configurable debugging device for a universal energy storage BMS protocol, comprising:

[0006] The device communication module contains multiple physical interfaces and a serial port protocol chip, which are used to switch between various communication protocols;

[0007] The model processing module is used to parse the distributed models;

[0008] Level conversion module, used for level conversion;

[0009] The host computer communication module is used for communication protocol transmission;

[0010] The host computer configuration system is used to communicate with the debugging device via serial port. It breaks down and displays the data sent by the debugging device, configures the model parameters in a visual form, and generates specified commands for the parameters, which are then sent to the debugging device and forwarded to the BMS.

[0011] Preferably, the plurality of physical interfaces include USB, fiber optic interfaces, etc., and the serial port protocol is composed of a cluster of protocol chips including USB protocol, CAN protocol, Modbus, etc.

[0012] Preferably, the physical interface and the serial port protocol chip are connected by isolated terminals.

[0013] Preferably, the model processing module is composed of a microcontroller.

[0014] Preferably, the host communication module is located between the debugging device and the host computer.

[0015] Preferably, the host computer configuration system consists of PC software.

[0016] Preferably, the algorithm model of the model processing module is as follows: in This represents the structural parameters of each message segment.

[0017] Preferred, x i This represents the number of bytes in the i-th segment. If this value is 0, it means that the segment has no value. There are two possibilities: one is that it is replaced by the subsequent filter parameter group; the other is that since the previous segment represents the length, the length value is determined by the value of the previous segment. i This represents the meaning of the i-th segment, indicated by 0 or 1. 0 represents the value, and 1 represents the length value. If the value is the length value, then the length of the subsequent segment will be determined based on the value of the previous segment, i.e., x. i+1 The value transmitted by the previous segment, z i This indicates the transmission mode of the i-th segment. 0 / 1, where 0 means the least significant bit is transmitted first and the most significant bit is transmitted last, and 1 means the most significant bit is transmitted first and the least significant bit is transmitted last.

[0018] Preferably, F(f1,f2,f3) represents a parameter group for the entire message. f1 represents the read / write mode, with 0 indicating read and 1 indicating write. Since the responses obtained from write and read operations may differ, different models need to be used to distinguish the message. f2 represents the number base; if it is represented as hexadecimal, it will be parsed in hexadecimal. It can also adapt to parsing different number bases. f3 represents the outer encapsulation mode; 0 indicates that there will be no further encoding or encapsulation of the outer layer, i.e., the data is parsed directly; 1 indicates that the outer layer is encapsulated in ASCII code, which requires ASCII decoding first, and then the data is decomposed into each segment. This indicates a group of filtering parameters.

[0019] This invention also provides a configurable debugging method for a general energy storage BMS protocol, including the following specific steps:

[0020] Step 1: First, based on the device's communication module, to facilitate switching between various communication protocols, the communication protocol is uploaded to the model processing module. This allows the model processing module to determine the segment parameters for each segment according to the protocol document. For example, use {(2,0,1),(3,0,1),(2,1,1),(0,0,1),(0,16,1)}, and then determine the filter group parameters. For example, (2,3,(16,0)) can be configured in the host computer configuration system;

[0021] Step 2: The parameter model is encoded in ASCII format as a String and then sent to the device through the host computer communication module;

[0022] Step 3: The device decodes the received model data into ASCII, then performs model recognition based on the String type, and converts the sent model into an actual recognizable message structure.

[0023] Step 4: Start issuing commands. After receiving the command, the debugging device forwards it to the BMS and then obtains the response data.

[0024] Step 5: Decompose the response data according to the message model, and then encapsulate each structural part in sequence, with each structure encapsulated in parentheses.

[0025] Step Six: Then, the packaged disassembled data is encoded in ASCII and transmitted to the host computer system.

[0026] Step 7: The host computer system can be a host computer configuration system or a traditional serial port tool program. It can decode the encoded ASCII code and display it visually as a String. Repeat step 4 for debugging.

[0027] The technical effects and advantages of this invention are as follows:

[0028] (1) The present invention utilizes a combination of model processing module, host computer communication module and host computer configuration system to facilitate the host computer to use general serial port tools or host computer configuration system to call serial port driver to transmit data simultaneously. Basic serial port tools can be used to quickly implement mutual communication, which is convenient for debugging and finding problems, improves the debugging efficiency of general energy storage BMS protocol test protocol, and reduces the later maintenance cost.

[0029] (2) The present invention utilizes the setting method of the model processing module to facilitate the distribution of message formats by decomposing them into models with different structures through the algorithm model. Each model consists of structural parameters of different small segments. These structural parameters can be configured and then sent to the model processing module of the lower computer. The model processing module identifies the sent message and automatically decomposes it by parsing the model file, which facilitates the comparison and modification of the protocol debugging. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the overall structure of the present invention.

[0031] Figure 2 This is a schematic diagram of the overall association of the present invention.

[0032] Figure 3 This is a flowchart of the configurable debugging method for the general energy storage BMS protocol of the present invention.

[0033] In the diagram: 1. Device communication module; 2. Model processing module; 3. Level conversion module; 4. Host computer communication module; 5. Host computer configuration system. Detailed Implementation

[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0035] This invention provides, for example Figure 1-3 The configurable debugging device and method for a general energy storage BMS protocol shown herein include:

[0036] The device communication module 1 includes multiple physical interfaces and a serial port protocol chip for switching between various communication protocols. The physical interfaces include USB, fiber optic interface, DB9, RJ-45, etc. The serial port protocols include USB, CAN, 485, 232, Modbus, and other protocol clusters. The physical interfaces and serial port protocol chips are connected by isolated terminals. DIP switches are used to switch between various communication protocols. The connection between the physical interfaces and serial port protocol chips is also isolated. The wiring can be manually configured according to the actual pin definitions. This is because BMS communication ports are generally user-defined pins. The same physical interface may have different pin definitions. This allows wiring according to the pin definitions, thus ensuring normal data communication.

[0037] Model processing module 2 is composed of a microcontroller and is used to parse the issued model. It can forward the command sent by the host computer to the BMS, receive the response, parse the model, and send it to the serial port in a disassembled manner. The data is printed directly on the serial port for easy debugging and viewing.

[0038] Level conversion module 3 is used for level conversion. Since the power supply part is powered by the 5V USB connected to the host computer, but the communication port of the lower BMS may be 3.3V or 5V, it is necessary to convert the level.

[0039] The host computer communication module 4 is used for communication protocol transmission. The host computer communication module 4 is set between the debugging device and the host computer and transmits data with the host computer via USB serial communication protocol. This allows the host computer to use a general serial port tool or host computer configuration system to transmit data simultaneously by calling the serial port driver.

[0040] The host computer configuration system 5, composed of PC software, is used for serial communication with the debugging device. It decomposes and displays the data sent by the debugging device, configures model parameters in a visual form, and generates specified commands for the parameters, which are then sent to the debugging device and forwarded to the BMS. The host computer configuration system 5 plays the role of model making in the whole device. Once the model has been finalized and distributed, the device can be used directly without the host computer configuration system 5. Basic serial port tools can be used to achieve mutual communication, which facilitates debugging and problem finding. This can effectively shorten the testing and debugging time of general energy storage BMS protocol, improve the overall development efficiency, reduce the later maintenance costs, and accelerate the formation of the energy storage digitalization process.

[0041] Model processing module 2 algorithm model is in x represents the structure parameters of each message segment. i This represents the number of bytes in the i-th segment. If this value is 0, it means that the segment has no value. There are two possibilities: one is that it is replaced by the subsequent filter parameter group; the other is that since the previous segment represents the length, the length value is determined by the value of the previous segment. i This represents the meaning of the i-th segment, indicated by 0 or 1. 0 represents the value, and 1 represents the length value. If the value is the length value, then the length of the subsequent segment will be determined based on the value of the previous segment, i.e., x. i+1 The value transmitted by the previous segment, z i This represents the transmission mode of the i-th segment, indicated by 0 or 1. 0 indicates least significant byte transmission first, followed by most significant byte; 1 indicates most significant byte transmission first, followed by least significant byte. F(f1,f2,f3) represents a parameter group for the entire message. f1 indicates the read / write mode: 0 for read, 1 for write. Since write and read operations may yield different responses, different modes need to be used to distinguish the message. f2 indicates the number base; if it's hexadecimal, it will be parsed in hexadecimal, while also adapting to parsing different number bases. f3 indicates the outer encapsulation mode: 0 indicates no further encapsulation, meaning the data is directly parsed; 1 indicates ASCII encapsulation, requiring ASCII decoding before segmentation. This represents a group of filter parameters. Considering that many protocols may not be encoded entirely according to the universal mode, some segments may be encoded in a non-standard way. For the a-th segment that requires special processing... jThis filter parameter group will replace the specified fragment in the preceding parameter, i.e., a. j =i;where a j Indicates the j-th segment that needs to be replaced, k j This represents the length in bytes of the j-th segment that needs to be replaced, where k is the length in bytes of the segment that needs to be replaced. j =x i , when i=a j ;F j (f2,f3) has the same meaning as the structural parameters of the entire message. In general, if it cannot be expressed by parameters, f3=0. In this way, the data of this segment can be directly displayed as source data, and the generated model can be used independently after being finalized once. Only the model needs to be debugged during configuration, the relevant segmentation parameters and filtering parameters need to be determined, the model can be directly sent down, and then it can be debugged on other PCs using traditional serial port tools.

[0042] Working principle of this invention:

[0043] In use, first, according to the device communication module 1, to facilitate switching between various communication protocols, the communication protocol is uploaded to the model processing module 2. Then, the model processing module 2 determines the segment parameters for each segment based on the protocol document. For example, use {(2,0,1),(3,0,1),(2,1,1),(0,0,1),(0,16,1)}, and then determine the filter group parameters. For example, (2,3,(16,0)) is configured in the host computer configuration system; the parameter model is encoded in ASCII format as a String and then sent to the device through the host computer communication module 4; the device decodes the received model data into ASCII, then identifies the model according to the String type, and converts the sent model into an actual recognizable message structure; the command is sent, and the debugging device forwards the command to the BMS after receiving it, and then gets the response data; the response data is structurally decomposed according to the message model, and then each structural part is encapsulated in sequence, with each structure encapsulated in the form of parentheses; then the encapsulated decomposed data is encoded in ASCII and transmitted to the host computer system; the host computer system can be the host computer configuration system 5, or a traditional serial port tool program, which can decode the encoded ASCII code and visualize it in String format, and repeat step four for debugging.

[0044] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A configurable debugging device for a universal energy storage BMS protocol, characterized in that, include: The device communication module (1) includes multiple physical interfaces such as USB interface, optical fiber interface, DB9 interface, and RJ-45 interface, and a serial port protocol chip that supports USB protocol, CAN protocol, 485 protocol, 232 protocol and Modbus protocol family. The physical interface and the serial port protocol chip are connected by isolated terminals, which are used to switch the various communication protocols using DIP switches and upload the communication protocols to the model processing module (2). The model processing module (2) is composed of a microcontroller and is used to parse the model sent by the host computer, decode the received model data into ASCII, and then perform model recognition according to the String type, converting the sent model into an actual recognizable message structure. The model processing module (2) determines the segment parameters of each segment, the structure parameters, and a parameter group for the entire message according to the protocol document. Then determine the filter group parameters. Configure it in the host computer configuration system (5); The model processing module (2) decomposes the response data according to the message model, and then encapsulates each structural part in sequence, with each structure encapsulated in the form of parentheses before and after; the model processing module (2) then encapsulates the encapsulated decomposed data in ASCII and transmits it to the host computer system at the same time; Level conversion module (3), used for level conversion; The host computer communication module (4) serves as a connection between the debugging device and the host computer and is used for communication protocol transmission. Also includes: The host computer configuration system (5) consists of PC software. It communicates with the model processing module (2) via serial port through the host computer communication module (4). The host computer configuration system (5) decomposes and displays the data sent by the model processing module (2), configures the model parameters in a visual form, and generates the specified command of the parameters and sends it to the model processing module (2) in the debugging device and forwards it to the BMS. The host computer configuration system (5) encodes the parameter model in ASCII format as a string and then sends it to the model processing module (2) in the debugging device through the host computer communication module (4). The algorithm model of the model processing module (2) is as follows: ,in The structural parameters represent each message segment; In the formula, Indicates the first The number of bytes in a segment. If the value is 0, it means that the segment has no value. There are two possibilities: one is that it is replaced by the following filter parameter group, and the other is that since the previous segment represents the length, the length value is determined by the value of the previous segment. Indicates the first The meaning of each segment is represented by 0 or 1; 0 represents a value, and 1 represents a length value; if the value is a length value, then the length of the next segment will be determined based on the value of the previous segment, that is... The value transmitted by the previous segment; Indicates the first The transmission mode of each segment is represented by 0 or 1; 0 means the least significant bit is transmitted first and the most significant bit is transmitted last; 1 means the most significant bit is transmitted first and the least significant bit is transmitted last. This represents a parameter group for the entire message; This indicates the read / write mode, with 0 representing read and 1 representing write. Since the responses obtained from write and read operations may differ, it is necessary to distinguish the message using different models. It indicates the number base. If it is represented as hexadecimal, it will be parsed as hexadecimal. It can also be adapted to the parsing of different number bases. The outer encapsulation mode is indicated by 0, which means that there will be no further encoding or encapsulation of the outer layer, and the data will be directly parsed. 1 means that the outer layer will be encapsulated in ASCII code, and the data needs to be decoded in ASCII first and then broken down into individual segments. This represents the filter parameter group, where This represents the sequence number of the j-th message segment that needs to be replaced. This indicates the length in bytes of the j-th message segment that needs to be replaced. This represents the radix and outer encapsulation mode of the j-th message segment that needs to be replaced.

2. A method for applying to a configurable debugging device for a universal energy storage BMS protocol as described in claim 1, characterized in that, The specific usage steps are as follows: Step 1: First, according to the device communication module (1), to facilitate switching between various communication protocols, the communication protocol is uploaded to the model processing module (2), so that the model processing module (2) determines the segment parameters of each segment, the structural parameters, and a parameter group of the entire message according to the protocol document. Then determine the filter group parameters. Configure it in the host computer configuration system (5); Step 2: The host computer configuration system (5) encodes the parameter model in ASCII format as a String, and then sends it to the model processing module (2) in the debugging device through the host computer communication module (4). Step 3: The model processing module (2) in the debugging device decodes the received model data into ASCII and then performs model recognition based on the String type, converting the sent model into an actual recognizable message structure; Step 4: The host computer configuration system (5) starts to issue commands. After receiving the commands, the model processing module (2) in the debugging device forwards them to the BMS and then obtains the response data. Step 5: The model processing module (2) decomposes the response data according to the message model, and then encapsulates each structural part in sequence, with each structure encapsulated in the form of parentheses before and after; Step 6: Model processing module (2) Then the packaged disassembled data is encoded in ASCII and transmitted to the host computer system; Step 7: The host computer system can be a host computer configuration system (5) or a traditional serial port tool program, which can decode the encoded ASCII code and display it in String format. Repeat step 4 for debugging.

Citation Information

Patent Citations

  • CN106385447A

  • CN108663628A