CN115665018A - Universal energy storage BMS protocol configurable debugging device and method - Google Patents
Universal energy storage BMS protocol configurable debugging device and method Download PDFInfo
- Publication number
- CN115665018A CN115665018A CN202211286033.8A CN202211286033A CN115665018A CN 115665018 A CN115665018 A CN 115665018A CN 202211286033 A CN202211286033 A CN 202211286033A CN 115665018 A CN115665018 A CN 115665018A
- Authority
- CN
- China
- Prior art keywords
- protocol
- upper computer
- model
- energy storage
- debugging device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a configurable debugging device and method for a universal energy storage BMS protocol, which comprises the following steps: the equipment communication module comprises a plurality of physical interfaces and a serial port protocol chip and is used for switching each communication protocol; the model processing module is used for analyzing the issued model; the level conversion module is used for converting the level; the upper computer communication module is used for communication protocol transmission; and the upper computer configuration system is used for carrying out serial port communication with the debugging device. According to the invention, by utilizing the setting mode that the model processing module, the upper computer communication module and the upper computer configuration system are matched, the upper computer can conveniently adopt a universal serial port tool or the upper computer configuration system to transfer serial port drive and simultaneously carry out data transmission, the mutual communication can be rapidly realized by using a basic serial port tool, the debugging and searching problems are convenient, the debugging efficiency of the universal energy storage BMS protocol testing protocol is improved, and the later maintenance cost is reduced.
Description
Technical Field
The invention relates to the technical field of energy storage, in particular to a configurable debugging device and method for a universal energy storage BMS protocol.
Background
The BMS, i.e., the battery management system, is the core in the entire energy storage system, and it directly contacts the battery cell to comprehensively manage the charging and discharging of the battery cell and the safety management, wherein the battery cell needs to be monitored in all directions, and the communication protocol of the BMS is very important.
The upper computer monitoring between current different producers is also incompatible, and BMS function and communication protocol content etc. exist different phenomena, lead to getting through a BMS agreement time longer basically, make the suitability development efficiency of general energy storage BMS test protocol debugging lower, lead to the maintenance cost in later stage very high, have formed the hindrance for promoting present energy storage digital process.
Disclosure of Invention
The invention aims to provide a device and a method for configurable debugging of a universal energy storage BMS protocol, which are used for solving the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: a general energy storage BMS protocol configurable debugging device, comprising:
the device communication module comprises a plurality of physical interfaces and serial port protocol chips and is used for switching each communication protocol;
the model processing module is used for analyzing the issued model;
the level conversion module is used for converting the level;
the upper computer communication module is used for communication protocol transmission;
and the upper computer configuration system is used for carrying out serial port communication with the debugging device, disassembling and displaying the data sent by the debugging device, configuring the model parameters in a visual mode, generating a specified command of the parameters, sending the specified command to the debugging device and forwarding the specified command to the BMS.
Preferably, the plurality of physical interfaces include USB, optical fiber interfaces, and the like, and the serial port protocol includes protocol cluster chips such as a USB protocol, a CAN protocol, and a Modbus.
Preferably, the physical interface and the serial port protocol chip are formed by isolated binding posts.
Preferably, the model processing module is composed of a single chip microcomputer.
Preferably, the upper communication module is disposed between the debugging device and the upper computer.
Preferably, the upper computer configuration system is composed of PC software.
Preferably, the model processing module algorithm model is WhereinRepresenting the structural parameters of each message fragment.
Preferably, x i Indicating the number of bytes of the ith fragment, and if the value is 0, indicating that the fragment has no value, two possibilities, 1 is replaced by the following set of filter parameters, and the other is that the length value is determined by the value of the preceding fragment, y i Meaning of the ith fragment, 0 or 1,0 representing a value, 1 representing a length value, if the value is a length value, the length of the following fragment will be determined according to the value of the preceding fragment, i.e. x i+1 Value transmitted for the previous segment, z i The transmission mode of the ith fragment is shown, 0/1,0 means that the lower bit is transmitted first and the upper bit is transmitted later, and 1 means that the upper bit is transmitted first and the lower bit is transmitted later.
Preferably, F (F) 1 ,f 2 ,f 3 ) Representing a parameter set for the entire message, f 1 Representing a read-write mode, 0 representing read, 1 representing write, because the response obtained by the write operation and the read operation may be different, different model differentiation needs to be carried out on the message, f 2 Representing a 16-system number, performing analysis according to the 16-system number, and adapting to the analysis of different system numbers, f 3 The outer layer packaging mode is represented, 0 represents that the outer layer is not encoded and packaged again, namely, the data is directly analyzed, 1 represents that the outer layer is subjected to ASCII code repackaging and needs to be subjected to ASCII decoding firstly and then is disassembled according to each segment,indicating the set of filtering parameters.
The invention also provides a configurable debugging method of the general energy storage BMS protocol, which comprises the following specific use steps:
the method comprises the following steps: firstly, according to the equipment communication module, each communication protocol is convenient to switch, the communication protocol is uploaded to the model processing module, the model processing module determines the segment parameter of each segment according to the protocol document, and the parameter is determinedFor example, { (2, 0, 1), (3, 0, 1), (2, 1), (0, 1), (0, 16, 1) }, and then determining the filter set parametersSuch as (2, 3, (16, 0)), configured in the upper computer configuration system;
step two: the parameter model is coded in a String form according to ASCII and then is issued to the device through an upper computer communication module;
step three: the device carries out ASCII decoding on the received model data, then carries out model identification according to String type, and converts the issued model into an actual identifiable message structure;
step four: starting to issue the command, and after receiving the command, the debugging device forwards the command to the BMS and then takes the response data;
step five: performing structure disassembly on the response data according to the message model, and then encapsulating each structure part in sequence, wherein each structure is encapsulated and separated in a front and back bracket form;
step six: then carrying out ASCII encoding on the packaged disassembled data, and simultaneously transmitting the data to an upper computer system;
step seven: the upper computer system can be an upper computer configuration system and also can be a traditional serial port tool program, the coded ASCII code can be decoded and visually displayed in a String mode, and the debugging is carried out in the fourth step repeatedly.
The invention has the technical effects and advantages that:
(1) According to the invention, by utilizing the setting mode that the model processing module, the upper computer communication module and the upper computer configuration system are matched, the upper computer can conveniently adopt a universal serial port tool or the upper computer configuration system to simultaneously transmit data by calling a serial port drive, the mutual communication can be rapidly realized by using a basic serial port tool, the debugging and searching problems are convenient, the debugging efficiency of a universal energy storage BMS protocol test protocol is improved, and the later maintenance cost is reduced;
(2) The invention utilizes the setting mode of the model processing module, facilitates the format of the message to be issued by disassembling the model into models with different structures through the algorithm model, each model is composed of different small segment structural parameters, the structural parameters can be configured so as to be sent to the model processing module of the lower computer, the model processing module identifies the sent message and automatically disassembles the message through analyzing the model file, and the comparison and modification of protocol debugging are facilitated.
Drawings
Fig. 1 is a schematic view of the overall structure of the present invention.
FIG. 2 is a schematic diagram of the overall association of the present invention.
Fig. 3 is a flowchart of a configurable debugging method of the universal energy storage BMS protocol according to the present invention.
In the figure: 1. a device communication module; 2. a model processing module; 3. a level conversion module; 4. the upper computer communication module; 5. and (5) configuring a system by the upper computer.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The invention provides a device and a method for debugging a general energy storage BMS protocol in a configurable way, which are shown in figures 1-3 and comprise the following steps of;
the device communication module 1 comprises a plurality of physical interfaces and serial port protocol chips and is used for switching each communication protocol, the physical interfaces comprise a USB (universal serial bus), an optical fiber interface, a DB9, an RJ-45 and the like, the serial port protocol comprises a USB protocol, a CAN (controller area network) protocol, a 485 protocol, a 232 protocol, a Modbus and other protocol cluster chips, the physical interfaces and the serial port protocol chips are formed by isolated binding posts, each communication protocol is switched by using a dial switch, the physical interfaces and the serial port protocol chips are formed by isolated binding posts and CAN be manually wired according to actually defined pins, the consideration is that communication ports of the BMS are generally self-defined pins, the same physical interfaces CAN have different pin definitions, and therefore the wiring CAN be realized according to the pin definitions, and the normal data communication is ensured;
the model processing module 2 is composed of a single chip microcomputer, is used for analyzing the issued model, can transmit the analyzed model to the BMS according to a command sent by an upper computer, receives a response, analyzes the analyzed model, sends the analyzed model to the serial port in a disassembling mode, directly prints the serial port, and is convenient to debug and view;
the level conversion module 3 is used for level conversion, and the power supply part adopts 5V power supply of a USB (universal serial bus) connected with an upper computer, but the level of a communication port of a BMS (battery management system) of a lower computer can be 3.3V or 5V and needs to be converted;
the upper computer communication module 4 is used for communication protocol transmission, and the upper computer communication module 4 is arranged between the debugging device and the upper computer and is used for carrying out USB serial port communication protocol transmission with the upper computer, so that the upper computer can conveniently adopt a universal serial port tool or an upper computer configuration system to simultaneously carry out data transmission by calling a serial port drive;
the upper computer configuration system 5 is composed of PC software and is used for serial port communication with the debugging device, data sent by the debugging device is disassembled and displayed, model parameters are configured in a visual mode, designated commands of the parameters are generated and sent to the debugging device and forwarded to the BMS, the upper computer configuration system 5 plays a role in model manufacturing in the whole device, when the model is shaped and issued, the device can be directly used by being separated from the upper computer configuration system 5, mutual communication can be achieved by using a basic serial port tool, problems are convenient to debug and search, the universal energy storage BMS protocol testing and debugging time can be effectively shortened, the whole development efficiency is improved, the later maintenance cost is reduced, and the energy storage digital process forming speed is promoted;
The working principle of the invention is as follows:
when in use, firstly, according to the equipment communication module 1, each communication protocol is convenient to switch, the communication protocol is uploaded to the model processing module 2, the protocol document of the model processing module 2 is ensured, the fragment parameter of each fragment is determined, and the parameter is determinedFor example, { (2, 0, 1), (3, 0, 1), (2, 1), (0, 1), (0, 16, 1) }, and then the filter set parameters are determinedSuch as (2, 3, (16, 0)), configured in the upper computer configuration system; the parameter model is coded in String form according to ASCII and then is issued to the device through the upper computer communication module 4; the device carries out ASCII decoding on the received model data, then carries out model identification according to String types, and converts the issued model into an actual identifiable message structure; starting to issue the command, and after receiving the command, the debugging device forwards the command to the BMS and then takes the response data; make a sound togetherStructural disassembly is carried out on the corresponding data according to a message model, then each structural part is packaged in sequence, and each structure is packaged and separated in a front and back bracket form; then carrying out ASCII encoding on the packaged disassembled data, and simultaneously transmitting the data to an upper computer system; the upper computer system can be an upper computer configuration system 5 and also can be a traditional serial port tool program, the coded ASCII code can be decoded and visually displayed in a String mode, and the debugging is carried out by repeating the fourth step.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments or portions thereof without departing from the spirit and scope of the invention.
Claims (10)
1. A general energy storage BMS protocol configurable debugging device comprises:
the equipment communication module (1) comprises a plurality of physical interfaces and serial port protocol chips and is used for switching each communication protocol;
the model processing module (2) is used for analyzing the issued model;
the level conversion module (3) is used for converting the level;
host computer communication module (4) for communication protocol transmission, its characterized in that still includes:
and the upper computer configuration system (5) is used for carrying out serial port communication with the debugging device, disassembling and displaying data sent by the debugging device, configuring model parameters in a visual form, generating a specified command of the parameters, sending the command to the debugging device and forwarding the command to the BMS.
2. The universal energy storage BMS protocol configurable debugging device of claim 1, wherein a plurality of the physical interfaces comprise USB, optical fiber interfaces and the like, and the serial port protocol comprises USB protocol, CAN protocol and Modbus protocol cluster chip.
3. The universal energy storage BMS protocol configurable debugging device of claim 1, wherein the physical interface and the serial protocol chip are formed by isolated binding posts.
4. The universal energy storage BMS protocol configurable debugging device of claim 1, wherein the model processing module (2) is composed of a single chip microcomputer.
5. The universal energy storage BMS protocol configurable debugging device of claim 1, wherein the upper communication module (4) is arranged between the debugging device and an upper computer.
6. The universal energy storage BMS protocol configurable debugging device of claim 1, wherein the upper computer configuration system (5) is composed of PC software.
8. The universal energy storage BMS protocol configurable debugging device of claim 7, wherein x is x i Indicating the number of bytes of the ith slice, and if the value is 0, indicating that the slice has no value, two possibilities, 1 being replaced by the following set of filter parameters, the other being because the preceding slice indicates a long sliceDegree, the length value, y, is determined by the value of the preceding segment i Meaning of the ith fragment, 0 or 1,0 representing a value, 1 representing a length value, if the value is a length value, the length of the following fragment will be determined according to the value of the preceding fragment, i.e. x i+1 Value transmitted for the previous segment, z i The transmission mode of the ith fragment is shown, 0/1,0 means that the lower bit is transmitted first and the upper bit is transmitted later, and 1 means that the upper bit is transmitted first and the lower bit is transmitted later.
9. The universal energy storage BMS protocol configurable debugging device of claim 7, wherein F (F) 1 ,f 2 ,f 3 ) One parameter set representing the entire message, f 1 Representing a read-write mode, 0 representing read, 1 representing write, because the response obtained by the write operation and the read operation may be different, different model differentiation needs to be carried out on the message, f 2 Representing a 16-system number, performing analysis according to the 16-system number, and adapting to the analysis of different system numbers, f 3 The outer layer encapsulation mode is represented, 0 represents that the outer layer is not encoded and encapsulated again, namely, the data is directly analyzed, 1 represents that the outer layer is subjected to ASCII code encapsulation again, the ASCII code is required to be firstly decoded and then disassembled according to each segment,indicating the set of filtering parameters.
10. The method for debugging the general energy storage BMS protocol in a configurable manner according to any one of claims 1 to 9, comprising the following specific steps:
the method comprises the following steps: firstly, according to the equipment communication module (1), each communication protocol is convenient to switch, the communication protocol is uploaded to the model processing module (2), the model processing module (2) determines the segment parameters of each segment according to the protocol document, and the parameters are determinedSuch as by { (2, 0)1), (3, 0, 1), (2, 1), (0, 1), (0, 16, 1) }, and then the filter set parameters were determinedSuch as (2, 3, (16, 0)), configured in the upper computer configuration system;
step two: the parameter model is coded in a String form according to ASCII and then is issued to the device through an upper computer communication module (4);
step three: the device carries out ASCII decoding on the received model data, then carries out model identification according to String type, and converts the issued model into an actual identifiable message structure;
step four: starting to issue the command, and after receiving the command, the debugging device forwards the command to the BMS and then takes the response data;
step five: performing structure disassembly on the response data according to a message model, and then encapsulating each structure part in sequence, wherein each structure is encapsulated and separated in a front and back bracket form;
step six: then carrying out ASCII encoding on the packaged disassembled data, and simultaneously transmitting the data to an upper computer system;
step seven: the upper computer system can be an upper computer configuration system (5) and also can be a traditional serial port tool program, the coded ASCII code can be decoded and visually displayed in a String mode, and the debugging is carried out in the fourth step repeatedly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211286033.8A CN115665018A (en) | 2022-10-20 | 2022-10-20 | Universal energy storage BMS protocol configurable debugging device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211286033.8A CN115665018A (en) | 2022-10-20 | 2022-10-20 | Universal energy storage BMS protocol configurable debugging device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115665018A true CN115665018A (en) | 2023-01-31 |
Family
ID=84990205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211286033.8A Pending CN115665018A (en) | 2022-10-20 | 2022-10-20 | Universal energy storage BMS protocol configurable debugging device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115665018A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116980499A (en) * | 2023-08-10 | 2023-10-31 | 湖南银杏电池智能管理技术有限公司 | BMS serial port data transmission method based on Modbus communication protocol |
-
2022
- 2022-10-20 CN CN202211286033.8A patent/CN115665018A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116980499A (en) * | 2023-08-10 | 2023-10-31 | 湖南银杏电池智能管理技术有限公司 | BMS serial port data transmission method based on Modbus communication protocol |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103888299B (en) | Working method of intelligent network monitoring system | |
CN115665018A (en) | Universal energy storage BMS protocol configurable debugging device and method | |
CN102752166A (en) | Debugging method, chip, single board and system | |
CN106899498A (en) | Embedded industry intelligent gateway and its real-time data acquisition method based on SoC | |
CN107992008A (en) | A kind of industry InterWorking Equipment and its application method | |
CN106598889A (en) | SATA (Serial Advanced Technology Attachment) master controller based on FPGA (Field Programmable Gate Array) sandwich plate | |
CN110162446A (en) | A kind of backboard hard disk ignition method based on BMC | |
CN111131933B (en) | FC dual-redundancy switch configuration management device and configuration management method | |
CN101898339A (en) | Counting alarm electric screw driver | |
CN106291329B (en) | A kind of test macro with the automatic detection distant function of distribution terminal three | |
CN202111737U (en) | Network management enhanced E1/ETH protocol converter | |
CN111145843A (en) | Multi-center integration platform and method based on medical big data | |
CN106814646A (en) | Method for controlling manufacturing machine system and apparatus for controlling manufacturing machine system | |
CN105242603B (en) | A kind of electric power acquisition terminal and its debugging upgrade method with USB OTG interfaces | |
CN105677505B (en) | A method of based on serial interface management IPMI | |
CN109782722A (en) | One kind is towards the quick processing system of industrial scene large-scale production line multidimensional data | |
CN104199339B (en) | Portable first-line bus temperature monitoring instrument and achievement method thereof | |
CN106502911A (en) | Multiple terminals access device | |
CN106647515A (en) | Handheld virtual loop tester | |
CN207319048U (en) | Pipeline stall positions and remote alarming device | |
CN202854647U (en) | Zero-terminal machine | |
CN102866732A (en) | Zero terminal | |
CN207557362U (en) | A kind of full production cycle automatic test device of distribution terminal | |
CN207266056U (en) | Ethernet switch | |
US6792602B2 (en) | Method and device of controlling external system parameters using ATA side band |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Floor 1, No. 588 Jinhui Road, Huishan District, Wuxi City, Jiangsu Province, 214000 Applicant after: Jiangsu Guoxia Technology Co.,Ltd. Address before: 201500 No.18, Lane 65, Huandong 1st Road, Fengjing town, Jinshan District, Shanghai (Fengsheng economic community) Applicant before: Shanghai Guoxia Technology Co.,Ltd. |