A BMS upgrading method, system and electronic device

By sending upgrade commands and data packets from the host computer, combined with backup and erase commands, the BMS main control board and slave control board can be upgraded simultaneously, which solves the problem of low upgrade efficiency in the existing technology and ensures data accuracy and device functionality integrity during the upgrade process.

CN116501355BActive Publication Date: 2026-02-10HUIZHOU DESAY INTELLIGENT ENERGY STORAGE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310352517.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-04
Publication Date
2026-02-10
Estimated Expiration
2043-04-04

AI Technical Summary

Technical Problem

Existing BMS upgrade methods require unpacking and upgrading individual boards, resulting in low upgrade efficiency and failing to meet the needs of rapid upgrades.

Method used

This paper provides a BMS upgrade method that sends upgrade commands and data packets from a host computer, combined with backup and erase commands, to simultaneously upgrade the BMS main control board and slave control board. The method also performs program backup during the upgrade process to ensure the accuracy of the upgrade data.

Benefits of technology

Simultaneous upgrades of both the BMS main control board and slave control board were achieved. The original program was backed up during the upgrade process to ensure that the functions were not affected. Data packet checks were used to ensure successful upgrades, thus improving upgrade efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116501355B_ABST
    Figure CN116501355B_ABST
Patent Text Reader

Abstract

The application provides a BMS upgrading method, system and electronic equipment; the BMS upgrading method comprises the following steps: a host computer successively sends a write function command, an upgrading command and an entering upgrading command to a BMS device to be upgraded; the BMS device to be upgraded receives the commands and replies, and enters an upgrading procedure; then the BMS device to be upgraded successively executes a backup command and an erase command sent by the host computer, so as to backup a current version program and erase the program in a storage area; and further, the upgrading is completed according to an upgrading data packet. The application can realize simultaneous upgrading of one or a combination of a BMS master control board and N BMS slave control boards; and in the upgrading process, the original program of the BMS device to be upgraded is backed up, so that even if the upgrading fails, the function of the BMS device to be upgraded is not affected; and the upgrading data packet is checked, so that the accuracy of the upgrading data is further ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of battery management system, and particularly relates to a BMS upgrading method, system and electronic equipment. BACKGROUND

[0002] BMS (Battery Management System) is a device for monitoring the state of energy storage batteries, which is mainly used for intelligent management and maintenance of each battery unit, prevention of overcharging and overdischarging of the battery, prolongation of the service life of the battery, and monitoring of the state of the battery. Generally, BMS is a circuit board or a hardware box.

[0003] At present, the power management system is usually upgraded by disassembling the box for single board upgrading. With the increasing use of BMS, this upgrading method cannot meet the demand for rapid upgrading. SUMMARY

[0004] To solve the above technical problems, the present application provides a BMS upgrading method, system and electronic equipment, which realizes rapid upgrading of BMS.

[0005] Specifically, the present application provides a BMS upgrading method, which comprises the following steps:

[0006] S100: The host computer sends an upgrading command, and the BMS device to be upgraded receives the upgrading command and performs a first response.

[0007] S200: The host computer sends an entering upgrading command to the BMS device to be upgraded, the BMS device to be upgraded receives the entering upgrading command and performs a second response, and enters an upgrading program.

[0008] S300: The BMS device to be upgraded executes the backup command and the erase command sent by the host computer in sequence, and receives the upgrading data packet sent by the host computer, so as to complete the upgrading according to the upgrading data packet.

[0009] Before the step S100 is executed, it comprises:

[0010] The host computer sends a write function command to the BMS master control board and the BMS slave control board on the CAN bus, the BMS slave control board stops uploading message information, and the BMS master control board stops interpreting the message information.

[0011] The step S100 comprises:

[0012] S101: It is judged whether the upgrading command sent by the host computer is a BMS master control board upgrading command, if yes, the BMS master control board receives the BMS master control board upgrading command and performs a first response; otherwise, turn to S102.

[0013] S102: determining whether the upgrade command sent by the host computer is an individual upgrade command for any BMS slave board, if yes, the BMS slave board receives the individual upgrade command for the BMS slave board and performs a one-time response; otherwise, go to S103.

[0014] S103: determining whether the upgrade command sent by the host computer is a simultaneous upgrade command for all BMS slave boards, if yes, the BMS slave board receives the simultaneous upgrade command for the BMS slave board and performs a one-time response; otherwise, go to S104.

[0015] S104: the host computer sends a cancel write function command, the BMS slave board continues to upload message information, and the BMS master board continues to interpret the message information.

[0016] The BMS device to be upgraded is a BMS master board, one or a combination of N BMS slave boards; N≥1.

[0017] The step S200 further comprises:

[0018] determining whether the BMS device to be upgraded has entered the upgrade program, if yes, the host computer sends an unlock erase command to the BMS device to be upgraded, and the BMS device to be upgraded receives the unlock erase command and performs a three-time response; otherwise, it is determined that the BMS device to be upgraded fails to upgrade.

[0019] The step S300 comprises:

[0020] S301: the host computer sends a backup command to the BMS device to be upgraded; the BMS device to be upgraded erases the backup area by page, copies the current version program to the backup area, and determines whether the BMS device to be upgraded has successfully backed up, if yes, go to S302; otherwise, it is determined that the BMS device to be upgraded fails to upgrade.

[0021] S302: the host computer sends an erase command to the BMS device to be upgraded, the BMS device to be upgraded erases the storage area of the current version program by page, and determines whether the BMS device to be upgraded has successfully erased, if yes, the host computer sends a preset number of upgrade data packets to the BMS device to be upgraded; otherwise, it is determined that the BMS device to be upgraded fails to upgrade.

[0022] S303: the data in the upgrade data packet is sent frame by frame, and it is determined whether the data in the current upgrade data packet has been sent, if yes, go to S304; otherwise, continue to send the data in the current upgrade data packet until the sending is completed, and go to S304.

[0023] S304: The BMS device to be upgraded checks whether the data accumulation of the current upgrade data packet is correct, if yes, the BMS device to be upgraded is burned and upgraded according to the current upgrade data packet, and whether the BMS device to be upgraded is successfully burned and upgraded is judged, if yes, S305 is performed; otherwise, the BMS device to be upgraded is judged to fail in upgrading; if no, S303 is performed.

[0024] S305: Whether the current upgrade data packet is the last upgrade data packet is judged, if yes, the BMS device to be upgraded is judged to successfully upgrade; otherwise, the next upgrade data packet is sent, and S303 is performed.

[0025] The step S300 further comprises:

[0026] After the BMS device to be upgraded successfully upgrades, the host computer sends an exit upgrade command to exit the upgrade program, and sends a cancel write function command, the BMS slave board continues to upload message information, and the BMS master board continues to interpret the message information.

[0027] Based on the same concept, the application further provides a BMS upgrading system, the system comprises:

[0028] The first sending module is used for sending a write function command to make the BMS slave board stop uploading message information and the BMS master board stop interpreting the message information, and is further used for sending a cancel write function command to make the BMS slave board continue to upload message information and the BMS master board continue to interpret the message information.

[0029] The second sending module is used for sending an upgrade command, an enter upgrade command, an unlock erase command, a backup command, an erase command and an exit upgrade command.

[0030] The response module is used for responding once when the BMS device to be upgraded receives the upgrade command, is further used for responding twice when the BMS device to be upgraded receives the enter upgrade command, and is further used for responding thrice when the BMS device to be upgraded receives the unlock erase command.

[0031] The backup module is used for the BMS device to be upgraded to erase a backup area page by page and copy a current version program to the backup area.

[0032] The erase module is used for the BMS device to be upgraded to erase a storage area of the current version program page by page.

[0033] The third sending module is used for sending an upgrade data packet, and data in the upgrade data packet is sent in a frame-by-frame manner.

[0034] The upgrade module is used for the BMS device to be upgraded to be burned and upgraded according to the upgrade data packet.

[0035] The system also includes:

[0036] Query module: Used to query the status of the BMS device to be upgraded, in order to determine whether the backup, erasure, and upgrade were successful.

[0037] The first judgment module is used to determine whether the data in the current upgrade data packet has been completely sent.

[0038] The second judgment module is used to determine whether the current upgrade data packet is the last upgrade data packet.

[0039] Check module: Used to check whether the data accumulation of the current upgrade data package is correct.

[0040] Based on the same concept, this application also provides an electronic device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the BMS upgrade method by executing the computer instructions.

[0041] Compared with the prior art, the beneficial effects of this application are as follows:

[0042] This application enables simultaneous upgrades of one or a combination of the BMS main control board and N BMS slave control boards; during the upgrade process, the original program of the BMS device to be upgraded is backed up, so even if the upgrade fails, the functionality of the BMS device to be upgraded will not be affected; at the same time, the upgrade data packet is checked, further ensuring the accuracy of the upgrade data; it solves the technical problem of low efficiency caused by the need to disassemble the BMS for single-board upgrades in the prior art. Attached Figure Description

[0043] Figure 1 This is a flowchart of the BMS upgrade method described in this application.

[0044] Figure 2 for Figure 1 The flowchart describes sending the upgrade command and responding to it.

[0045] Figure 3 for Figure 1 The flowchart describes the execution of backup and erase commands, as well as the upgrade process.

[0046] Figure 4 for Figure 1 System framework diagram of the BMS upgrade method. Detailed Implementation

[0047] Embodiments of the present application provide a BMS upgrading method, system and electronic device, to solve the technical problem of low efficiency caused by the need for disassembling and upgrading single boards in the prior art.

[0048] Embodiments of the present application provide a BMS upgrading method, and the general idea is as follows:

[0049] The host computer sequentially issues a write function command, an upgrade command and an upgrade entering command to the BMS device to be upgraded, the BMS to be upgraded receives the above commands and responds, and enters the upgrade program; then the BMS device to be upgraded sequentially executes the backup command and the erase command sent by the host computer, to backup the current version program and erase the program in the storage area; and further completes the upgrade according to the upgrade data packet.

[0050] The BMS upgrading method, system and electronic device of the present application will be described in further detail below in conjunction with specific embodiments and drawings.

[0051] Specifically, referring to Figure 1 The present application provides a BMS upgrading method, comprising the following steps:

[0052] S100: The host computer sends an upgrade command, and the BMS device to be upgraded receives the upgrade command and responds once.

[0053] The upgrade command can be a BMS master board upgrade command and a BMS slave board individual upgrade command, or a BMS master board upgrade command and an all BMS slave board simultaneous upgrade command, or one of a BMS master board upgrade command, a BMS slave board individual upgrade command and an all BMS slave board simultaneous upgrade command.

[0054] Before performing the step S100, it comprises:

[0055] The host computer sends a write function command to the BMS master board and the BMS slave board on the CAN bus, the BMS slave board stops uploading message information, and the BMS master board stops interpreting the message information.

[0056] It should be noted that the host computer and the BMS master board can both receive the message information uploaded by the BMS slave board; wherein the CAN bus is the message information transmission medium of the BMS slave board and the host computer and the BMS master board.

[0057] The BMS device to be upgraded is one of a BMS master board, N BMS slave boards or a combination thereof; N≥1.

[0058] Referring to Figure 2 The step S100 comprises:

[0059] S101: Determine whether the upgrade command sent by the host computer is a BMS main control board upgrade command. If so, the BMS main control board receives the BMS main control board upgrade command and responds once; otherwise, proceed to S102.

[0060] S102: Determine whether the upgrade command sent by the host computer is an individual upgrade command for any BMS slave control board. If so, the BMS slave control board receives the individual upgrade command and responds once; otherwise, proceed to S103.

[0061] S103: Determine whether the upgrade command sent by the host computer is a simultaneous upgrade command for all BMS slave control boards. If so, the BMS slave control board receives the simultaneous upgrade command and responds once; otherwise, proceed to S104.

[0062] S104: The host computer sends a command to cancel the write function, the BMS slave control board continues to upload message information, and the BMS main control board continues to interpret the message information.

[0063] Once the BMS device completes one response to the upgrade command, step S200 can be executed.

[0064] S200: The host computer sends an upgrade command to the BMS device to be upgraded. The BMS device to be upgraded receives the upgrade command and responds a second time to enter the upgrade process.

[0065] It should be noted that the "enter upgrade command" refers to the "enter bootloader command," and the "upgrade program" refers to the bootloader program.

[0066] Step S200 further includes:

[0067] The system determines whether the BMS device to be upgraded has entered the upgrade process. If it has, the host computer sends an unlock / erase command to the BMS device to be upgraded. The BMS device to be upgraded receives the unlock / erase command and responds three times. Otherwise, the upgrade of the BMS device to be upgraded is determined to have failed.

[0068] It should be noted that the unlock / erase command refers to the unlock / erase flash command; by default, the erase flash command is in a locked state.

[0069] After entering the upgrade process, step S300 can be executed.

[0070] S300: The BMS device to be upgraded executes the backup command and erase command sent by the host computer in sequence, and receives the upgrade data packet sent by the host computer to complete the upgrade according to the upgrade data packet.

[0071] Please see Figure 3Step S300 includes:

[0072] S301: The host computer sends a backup command to the BMS device to be upgraded; the BMS device to be upgraded erases the backup area page by page, copies the current version of the program to the backup area, and determines whether the backup of the BMS device to be upgraded is successful. If it is successful, proceed to S302; otherwise, it is determined that the upgrade of the BMS device to be upgraded has failed.

[0073] It should be noted that the host computer will send a query device status command once to obtain the current status of the BMS device to be upgraded, and determine whether the BMS device to be upgraded has been successfully backed up based on the status.

[0074] To avoid the failure of the device upgrade affecting the original BMS functionality, the current version of the program will be backed up before erasure.

[0075] S302: The host computer sends an erase command to the BMS device to be upgraded. The BMS device to be upgraded erases the storage area of ​​the current version of the program page by page, and determines whether the BMS device to be upgraded has successfully erased. If it has been successful, the host computer sends a preset number of upgrade data packets to the BMS device to be upgraded; otherwise, it determines that the upgrade of the BMS device has failed.

[0076] It should be noted that the erase command is the erase flash command.

[0077] Flash memory is a type of non-volatile memory, typically used to store code and data. Flash memory is a charge-filled storage technology that can store large amounts of data in a very compact manner. When the data in the flash memory needs to be changed, the storage cells must be erased first, and then new data must be written. New data can only be written after all the data in the flash memory has been erased. If some data is not erased, the new data cannot be written successfully.

[0078] Therefore, after erasing the storage area of ​​the current version of the program, the host computer will send a second query command to obtain the status of the BMS device to be upgraded, and determine whether the BMS device to be upgraded has been successfully erased based on the status.

[0079] Before sending the upgrade data packet, two instructions need to be sent: 0x83 and 0x11. 0x83 indicates that the data in an upgrade data packet is 131 bytes, and 0x11 indicates that the 131 bytes are sent in 17 frames, with each frame containing 8 bytes. In the 131 bytes, the first byte indicates which upgrade data packet it is, bytes 2 to 130 represent the data of the upgrade data packet, and the 131st byte is the CRC8 checksum of the first 130 bytes, which is used for subsequent checks and accumulation.

[0080] S303: The data in the upgrade data packet is sent frame by frame. It is determined whether the data in the current upgrade data packet has been sent. If it has been sent, proceed to S304; otherwise, continue sending the data in the current upgrade data packet until the sending is completed, and then proceed to S304.

[0081] S304: The BMS device to be upgraded checks whether the data accumulation of the current upgrade data packet is correct. If it is correct, the upgrade is performed according to the current upgrade data packet, and it is determined whether the upgrade of the BMS device to be upgraded is successful. If successful, proceed to S305; otherwise, the upgrade of the BMS device to be upgraded is determined to have failed; if incorrect, proceed to S303.

[0082] It should be noted that the check for the correctness of the data accumulation sum of the current upgrade data packet is implemented using the CRC8 algorithm, but it is not the only way to implement it, and this is not a limitation here.

[0083] The host computer will send three commands to query the device status to obtain the current status of the BMS device to be upgraded, and determine whether the upgrade of the BMS device has been successfully completed based on the status.

[0084] S305: Determine if the current upgrade data packet is the last upgrade data packet. If so, determine that the BMS device to be upgraded has been successfully upgraded; otherwise, send the next upgrade data packet and proceed to S303.

[0085] Only when all the upgrade data packets have been sent can the BMS device to be upgraded be considered to have successfully upgraded.

[0086] Step S300 further includes:

[0087] After the BMS device upgrade is successful, the host computer sends an exit upgrade command to exit the upgrade program and sends a cancel write function command. The BMS slave control board continues to upload message information, and the BMS main control board continues to interpret the message information.

[0088] Based on the same concept, this application also provides a BMS upgrade system, please refer to [link / reference]. Figure 4 The system includes:

[0089] The first sending module is used to send a write function command to stop the BMS slave control board from uploading message information and to stop the BMS main control board from interpreting the message information; it is also used to send a cancel write function command to allow the BMS slave control board to continue uploading message information and the BMS main control board to continue interpreting the message information.

[0090] The second sending module is used to send upgrade commands, enter upgrade commands, unlock / erase commands, backup commands, erase commands, and exit upgrade commands.

[0091] The response module is used to respond once when the BMS device to be upgraded receives the upgrade command; to respond a second time when the BMS device to be upgraded receives the enter upgrade command; and to respond a third time when the BMS device to be upgraded receives the unlock erase command.

[0092] Backup module: Used to erase the backup area page by page on the BMS device to be upgraded, and copy the current version of the program to the backup area.

[0093] Erase module: Used to erase the storage area of ​​the current version of the program page by page on the BMS device to be upgraded.

[0094] The third sending module is used to send upgrade data packets, and the data in the upgrade data packets is sent frame by frame.

[0095] Upgrade module: Used for the BMS device to be upgraded to perform a flashing upgrade based on the upgrade data package.

[0096] The system also includes:

[0097] Query module: Used to query the status of the BMS device to be upgraded, in order to determine whether the backup, erasure, and upgrade were successful.

[0098] The first judgment module is used to determine whether the data in the current upgrade data packet has been completely sent.

[0099] The second judgment module is used to determine whether the current upgrade data packet is the last upgrade data packet.

[0100] Check module: Used to check whether the data accumulation of the current upgrade data package is correct.

[0101] Based on the same concept, this application also provides an electronic device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the BMS upgrade method.

[0102] In summary, this application provides a BMS upgrade method, system, and storage medium. The device to be upgraded receives an upgrade command and enters the upgrade program, sequentially executing the backup command and erase command sent by the host computer, and simultaneously completing the upgrade according to the upgrade data packet. This application can simultaneously upgrade one or a combination of the BMS main control board and N BMS slave control boards. Furthermore, during the upgrade process, the original program of the BMS device to be upgraded is backed up, so even if the upgrade fails, the functionality of the BMS device to be upgraded will not be affected. At the same time, the upgrade data packet is checked, further ensuring the accuracy of the upgrade data.

[0103] Although exemplary embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above exemplary embodiments are merely illustrative and are not intended to limit the scope of this application. Various changes and modifications can be made therein by those skilled in the art without departing from the scope and spirit of this application. All such changes and modifications are intended to be included within the scope of this application as claimed in the appended claims.

[0104] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0105] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed.

[0106] The various component embodiments of this application can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some modules according to the embodiments of this application. This application can also be implemented as an apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such an implementation of this application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0107] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0108] Although the description of this application has been made in conjunction with the specific embodiments described above, it will be apparent to those skilled in the art that many substitutions, modifications, and variations can be made based on the foregoing. Therefore, all such substitutions, modifications, and variations are included within the spirit and scope of the appended claims.

Claims

1. A BMS upgrade method, characterized in that, Includes the following steps: S100: The host computer sends an upgrade command, and the BMS device to be upgraded receives the upgrade command and responds once; S200: The host computer sends an upgrade command to the BMS device to be upgraded. The BMS device to be upgraded receives the upgrade command and responds twice to enter the upgrade procedure. S300: The BMS device to be upgraded executes the backup command and erase command sent by the host computer in sequence, and receives the upgrade data packet sent by the host computer to complete the upgrade according to the upgrade data packet; Step S100 includes: S101: Determine whether the upgrade command sent by the host computer is a BMS main control board upgrade command. If so, the BMS main control board receives the BMS main control board upgrade command and responds once; otherwise, proceed to S102. S102: Determine whether the upgrade command sent by the host computer is an individual upgrade command for any BMS slave control board. If so, the BMS slave control board receives the individual upgrade command and responds once; otherwise, proceed to S103. S103: Determine whether the upgrade command sent by the host computer is a simultaneous upgrade command for all BMS slave control boards. If so, the BMS slave control board receives the simultaneous upgrade command and responds once; otherwise, proceed to S104. S104: The host computer sends a command to cancel the write function, the BMS slave control board continues to upload message information, and the BMS main control board continues to interpret the message information; Step S300 includes: S301: The host computer sends a backup command to the BMS device to be upgraded; the BMS device to be upgraded erases the backup area page by page, copies the current version of the program to the backup area, and determines whether the backup of the BMS device to be upgraded is successful. If it is successful, proceed to S302; otherwise, it is determined that the upgrade of the BMS device to be upgraded has failed. S302: The host computer sends an erase command to the BMS device to be upgraded. The BMS device to be upgraded erases the storage area of ​​the current version of the program page by page, and determines whether the BMS device to be upgraded has successfully erased. If it has been successful, the host computer sends a preset number of upgrade data packets to the BMS device to be upgraded; otherwise, it determines that the upgrade of the BMS device has failed. S303: The data in the upgrade data packet is sent frame by frame. It is determined whether the data in the current upgrade data packet has been sent completely. If it has been sent completely, proceed to S304; otherwise, continue sending the data in the current upgrade data packet until the sending is completed, and then proceed to S304. S304: The BMS device to be upgraded checks whether the data accumulation of the current upgrade data packet is correct. If it is correct, the upgrade is performed according to the current upgrade data packet, and it is determined whether the upgrade of the BMS device to be upgraded is successful. If successful, proceed to S305. Otherwise, the upgrade of the BMS device to be upgraded is deemed to have failed; if incorrect, proceed to S303. S305: Determine if the current upgrade data packet is the last upgrade data packet. If so, determine that the BMS device to be upgraded has been successfully upgraded; otherwise, send the next upgrade data packet and proceed to S303.

2. The BMS upgrade method according to claim 1, characterized in that, Before performing step S100, the following are included: The host computer sends a write function command to the BMS master control board and BMS slave control board on the CAN bus. The BMS slave control board stops uploading message information, and the BMS master control board stops interpreting the message information.

3. The BMS upgrade method according to claim 2, characterized in that, The BMS device to be upgraded is a BMS main control board and N BMS slave control boards or a combination thereof; N≥1.

4. The BMS upgrade method according to claim 3, characterized in that, Step S200 further includes: The system determines whether the BMS device to be upgraded has entered the upgrade process. If it has, the host computer sends an unlock / erase command to the BMS device to be upgraded. The BMS device to be upgraded receives the unlock / erase command and responds three times. Otherwise, the upgrade of the BMS device to be upgraded is determined to have failed.

5. The BMS upgrade method according to claim 4, characterized in that, Step S300 further includes: after the BMS device upgrade is successful, the host computer sends an exit upgrade command to exit the upgrade program and sends a cancel write function command. The BMS slave control board continues to upload message information, and the BMS main control board continues to interpret the message information.

6. A system employing the BMS upgrade method as described in any one of claims 1-5, characterized in that, The system includes: The first sending module is used to send a write function command to stop the BMS slave control board from uploading message information and to stop the BMS main control board from interpreting the message information; it is also used to send a cancel write function command to allow the BMS slave control board to continue uploading message information and the BMS main control board to continue interpreting the message information. The second sending module is used to send upgrade commands, enter upgrade commands, unlock and erase commands, backup commands, erase commands, and exit upgrade commands. The response module is used to respond once when the BMS device to be upgraded receives the upgrade command; it is also used to respond a second time when the BMS device to be upgraded receives the enter upgrade command; and it is also used to respond a third time when the BMS device to be upgraded receives the unlock erase command. Backup module: used to erase the backup area page by page on the BMS device to be upgraded, and copy the current version of the program to the backup area; Erase module: Used to erase the storage area of ​​the current version of the program page by page on the BMS device to be upgraded; The third sending module is used to send upgrade data packets, wherein the data in the upgrade data packets is sent frame by frame. Upgrade module: Used for the BMS device to be upgraded to perform a flashing upgrade based on the upgrade data package; Query module: Used to query the status of the BMS device to be upgraded, in order to determine whether the backup, erasure, and upgrade were successful. First judgment module: used to determine whether the data in the current upgrade data packet has been completely sent; The second judgment module is used to determine whether the current upgrade data packet is the last upgrade data packet. Check module: Used to check whether the data accumulation of the current upgrade data package is correct.

7. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the BMS upgrade method according to any one of claims 1-5.

Citation Information

Patent Citations

  • System and method for realizing BMS upgrading through serial port

    CN110727452A

  • System upgrading method, upper computer and storage medium

    CN110990042A