Data transmission method and device of battery management system, equipment and medium
By using the initial cyclic redundant verification code in the battery management system for data verification and control, the problem of lack of verification during the main board data transmission is solved, and the accuracy and reliability of data transmission in the battery management system is realized. .
Patent Information
- Application Number
- CN202410998993.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-26
AI Technical Summary
The existing battery management system lacks comprehensive verification methods during the main and sub-board data transmission process, resulting in transmission errors and unreliability.
The single-unit monitoring unit generates an initial cyclic redundancy verification code, and attaches it to the battery status data, and transmits it to the battery management unit. The battery management unit verifies the received data and generates control instructions to ensure the data transmission. Accuracy and retransmission and alarm if necessary.
It realizes timely and reliable data transmission between the single-unit monitoring unit and the battery management unit, improves the accuracy and reliability of data transmission, and ensures the stable operation of the battery management system.
Smart Images

Figure CN119031050A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of battery management systems, and in particular to a data transmission method, device, equipment and medium of a battery management system. Background Art
[0002] In recent years, with the rapid development of new energy vehicles, power batteries have been widely used in the automotive industry. Compared with traditional fuel vehicles, new energy vehicles have the advantages of green environmental protection, energy saving, and convenient travel. However, new energy vehicles also have many problems, including slow battery charging, short battery life, and rapid power decline. In response to these problems, the Battery Management System (BMS), as an indispensable and important component of electric vehicles, is the center of battery management and monitoring. Its main functions include real-time monitoring of battery parameters, battery status estimation, online diagnosis and early warning, charge and discharge and pre-charge control balance management, thermal management, etc. These functions require continuous acquisition of battery parameters and status, and then data processing. Therefore, it is particularly important to accurately obtain relevant battery data.
[0003] The main architectures of BMS include centralized and distributed. The centralized architecture is compact, highly reliable, and low cost. It is generally used in scenarios with low capacity, low total voltage, and small battery system size, such as electric bicycles. The distributed master control unit is separated from the slave control unit, that is, it is divided into a battery management unit (BMS) and a cell monitoring unit (CMU), that is, it is divided into a main board and a sub-board, which can better realize hierarchical management. Currently, mainstream mass-produced new energy electric vehicles all adopt a distributed architecture.
[0004] The sub-board generally has functions such as voltage collection, temperature collection, and current collection. After the sub-board completes data collection, it sends the data to the main board. At present, the verification method for the correct transmission of data from the main sub-board is not comprehensive.
[0005] For example, CN111546940B discloses a self-organizing network method for a distributed battery management system based on a daisy chain network, which is applied to a BMS including i (i = 1, 2, 3, ..., N) battery modules, a single acquisition board corresponding to each battery module, and a BMU. The BMU is connected to the CMU of each single acquisition board through a daisy chain network. After the system is started, the BMU needs to determine whether it needs to enter the self-organizing network initialization process. Whether in the system startup phase or in the normal operation phase of the system, if any self-organizing network request is successful, the BMU starts the self-organizing network initialization process to complete the configuration of the CMU, and stores the corresponding number of CMUs in the corresponding calibration area for the next system startup to read. The scheme discloses that when the difference between the total voltage of the battery pack and the sum of the voltages of all single cells collected by all current CMUs is less than the set judgment threshold, the BMU determines that the daisy chain network communication chain is complete and the networking is completed. In this process, no verification is performed on the voltage data transmitted from the CMU to the BMU, and there is a transmission error. Summary of the invention
[0006] The present invention provides a data transmission method, device, equipment and medium for a battery management system to solve the technical problem of incomplete verification of correct transmission of data of the main and sub-boards mentioned above.
[0007] In one embodiment of the present application, the present application provides a data transmission method for a battery management system, including: obtaining battery status data of a single cell, the battery status data being collected by a single cell monitoring unit; generating an initial cyclic redundancy check code for the battery status data by the single cell monitoring unit, appending the initial cyclic redundancy check code to the end of the battery status data to obtain data to be sent, and sending the data to a battery management unit; receiving the data to be sent by the battery management unit, and verifying the received data to be sent to obtain a verification result; generating a control instruction by the battery management unit according to the verification result to control the single cell monitoring unit.
[0008] In one embodiment of the present application, generating a control instruction by the battery management unit according to the verification result includes: if the verification result is a data transmission failure, generating a retransmission instruction by the battery management unit to control the single cell monitoring unit to retransmit the battery status data to the battery management unit.
[0009] In one embodiment of the present application, after controlling the single cell monitoring unit, the method further includes: counting the number of retransmissions of at least one single cell monitoring unit; if the number of retransmissions of a single cell monitoring unit is greater than or equal to a preset first threshold, generating a first alarm message for the single cell monitoring unit; if the retransmission score is greater than or equal to a preset second threshold, generating a second alarm message for the battery management system; wherein the retransmission score is obtained by weighted averaging the number of target monitoring units and the number of retransmissions, and the target monitoring unit is used to characterize the single cell monitoring unit that needs to be retransmitted within a preset time period.
[0010] In one embodiment of the present application, the initial cyclic redundancy check code of the battery status data is generated by the single-cell monitoring unit, including: taking the first byte of the battery status data as the data to be calculated; performing an XOR operation on a preset register, a preset polynomial and the data to be calculated to obtain a target register, wherein the preset register is located in the single-cell monitoring unit; if the data to be calculated is the last byte of the battery status data, the high byte and the low byte of the target register are exchanged to obtain the initial cyclic redundancy check code; if the data to be calculated is not the last byte of the battery status data, the next byte corresponding to the data to be calculated is taken as the data to be calculated, the target register is taken as the preset register, and the steps of performing an XOR operation on the preset register, the preset polynomial and the data to be calculated to obtain the target register are repeated, and if the data to be calculated is not the last byte of the battery status data, the next byte corresponding to the data to be calculated is taken as the data to be calculated, and the target register is taken as the preset register, until the data to be calculated is the last byte of the battery status data, and the high byte and the low byte of the target register are exchanged to obtain the initial cyclic redundancy check code.
[0011] In one embodiment of the present application, an XOR operation is performed on a preset register, a preset polynomial and the data to be operated to obtain a target register, including: performing an XOR operation on the data to be operated and the low byte of the preset register to obtain an initial operation result, and updating the low eight bits of the preset register to obtain a first register; shifting the value of the first register right by one bit, and filling the highest bit of the first register with zero to obtain a second register; if the value of the shifted-out bit of the first register is one, performing an XOR operation on the second register and the preset polynomial to obtain a third register; if the value of the shifted-out bit of the first register is zero, and the total number of right shifts is less than eight times, then performing an XOR operation on the first register and the preset polynomial to obtain a third register. The second register is used as the first register, and the value of the first register is repeatedly shifted right by one bit, and the highest bit of the first register is filled with zero to obtain the second register. If the value of the shifted-out bit of the first register is zero, and the total number of right shifts is less than eight times, the second register is used as the first register until the value of the shifted-out bit of the first register is one, or the total number of right shifts is equal to eight times, and the second register is XORed with a preset polynomial to obtain a third register; if the total number of right shifts is less than eight times, the third register is used as the first register for right shifting; if the total number of right shifts is equal to eight times, the third register is used as the target register.
[0012] In one embodiment of the present application, the received data to be sent is verified to obtain a verification result, including: extracting current state data and current cyclic redundancy check code from the received data to be sent; generating a target cyclic redundancy check code according to the current state data; if the target cyclic redundancy check code is the same as the current cyclic redundancy check code, determining the verification result as a data transmission failure; if the target cyclic redundancy check code is different from the current cyclic redundancy check code, determining the verification result as a data transmission success
[0013] In one embodiment of the present application, the present application provides a data transmission device for a battery management system, including: a data acquisition module, used to acquire battery status data of a single cell, the battery status data being collected by a single cell monitoring unit; a verification transmission module, used to generate an initial cyclic redundancy check code for the battery status data through the single cell monitoring unit, append the initial cyclic redundancy check code to the end of the battery status data, obtain data to be sent, and send it to a battery management unit; a verification module, used to receive the data to be sent through the battery management unit, and verify the received data to be sent to obtain a verification result; a control module, used to generate a control instruction according to the verification result through the battery management unit to control the single cell monitoring unit.
[0014] In one embodiment of the present application, there are multiple single-cell batteries and multiple single-cell monitoring units. The battery status data of a single-cell battery is collected through a single-cell monitoring unit, or the battery status data of multiple single-cell batteries are collected through a single-cell monitoring unit; each of the single-cell monitoring units is respectively communicated with the battery management unit.
[0015] In one embodiment of the present application, the present application provides an electronic device, which includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the electronic device implements the data transmission method of the battery management system as described in any of the above embodiments.
[0016] In one embodiment of the present application, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the data transmission method of the battery management system described in any of the above embodiments.
[0017] Beneficial effects of the present invention: The present invention provides a data transmission method, device, equipment and medium for a battery management system. The present invention generates an initial cyclic redundancy check code for the collected battery status data through a single cell monitoring unit, and transmits the battery status data and the initial cyclic redundancy check code to a battery management unit. The battery management unit verifies the received battery status data and the initial cyclic redundancy check code, thereby controlling the single cell monitoring unit, thereby realizing the function of timely and reliable transmission between the single cell monitoring unit and the battery management unit.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0021] Figure 2 A schematic diagram showing a flow chart of a data transmission method of a battery management system according to an embodiment of the present application is shown;
[0022] Figure 3A schematic diagram of a process for generating a verification code according to an embodiment of the present application is shown;
[0023] Figure 4 A block diagram of a data transmission device of a battery management system according to an embodiment of the present application is shown;
[0024] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0026] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.
[0027] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0028] See also Figure 1 , Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiment of the present application can be applied is shown. Figure 1 As shown, the system architecture may include a single battery 101 , a single battery monitoring unit 102 and a battery management unit 103 .
[0029] Exemplarily, the battery status data of the single cell 101 is obtained, and the battery status data is collected by the single cell monitoring unit 102; the initial cyclic redundancy check code of the battery status data is generated by the single cell monitoring unit 102, and the initial cyclic redundancy check code is appended to the end of the battery status data to obtain the data to be sent, and send it to the battery management unit 103; the data to be sent is received by the battery management unit 103, and the received data to be sent is verified to obtain a verification result; the battery management unit 103 generates a control instruction according to the verification result to control the single cell monitoring unit 102.
[0030] In order to solve the above technical problems, the present application provides a data transmission method, device, equipment and medium for a battery management system. The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.
[0031] See also Figure 2 , Figure 2 FIG. 1 is a flow chart showing a data transmission method of a battery management system according to an embodiment of the present application. Figure 2 As shown, in an exemplary embodiment, the data transmission method of the battery management system includes at least steps S210 to S240, which are described in detail as follows:
[0032] Step S210, obtaining battery status data of a single battery, where the battery status data is collected by a single battery monitoring unit.
[0033] In one embodiment of the present application, the single-cell monitoring unit is also a sub-board, and the battery management unit is also a main board. The sub-board is a data sending end, and the main board is a data receiving end.
[0034] In one embodiment of the present application, the battery status data includes voltage status parameters, current status parameters, and temperature status parameters of the single battery.
[0035] In one embodiment of the present application, the single-cell monitoring unit collects data through multiple sensors and transmits the data to the battery management unit.
[0036] Step S220, generating an initial cyclic redundancy check code for the battery status data through the single-cell monitoring unit, appending the initial cyclic redundancy check code to the end of the battery status data, obtaining data to be sent, and sending the data to the battery management unit.
[0037] In one embodiment of the present application, after the sub-board collects the battery status data, an initial cyclic redundancy check code is generated according to the collected battery status data through a cyclic redundancy check (CRC).
[0038] In one embodiment of the present application, an initial cyclic redundancy check code for battery status data is generated by a single-cell monitoring unit, including: taking the first byte of the battery status data as the data to be calculated; performing an XOR operation on a preset register, a preset polynomial and the data to be calculated to obtain a target register, wherein the preset register is located in the single-cell monitoring unit; if the data to be calculated is the last byte of the battery status data, the high byte and the low byte of the target register are exchanged to obtain an initial cyclic redundancy check code; if the data to be calculated is not the last byte of the battery status data, the next byte corresponding to the data to be calculated is taken as the data to be calculated, the target register is taken as the preset register, and the steps of performing an XOR operation on the preset register, the preset polynomial and the data to be calculated to obtain the target register are repeated, and if the data to be calculated is not the last byte of the battery status data, the next byte corresponding to the data to be calculated is taken as the data to be calculated, and the target register is taken as the preset register, until the data to be calculated is the last byte of the battery status data, and the high byte and the low byte of the target register are exchanged to obtain an initial cyclic redundancy check code.
[0039] In one embodiment of the present application, the cyclic redundancy check code can make the generated new frame divisible by the divisor agreed upon by the transmitter and the receiver. The agreed divisor is usually expressed as a polynomial, called a generating polynomial, which is also the preset polynomial of the present application.
[0040] In one embodiment of the present application, the preset polynomial may be selected randomly or according to internationally accepted standards. 4 +X+1, the divisor represented is 10011. .
[0041] In one embodiment of the present application, the division method used here is a special operation, which is called "modulo 2 division". Modulo 2 division is to divide the same number of bits, perform bit-by-bit XOR operations, and the corresponding bits that are the same are 0, and those that are different are 1, that is, 1^1=0, 0^0=0, 1^0=1, 0^1=1.
[0042] In one embodiment of the present application, an XOR operation is performed on a preset register, a preset polynomial and data to be operated to obtain a target register, including: performing an XOR operation on the data to be operated and the low byte of the preset register to obtain an initial operation result, and updating the lower eight bits of the preset register to obtain a first register; shifting the value of the first register right by one bit, and filling the highest bit of the first register with zero to obtain a second register; if the value of the shifted-out bit of the first register is one, performing an XOR operation on the second register and the preset polynomial to obtain a third register; if the value of the shifted-out bit of the first register is zero, and the total number of right shifts is less than eight times, performing an XOR operation on the first register; and obtaining a third register. The second register is used as the first register, and the value of the first register is repeatedly shifted right by one bit, and the highest bit of the first register is filled with zero to obtain the second register. If the value of the shifted-out bit of the first register is zero, and the total number of right shifts is less than eight times, the second register is used as the first register until the value of the shifted-out bit of the first register is one, or the total number of right shifts is equal to eight times, and the second register is XORed with a preset polynomial to obtain a third register; if the total number of right shifts is less than eight times, the third register is used as the first register for right shifting; if the total number of right shifts is equal to eight times, the third register is used as the target register.
[0043] In one embodiment of the present application, see Figure 3 , Figure 3 FIG. 2 shows a flow chart of generating a verification code according to an embodiment of the present application. Figure 3As shown, step S310, determine the polynomial, that is, the divisor, with a number of bits K: determine the preset polynomial, that is, the agreed divisor, with a number of bits k; step S320, define a k-bit register, with all values 1: customize a k-bit preset register, with all bits 1, called a CRC register; step S330, perform an XOR operation on the first byte of the data and the lower 8 bits of the register: perform an XOR operation on the first 8-bit binary data of the battery status data to be verified, that is, the first byte, and the lower 8 bits of the k-bit CRC register, and put the result of the operation in the lower 8 bits of the CRC register, and the upper 8 bits of the data remain unchanged; step S340, shift the register right by one bit, and fill the high bit with 0: shift the value of the CRC register right by one bit, and fill the highest bit with 0; step S340, determine the shifted-out bit after the right shift, if the shifted-out bit is 0, repeat step S340; if the shifted-out bit is 1, then Enter step S350; step S350, perform XOR operation on the register and the divisor: perform XOR operation on the CRC register and the divisor; step S370, determine the number of right shifts: if it is 8 times, enter step S380; if it is not 8 times, enter step S340 to repeat steps S340 to S360 until it is 8 times; step S380, determine whether the data is the last byte, if it is the last byte, enter step S390; if it is not the last byte, enter step S330 to repeat steps S330 to S370 to process the next byte until all bytes are processed; step S390, after the high and low bytes of the register are swapped, it is the CRC check value: the high byte and low byte of the calculated 16-bit CRC register are swapped, and the final CRC register value is the CRC check code.
[0044] In one embodiment of the present application, after the CRC check code is generated, the check code is attached to the data to be sent, and the new data is formed and sent to the main board together.
[0045] Step S230, receiving the data to be sent through the battery management unit, and verifying the received data to be sent to obtain a verification result.
[0046] In one embodiment of the present application, the received data to be sent is verified to obtain a verification result, including: extracting current state data and a current cyclic redundancy check code in the received data to be sent; generating a target cyclic redundancy check code according to the current state data; if the target cyclic redundancy check code is the same as the current cyclic redundancy check code, determining the verification result as a data transmission failure; if the target cyclic redundancy check code is different from the current cyclic redundancy check code, determining the verification result as a data transmission success.
[0047] In one embodiment of the present application, the main board receives data transmitted by the sub-board, and extracts the collected data and CRC check code therefrom respectively; the main board generates a new CRC check code based on the collected data using "modulo 2 division"; the newly generated CRC check code is compared with the received CRC check code; if the newly generated CRC check code is the same as the received CRC check code, the data transmission is correct, otherwise the transmission is wrong, and the sub-board is commanded to retransmit.
[0048] Step S240: The battery management unit generates a control instruction according to the verification result to control the single-cell monitoring unit.
[0049] In one embodiment of the present application, generating a control instruction according to a verification result by the battery management unit includes: if the verification result is a data transmission failure, generating a retransmission instruction by the battery management unit to control the single cell monitoring unit to retransmit the battery status data to the battery management unit.
[0050] In one embodiment of the present application, after controlling the single-cell monitoring unit, the method also includes: counting the number of retransmissions of at least one single-cell monitoring unit; if the number of retransmissions of a single-cell monitoring unit is greater than or equal to a preset first threshold, generating a first alarm message for the single-cell monitoring unit; if the retransmission score is greater than or equal to a preset second threshold, generating a second alarm message for the battery management system; wherein the retransmission score is obtained by weighted average based on the number of target monitoring units and the number of retransmissions, and the target monitoring unit is used to characterize the single-cell monitoring unit that needs to be retransmitted within a preset time period.
[0051] In one embodiment of the present application, the first alarm information is used to remind that there is a problem in the transmission between a single monitoring unit and a battery management system, and data transmission maintenance is required; the second alarm information is used to remind the battery management system that data transmission maintenance is required.
[0052] In one embodiment of the present application, the single-cell monitoring unit needs to transmit the battery status data to the battery management unit in a timely manner, and the real-time requirement is high. Through CRC verification, the battery status data can be transmitted to the battery management unit in a timely and reliable manner.
[0053] See also Figure 4 , Figure 4 A block diagram of a data transmission device of a battery management system according to an embodiment of the present application is shown. The device can be applied to Figure 1 The device may also be applicable to other exemplary implementation environments and specifically configured in other devices, and this embodiment does not limit the implementation environment to which the device is applicable.
[0054] like Figure 4As shown, a data transmission device 400 of a battery management system according to an embodiment of the present application includes: a data acquisition module 401 , a verification transmission module 402 , a verification module 403 and a control module 404 .
[0055] The data acquisition module 401 is used to acquire the battery status data of the single battery, and the battery status data is collected by the single battery monitoring unit;
[0056] The check transmission module 402 is used to generate an initial cyclic redundancy check code of the battery status data through the single-cell monitoring unit, append the initial cyclic redundancy check code to the end of the battery status data, obtain the data to be sent, and send it to the battery management unit;
[0057] The verification module 403 is used to receive the data to be sent through the battery management unit, and verify the received data to be sent to obtain a verification result;
[0058] The control module 404 is used to generate a control instruction according to the verification result through the battery management unit to control the single-cell monitoring unit.
[0059] In one embodiment of the present application, there are multiple single-cell batteries and multiple single-cell monitoring units. The battery status data of one single-cell battery is collected through one single-cell monitoring unit, or the battery status data of multiple single-cell batteries are collected through one single-cell monitoring unit; each single-cell monitoring unit is respectively communicated with the battery management unit.
[0060] It should be noted that the data transmission device of the battery management system provided in the above embodiment and the data transmission method of the battery management system provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In actual applications, the data transmission device of the equipment battery management system provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0061] An embodiment of the present application also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the electronic device implements the data transmission method of the battery management system provided in the above-mentioned embodiments.
[0062] See also Figure 5 , Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0063] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0064] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0065] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0066] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0067] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0068] The units involved in the embodiments described in the present application can be implemented by software or by hardware, and the units described can also be set in a processor. Among them, the names of these units do not constitute a limitation on the units themselves under certain circumstances. Therefore, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation mode of the present application.
[0069] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the data transmission method of the battery management system provided in the above-mentioned embodiments. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or may exist independently without being assembled into the electronic device.
[0070] In the above embodiments, unless otherwise specified, by using serial numbers such as "first" and "second" to describe common objects, it only means that they refer to different instances of the same object, rather than indicating that the objects being described must adopt a given order, whether in time, space, sorting or any other way.
[0071] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A data transmission method for a battery management system, characterized in that: The method comprises: Acquiring battery status data of a single battery, wherein the battery status data is collected by a single battery monitoring unit; Generate an initial cyclic redundancy check code for the battery status data through the single-cell monitoring unit, append the initial cyclic redundancy check code to the tail of the battery status data to obtain data to be sent, and send the data to the battery management unit; Receiving the data to be sent through the battery management unit, and verifying the received data to be sent to obtain a verification result; The battery management unit generates a control instruction according to the verification result to control the single-cell monitoring unit.
2. The data transmission method of the battery management system according to claim 1, characterized in that: Generating a control instruction according to the verification result by the battery management unit includes: If the verification result is that the data transmission fails, a retransmission instruction is generated by the battery management unit to control the single-cell monitoring unit to retransmit the battery status data to the battery management unit.
3. The data transmission method of the battery management system according to claim 2, characterized in that: After controlling the single monitoring unit, the method further includes: Counting the number of retransmissions of at least one single monitoring unit; If the number of retransmissions of a single monitoring unit is greater than or equal to a preset first threshold, generating first alarm information of the single monitoring unit; If the retransmission score is greater than or equal to a preset second threshold, generating a second alarm message of the battery management system; The retransmission score is obtained by weighted average based on the number of target monitoring units and the number of retransmissions, and the target monitoring unit is used to represent a single monitoring unit that needs to be retransmitted within a preset time period.
4. The data transmission method of a battery management system according to any one of claims 1 to 3, characterized in that: Generating an initial cyclic redundancy check code of the battery status data by the single cell monitoring unit includes: Using the first byte of the battery status data as data to be calculated; Performing an XOR operation on a preset register, a preset polynomial and the data to be operated to obtain a target register, wherein the preset register is located in the single monitoring unit; If the data to be calculated is the last byte of the battery status data, the high byte and the low byte of the target register are swapped to obtain an initial cyclic redundancy check code; If the data to be calculated is not the last byte of the battery status data, the next byte corresponding to the data to be calculated is used as the data to be calculated, the target register is used as the preset register, and the steps of performing an XOR operation on the preset register, the preset polynomial and the data to be calculated are repeated to obtain the target register. If the data to be calculated is not the last byte of the battery status data, the next byte corresponding to the data to be calculated is used as the data to be calculated, and the target register is used as the preset register, until the data to be calculated is the last byte of the battery status data, and the high byte and the low byte of the target register are exchanged to obtain an initial cyclic redundancy check code.
5. The data transmission method of the battery management system according to claim 4, characterized in that: Performing an XOR operation on the preset register, the preset polynomial and the data to be operated to obtain a target register includes: Performing an XOR operation on the data to be operated and the low byte of the preset register to obtain an initial operation result, and updating the low eight bits of the preset register to obtain a first register; Shift the value of the first register right by one bit, and fill the highest bit of the first register with zero to obtain a second register; If the value of the shifted-out bit of the first register is one, performing an XOR operation on the second register and a preset polynomial to obtain a third register; If the value of the shifted-out bit of the first register is zero, and the total number of right shifts is less than eight times, the second register is used as the first register, and the step of shifting the value of the first register right by one bit is repeatedly performed, and the highest bit of the first register is filled with zero to obtain the second register. If the value of the shifted-out bit of the first register is zero, and the total number of right shifts is less than eight times, the second register is used as the first register until the value of the shifted-out bit of the first register is one, or the total number of right shifts is equal to eight times, and the second register is XORed with a preset polynomial to obtain a third register; If the total number of right shifts is less than eight, the third register is used as the first register to perform right shift; If the total number of right shifts is equal to eight, the third register is used as the target register.
6. The data transmission method of a battery management system according to any one of claims 1 to 3, characterized in that: Verify the received data to be sent and obtain the verification results, including: Extracting current state data and current cyclic redundancy check code from the received data to be sent; Generate a target cyclic redundancy check code according to the current state data; If the target cyclic redundancy check code is the same as the current cyclic redundancy check code, determining the check result as a data transmission failure; If the target cyclic redundancy check code is different from the current cyclic redundancy check code, the check result is determined as successful data transmission.
7. A data transmission device for a battery management system, characterized in that: The device comprises: A data acquisition module, used to acquire battery status data of a single battery, wherein the battery status data is collected by a single battery monitoring unit; A check transmission module, used to generate an initial cyclic redundancy check code of the battery status data through the single-cell monitoring unit, append the initial cyclic redundancy check code to the tail of the battery status data, obtain data to be sent, and send it to the battery management unit; A verification module, used for receiving the data to be sent through the battery management unit, and verifying the received data to be sent to obtain a verification result; A control module is used to generate a control instruction according to the verification result through the battery management unit to control the single-cell monitoring unit.
8. The data transmission device for a battery management system according to claim 7, characterized in that: The number of the single cells is multiple, the number of the single cell monitoring units is multiple, and the battery status data of one single cell is collected through one single cell monitoring unit, or the battery status data of multiple single cells is collected through one single cell monitoring unit; Each of the single-cell monitoring units is respectively connected to the battery management unit for communication.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the data transmission method of the battery management system as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is enabled to execute the data transmission method of a battery management system according to any one of claims 1 to 6.
