Software upgrade method, device, battery management system, battery and power-consuming device

By using the boot program in the battery management system to perform software upgrades, the problem of upgrade errors caused by operational errors or design defects in the traditional battery pack upgrade process is solved, the reliability and flexibility of the upgrade are improved, and the airtightness of the battery pack is ensured. ity and repairability.

CN113608758BActive Publication Date: 2024-10-18NINGDE AMPEREX TECHNOLOGY LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110801591.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-15
Publication Date
2024-10-18
Estimated Expiration
2041-07-15

AI Technical Summary

Technical Problem

During the traditional battery pack software upgrade process, it is easy to cause upgrade errors due to operational errors or design defects, resulting in air tightness problems or battery pack scrapping, and unopenable battery packs are even more difficult to repair.

Method used

A software upgrade method is adopted to obtain the corresponding upgrade content by receiving upgrade instructions, and perform software upgrade operations according to the boot program (including the first BootLoader program and the second BootLoader program) to ensure timely adjustment and functional perfection of the BootLoader, even in The battery can also be upgraded after packaging.

Benefits of technology

It improves the reliability and flexibility of software upgrade, avoids air tightness problems and battery pack scrapping caused by upgrade errors, and realizes a convenient software upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113608758B_ABST
    Figure CN113608758B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of software upgrade, and discloses a software upgrade method, device, battery management system, battery and power device. The method comprises: receiving an upgrade instruction; obtaining the upgrade content corresponding to the upgrade instruction; jumping to the corresponding boot program according to the upgrade content, and performing a software upgrade operation according to the boot program. Among them, the boot program comprises: a first BootLoader program and a second BootLoader program, the first BootLoader program is used to upgrade the second BootLoader program, and the second BootLoader program is used to upgrade the first BootLoader program or application. The present application can make timely adjustments to the problems existing in the BootLoader, and can also improve the function, change and adjust the communication protocol of the BootLoader after the battery is packaged. It has high reliability and flexibility, and effectively improves the convenience of software upgrades.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software upgrade, and in particular to a software upgrade method, device, battery management system, battery, and power-consuming device. Background Art

[0002] After the traditional battery pack is assembled, the software needs to be upgraded due to demand changes, design defects, etc. During the upgrade process, upgrade errors may occur due to operational errors, upgrade error files, software design defects, etc. At this time, the only way to correct the error is to unpack and re-burn the software.

[0003] However, the unpacking process is complicated and time-consuming, and may also cause airtightness problems for battery packs that require high airtightness. For battery packs that cannot be unpacked, upgrade errors may cause the battery pack to be scrapped. Summary of the invention

[0004] The embodiments of the present application at least partially improve the above-mentioned problems and improve the reliability of the battery management system during software upgrades.

[0005] In order to solve the above technical problems, a technical solution adopted in the implementation mode of the present application is:

[0006] In a first aspect, an embodiment of the present application provides a software upgrade method, the method comprising: receiving an upgrade instruction; obtaining upgrade content corresponding to the upgrade instruction; jumping to a corresponding boot program according to the upgrade content, and performing a software upgrade operation according to the boot program. The boot program comprises: a first BootLoader program and a second BootLoader program. The first BootLoader program is used to upgrade the second BootLoader program, and the second BootLoader program is used to upgrade the first BootLoader program or an application.

[0007] In some embodiments, the upgrade content is used to indicate that the application is to be upgraded. The step of jumping to the corresponding boot program according to the upgrade content and performing the software upgrade operation according to the boot program includes: running a first BootLoader program, loading the upgrade instruction to obtain the upgrade content; determining whether the second BootLoader program exists; if the second BootLoader program exists, running the second BootLoader program, and controlling the second BootLoader program to perform the upgrade operation on the application according to the upgrade content.

[0008] In some embodiments, the upgrade content is used to indicate that the first BootLoader program is to be upgraded. The step of jumping to the corresponding boot program according to the upgrade content and performing the software upgrade operation according to the boot program includes: running the first BootLoader program, loading the upgrade instruction to obtain the upgrade content; determining whether the second BootLoader program exists; if the second BootLoader program exists, running the second BootLoader program, and controlling the second BootLoader program to determine whether to perform the upgrade operation on the application program according to the upgrade content. If the upgrade operation is not performed on the application program, controlling the second BootLoader program to perform the upgrade operation on the first BootLoader program according to the upgrade content.

[0009] In some embodiments, the upgrade content is used to indicate upgrading the second BootLoader program. Jumping to the corresponding boot program according to the upgrade content and performing a software upgrade operation according to the boot program includes: running the first BootLoader program, loading the upgrade instruction to obtain the upgrade content; and controlling the first BootLoader program to perform an upgrade operation on the second BootLoader program according to the upgrade content.

[0010] In some embodiments, before executing the step of performing the software upgrade operation according to the boot program, the method also includes: obtaining upgrade file information according to the upgrade content, and verifying the upgrade file information; when the upgrade file information verification passes, executing the step of performing the software upgrade operation according to the boot program.

[0011] In some embodiments, the method further includes: obtaining fool-proof information corresponding to the upgrade file information, wherein the fool-proof information is used to identify the upgrade file in the upgrade file information.

[0012] In some embodiments, the method further includes: when the upgrade file information passes verification, backing up the upgrade file information.

[0013] In a second aspect, an embodiment of the present application provides a software upgrade device, the device comprising: an instruction receiving module for receiving an upgrade instruction; an upgrade content acquisition module for acquiring the upgrade content corresponding to the upgrade instruction; a software upgrade module for jumping to a corresponding boot program according to the upgrade content, and performing a software upgrade operation according to the boot program. The boot program comprises: a first BootLoader program and a second BootLoader program, the first BootLoader program is used to upgrade the second BootLoader program, and the second BootLoader program is used to upgrade the first BootLoader program or an application.

[0014] In a third aspect, an embodiment of the present application provides a battery management system, comprising: at least one processor; and a memory in communication with the at least one processor. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described above.

[0015] In a fourth aspect, an embodiment of the present application provides a battery, comprising a battery cell and a battery management system as described above, wherein the battery management system is used to manage the charging and discharging of the battery cell.

[0016] In a fifth aspect, an embodiment of the present application provides an electrical device, comprising a load and the battery as described above, wherein the battery is used to supply power to the load.

[0017] Different from the related art, the embodiments of the present application provide a software upgrade method, device, battery management system, battery and power-consuming device, obtain the upgrade content through the received upgrade instruction, then jump to the corresponding boot program according to the upgrade content, and finally perform the software upgrade operation according to the boot program after the jump, wherein the boot program includes a first BootLoader program for upgrading the second BootLoader program, and a second BootLoader program for upgrading the first BootLoader program and the application program. The software upgrade method, device, battery management system, battery and power-consuming device provided by the present application can make timely adjustments to the problems existing in the BootLoader, and can improve the function, change and adjust the communication protocol of the BootLoader even after the battery is packaged, with high reliability and flexibility, and effectively improve the convenience of software upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.

[0019] Figure 1 is a flowchart of a software upgrade method provided in an embodiment of the present application;

[0020] Figure 2 It is a structural block diagram of a software upgrading device provided in an embodiment of the present application;

[0021] Figure 3 It is a structural schematic diagram of a battery management system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0023] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device schematic diagram or the order in the flow chart.

[0024] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0025] like Figure 1As shown, the embodiment of the present application provides a software upgrade method, which can be applied to the software upgrade process of the battery pack BMS (Battery Management System). The BMS includes two parts, hardware and software. The hardware includes a circuit board, a main chip and a peripheral circuit, and the software includes application software and software download. Among them, the application software is App, and the software download is BootLoader. There is a flag bit on the BootLoader. In the normal App mode, the flag bit is 0; when the BootLoader downloads the software, the flag bit is 1; after the download is completed, the flag bit is 0. BMS can be used for battery pack signal acquisition and for remaining power calculation, battery pack control strategy and diagnostic functions based on the acquisition results. Usually, a CAN interface is provided on the BMS. When the BMS is in working state, the application software part works; when the BMS needs software update, the BMS is connected to the computer through the CAN interface, and the computer is loaded with the BootLoader host computer. During the software download process, by setting the software flag bit, App backup area, etc., the problem that the BMS cannot work normally after downloading due to software problems or hardware interruptions can be effectively prevented, ensuring a safe and reliable software download process. This safe software upgrade method can specifically include the following steps:

[0026] Step S101: receiving an upgrade instruction sent by a host computer, wherein the host computer may be a BootLoader host computer on a computer, which is connected to the BootLoader module of the BMS via a CAN interface.

[0027] Step S102: the BMS obtains the upgrade content corresponding to the upgrade instruction.

[0028] Step S103: the BMS jumps to a corresponding boot program according to the upgrade content, and performs a software upgrade operation according to the boot program.

[0029] The boot program includes: a first BootLoader program and a second BootLoader program, the first BootLoader program is used to upgrade the second BootLoader program, and the second BootLoader program is used to upgrade the first BootLoader program or an application program.

[0030] In this embodiment, the upgrade instruction sent by the BootLoader host computer according to the preset upgrade protocol can be received by the BMS program. After receiving the upgrade instruction, the network address contained in the upgrade instruction or the network address pre-set on the terminal will be used to obtain the corresponding upgrade content through the network, and the network address will be downloaded to the terminal device using the network and saved in a pre-set directory.

[0031] After completing the download of the upgrade content, according to the instructions in the boot program, first jump to the first BootLoader program to determine whether the second BootLoader program needs to be upgraded. If not, jump to the second BootLoader program to determine whether the first BootLoader program needs to be upgraded and / or the application needs to be upgraded.

[0032] Among them, the first BootLoader program and the second BootLoader program are the first pieces of code to run after the BMS is powered on or reset. In this embodiment, the first BootLoader program is the minimum startup system that runs after the BMS is powered on or reset. It only needs to upgrade the second BootLoader program according to the internal fixed protocol. As long as the first BootLoader program runs normally, the second BootLoader program can be upgraded. The first BootLoader program only upgrades the second BootLoader program according to the fixed protocol, and does not need to be changed according to customer needs and communication protocol changes. It can achieve the same first BootLoader program for all hardware structures. Therefore, the first BootLoader program is simple and fixed in function and has high reliability.

[0033] The second BootLoader program is used to upgrade the first BootLoader program or application (i.e., App) according to the company's internal agreement and the external customer agreement. Its functions can be adjusted according to customer needs. It can solve the needs of improving, changing, and adjusting the communication protocol of the BootLoader program after the battery pack is assembled, and has high flexibility. The functions of normal applications can be realized through the second BootLoader program and the application.

[0034] The working modes of the first BootLoader program and the second BootLoader program include two types: startup loading mode and downloading mode; the startup loading mode is that the first BootLoader program and the second BootLoader program load the system to be run from the solid-state storage device into the RAM for operation, and the whole process does not involve the user; the downloading mode is that the first BootLoader program and the second BootLoader program download the system file from the pre-set host address through the serial port or network connection, and after the download is completed, it is first saved in the RAM, and then written into the flash memory type solid-state storage device. This mode is generally used when the kernel and root file system are installed for the first time. At the same time, it can also be set whether to allow the user to switch between these two working modes.

[0035] Among them, the startup process of the first BootLoader program and the second BootLoader program is generally divided into the first stage and the second stage. In the first stage, the basic hardware initialization is mainly completed, including shielding all interrupts, setting the speed and clock frequency of the central processing unit, RAM initialization, closing the internal instruction and data cache of the central processing unit, etc.; preparing RAM space for loading the second stage to achieve the purpose of obtaining a faster execution speed; setting the stack pointer to prepare for the execution of the program code of the second stage. In the second stage, the initialization of the hardware devices to be used in the local stage is mainly completed, including initializing the serial port, initializing the timer, etc.; checking the system memory mapping, that is, dividing a certain address range in the entire physical address space to allocate the RAM unit used to address the system; reading the kernel image and the file system image from the flash memory and loading it into the RAM space; setting all the startup parameters of the kernel and starting it.

[0036] In one embodiment of the present application, the upgrade content is used to indicate an upgrade to the application, and jumping to the corresponding boot program according to the upgrade content, and performing a software upgrade operation according to the boot program, includes: running a first BootLoader program, loading the upgrade instruction to obtain the upgrade content; determining whether the second BootLoader program exists; if so, running the second BootLoader program, and controlling the second BootLoader program to perform an upgrade operation on the application according to the upgrade content.

[0037] Among them, before upgrading the application, it is also necessary to determine whether the application exists. If it exists, the steps of upgrading the application according to the upgrade content are executed. If it does not exist, the steps of upgrading the application according to the upgrade content are not executed, and the result of the application upgrade failure is returned.

[0038] Among them, if it is determined that the second BootLoader program does not exist and the subsequent steps of the upgrade content cannot be executed, the upgrade operations contained in the subsequent upgrade content will not be performed, and the result of the failure of the application upgrade process will be returned, and the existing application will not fail due to the execution of forced upgrade.

[0039] In one embodiment of the present application, the upgrade content is used to indicate an upgrade to the first BootLoader program, and jumping to the corresponding boot program according to the upgrade content, and performing a software upgrade operation according to the boot program, includes: running the first BootLoader program, loading the upgrade instruction to obtain the upgrade content; determining whether the second BootLoader program exists; if so, running the second BootLoader program, and controlling the second BootLoader program to determine whether to perform an upgrade operation on the application according to the upgrade content; if not, controlling the second BootLoader program to perform an upgrade operation on the first BootLoader program according to the upgrade content.

[0040] Among them, if it is determined that the second BootLoader program does not exist and the subsequent steps of the upgrade content cannot be executed, the upgrade operations contained in the subsequent upgrade content will not be performed, and the result of the failure of the upgrade process of the first BootLoader program will be returned. The existing first BootLoader program will not fail to run due to forced execution of the upgrade.

[0041] In one embodiment of the present application, the upgrade content is used to indicate an upgrade to the second BootLoader program, and jumping to the corresponding boot program according to the upgrade content and performing a software upgrade operation according to the boot program include: running the first BootLoader program, loading the upgrade instruction to obtain the upgrade content; controlling the first BootLoader program to perform an upgrade operation on the second BootLoader program according to the upgrade content.

[0042] Among them, the upgrade content will include the first program version number of the first BootLoader program and / or the second BootLoader program and / or the application after the upgrade is successful. Before executing the steps in the upgrade content, it is necessary to first obtain the second program version number of the first BootLoader program and / or the second BootLoader program and / or the application that has not been upgraded according to the object that needs to be upgraded in the upgrade content. Only when the first program version number is greater than the second program version number, the subsequent upgrade operation is performed.

[0043] In one embodiment of the present application, before executing the step of performing the software upgrade operation according to the boot program, the method also includes: obtaining upgrade file information according to the upgrade content, and verifying the upgrade file information; when the upgrade file information verification passes, executing the step of performing the software upgrade operation according to the boot program.

[0044] Among them, when the upgrade file information is obtained according to the upgrade content, the upgrade file will be downloaded to a preset directory, and the size of all files in the directory, including the size of all files in the subdirectories of the directory, will be counted. If the size of all files in the directory exceeds the preset storage upper limit, further judgment will be performed. If only the upgrade file exists in the directory, the subsequent step of verifying the upgrade file information will be directly performed. If there are other upgrade files in the directory, the upgrade file that is oldest from the current time will be deleted, and then the size of all files in the current directory will continue to be counted. If it still exceeds the preset storage upper limit, the upgrade file that is oldest from the current time will continue to be deleted until the size of all files in the current directory is less than the preset storage upper limit, or when only the acquired upgrade file is left in the current directory, stop counting the size of all files in the current directory and execute the step of verifying the upgrade file information.

[0045] The above-mentioned method for managing the upgrade files not only reduces the occupation of the entire system storage space by the old upgrade files, but also timely clears the storage space to prepare the storage space for downloading the upgrade files for the next upgrade.

[0046] In one embodiment of the present application, before executing the step of performing the software upgrade operation according to the boot program, the method further includes: obtaining foolproof information corresponding to the upgrade file information, the foolproof information being used to identify the upgrade file in the upgrade file information. The foolproof information can avoid confusion between upgrade files of different manufacturers and different projects.

[0047] Among them, when verifying the upgrade file information, the name, creation date, modification date, size, format and other characteristic information of the received upgrade file will be verified. The verification method for the upgrade file also includes parity check method, BCC foreign domain check method, MD5 check and digital signature, etc.

[0048] Among them, the corresponding fool-proof information is added to the upgrade file, including but not limited to: using a unified file format to compress the upgrade file content to distinguish it from other non-upgrade files, using a unified naming method to name the upgrade file to distinguish it from other non-upgrade files, downloading the upgrade file into a file named according to the unified naming method, and downloading the upgrade file into a folder with a preset path.

[0049] Among them, the naming method adopted to name the upgrade file can use information such as project name, product name, version number, creation time, upgrade content, etc. to design fool-proof measures to avoid errors in the actual upgrade process due to operational errors, upgrading wrong files, etc., resulting in upgrade failure or other unpredictable risks.

[0050] In an embodiment of the present application, the method further includes: when the upgrade file information passes verification, backing up the upgrade file information.

[0051] Among them, after the upgrade file information is verified, the upgrade file will first be backed up to a folder under a preset path. When backing up, the size of all files in the backup file stored in the backup file will be counted, including the storage size of subfolders in the backup folder. If the storage size of all files in the backup folder exceeds the preset backup folder storage upper limit, the backup upgrade file with the backup time farthest from the current time will be deleted, and then the size of all backup upgrade files will be counted and compared. If it still exceeds the preset backup folder storage upper limit, the backup upgrade file with the oldest backup time will continue to be deleted until the backup folder storage size is less than the preset upper limit or there is only one backup file of the current upgrade file left in the backup folder, then stop counting the size of all files in the backup folder and switch to executing subsequent upgrade steps.

[0052] The software upgrade method provided in the embodiment of the present application can make timely adjustments to problems existing in the BootLoader, and can improve, modify, and adjust the communication protocol of the BootLoader even after packaging. It has high reliability and flexibility, and effectively improves the convenience of software upgrades.

[0053] like Figure 2 As shown, the embodiment of the present application provides a software upgrade device 20, which includes an instruction receiving module 21, an upgrade content acquisition module 22, and a software upgrade module 23. The instruction receiving module 21 is used to receive an upgrade instruction; the upgrade content acquisition module 22 is used to acquire the upgrade content corresponding to the upgrade instruction; the software upgrade module 23 is used to jump to the corresponding boot program according to the upgrade content, and perform a software upgrade operation according to the boot program; wherein the boot program includes: a first BootLoader program and a second BootLoader program, the first BootLoader program is used to upgrade the second BootLoader program, and the second BootLoader program is used to upgrade the first BootLoader program or an application.

[0054] In some embodiments, the upgrade content is used to indicate an upgrade to the application, and the software upgrade module 23 is specifically used to: run the first BootLoader program, load the upgrade instruction, and obtain the upgrade content; determine whether the second BootLoader program exists; if so, run the second BootLoader program, and control the second BootLoader program to perform an upgrade operation on the application according to the upgrade content.

[0055] In some embodiments, the upgrade content is used to indicate an upgrade to the first BootLoader program, and the software upgrade module 23 is specifically used to: run the first BootLoader program, load the upgrade instruction, and obtain the upgrade content; determine whether the second BootLoader program exists; if so, run the second BootLoader program, and control the second BootLoader program to determine whether to perform an upgrade operation on the application according to the upgrade content; if not, control the second BootLoader program to perform an upgrade operation on the first BootLoader program according to the upgrade content.

[0056] In some embodiments, the upgrade content is used to indicate an upgrade to the second BootLoader program, and the software upgrade module 23 is specifically used to: run the first BootLoader program, load the upgrade instruction to obtain the upgrade content; control the first BootLoader program to perform an upgrade operation on the second BootLoader program according to the upgrade content.

[0057] In some embodiments, the device 20 also includes a verification processing module 24. Before executing the function of the software upgrade module 23, the verification processing module 24 is used to obtain upgrade file information based on the upgrade content and verify the upgrade file information; when the upgrade file information verification passes, the function of the software upgrade module 23 is executed, that is, the step of performing the software upgrade operation according to the boot program.

[0058] In some embodiments, the device 20 further includes a foolproof module 25, wherein the foolproof module 25 is used to obtain foolproof information corresponding to the upgrade file information, wherein the foolproof information is used to identify the upgrade file in the upgrade file information.

[0059] In some embodiments, the device 20 further includes an information backup module 26, and the information backup module 26 is used to back up the upgrade file information when the upgrade file information passes the verification.

[0060] It should be noted that the above-mentioned software upgrade device can execute the software upgrade method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the software upgrade device, please refer to the software upgrade method provided in the embodiment of the present application.

[0061] like Figure 3 As shown, an embodiment of the present application provides a battery management system, and the battery management system 30 includes:

[0062] One or more processors 31 and memory 32, Figure 3 A processor 31 is taken as an example.

[0063] The processor 31 and the memory 32 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0064] The memory 32 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the software upgrade method in the embodiment of the present application (for example, the attached Figure 2 The processor 31 executes various functional applications and data processing of the battery management system by running the non-volatile software programs, instructions and modules stored in the memory 32, that is, the software upgrade method of the above method embodiment is implemented.

[0065] The one or more modules are stored in the memory 32, and when executed by the one or more processors 31, execute the software upgrade method in any of the above method embodiments, for example, execute the software upgrade method described above. Figure 1 The method steps in Figure 2 The functions of the modules in .

[0066] The battery management system 30 provided in the embodiment of the present application may also include: a control module, a display module, a wireless communication module, a collection module, and electrical equipment, etc. The battery management system 30 can be used to intelligently manage and maintain each battery unit, prevent overcharging and overdischarging of the battery, monitor the battery status, and extend the battery life; the voltage, current, and temperature of the battery in the battery management system are tested by sensors, and leakage monitoring, remaining capacity calculation, alarm reminder, etc. are also performed.

[0067] The battery management system 30 executes the software upgrade method through the processor 31, which effectively avoids the problem that upgrade errors may occur during the upgrade process of the battery management system 30 due to operational errors, upgrade error files, software design defects, etc., and the errors can only be corrected by unpacking and re-burning the software.

[0068] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0069] The embodiment of the present application also provides a battery, which includes a battery cell and a battery management system as described above, and the battery management system is used to manage the charging and discharging of the battery cell. During the charging and discharging process, the relevant software of the battery can be upgraded based on the software upgrade method described above.

[0070] An embodiment of the present application further provides an electrical device, which includes a load and the above-mentioned battery, wherein the battery is used to supply power to the load.

[0071] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0072] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0073] 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. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A software upgrade method, applied to the battery pack BMS software upgrade process, characterized in that: The method comprises: Receive upgrade instructions; Obtaining the upgrade content corresponding to the upgrade instruction; Jump to the corresponding boot program according to the upgrade content, and perform software upgrade operations according to the boot program; The boot program includes: a first BootLoader program and a second BootLoader program, the first BootLoader program is used to upgrade the second BootLoader program, and the second BootLoader program is used to upgrade the first BootLoader program or an application program; The upgrade content is used to indicate that the first BootLoader program is upgraded, and the step of jumping to the corresponding boot program according to the upgrade content and performing the software upgrade operation according to the boot program includes: Running the first BootLoader program to load the upgrade instruction to obtain the upgrade content; Determine whether the second BootLoader program exists; If it exists, running the second BootLoader program, and controlling the second BootLoader program to determine whether to perform an upgrade operation on the application according to the upgrade content; If the upgrade operation is not performed on the application program, the second BootLoader program is controlled to perform an upgrade operation on the first BootLoader program according to the upgrade content.

2. The method according to claim 1, characterized in that The upgrade content is used to indicate that the application program is to be upgraded. The step of jumping to a corresponding boot program according to the upgrade content and performing a software upgrade operation according to the boot program includes: Running the first BootLoader program to load the upgrade instruction to obtain the upgrade content; Determine whether the second BootLoader program exists; If it exists, the second BootLoader program is run, and the second BootLoader program is controlled to perform an upgrade operation on the application according to the upgrade content.

3. The method according to claim 1, characterized in that The upgrade content is used to indicate that the second BootLoader program is to be upgraded. The step of jumping to a corresponding boot program according to the upgrade content and performing a software upgrade operation according to the boot program includes: Running the first BootLoader program to load the upgrade instruction to obtain the upgrade content; Control the first BootLoader program to perform an upgrade operation on the second BootLoader program according to the upgrade content.

4. The method according to any one of claims 1 to 3, characterized in that: Before executing the step of performing the software upgrade operation according to the boot program, the method further includes: Acquire upgrade file information according to the upgrade content, and verify the upgrade file information; When the upgrade file information verification passes, the step of performing the software upgrade operation according to the boot program is performed.

5. The method according to claim 4, characterized in that The method further comprises: Obtain fool-proof information corresponding to the upgrade file information, where the fool-proof information is used to identify the upgrade file in the upgrade file information.

6. The method according to claim 4, characterized in that The method further comprises: When the upgrade file information passes the verification, the upgrade file information is backed up.

7. A software upgrade device, applied to the battery pack BMS software upgrade process, characterized in that: The device comprises: An instruction receiving module, used for receiving an upgrade instruction; An upgrade content acquisition module, used to acquire the upgrade content corresponding to the upgrade instruction; A software upgrade module, used to jump to a corresponding boot program according to the upgrade content, and perform a software upgrade operation according to the boot program; wherein the boot program includes: a first BootLoader program and a second BootLoader program, the first BootLoader program is used to upgrade the second BootLoader program, and the second BootLoader program is used to upgrade the first BootLoader program or an application program; The upgrade content is used to indicate that the first BootLoader program is upgraded, and the software upgrade module is specifically used to: Running the first BootLoader program to load the upgrade instruction to obtain the upgrade content; Determine whether the second BootLoader program exists; If it exists, running the second BootLoader program, and controlling the second BootLoader program to determine whether to perform an upgrade operation on the application according to the upgrade content; If the upgrade operation is not performed on the application program, the second BootLoader program is controlled to perform an upgrade operation on the first BootLoader program according to the upgrade content.

8. A battery management system, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A battery, characterized in that: The invention comprises a battery cell and a battery management system as claimed in claim 8, wherein the battery management system is used to manage the charging and discharging of the battery cell.

10. An electrical device, comprising a load, characterized in that: Also included is the battery as claimed in claim 9, wherein the battery supplies power to the load.

Citation Information

Patent Citations

  • Bootstrap loader upgrading method and device, electronic equipment and storage medium

    CN112527371A

  • Bootloader-based software upgrading method and device

    CN112596766A