Battery management software update method, device, equipment and storage medium

By matching software packages for each chip separately in the case of chip mixing, and updating them in batches using the maximum number of connections, the problem of low battery management software update efficiency under chip mixing is solved, and fast and efficient software updates are achieved.

CN119356714BActive Publication Date: 2025-05-06CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411833720.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-05-06
Estimated Expiration
2044-12-13

AI Technical Summary

Technical Problem

In the case of chip mixing, the battery management software update efficiency in the prior art is low, affecting on-site debugging and project operation and maintenance.

Method used

By determining the software installation packages that each chip matches, the battery management software of different chips is updated together. Regardless of the differences between software versions, the maximum number of connections is used to update in batches. Different versions of the battery management software can be updated at the same time each time.

Benefits of technology

In the case of chip mixing, software updates of all chips can be quickly completed, update efficiency can be improved, non-essential processes can be reduced, on-site debugging and operation and maintenance efficiency can be improved, and the cost of updates can be reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356714B_ABST
    Figure CN119356714B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of battery technology, and discloses a battery management software update method, device, equipment and storage medium. The method includes: based on the received software update instruction, determining multiple chips to be updated within the update range, the battery management software of the multiple chips to be updated having at least two different version information; based on the version information of the battery management software of each chip to be updated, respectively determining the matching update package of each chip to be updated in the received software update package; based on the matching update package of each chip to be updated, updating the battery management software of each chip to be updated. By updating different versions of battery management software together, the current update requirements can be quickly completed even in the case of mixed chips, thereby improving the update efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery technology, and in particular to a battery management software updating method, device, equipment and storage medium. Background Art

[0002] The Battery Management System (BMS) is a key technology in applications such as electric vehicles and energy storage systems. It is responsible for monitoring and managing battery energy storage units to ensure the safe use of batteries during the charging and discharging process. BMS can use chips to sample / collect relevant data of the battery. When updating the battery management software in the chip, the same version of the software is usually updated together. However, in the case of chip mixing, different chips are usually equipped with different versions of battery management software. Updating one version of the software each time is inefficient, which affects on-site debugging and project operation and maintenance.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a battery management software update method, device, equipment and storage medium, aiming to solve the technical problem of low battery management software update efficiency when chips are mixed in the prior art.

[0005] In a first aspect, the present invention provides a method for updating battery management software, the method comprising the following steps:

[0006] Based on the received software update instruction, determining a plurality of chips to be updated within an update range, wherein the battery management software of the plurality of chips to be updated has at least two different version information;

[0007] Based on the version information of the battery management software of each chip to be updated, respectively determine the matching update package of each chip to be updated in the received software update package;

[0008] Based on the matching update package of each chip to be updated, the battery management software of each chip to be updated is updated.

[0009] In this solution, the battery management software of different chips are updated together by determining the software installation package that matches each chip respectively. Regardless of the differences between the software versions, different versions of the battery management software can be updated at the same time. In the case of mixed chips, the software update of all chips can be completed quickly, which improves the update efficiency. There is no need for repeated debugging and settings, which reduces unnecessary processes, improves on-site debugging efficiency and operation and maintenance efficiency, and reduces the cost of updates.

[0010] In some embodiments, the step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated includes: when the number of chips to be updated is less than or equal to the maximum number of connections, the battery management software of each chip to be updated is updated simultaneously based on the matching update package of each chip to be updated.

[0011] By updating the battery management software of different chips together when mixing a small amount of chips, without considering the differences between the software versions, all different versions of the battery management software can be updated at one time without the need to update in batches, greatly reducing the number of updates, and being able to quickly complete the software update of all chips, thereby improving update efficiency, on-site debugging efficiency, and operation and maintenance efficiency.

[0012] In some embodiments, the step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated includes: when the number of chips to be updated is greater than the maximum number of connections, dividing the chips to be updated into multiple chips groups based on the maximum number of connections; based on the matching update package of the chips to be updated in each chips group, updating the battery management software of the chips to be updated in each chips group in turn, and updating the battery management software of the chips to be updated in the same chips group at the same time.

[0013] By updating the battery management software of different chips together when a large number of chips are mixed, regardless of the differences between the software versions, and updating in batches according to the maximum number of connections, different versions of the battery management software can be updated at the same time each time, reducing the number of updates, quickly completing the software update of all chips, and improving update efficiency.

[0014] In some embodiments, the step of dividing the chips to be updated into multiple chip groups based on the maximum number of connections includes: determining the update priority of each chip to be updated based on the information feedback time of each chip to be updated; sorting the chips to be updated in descending order based on the update priority of each chip to be updated; and dividing the sorted chips to be updated into multiple chip groups based on the maximum number of connections.

[0015] When a large number of chips are mixed, the priority of each chip is set by using the information feedback time. After sorting by priority, the chips are updated in batches with the maximum number of connections. Different versions of the battery management software can be updated at the same time each time. There is no need to consider the differences between the software versions. The battery management software of different chips can be updated together, reducing the number of updates, quickly completing the software update of all chips, and improving the update efficiency.

[0016] In some embodiments, the step of updating the battery management software of the chip to be updated in each chipset in sequence based on the matching update package of the chip to be updated in each chipset includes: determining the highest priority of the chip to be updated in each chipset based on the update priority of the chip to be updated in each chipset; taking the highest priority of the chip to be updated in each chipset as the update priority of the corresponding chipset; and updating the battery management software of the chip to be updated in each chipset in sequence according to the update priority of each chipset based on the matching update package of the chip to be updated in each chipset.

[0017] When a large number of chips are mixed, each chip is divided into different chipsets according to priority. The highest priority chip in the group is used as the priority of the chipset when updating. The chips are updated in batches according to the priority of the chipset. Different versions of the battery management software can be updated at the same time each time without considering the differences between the software versions. The battery management software of different chips can be updated together, reducing the number of updates, quickly completing the software update of all chips, and improving the update efficiency.

[0018] In some embodiments, the step of dividing the chips to be updated into multiple chips groups based on the maximum number of connections includes: randomly sorting the chips to be updated; and dividing the sorted chips to be updated into multiple chips groups based on the maximum number of connections.

[0019] By updating in batches randomly according to the maximum number of connections when a large number of chips are mixed, different versions of the battery management software can be updated at the same time each time. There is no need to consider the differences between the software versions. The battery management software of different chips can be updated together, reducing the number of updates, quickly completing the software update of all chips, and improving the update efficiency, on-site debugging efficiency and operation and maintenance efficiency.

[0020] In some embodiments, the step of updating the battery management software of the chip to be updated in each chipset in sequence based on the matching update package of the chip to be updated in each chipset includes: randomly determining the update order of each chipset; updating the battery management software of the chip to be updated in each chipset in sequence according to the update order of each chipset based on the matching update package of the chip to be updated in each chipset.

[0021] When a large number of chips are mixed, the chips are randomly divided into different chipsets, and the order of the chipsets when updating is randomly determined. Each chipset is updated in batches in sequence. Different versions of the battery management software can be updated at the same time each time. There is no need to consider the differences between the software versions. The battery management software of different chips can be updated together, which reduces the number of updates, quickly completes the software update of all chips, and improves the update efficiency.

[0022] In some embodiments, after the step of determining the matching update package for each chip to be updated in the received software update package based on the version information of the battery management software of each chip to be updated, the step also includes: performing a compatibility check on the matching update package for each chip to be updated; after the compatibility check passes, executing the step of updating the battery management software of each chip to be updated based on the matching update package for each chip to be updated.

[0023] By checking the compatibility between the chip and the matching update package, and starting to update the battery management software after the compatibility check is passed, it can be ensured that the matching update package of the chip is accurate and effective, and can be used for software updates, avoiding chip abnormalities after the update is completed, and ensuring that the chip can work normally after the update is completed.

[0024] In some embodiments, after the step of determining the matching update package for each chip to be updated in the received software update package based on the version information of the battery management software of each chip to be updated, the step also includes: after each chip to be updated has verified the version field content of the matching update package, executing the step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated.

[0025] The matching update package is verified by the battery management software itself, and the update is started after the verification is passed. This can ensure that the matching update package of the chip is appropriate and can be used for software updates, avoid chip abnormalities after the update is completed, and ensure that the chip can work normally after the update is completed.

[0026] In some embodiments, the step of determining multiple chips to be updated within the update range based on the received software update instruction also includes: performing version verification on the battery management software of each chip to be updated and the received software update package; after the version verification passes, executing the step of determining the matching update package for each chip to be updated based on the version information of the battery management software of each chip to be updated.

[0027] By performing version verification on the software update package and the chip's battery management software, after the verification is passed, the software update package required by each chip is matched to avoid matching the wrong software update package, further ensuring that the matching update package of the chip is accurate and effective, and further ensuring the smooth completion of the update.

[0028] In some embodiments, the step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated also includes: receiving update data fed back by each chip to be updated, and determining the software update result of each chip to be updated based on the update data; and re-updating the chip to be updated whose software update result is update failure.

[0029] By monitoring the update status of the battery management software in all chips, the software will be updated again when an update fails, thus avoiding the accidental update failure and ensuring the accuracy of the update result.

[0030] In a second aspect, in order to achieve the above-mentioned purpose, the present invention further proposes a battery management software update device, the battery management software update device comprising:

[0031] A chip determination module, configured to determine, based on the received software update instruction, a plurality of chips to be updated within an update range, wherein the battery management software of the plurality of chips to be updated has at least two different version information;

[0032] A version matching module, used to determine the matching update package of each chip to be updated in the received software update package based on the version information of the battery management software of each chip to be updated;

[0033] The software update module is used to update the battery management software of each chip to be updated based on the matching update package of each chip to be updated.

[0034] In the third aspect, to achieve the above-mentioned purpose, the present invention also proposes a battery management software update device, which includes: a memory, a processor, and a battery management software update program stored in the memory and executable on the processor, and the battery management software update program is configured to implement the steps of the battery management software update method as described above.

[0035] In a fourth aspect, in order to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a battery management software update program is stored, and when the battery management software update program is executed by a processor, the steps of the battery management software update method described above are implemented.

[0036] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same figure numbers are used throughout the drawings to represent the same components. In the drawings:

[0038] Figure 1 A flowchart of a battery management software update method according to some embodiments of the present application;

[0039] Figure 2 It is another flowchart of the battery management software update method according to some embodiments of the present application;

[0040] Figure 3 It is another flowchart of the battery management software update method according to some embodiments of the present application;

[0041] Figure 4 This is a schematic diagram of the overall process of some embodiments of the present application;

[0042] Figure 5 This is another overall flow chart of some embodiments of the present application;

[0043] Figure 6 Schematic diagram of a battery management software update device according to some embodiments of the present application.

[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0047] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0048] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0049] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0050] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).

[0051] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the embodiments of the present application.

[0052] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0053] The Battery Management System (BMS) is a key technology in applications such as electric vehicles and energy storage systems. It is responsible for monitoring and managing battery energy storage units to ensure the safe use of batteries during charging and discharging. BMS can use chips to sample / collect relevant data about the battery, such as the temperature of the battery cell. If the chip currently in use is in short supply or out of supply, other similar chips are usually selected as a replacement, and chip mixing may occur at this time.

[0054] When updating the battery management software in the chip, the same version of the software is usually updated together. However, in the case of chip mixing, different chips are usually equipped with different versions of battery management software. If only one version of the software is updated each time, the update efficiency is low, affecting the efficiency of on-site debugging and project operation and maintenance, and also increasing certain costs.

[0055] Therefore, the embodiment of the present application determines the software installation package that matches each chip separately, and updates the battery management software of different chips together. Regardless of the differences between the software versions, different versions of battery management software can be updated at the same time without the need to update in batches. In the case of mixed chips, the software update of all chips can be completed quickly, thereby improving the update efficiency. There is no need for repeated debugging and settings, reducing unnecessary processes, improving on-site debugging efficiency and operation and maintenance efficiency, and reducing the cost of updates.

[0056] It should be noted that the embodiments described in the present application are applied to the scenario of updating the battery management software when chips are mixed. For example, multiple chips need to update the battery management software, and the software version of each chip is different. If the traditional method is used to update one version at a time, these chips need to be updated in multiple times, which is inefficient. Based on the battery management software update method described in the present application, different versions of battery management software can be updated together, and the software update of all chips can be completed quickly, thereby improving efficiency.

[0057] This application proposes a battery management software update method to solve the technical problem of low efficiency of battery management software update when chip mixing occurs. Figure 1 , please refer to Figure 1 In this example, the battery management software update method includes:

[0058] Step S10: Based on the received software update instruction, multiple chips to be updated within the update range are determined, and the battery management software of the multiple chips to be updated has at least two different version information.

[0059] It should be noted that the executor of this embodiment may be a slave control unit of the BMS, i.e., a slave battery management unit (SBMU), which updates the battery management software through a battery management software updater. It may also be other terminal devices with computing capabilities, and this embodiment does not impose any restrictions on this.

[0060] The chip to be updated refers to the BMS chip that is currently determined to need to update the battery management software. It can be an MCU (Microcontroller Unit) chip or other BMS chip with battery management software. This embodiment does not specifically limit this. Battery management software refers to the relevant software used by BMS, such as: CSC (Computer Software Component) information acquisition software used to monitor the voltage, temperature and other information of each battery cell or battery pack. This embodiment does not limit this. Version information is version-related information, including at least the version number and version release time. The version number is usually composed of a major version number, a minor version number, a revision number and a build number. Each battery management software has corresponding version information. Generally speaking, different types of chips usually have different versions of battery management software.

[0061] The software update instruction refers to an instruction to update the battery management software, which usually includes the update time and the name / type of the battery management software to be updated, and can also specify the chips that need to be updated / not updated, which is not limited in this embodiment. The software update instruction can be sent by the host computer. In the specific implementation, the battery management software flashes the host computer to send the software update instruction to the corresponding SBMU.

[0062] The update scope refers to the scope of the current update, which is usually determined according to the software update instruction. For example, assuming that the name of the battery management software to be updated in the software update instruction is CSC information collection software, and it is specified that chip A does not need to be updated, the update scope can be all BMS chips equipped with CSC information collection software except chip A. Therefore, the chip to be updated can be found according to the update scope.

[0063] In this embodiment, the battery management software of the chip to be updated has at least two different version information, that is, the chip to be updated can have multiple types / multiple categories, and the chips can be considered mixed. Exemplarily, there are chips A to be updated, chips B to be updated, and chips C to be updated in the update range. The battery management software in chip A to be updated is version X1, the battery management software in chip B to be updated is version Y1, and the battery management software in chip C to be updated is version Z1. In specific implementation, the version of the battery management software does not need to be set in the software update instruction. This embodiment can directly update the battery management software in the scenario of mixed chips.

[0064] Step S20: Based on the version information of the battery management software of each chip to be updated, a matching update package for each chip to be updated is determined in the received software update package.

[0065] It should be noted that the SBMU can interact with the battery management software of the chip to be updated, so that the battery management software of the chip to be updated can feed back its own version information to the SBMU.

[0066] The software update package is a data package used for updating the battery management software, which can be sent by the host computer. In the specific implementation, the battery management software is flashed by the host computer and sends the software update package to the corresponding SBMU. In this embodiment, the software update packages required by all chips to be updated are sent by the host computer to the SBMU. Since the battery management software of the chip to be updated has at least two versions, the software update package received by the SBMU also has at least two versions.

[0067] The matching update package is the software update package used by the chip to be updated to update the battery management software. Different versions of battery management software usually require different software update packages, that is, different versions of battery management software correspond to different matching update packages. Generally speaking, if the battery management software is upgraded, the version of the matching update package of the chip to be updated is usually the latest version of the battery management software of the chip to be updated. If the battery management software is downgraded, the version of the matching update package of the chip to be updated is usually the historical version of the battery management software of the chip to be updated, so that the matching update package of each chip to be updated can be accurately found in the received software update package.

[0068] For example, assuming that the battery management software in chip A to be updated is version X1, and the battery management software in chip B to be updated is version Y1, if the software update packages received by SBMU are version X2 and version Y2, then the matching update package for chip A to be updated is version X2, and the matching update package for chip B to be updated is version Y2.

[0069] Step S30: updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated.

[0070] It is understandable that after determining the matching update packages for each chip to be updated, the battery management software can be updated. In this embodiment, all chips to be updated can update the battery management software together, that is, different versions of the battery management software can be updated at the same time, which can minimize the number of updates, reduce the time spent on updates, and improve efficiency compared to updating only one version at a time.

[0071] It should be understood that the update of the battery management software in this embodiment may be a software upgrade or a software downgrade, and this embodiment does not specifically limit this and is determined according to actual needs.

[0072] In this embodiment, the battery management software of different chips are updated together by respectively determining the software installation package that matches each chip. Regardless of the differences between the software versions, different versions of the battery management software can be updated at the same time. In the case of mixed chips, the software update of all chips can be completed quickly, thereby improving the update efficiency. There is no need for repeated debugging and settings, reducing unnecessary processes, improving on-site debugging efficiency and operation and maintenance efficiency, and reducing the cost of updates.

[0073] In some embodiments, different versions of battery management software can be updated simultaneously when a small amount of chips are mixed.

[0074] As an example, see Figure 2 , based on the matching update package of each chip to be updated, the steps of updating the battery management software of each chip to be updated include:

[0075] Step S301, when the number of chips to be updated is less than or equal to the maximum number of connections, the battery management software of each chip to be updated is updated simultaneously based on the matching update package of each chip to be updated.

[0076] It should be noted that the maximum connection number, that is, the maximum number of chips that the SBMU can connect to, can also be considered as the upper limit of the number of chips that the SBMU can update simultaneously.

[0077] If the number of chips to be updated is less than or equal to the maximum number of connections, it means that the number of chips to be updated does not exceed the upper limit. At this time, the SBMU can simultaneously update the battery management software of all chips to be updated.

[0078] Exemplarily, the number of chips to be updated is 10, the maximum number of connections is 20, and the number of chips to be updated is less than or equal to the maximum number of connections. Then, the SBMU can simultaneously update the current 10 chips to be updated.

[0079] Specifically, the number of chips to be updated is counted. If the number of chips to be updated is less than or equal to the maximum number of connections, the battery management software of the chips to be updated is updated simultaneously according to the matching update packages of the chips to be updated, and the update is completed at one time.

[0080] By updating the battery management software of different chips together when mixing a small amount of chips, without considering the differences between the software versions, all different versions of the battery management software can be updated at one time without the need to update in batches, greatly reducing the number of updates, and being able to quickly complete the software update of all chips, thereby improving update efficiency, on-site debugging efficiency, and operation and maintenance efficiency.

[0081] In some embodiments, when a large number of chips are mixed, the battery management software of the chips to be updated may be updated as much as possible each time according to the maximum number of connections.

[0082] As an example, see Figure 3 , based on the matching update package of each chip to be updated, the steps of updating the battery management software of each chip to be updated include:

[0083] Step S301', when the number of chips to be updated is greater than the maximum number of connections, the chips to be updated are divided into a plurality of chip groups based on the maximum number of connections;

[0084] It should be noted that the maximum connection number, that is, the maximum number of chips that the SBMU can connect to, can also be considered as the upper limit of the number of chips that the SBMU can update simultaneously.

[0085] If the number of chips to be updated is greater than the maximum number of connections, it means that the number of chips to be updated has exceeded the upper limit. At this time, the SBMU cannot update the battery management software of all chips to be updated at the same time and needs to do it in batches. Therefore, in this embodiment, all chips to be updated are divided into different chips groups.

[0086] The chipsets are divided according to the maximum number of connections, that is, only one chipset has a number of chips to be updated that is less than or equal to the maximum number of connections, and the numbers of chips to be updated in the other chipsets are all the maximum number of connections.

[0087] Exemplarily, the number of chips to be updated is 25, the maximum number of connections is 10, the number of chips to be updated is greater than or equal to the maximum number of connections, and the current 25 chips to be updated are divided into three chips groups according to the maximum number of connections. The first chips group and the second chips group have 10 chips to be updated, and the third chips group has 5 chips to be updated.

[0088] Step S302', based on the matching update package of the chip to be updated in each chipset, the battery management software of the chip to be updated in each chipset is updated in sequence, and the battery management software of the chips to be updated in the same chipset are updated simultaneously.

[0089] In this embodiment, the SBMU can update the battery management software of the chips to be updated as much as possible according to the maximum number of connections each time. The battery management software of the chips to be updated in the same chipset are updated simultaneously.

[0090] Specifically, the number of chips to be updated is counted. If the number of chips to be updated is greater than the maximum number of connections, all chips to be updated are divided into different chips groups according to the maximum connection data, and the battery management software of the chips to be updated in the chips group is updated in a certain order. The battery management software in each chips group is updated simultaneously.

[0091] By updating the battery management software of different chips together when a large number of chips are mixed, regardless of the differences between the software versions, and updating in batches according to the maximum number of connections, different versions of the battery management software can be updated at the same time each time, reducing the number of updates, quickly completing the software update of all chips, and improving update efficiency.

[0092] In some embodiments, the order of updates may be determined according to priority.

[0093] As an example, the step of dividing the chips to be updated into multiple chip groups based on the maximum number of connections includes: determining the update priority of each chip to be updated based on the information feedback time of each chip to be updated; sorting the chips to be updated in descending order based on the update priority of each chip to be updated; and dividing the sorted chips to be updated into multiple chip groups based on the maximum number of connections.

[0094] It should be noted that the information feedback time refers to the time when the chip to be updated feeds back relevant information to the SBMU when the chip to be updated interacts with the SBMU. It can be the feedback time of the information that the chip to be updated has already fed back, for example: the time to feed back its own battery management software version information, or it can be the feedback time of the information that the current designated chip to be updated needs to feed back. This embodiment does not specifically limit this. The update priority is the priority of the battery management software in each chip to be updated when updating. Generally, the higher the update priority, the earlier the update, and the lower the update priority, the later the update.

[0095] The update priority can be represented by a number, and the smaller the number, the higher the update priority. For example, the update priority of chip A to be updated is 1, the update priority of chip B to be updated is 2, and the update priority of chip C to be updated is 3. Then, the update priority of chip A to be updated is higher than the update priority of chip B to be updated, and the update priority of chip B to be updated is higher than the update priority of chip C to be updated.

[0096] It is understandable that this embodiment uses the information feedback time to set the update priority of each chip to be updated. In the specific implementation, the earlier the information feedback time is, the earlier the chip to be updated is ready for update, and the higher the update priority of the chip to be updated. Exemplarily, if the information feedback time of chip A to be updated is 10 seconds ago, and the information feedback time of chip B to be updated is 5 seconds ago, then the update priority of chip A to be updated is higher than the update priority of chip B to be updated.

[0097] According to the update priority of the chip to be updated, the chips to be updated are sorted in descending order. The higher the update priority, the higher the ranking, and the lower the update priority, the lower the ranking. For example, the update priority of chip A to be updated is 1, the update priority of chip B to be updated is 2, and the update priority of chip C to be updated is 3. Then the order is: chip A to be updated, chip B to be updated, and chip C to be updated.

[0098] After the chips to be updated are sorted according to the update priority, they are divided into different chipsets, and the chips to be updated of each chipset are determined in order from front to back according to the maximum number of connections. For example, assuming that the sorted chips to be updated are K1~K25 and the maximum number of connections is 10, they can be divided into three chipsets, K1~K10 is the first chipset, K11~K20 is the second chipset, and K21~K25 is the third chipset.

[0099] It should be understood that when sorting, if some chips to be updated have not yet fed back relevant information, the information feedback time cannot be determined. Since the information feedback time of these chips to be updated is already later than the determined information feedback time, the chips to be updated whose information feedback time has been determined can be sorted first. If the maximum number of connections has been reached, the corresponding chipsets can be divided first, and the chipsets that have been divided first can be updated first to further improve the update efficiency. In addition, the chips to be updated that have not fed back relevant information can be considered to be abnormal, so as to screen out abnormal chips, and these chips can be removed from the update range to ensure that all chips in the update range are updated (whether the update is successful depends on the final result).

[0100] When a large number of chips are mixed, the chip priority is set using the information feedback time, and they are updated in batches after being sorted by priority with the maximum number of connections. Different versions of the battery management software can be updated at the same time each time. There is no need to consider the differences between the software versions. The battery management software of different chips can be updated together, reducing the number of updates, quickly completing the software update of all chips, and improving update efficiency.

[0101] Furthermore, as an example, based on the matching update packages of the chips to be updated in each chipset, the steps of updating the battery management software of the chips to be updated in each chipset in turn include: determining the highest priority of the chips to be updated in each chipset based on the update priority of the chips to be updated in each chipset; using the highest priority of the chips to be updated in each chipset as the update priority of the corresponding chipset; and updating the battery management software of the chips to be updated in each chipset in turn according to the update priority of each chipset based on the matching update packages of the chips to be updated in each chipset.

[0102] It should be noted that each chip to be updated has its own update priority. The highest priority of the chip to be updated in the chipset is the highest update priority of all the chips to be updated in the chipset, which is used as the update priority of the chipset. For example, if the update priority of chip A to be updated in the chipset is 1, the update priority of chip B to be updated is 2, and the update priority of chip C to be updated is 3, then the highest priority of the chips to be updated in the chipset is 1, and the update priority of the chipset is 1 at this time.

[0103] After determining the update priority of each chipset, the update order of each chipset can be determined. The higher the update priority of the chipset, the earlier the battery management software of the chips to be updated in the chipset is updated, and the lower the update priority of the chipset, the later the battery management software of the chips to be updated in the chipset is updated. For example, if the update priority of chipset E is 1 and the update priority of chipset F is 6, then chipset E is updated before chipset F.

[0104] When a large number of chips are mixed, each chip is divided into different chipsets according to priority. The highest priority chip in the group is used as the priority of the chipset when updating. The chips are updated in batches according to the priority of the chipset. Different versions of the battery management software can be updated at the same time each time without considering the differences between the software versions. The battery management software of different chips can be updated together, reducing the number of updates, quickly completing the software update of all chips, and improving the update efficiency.

[0105] In some embodiments, the order of updates may be determined randomly.

[0106] As an example, the step of dividing the chips to be updated into multiple chip groups based on the maximum number of connections includes: randomly sorting the chips to be updated; and dividing the sorted chips to be updated into multiple chip groups based on the maximum number of connections.

[0107] It is understandable that this embodiment uses a random method to sort all chips to be updated. After the chips to be updated are sorted, they are divided into different chips groups. When dividing, the chips to be updated of each chips group are determined in order from front to back according to the maximum number of connections.

[0108] Since the order is random, the chips to be updated in each chipset are also random, and there is no need to consider the division conditions. The corresponding chipsets can be quickly divided, further improving the update efficiency.

[0109] By updating in batches randomly according to the maximum number of connections when a large number of chips are mixed, different versions of the battery management software can be updated at the same time each time. There is no need to consider the differences between the software versions. The battery management software of different chips can be updated together, reducing the number of updates, quickly completing the software update of all chips, and improving the update efficiency, on-site debugging efficiency and operation and maintenance efficiency.

[0110] Furthermore, as an example, based on the matching update package of the chip to be updated in each chipset, the step of updating the battery management software of the chip to be updated in each chipset in sequence includes: randomly determining the update order of each chipset; based on the matching update package of the chip to be updated in each chipset, updating the battery management software of the chip to be updated in each chipset in sequence according to the update order of each chipset.

[0111] It should be noted that the update sequence of each chipset can also be determined in a random manner, and the battery management software of the chip to be updated in each chipset is updated in sequence according to the randomly obtained update sequence.

[0112] When a large number of chips are mixed, the chips are randomly divided into different chipsets, and the order of the chipsets when updating is randomly determined. Each chipset is updated in batches in sequence. Different versions of the battery management software can be updated at the same time each time. There is no need to consider the differences between the software versions. The battery management software of different chips can be updated together, which reduces the number of updates, quickly completes the software update of all chips, and improves the update efficiency.

[0113] In some embodiments, there may be compatibility issues between the matching update package and the chip, and a compatibility check may be performed before the update.

[0114] As an example, based on the version information of the battery management software of each chip to be updated, after the step of determining the matching update package of each chip to be updated in the received software update package, the method also includes: performing a compatibility check on the matching update package of each chip to be updated; after the compatibility check passes, executing the step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated.

[0115] It should be noted that, after determining the matching update package of each chip to be updated, this embodiment will perform a compatibility check on the matching update package of each chip to be updated. If the matching update package of the chip to be updated is compatible with the chip to be updated, the matching update package can be used to update the battery management software, and there will be no compatibility issues after the update, then it is considered that the matching update package of the chip to be updated has passed the compatibility check; conversely, if the matching update package of the chip to be updated is incompatible with the chip to be updated, the matching update package cannot be used to update the battery management software, and there is a high probability that compatibility issues will occur when using the matching update package to update, then it is considered that the matching update package of the chip to be updated has not passed the compatibility check.

[0116] It is understandable that, in specific implementation, IAP (In Applicating Programing) messages can be used to perform compatibility verification. The IAP message can define the received and feedback information. Through different IAP message contents, the compatibility between the matching update package and the corresponding chip to be updated can be verified.

[0117] It should be understood that if the compatibility check of the matching update package of the chip to be updated passes, the updating of the matching update package of the chip to be updated will start; if the compatibility check of the matching update package of the chip to be updated fails, the updating of the matching update package of the chip to be updated will stop.

[0118] By checking the compatibility between the chip and the matching update package, and starting to update the battery management software after the compatibility check is passed, it can be ensured that the matching update package of the chip is compatible and can be used for software updates, avoiding chip abnormalities after the update is completed, and ensuring that the chip can work normally after the update is completed.

[0119] In some embodiments, to avoid problems with updates, each chip can verify matching update packages on its own.

[0120] As an example, based on the version information of the battery management software of each chip to be updated, after the step of determining the matching update package of each chip to be updated in the received software update package, the method also includes: after each chip to be updated verifies the version field content of the matching update package, executing the step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated.

[0121] It should be noted that the content of the version field refers to the content of each field in the version number. Generally speaking, if a software update package can be successfully used to update the battery management software, the software update package is at least compatible with the battery management software. At this time, the version number of the software update package and the version number of the battery management software have some fields that are the same, such as: major version number, minor version number, that is, the version field content of the matching update package is verified to pass, and the conditions that need to be met are: the content of the specified field in the version number of the matching update package of the chip to be updated is the same as the content of the specified field in the version number of the matching update package of the chip to be updated, where the specified field can be set according to actual conditions.

[0122] If the content of the specified field in the version number of the matching update package of the chip to be updated is the same as the content of the specified field in the version number of the matching update package of the chip to be updated, then the version field content verification of the matching update package of the chip to be updated passes, and the matching update package of the chip to be updated can be used to update the battery management software, and the battery management software of the chip to be updated starts to update; if the content of the specified field in the version number of the matching update package of the chip to be updated is not the same as the content of the specified field in the version number of the matching update package of the chip to be updated, then the version field content verification of the matching update package of the chip to be updated fails, and the matching update package of the chip to be updated cannot be used to update the battery management software, and the battery management software of the chip to be updated stops updating.

[0123] The matching update package is verified by the battery management software itself, and the update is started after the verification is passed. This can ensure that the matching update package of the chip is appropriate and can be used for software updates, avoid chip abnormalities after the update is completed, and ensure that the chip can work normally after the update is completed.

[0124] In some embodiments, the versions of the battery management software and the software update package also need to be verified.

[0125] As an example, after the step of determining multiple chips to be updated within the update range based on the received software update instruction, the step also includes: performing version verification on the battery management software of each chip to be updated and the received software update package; after the version verification passes, executing the step of determining the matching update package for each chip to be updated based on the version information of the battery management software of each chip to be updated.

[0126] It should be noted that version verification may include multiple aspects, such as: correctness of version information, completeness of version information, and correlation between software version and update package version, which are not specifically limited in this embodiment.

[0127] The version information fed back by the chip to be updated may be erroneous during the transmission process. Therefore, the version information of the battery management software in the chip to be updated may be verified to ensure the correctness of the version information.

[0128] There may be missing content in the version information of the chip to be updated and the version information of the software update package. Therefore, the version information of the battery management software in the chip to be updated can be verified to ensure the integrity of the version information of the battery management software. At the same time, the version information of the software update package can be verified to ensure the integrity of the version information of the software update package.

[0129] The software update package is sent by the host computer to the SBMU to update the battery management software. It can be seen that the version information of the software update package will have a certain correlation with the version information of a certain battery management software. For example, some content in the version number is the same. If the version information of the software update package has no similarities and no correlation with the version information of all battery management software, it means that the software update package may not be used for this update. The software update package is likely to be sent incorrectly. Therefore, the version information of the battery management software in the chip to be updated and the version information of the software update package can be verified to ensure that there is a correlation between the version information of the software update package and the version information of the battery management software.

[0130] By performing version verification on the software update package and the chip's battery management software, after the verification is passed, the software update package required by each chip is matched to avoid matching the wrong software update package, further ensuring that the matching update package of the chip is accurate and effective, and further ensuring the smooth completion of the update.

[0131] As an example, based on the matching update packages of each chip to be updated, the step of updating the battery management software of each chip to be updated also includes: receiving update data fed back by each chip to be updated, and determining the software update results of each chip to be updated based on the update data; and re-updating the chip to be updated whose software update result is update failure.

[0132] It should be noted that the software update result refers to the final update result of the battery management software, including two situations: update success and update failure. Update data refers to the relevant data during the update process, including at least the progress of the update and the completion of the update.

[0133] It is understandable that the battery management software can provide real-time feedback on the progress of the update to the SBMU, and promptly provide feedback on the completion of the update after the update is completed. The SBMU receives information fed back by the battery management software in each chip to be updated, determines the final update result, and feeds back the final update result to the battery management software flashing host computer.

[0134] If the software update result is a successful update, it means that the corresponding battery management software has been successfully updated, and the battery management software can exit the current update process normally; if the software update result is a failed update, it means that the corresponding battery management software has failed to update, and it can be updated again. If the update still fails, it can be updated again until the number of updates of the battery management software reaches the set threshold. At this time, staff intervention is usually required. The threshold of the number of updates can be set according to the actual situation, for example: 3 times, and this embodiment does not make a specific limitation on this.

[0135] By monitoring the update status of the battery management software in all chips, the software will be updated again when an update fails, thus avoiding the accidental update failure and ensuring the accuracy of the update result.

[0136] This embodiment proposes the following scheme to illustrate the implementation process of the battery management software update method, specifically:

[0137] The first option, refer to Figure 4 , the CSC flashing host computer sends a software update instruction to the corresponding SBMU and sends the update package to the SBMU; the SBMU verifies the version information of the update package and the software version information of the chip to be updated; the SBMU verifies the compatibility of the update package with the chip to be updated through different IAP message contents; the SBMU updates different versions of CSC software in different chips; the CSC provides real-time feedback on the current update progress and the corresponding completion status; the SBMU receives the completion status of the update and feeds back the information of update success or failure to the CSC flashing host computer.

[0138] The second option, refer to Figure 5 , the CSC flashing host computer sends a software update instruction to the corresponding SBMU and sends the update package to the SBMU; the SBMU verifies the version information of the update package and the software version information of the chip to be updated; the SBMU updates different versions of CSC software in different chips; the CSC reads its own software version number and the specific field of the update package version number for verification to confirm whether to perform a software update; the CSC provides real-time feedback on the current update progress and the corresponding completion status; the SBMU receives the completion status of the update and feeds back the information of update success or failure to the CSC flashing host computer.

[0139] The present application also provides a battery management software update device, referring to Figure 6 In this example, the battery management software updating device includes:

[0140] A chip determination module 10, configured to determine a plurality of chips to be updated within an update range based on a received software update instruction, wherein the battery management software of the plurality of chips to be updated has at least two different version information;

[0141] A version matching module 20, for determining a matching update package for each chip to be updated in the received software update package based on the version information of the battery management software of each chip to be updated;

[0142] The software update module 30 is used to update the battery management software of each chip to be updated based on the matching update package of each chip to be updated.

[0143] In the technical solution of the embodiment of the present application, the battery management software of different chips are updated together by respectively determining the software installation package that matches each chip. Regardless of the differences between the software versions, different versions of the battery management software can be updated at the same time. In the case of mixed chips, the software update of all chips can be completed quickly, thereby improving the update efficiency. There is no need for repeated debugging and settings, reducing unnecessary processes, improving on-site debugging efficiency and operation and maintenance efficiency, and reducing the cost of updates.

[0144] The present application also proposes a battery management software update device, which includes: a memory, a processor, and a battery management software update program stored in the memory and executable on the processor, wherein the battery management software update program is configured to implement the steps of the battery management software update method described above.

[0145] The present application also provides a storage medium, on which a battery management software update program is stored. When the battery management software update program is executed by a processor, the steps of the battery management software update method described above are implemented.

[0146] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.

[0147] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.

[0148] In addition, for technical details not fully described in this embodiment, reference can be made to the battery management software updating method provided in any embodiment of the present invention, and will not be repeated here.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.

Claims

1. A battery management software update method, characterized in that: The battery management software updating method comprises: Based on the received software update instruction, determining a plurality of chips to be updated within an update range, wherein the battery management software of the plurality of chips to be updated has at least two different version information; Based on the version information of the battery management software of each chip to be updated, respectively determine the matching update package of each chip to be updated in the received software update package; Based on the matching update package of each chip to be updated, the battery management software of each chip to be updated is updated; The step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated includes: When the number of the chips to be updated is greater than the maximum number of connections, the chips to be updated are divided into multiple chipsets based on the maximum number of connections, and the battery management software of the chips to be updated in each chipset is updated in sequence based on the matching update packages of the chips to be updated in each chipset, and different versions of battery management software in the same chipset are updated simultaneously; When the number of the chips to be updated is less than or equal to the maximum number of connections, based on the matching update packages of the chips to be updated, the different versions of the battery management software are updated simultaneously; The step of dividing the chips to be updated into a plurality of chipsets based on the maximum number of connections comprises: Determine the update priority of each chip to be updated based on the information feedback time of each chip to be updated; Based on the update priority of each chip to be updated, the chips to be updated are sorted in descending order; Based on the maximum number of connections, the sorted chips to be updated are divided into multiple chipsets, wherein the chips to be updated whose information feedback time has been determined are prioritized for sorting and chipset division, and the chipsets that have been divided are prioritized for updating.

2. The method according to claim 1, characterized in that The step of sequentially updating the battery management software of the chips to be updated in each chipset based on the matching update package of the chips to be updated in each chipset comprises: Based on the update priorities of the chips to be updated in each chipset, determining the highest priority of the chips to be updated in each chipset; The highest priority of the chip to be updated in each chipset is used as the update priority of the corresponding chipset; Based on the matching update packages of the chips to be updated in each chipset, the battery management software of the chips to be updated in each chipset is updated in sequence according to the update priority of each chipset.

3. The method according to claim 1, characterized in that The step of dividing the chips to be updated into a plurality of chipsets based on the maximum number of connections comprises: Randomly sorting the chips to be updated; Based on the maximum number of connections, the sorted chips to be updated are divided into a plurality of chip groups.

4. The method according to claim 3, characterized in that The step of sequentially updating the battery management software of the chips to be updated in each chipset based on the matching update package of the chips to be updated in each chipset comprises: Randomly determine the update order of each chipset; Based on the matching update packages of the chips to be updated in each chipset, the battery management software of the chips to be updated in each chipset is updated in sequence according to the update sequence of each chipset.

5. The method according to claim 1, characterized in that After the step of determining the matching update package of each chip to be updated in the received software update package based on the version information of the battery management software of each chip to be updated, the method further includes: Perform compatibility check on the matching update packages of each chip to be updated; After the compatibility check is passed, a step of updating the battery management software of each chip to be updated is performed based on a matching update package of each chip to be updated.

6. The method according to claim 1, characterized in that After the step of determining the matching update package of each chip to be updated in the received software update package based on the version information of the battery management software of each chip to be updated, the method further includes: After each chip to be updated passes the verification of the version field content of the matching update package, a step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated is performed.

7. The method according to claim 1, characterized in that After the step of determining a plurality of chips to be updated within the update range based on the received software update instruction, the method further includes: Performing version verification on the battery management software of each chip to be updated and the received software update package; After the version verification is passed, the step of determining the matching update package for each chip to be updated is performed based on the version information of the battery management software of each chip to be updated.

8. The method according to any one of claims 1 to 7, characterized in that After the step of updating the battery management software of each chip to be updated based on the matching update package of each chip to be updated, the method further includes: Receiving update data fed back by each chip to be updated, and determining a software update result of each chip to be updated based on the update data; Re-update the chip to be updated whose software update result is update failure.

9. A battery management software updating device, characterized in that: The battery management software updating device comprises: A chip determination module, configured to determine, based on the received software update instruction, a plurality of chips to be updated within an update range, wherein the battery management software of the plurality of chips to be updated has at least two different version information; A version matching module, used to determine the matching update package of each chip to be updated in the received software update package based on the version information of the battery management software of each chip to be updated; A software update module, used to update the battery management software of each chip to be updated based on the matching update package of each chip to be updated; The software update module is further configured to, when the number of the chips to be updated is greater than the maximum number of connections, divide the chips to be updated into multiple chipsets based on the maximum number of connections, and update the battery management software of the chips to be updated in each chipset in sequence based on the matching update packages of the chips to be updated in each chipset, and update different versions of battery management software in the same chipset at the same time; When the number of the chips to be updated is less than or equal to the maximum number of connections, based on the matching update packages of the chips to be updated, the different versions of the battery management software are updated simultaneously; The software update module is further used to determine the update priority of each chip to be updated based on the information feedback time of each chip to be updated; Based on the update priority of each chip to be updated, the chips to be updated are sorted in descending order; Based on the maximum number of connections, the sorted chips to be updated are divided into multiple chipsets, wherein the chips to be updated whose information feedback time has been determined are prioritized for sorting and chipset division, and the chipsets that have been divided are prioritized for updating.

10. A battery management software update device, characterized in that: The device comprises: a memory, a processor, and a battery management software update program stored in the memory and executable on the processor, wherein the battery management software update program is configured to implement the steps of the battery management software update method according to any one of claims 1 to 8.

11. A storage medium, characterized in that: The storage medium stores a battery management software update program, which, when executed by a processor, implements the steps of the battery management software update method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Software upgrading method of battery management system, electric equipment and storage medium

    CN112540781A

  • Firmware upgrading method and device, information processing method and device and equipment

    CN113141267A

  • Program updating method and device and electronic equipment

    CN113176889A

  • Chip self-identification method and device, storage medium and battery management system

    CN117389576A