Method for reading BMS (Battery Management System) information in battery management system and related equipment

By constructing and sending customized BMS data requests, analyzing and saving the BMS information of the battery management system, the problem of inflexible information collection in the existing technology is solved, and the flexibility of user experience and information acquisition is improved.

CN119647432APending Publication Date: 2025-03-18东莞日升质新能源科技有限公司

Patent Information

Application Number
CN202411706271.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

When the existing battery management system collects BMS information, batch parameters are fixed, resulting in parameters that are not concerned by users, affecting the user experience.

Method used

By constructing a BMS data request based on the preset instruction frame format, sending a request to the battery management system to obtain the specified BMS information combination, receiving and analyzing the response feedback, and writing the BMS information combination into the Excel table.

Benefits of technology

It realizes the combination of obtaining different BMS information according to different function codes, improves the flexibility of the battery management system to obtain BMS information, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119647432A_ABST
    Figure CN119647432A_ABST
Patent Text Reader

Abstract

The invention provides a method and related equipment for reading BMS information in a battery management system, and the method comprises the steps: building a BMS data request based on a preset instruction frame format, and the instruction frame format comprises a function code which declares that the battery management system needs to execute an operation; sending the BMS data request to the battery management system, so that the battery management system executes an operation corresponding to the function code to obtain a specified BMS information combination; receiving response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination; the response feedback is analyzed, and the BMS information combination is obtained; and writing the BMS information combination into a preset Exce l table based on a time index. According to the battery management system, different BMS information combinations can be obtained based on different function codes in the request, and the flexibility of obtaining the BMS information by the battery management system is improved.
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, and in particular to a method for reading BMS information in a battery management system and related equipment. Background Art

[0002] The battery management system (BMS) is a management system for batteries or battery packs. Its function is to monitor the voltage, current, and temperature of the battery or battery pack in real time, and also perform leakage detection, thermal management, battery balancing management, alarm reminders, calculate the remaining capacity and discharge power, and use algorithms to control the charger to charge with the optimal current according to the voltage, current, and temperature of the battery or battery pack. The existing battery management system basically has fixed batch parameters collected each time when collecting BMS information, which results in some parameters in the BMS information that may not be what the user wants to see, but are also displayed after collection, thus affecting the user's reading of the effective information in the BMS information, and thus affecting the user experience.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] The present invention provides a method for reading BMS information in a battery management system and related equipment. The main purpose of the present invention is to solve the technical problems mentioned in the background technology of the prior art.

[0005] A first aspect of the present invention provides a method for reading BMS information in a battery management system, comprising:

[0006] A BMS data request is constructed based on a preset command frame format, wherein the command frame format includes a function code declaring an operation to be performed by the battery management system;

[0007] Sending the BMS data request to the battery management system so that the battery management system executes the operation corresponding to the function code to obtain the specified BMS information combination;

[0008] Receiving a response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination;

[0009] Parsing the response feedback to obtain the BMS information combination;

[0010] The BMS information combination is written into a preset Excel table based on the time index.

[0011] In an optional implementation of the first aspect of the present invention, the constructing a BMS data request based on a preset instruction frame format includes:

[0012] Obtaining idle character data in the instruction frame format;

[0013] Acquire first starting flag data of the instruction frame format;

[0014] Obtaining BMS address data of the battery management system;

[0015] Obtain a first communication protocol version number of the instruction frame format;

[0016] Obtain first frame length declaration data of the instruction frame format;

[0017] Obtaining a function code for the battery management system to perform an operation;

[0018] Get the authentication information package;

[0019] Obtaining a first check code in the instruction frame format;

[0020] The idle character data, the first start mark data, the BMS address data, the first communication protocol version number, the first frame length declaration data, the function code, the identity authentication information packet and the first check code are assembled in sequence to obtain a BMS data request.

[0021] In an optional implementation of the first aspect of the present invention, the response feedback constructed based on the preset response frame format and the BMS information combination includes:

[0022] Acquire second start flag data of the response frame format;

[0023] Obtaining BMS address data of the battery management system;

[0024] Obtain a second communication protocol version number of the response frame format;

[0025] Acquire second length declaration data in the response frame format;

[0026] Obtaining a function code for the battery management system to perform an operation;

[0027] Acquire the BMS information combination;

[0028] Obtain a second check code in the response frame format;

[0029] The second start flag data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code, the BMS information combination and the second check code are assembled in sequence to obtain a response feedback.

[0030] In an optional implementation manner of the first aspect of the present invention, parsing the response feedback to obtain the BMS information combination includes:

[0031] Based on the byte length occupied by the second check code, obtaining the second check code from the end of the response feedback;

[0032] Performing a complement operation of the checksum byte accumulation sum on the second start flag data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code and the BMS information combination to obtain a calculated check code;

[0033] Comparing the calculated check code with the second check code;

[0034] If the calculated verification code and the second verification code are compared and passed, the BMS information combination is obtained in the response feedback before the second verification code based on the byte length occupied by the BMS information combination.

[0035] In an optional implementation manner of the first aspect of the present invention, writing the BMS information combination into a preset Excel table based on the time index includes:

[0036] Obtaining various parameters in the BMS information combination based on the function code;

[0037] Generate a standardized data filling format for each parameter in the preset Excel table based on each parameter;

[0038] Analyze and obtain various data of various parameters from the BMS information combination;

[0039] Fill in the data corresponding to each item in the data grid of each parameter in the Excel table.

[0040] In an optional implementation of the first aspect of the present invention, if the calculated check code and the second check code are compared and passed, then after obtaining the BMS information combination in the response feedback before the second check code based on the byte length occupied by the BMS information combination, the method further includes:

[0041] Obtaining the second communication protocol version number from the response feedback based on the starting byte position of the second communication protocol version number in the response feedback and the byte length occupied by the second communication protocol version number in the response feedback;

[0042] Comparing the second communication protocol version number with the first communication protocol version number;

[0043] If the second communication protocol version number is inconsistent with the first communication protocol version number, the first communication protocol version number in the instruction frame format is updated.

[0044] In an optional implementation of the first aspect of the present invention, the BMS information combination includes battery status information, current value, number of battery cell strings, battery cell voltage, balance state, number of battery cell temperature sensors, battery cell temperature, number of MOSFET temperature sensors, MOSFET temperature, number of cycles, remaining power, total capacity and switch state;

[0045] Or the BMS information combination includes battery status information, current value, maximum voltage, minimum voltage, total voltage, maximum temperature, minimum temperature, number of cycles, remaining power, total capacity and switch status.

[0046] A second aspect of the present invention provides a device for reading BMS information in a battery management system, the device for reading BMS information in a battery management system comprising:

[0047] A data request building module, used to build a BMS data request based on a preset instruction frame format, wherein the instruction frame format includes a function code that declares that the battery management system needs to perform an operation;

[0048] A request sending module, used for sending the BMS data request to the battery management system, so that the battery management system executes the operation corresponding to the function code to obtain the specified BMS information combination;

[0049] A feedback receiving module, used for receiving a response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination;

[0050] A feedback parsing module, used for parsing the response feedback to obtain the BMS information combination;

[0051] The data storage module is used to write the BMS information combination into a preset Excel table based on the time index.

[0052] A third aspect of the present invention provides a device for reading BMS information in a battery management system, the device for reading BMS information in a battery management system comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line;

[0053] The at least one processor calls the instruction in the memory so that the device for reading BMS information in a battery management system executes the method for reading BMS information in a battery management system as described in any one of the first aspects of the present invention.

[0054] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for reading BMS information in a battery management system as described in any one of the first aspect of the present invention is implemented.

[0055] Beneficial effect: The present invention provides a method and related equipment for reading BMS information in a battery management system, the method comprising constructing a BMS data request based on a preset instruction frame format, wherein the instruction frame format includes a function code that declares that the battery management system needs to perform an operation; sending the BMS data request to the battery management system so that the battery management system performs the operation corresponding to the function code to obtain a specified BMS information combination; receiving a response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination; parsing the response feedback to obtain the BMS information combination; and writing the BMS information combination into a preset Excel table based on a time index. The battery management system of the present invention can obtain different BMS information combinations based on different function codes in the request, thereby improving the flexibility of the battery management system in obtaining BMS information. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A schematic diagram of an embodiment of a method for reading BMS information in a battery management system according to the present invention;

[0057] Figure 2 A schematic diagram of an embodiment of an instruction frame format of the present invention;

[0058] Figure 3 A schematic diagram of an embodiment of a response frame format of the present invention;

[0059] Figure 4 A schematic diagram of the module composition of a device for reading BMS information in a battery management system according to the present invention;

[0060] Figure 5 The present invention is a schematic diagram of an embodiment of a device for reading BMS information in a battery management system. DETAILED DESCRIPTION

[0061] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0062] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 In a first aspect, the present invention provides a method for reading BMS information in a battery management system. The execution subject of the method includes but is not limited to a host computer. The method for reading BMS information in a battery management system includes:

[0063] S100, constructing a BMS data request based on a preset instruction frame format, wherein the instruction frame format includes a function code that declares that the battery management system needs to perform an operation; in the present invention, a function code library is built into the battery management system, and each function code in the function code library has a BMS information combination bound thereto, and different BMS information combinations have different acquisition parameters. The present invention embeds a function code in the request, so that the battery management system can acquire the corresponding BMS information combination after reading the function code.

[0064] In an optional implementation manner of the present invention, the specific structure of the instruction frame format may be as follows: Figure 2 As shown in the figure, IDLE is an idle symbol, which can be considered as a frame with all "1". "SO I" is a start mark, which is fixed to 0x7F; "ADD" is the BMS address, which is fixed to 0x10; "VER" is the protocol version number, and the current version is 0x02; "LEN" is a length declaration, which is used to declare the length of the frame data, counted in bytes, including the sum of the lengths of SO I, ADD, VER, LEN, FUN, MSG, and CKS; "FUN" is a function code, which is used to declare the operation that BMS is going to perform (or has performed); "MSG" is an information packet, and its length is not fixed. It can transfer data, or transfer execution results, or cancel this field; "CKS" is a check code, which is used by the receiving end to perform a "checksum" check on the content of this transmission (including SO I, ADD, VER, LEN, FUN, and MSG). "Checksum" is the complement of the accumulated sum of each byte.

[0065] In an optional implementation of the first aspect of the present invention, the BMS data request constructed based on a preset instruction frame format includes: obtaining idle character data of the instruction frame format; obtaining first start mark data of the instruction frame format; obtaining BMS address data of the battery management system, the BMS address data is used to determine which specific device or equipment of the battery management system acquires information; obtaining the first communication protocol version number of the instruction frame format; obtaining the first frame length declaration data of the instruction frame format; obtaining the function code of the battery management system to perform the operation; obtaining an identity authentication information packet, the identity authentication information packet is used by the battery management system to verify the identity information of the execution subject of the method of the present invention (such as a host computer); obtaining the first check code of the instruction frame format; assembling the idle character data, the first start mark data, the BMS address data, the first communication protocol version number, the first frame length declaration data, the function code, the identity authentication information packet and the first check code in sequence to obtain a BMS data request.

[0066] S200, sending the BMS data request to the battery management system, so that the battery management system executes the operation corresponding to the function code to obtain the specified BMS information combination; as mentioned in step S100 of the present invention, in the present invention, different function codes correspond to different BMS information combinations, so that the battery management system only executes the acquisition of various parameters corresponding to the BMS information combination.

[0067] In an optional implementation of the first aspect of the present invention, the BMS information combination includes battery status information, current value, number of battery cell strings, battery cell voltage, balance state, number of battery cell temperature sensors, battery cell temperature, number of MOSFET temperature sensors, MOSFET temperature, number of cycles, remaining power, total capacity and switch state; or the BMS information combination includes battery status information, current value, maximum voltage, minimum voltage, total voltage, maximum temperature, minimum temperature, number of cycles, remaining power, total capacity and switch state.

[0068] In the present invention, "battery status information" is composed of 4 bytes: the first byte: Bit0: charging flag, set to 1 indicates that charging current is detected, Bit1: charging overcurrent flag, set to 1 indicates that charging overcurrent is detected, discharge flag, set to 1 indicates that effective discharge current is detected, Bit5: discharge overcurrent flag, set to 1 indicates that discharge overcurrent occurs, Bit6: discharge short circuit flag, set to 1 indicates that discharge short circuit occurs; the second byte: Bit0: battery cell detection line open circuit flag, set to 1 indicates that the battery cell detection line is open circuited, Bit1: temperature detection line open circuit flag, set to 1 indicates that the temperature detection line is open circuited, Bit4: battery cell overvoltage flag, set to 1 indicates that the battery cell is overvoltage, Bit5: battery cell undervoltage flag, set to 1 indicates that the battery cell is undervoltage. Bit6: Total pressure is too high flag, set to 1 indicates that the total pressure of the battery pack is too high, Bit7: Total pressure is too low flag, set to 1 indicates that the total pressure of the battery pack is too low; 3rd byte: Bit2: Battery cell temperature exceeds the upper limit of charging temperature, Bit3: Battery cell temperature exceeds the upper limit of discharge temperature, Bit4: Battery cell temperature is lower than the lower limit of charging temperature, Bit5: Battery cell temperature is lower than the lower limit of discharge temperature, Bit6: Battery cell temperature difference exceeds the upper limit of charging temperature, Bit7: Battery cell temperature difference exceeds the upper limit of discharge temperature, 4th byte, reserved.

[0069] "Current value" is a 16-bit integer (i nt16_t), the unit is 0.1A, charging is positive, and discharging is negative. "Number of cell strings" is an 8-bit unsigned integer (ui nt8_t), indicating the number of cells in series currently managed by the BMS. "Cell voltage" is an array of 16-bit unsigned integers, and the number of elements in the array is specified by "Number of cell strings". The unit represented by the array elements is mV. The length of "Balanced state" is related to "Number of cell strings". If "Number of cell strings" is within 8 strings (inclusive), the length of "Balanced state" is 1 byte. If "Number of cell strings" is within 16 strings (inclusive), the length of "Balanced state" is 2 bytes. If "Number of cell strings" is within 24 strings (inclusive), the length of "Balanced state" is 3 bytes. If "Number of cell strings" is within 32 strings (inclusive), the length of "Balanced state" is 4 bytes.

[0070] "Number of battery cell temperature sensors" is an 8-bit unsigned integer (int8_t), indicating the number of battery cell temperature sensors currently managed by the BMS. "Battery cell temperature" is an array of 8-bit integers (int8_t), and the number of elements in the array is specified by "Number of temperature sensors". The unit represented by the array elements is ℃. "MOSFET temperature sensor number" is an 8-bit unsigned integer (ui nt8_t), which indicates the number of "MOSFET temperature sensors currently managed by the BMS. "MOSFET temperature" is an array of 8-bit integers (i nt8_t), and the number of elements in the array is specified by the "temperature sensor number". The unit represented by the array elements is ℃. "Number of cycles" is a 16-bit unsigned integer (ui nt16_t), which indicates the number of charge and discharge times the current battery pack has gone through. "Remaining power" is a 16-bit unsigned integer (ui nt16_t), and the unit is 0.1AH. "Total capacity" is a 16-bit unsigned integer (ui nt16_t), and the unit is 0.1AH. "Switch status" is an 8-bit unsigned integer (ui nt8_t), and the meaning of each bit is as follows: Bit6: Charging switch status, 1 indicates that the switch is closed and charging is allowed. Bit7: Discharging switch status, 1 indicates that the switch is closed and discharging is allowed.

[0071] S300, receiving a response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination; in the present invention, the response frame format and the instruction frame format adopt a similar data structure, and the difference between the response frame format and the instruction frame format mainly lies in that the header of the response frame format does not include an idle character, and the information packet in the response frame format is different from the information packet in the instruction frame format.

[0072] In an optional implementation manner of the present invention, the specific structure of the response frame format may be as follows: Figure 3 As shown in the figure, "SOI" is the start mark, which is fixed to 0x7F; "ADD" is the BMS address, which is fixed to 0x10; "VER" is the protocol version number, and the current version is 0x02; "LEN" is the length declaration, which is used to declare the frame data length, counted in bytes, including the sum of the lengths of SO I, ADD, VER, LEN, FUN, MSG, and CKS; "FUN" is the function code, which is used to declare the operation that BMS is going to perform (or has performed); "MSG" is the information packet, and the length is not fixed. Data can be transmitted, execution results can be transmitted, or this field can be cancelled; "CKS" is the check code, which is used to perform "checksum" verification on the content of this transmission (including SO I, ADD, VER, LEN, FUN, MSG). "Checksum" is the complement of the accumulated sum of each byte.

[0073] In an optional implementation of the first aspect of the present invention, the response feedback constructed based on the preset response frame format and the BMS information combination includes: obtaining the second starting flag data of the response frame format; obtaining the BMS address data of the battery management system; obtaining the second communication protocol version number of the response frame format; obtaining the second length declaration data of the response frame format; obtaining the function code of the battery management system to perform the operation; obtaining the BMS information combination; obtaining the second check code of the response frame format; assembling the second starting flag data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code, the BMS information combination and the second check code in sequence to obtain the response feedback.

[0074] In the present invention, the above response feedback is that the battery management system can identify the situation in which it is requested to respond. Of course, in the present invention, the battery management system may also have no response or wrong response. Specifically, no response: any command frame beyond the scope described in this article (SO I error, ADD error, LEN error, FUN does not exist, MSG and FUN are within the definition range, CKS error) will cause no response. No response is received if the upper computer does not receive data return after 50 milliseconds of issuing an instruction. Wrong response: If the "FUN" or "MSG" sent by the upper computer is parsed incorrectly, "FUN" in the response frame returned by the BMS is represented by 0x00, and the "MSG" field is cancelled. In the case of a response, when the host sends an instruction to require the lower computer to execute something, the lower computer returns a response indicating "correct execution" or "error execution" (not return data), and the length is declared as 0x07. Correct execution: the response content is (ui nt8_t) 0x01, and the execution error: the response content is (ui nt8_t) 0x02. The "instruction" in the present invention mainly refers to the "FUN", the "parameter" mainly refers to the "MSG" transmitted by the host computer to the BMS system, and the response refers to the "MSG" sent back by the BMS system to the host computer.

[0075] S400, parsing the response feedback to obtain the BMS information combination; in an optional implementation of the first aspect of the present invention, parsing the response feedback to obtain the BMS information combination includes: obtaining the second check code from the end of the response feedback based on the byte length occupied by the second check code; performing a checksum byte cumulative sum complement operation on the second start flag data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code and the BMS information combination to obtain a calculated check code; comparing the calculated check code with the second check code; if the calculated check code and the second check code are compared successfully, obtaining the BMS information combination in the response feedback before the second check code based on the byte length occupied by the BMS information combination.

[0076] In the present invention, an exemplary communication between a host computer and the battery management system may be as follows:

[0077] The host computer sends: 7F 10 02 06 12 57.

[0078] 7F is SO I; 10 is ADD; 02 is VER; 06 is LEN; 12 is FUN; 57 is CKS.

[0079] BMS returns: 7F 10 02 3B 12 01 00 00 00 10 00 10A6

[0080] 0D EB 0D C3 0D B9 0D C2 0D F6 0D EA 0D E5 0D 05

[0081] 0E E7 0D E5 0D EC 0D 05 0E F4 0D E2 0D E4 0D 00

[0082] 00 02 11 12 01 11 03 00 78 00C8 00C0 E5.

[0083] 7F is SO I; 10 is ADD; 02 is VER; 3B is LEN; 12 is FUN.

[0084] 01 00 00 00 is the battery pack status flag. Corresponding to each bit: charging current is detected.

[0085] 10 00 means the charging current is 1.0A.

[0086] 10 indicates a battery pack with 16 strings.

[0087] The voltage of the first cell of A6 0D is 3494mV.

[0088] The voltage of the second battery cell of EB 0D is 3563mV.

[0089] The voltage of the third battery cell of C3 0D is 3523mV.

[0090] The voltage of the fourth battery cell of B9 0D is 3513mV.

[0091] The voltage of the fifth battery cell C2 0D is 3522mV.

[0092] The voltage of the sixth cell of F6 0D is 3574mV.

[0093] The voltage of the seventh battery cell is 3562mV.

[0094] The voltage of the eighth cell of E5 0D is 3557mV.

[0095] The voltage of the ninth battery cell of 05 0E is 3589mV.

[0096] The voltage of the tenth battery cell of E7 0D is 3559mV.

[0097] The voltage of the eleventh cell of E5 0D is 3557mV.

[0098] The voltage of the twelfth cell of EC 0D is 3564mV.

[0099] The voltage of the thirteenth battery cell of 05 0E is 3589mV.

[0100] The voltage of the fourteenth cell of F4 0D is 3572mV.

[0101] The voltage of the fifteenth battery cell of E2 0D is 3554mV.

[0102] The voltage of the sixteenth battery cell of E4 0D is 3556mV.

[0103] 00 00Balancing is not enabled.

[0104] 02 means there are two battery cell temperature sensors.

[0105] 11 12 The temperatures detected by the two battery temperature sensors are 17℃ and 18℃ respectively. 01 means there is a MOSFET temperature sensor.

[0106] 11The temperature detected by the MOSFET temperature sensor is 17℃.

[0107] 03 00 The battery pack has undergone 3 charge and discharge cycles.

[0108] 78 00Remaining power 12AH.

[0109] C8 00 total capacity 20AH.

[0110] C0 means that both the charging and discharging MOSFETs are turned on.

[0111] E5 checksum.

[0112] In an optional implementation of the first aspect of the present invention, if the calculated check code and the second check code are compared and passed, then after obtaining the BMS information combination in the response feedback before the second check code based on the byte length occupied by the BMS information combination, the method further includes:

[0113] Based on the starting byte position of the second communication protocol version number in the response feedback and the byte length of the second communication protocol version number in the response feedback, the second communication protocol version number is obtained from the response feedback; the second communication protocol version number is compared with the first communication protocol version number; if the second communication protocol version number is inconsistent with the first communication protocol version number, the first communication protocol version number in the instruction frame format is updated. In the present invention, in order to ensure the reliability of communication, the communication protocol of the battery management system will be updated regularly, and the new version of the communication protocol can be compatible with the historical version of the communication protocol. When the host computer side finds that its own communication protocol version is lower than the communication protocol on the battery management system side, the communication protocol version on the host computer side will be updated.

[0114] S500, writing the BMS information combination into a preset Excel table based on a time index. In an optional implementation of the first aspect of the present invention, writing the BMS information combination into a preset Excel table based on a time index includes: obtaining various parameters in the BMS information combination based on the function code; generating standardized data filling formats for each parameter in the preset Excel table based on each parameter; parsing each data of each parameter from the BMS information combination; and filling each data into the data grid of each parameter in the Excel table. In the present invention, the BMS information combination includes version number, number of battery strings, current, remaining capacity, total capacity, number of cycles, cell temperature, MOS tube element temperature, cell balance state, and battery state (charging / discharging / overcurrent / short circuit / overtemperature / open circuit / high temperature / low temperature) information, etc. After the host computer reads the BMS information combination, the BMS information combination is written into the Excel table document according to the time point, and the BMS information is read-written in a loop, and finally the BMS historical data is formed.

[0115] In the present invention, a standardized Excel table data writing order can be as follows:

[0116] (1) Year, month, day, hour, minute, and second.

[0117] (2) Version number, total current, number of battery strings, number of cell sensors, and number of MOS sensors.

[0118] (3) Battery 01 voltage - Battery 16 voltage.

[0119] (4) Temperature 1-Temperature 4, MOS temperature 1, MOS temperature 2.

[0120] (5) Number of cycles, remaining capacity, total capacity, SOC switch status value, and equilibrium value.

[0121] (6) Status byte 1-status byte 3.

[0122] (7) Charging status, charging overcurrent, discharging status, discharging overcurrent, discharging short circuit, cell open circuit, temperature-sensing open circuit, cell 2.8 overvoltage, cell undervoltage, total voltage too high, total voltage too low, charging high temperature, discharging high temperature, charging low temperature, discharging low temperature, 2.9 charging temperature difference protection, discharging temperature difference protection, charging switch, discharging switch, reserved bytes.

[0123] In general, the method of reading BMS information in a battery management system of the present invention can be compatible with the RS485 communication protocol to connect to the battery management system and read various parameters and protection information in the battery management system; parse various parameters and protection information of the BMS, and display them in real time on the upper computer interface; the upper computer interface generates an Excel table with a time index and saves various parameters and protection information of the BMS, which is convenient for later maintenance to find the cause of the fault.

[0124] See also Figure 4 According to a second aspect of the present invention, there is provided a device for reading BMS information in a battery management system, the device for reading BMS information in a battery management system comprising:

[0125] A data request building module 10 is used to build a BMS data request based on a preset instruction frame format, wherein the instruction frame format includes a function code that declares that the battery management system needs to perform an operation;

[0126] A request sending module 20, configured to send the BMS data request to the battery management system, so that the battery management system executes the operation corresponding to the function code to obtain a specified BMS information combination;

[0127] A feedback receiving module 30, configured to receive a response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination;

[0128] A feedback analysis module 40, used to analyze the response feedback to obtain the BMS information combination;

[0129] The data storage module 50 is used to write the BMS information combination into a preset Excel table based on a time index.

[0130] In an optional implementation of the second aspect of the present invention, the data request construction module includes:

[0131] An idle character acquisition unit, used for acquiring idle character data in the instruction frame format;

[0132] A first start flag acquisition unit, used for acquiring first start flag data in the instruction frame format;

[0133] A first BMS address acquisition unit, used to acquire BMS address data of the battery management system;

[0134] A first communication protocol version number acquisition unit, used to acquire the first communication protocol version number of the instruction frame format;

[0135] A first frame length declaration acquisition unit, used for acquiring first frame length declaration data in the instruction frame format;

[0136] A first function code acquisition unit, used to acquire a function code for an operation to be performed by the battery management system;

[0137] An identity authentication information acquisition unit, used to acquire an identity authentication information package;

[0138] A first check code acquisition unit, used to acquire a first check code in the instruction frame format;

[0139] A data request acquisition unit is used to assemble the idle character data, the first start mark data, the BMS address data, the first communication protocol version number, the first frame length declaration data, the function code, the identity authentication information packet and the first check code in sequence to obtain a BMS data request.

[0140] In an optional implementation of the second aspect of the present invention, the response feedback constructed based on the preset response frame format and the BMS information combination includes:

[0141] A second start flag acquisition unit, used to acquire second start flag data in the response frame format;

[0142] A second BMS address acquisition unit, used to acquire BMS address data of the battery management system;

[0143] A second communication protocol version number acquisition unit, used to acquire the second communication protocol version number of the response frame format;

[0144] A second frame length declaration obtaining unit, used for obtaining second length declaration data in the response frame format;

[0145] A second function code acquisition unit, used to acquire a function code for the battery management system to perform an operation;

[0146] A BMS information combination acquiring unit, used to acquire the BMS information combination;

[0147] A second check code acquisition unit, used to acquire a second check code in the response frame format;

[0148] The response feedback acquisition unit is used to assemble the second start flag data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code, the BMS information combination and the second check code in sequence to obtain the response feedback.

[0149] In an optional implementation of the second aspect of the present invention, the feedback parsing module includes:

[0150] A second check code parsing unit, configured to obtain the second check code from the end of the response feedback based on the byte length occupied by the second check code;

[0151] a calculation check code acquisition unit, configured to perform a complement operation of the checksum byte accumulation sum on the second start mark data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code and the BMS information combination to obtain a calculation check code;

[0152] A check code comparison unit, used for comparing the calculated check code with the second check code;

[0153] A BMS information combination parsing unit is configured to obtain the BMS information combination in the response feedback before the second check code based on the byte length occupied by the BMS information combination if the calculated check code and the second check code are compared successfully.

[0154] In an optional implementation of the second aspect of the present invention, the data storage module includes:

[0155] An information combination parameter acquisition unit, used to obtain various parameters in the BMS information combination based on the function code;

[0156] A table normalization unit, used for generating a normalized data filling format for each parameter in the preset Excel table based on each parameter;

[0157] A parameter data acquisition unit, used for parsing and obtaining various data of various parameters from the BMS information combination;

[0158] The parameter data writing unit is used to fill in the data cells of each parameter in the Excel table.

[0159] In an optional implementation manner of the second aspect of the present invention, the feedback parsing module further includes:

[0160] a protocol version number parsing unit, configured to obtain the second communication protocol version number from the response feedback based on a starting byte position of the second communication protocol version number in the response feedback and a byte length occupied by the second communication protocol version number in the response feedback;

[0161] A version number comparison unit, used to compare the second communication protocol version number with the first communication protocol version number;

[0162] A protocol version number updating unit is used to update the first communication protocol version number in the instruction frame format if the second communication protocol version number is inconsistent with the first communication protocol version number.

[0163] In an optional implementation of the second aspect of the present invention, the BMS information combination includes battery status information, current value, number of battery cell strings, battery cell voltage, balance state, number of battery cell temperature sensors, battery cell temperature, number of MOSFET temperature sensors, MOSFET temperature, number of cycles, remaining power, total capacity and switch state;

[0164] Or the BMS information combination includes battery status information, current value, maximum voltage, minimum voltage, total voltage, maximum temperature, minimum temperature, number of cycles, remaining power, total capacity and switch status.

[0165] Figure 51 is a schematic diagram of the structure of a device for reading BMS information in a battery management system provided by an embodiment of the present invention. The device for reading BMS information in a battery management system may have relatively large differences due to different configurations or performances, and may include one or more processors 60 (centra l processing i ng un its, CPU) (for example, one or more processors) and a memory 70, and one or more storage media 80 for storing application programs or data (for example, one or more mass storage devices). Among them, the memory and the storage medium may be short-term storage or permanent storage. The program stored in the storage medium may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the device for reading BMS information in the battery management system. Furthermore, the processor may be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the device for reading BMS information in the battery management system.

[0166] The device for reading BMS information in the battery management system of the present invention may also include one or more power supplies 90, one or more wired or wireless network interfaces 100, one or more input and output interfaces 110, and / or one or more operating systems, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It can be understood by those skilled in the art that Figure 5 The illustrated device structure for reading BMS information in a battery management system does not limit the device for reading BMS information in a battery management system, and may include more or fewer components than illustrated, or a combination of certain components, or a different arrangement of components.

[0167] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method for reading BMS information in a battery management system.

[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system or system or unit described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0169] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0170] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for reading BMS information in a battery management system, characterized in that: include: A BMS data request is constructed based on a preset command frame format, wherein the command frame format includes a function code declaring an operation to be performed by the battery management system; Sending the BMS data request to the battery management system so that the battery management system executes the operation corresponding to the function code to obtain the specified BMS information combination; Receiving a response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination; Parsing the response feedback to obtain the BMS information combination; The BMS information combination is written into a preset Excel table based on the time index.

2. The method for reading BMS information in a battery management system according to claim 1, characterized in that: The method of constructing a BMS data request based on a preset command frame format includes: Obtaining idle character data in the instruction frame format; Acquire first starting flag data of the instruction frame format; Obtaining BMS address data of the battery management system; Obtain a first communication protocol version number of the instruction frame format; Obtain first frame length declaration data of the instruction frame format; Obtaining a function code for the battery management system to perform an operation; Get the authentication information package; Obtaining a first check code in the instruction frame format; The idle character data, the first start mark data, the BMS address data, the first communication protocol version number, the first frame length declaration data, the function code, the identity authentication information packet and the first check code are assembled in sequence to obtain a BMS data request.

3. The method for reading BMS information in a battery management system according to claim 2, characterized in that: The response feedback constructed based on the preset response frame format and the BMS information combination includes: Acquire second start flag data of the response frame format; Obtaining BMS address data of the battery management system; Obtain a second communication protocol version number of the response frame format; Acquire second length declaration data in the response frame format; Obtaining a function code for the battery management system to perform an operation; Acquire the BMS information combination; Obtain a second check code in the response frame format; The second start flag data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code, the BMS information combination and the second check code are assembled in sequence to obtain a response feedback.

4. The method for reading BMS information in a battery management system according to claim 3, characterized in that: The parsing of the response feedback to obtain the BMS information combination includes: Based on the byte length occupied by the second check code, obtaining the second check code from the end of the response feedback; Performing a complement operation of the checksum byte accumulation sum on the second start flag data, the BMS address data, the second communication protocol version number, the second frame length declaration data, the function code and the BMS information combination to obtain a calculated check code; Comparing the calculated check code with the second check code; If the calculated verification code and the second verification code are compared and passed, the BMS information combination is obtained in the response feedback before the second verification code based on the byte length occupied by the BMS information combination.

5. The method for reading BMS information in a battery management system according to claim 4, characterized in that: The step of writing the BMS information combination into a preset Excel table based on a time index includes: Obtaining various parameters in the BMS information combination based on the function code; Generate a standardized data filling format for each parameter in the preset Excel table based on each parameter; Analyze and obtain various data of various parameters from the BMS information combination; Fill in the data of each item into the data grid of each parameter in the Excel table.

6. The method for reading BMS information in a battery management system according to claim 5, characterized in that: If the calculated check code and the second check code are compared and passed, then after obtaining the BMS information combination in the response feedback before the second check code based on the byte length occupied by the BMS information combination, the method further includes: Obtaining the second communication protocol version number from the response feedback based on the starting byte position of the second communication protocol version number in the response feedback and the byte length occupied by the second communication protocol version number in the response feedback; Comparing the second communication protocol version number with the first communication protocol version number; If the second communication protocol version number is inconsistent with the first communication protocol version number, the first communication protocol version number in the instruction frame format is updated.

7. The method for reading BMS information in a battery management system according to claim 6, characterized in that: The BMS information combination includes battery status information, current value, number of battery cell strings, battery cell voltage, balance status, number of battery cell temperature sensors, battery cell temperature, number of MOSFET temperature sensors, MOSFET temperature, number of cycles, remaining power, total capacity and switch status; Or the BMS information combination includes battery status information, current value, maximum voltage, minimum voltage, total voltage, maximum temperature, minimum temperature, number of cycles, remaining power, total capacity and switch status.

8. A device for reading BMS information in a battery management system, characterized in that: The device for reading BMS information in the battery management system includes: A data request building module, used to build a BMS data request based on a preset instruction frame format, wherein the instruction frame format includes a function code that declares that the battery management system needs to perform an operation; A request sending module, used for sending the BMS data request to the battery management system, so that the battery management system executes the operation corresponding to the function code to obtain the specified BMS information combination; A feedback receiving module, used for receiving a response feedback constructed by the battery management system based on a preset response frame format and the BMS information combination; A feedback parsing module, used for parsing the response feedback to obtain the BMS information combination; The data storage module is used to write the BMS information combination into a preset Excel table based on a time index.

9. A device for reading BMS information in a battery management system, characterized in that: The device for reading BMS information in a battery management system comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instruction in the memory so that the device for reading BMS information in a battery management system executes the method for reading BMS information in a battery management system according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for reading BMS information in a battery management system according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Power battery system upper computer interaction method and monomer voltage and / or temperature display method

    CN116208438A

  • BMS differential data management method and device, electronic equipment and storable medium

    CN117472402A

  • DLT698 protocol analysis method, system, device and medium

    CN118945245A

Cited By

  • Communication method for realizing BMS (Battery Management System) protocol by Bluetooth

    CN121334636A

  • Bluetooth communication method for implementing BMS protocol

    CN121334636B