Firmware upgrading method, device and equipment based on multi-channel battery equalization equipment

By using upgrade detection, query and matching instructions in multi-channel battery equalization equipment, the problems of low efficiency and complex operation of traditional firmware upgrades are solved, efficient and safe firmware upgrades are achieved, and equipment performance and user experience are improved.

CN119292631APending Publication Date: 2025-01-10SHENZHEN SMARTSAFE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411469270.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The firmware upgrade method of traditional multi-channel battery equalization equipment is inefficient and complex in operation, and there are risks.

Method used

By sending upgrade detection, query and matching instructions between the host computer and the equalizer module, determine the module to be upgraded and complete the firmware upgrade, ensuring the integrity and consistency of the upgrade files.

Benefits of technology

Improves the efficiency, security and reliability of firmware upgrades, saves time and costs, ensures that all devices run on the same version, optimizes the coordinated work of the equalizer module, and improves overall performance and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292631A_ABST
    Figure CN119292631A_ABST
Patent Text Reader

Abstract

The invention discloses a firmware upgrading method, device and equipment based on multi-channel battery equalization equipment, the multi-channel battery equalization equipment comprises an upper computer and a plurality of equalizer modules, the method is applied to the upper computer, and the method comprises the following steps: sequentially sending an upgrading detection instruction and a first upgrading query instruction to all the equalizer modules; corresponding compliance detection information is obtained, and a to-be-upgraded equalizer module is determined; sending an upgrading matching instruction to the to-be-upgraded equalizer module so as to detect whether the feature information of the upgrading file is matched with the feature information of the current upgrading process or not; sending a second upgrading query instruction to the to-be-upgraded equalizer module to return corresponding matching result information, and determining a target equalizer module; and if it is detected that the upgrade file sent to the target equalizer module is complete, firmware upgrade of the target equalizer module is completed. According to the method, the firmware upgrading efficiency, safety and reliability can be effectively improved, and the upgrading time and cost are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a firmware upgrade method, device and equipment based on a multi-channel battery balancing device. Background Art

[0002] With the rapid development of new energy vehicle technology and the continuous increase in its market share, multi-channel battery balancing equipment for new energy vehicles has also emerged. Multi-channel battery balancing equipment plays a vital role in battery management systems and maintenance. It can accurately manage battery packs, optimize battery performance and extend battery life, while preventing various safety issues caused by battery failures. Specifically, multi-channel battery balancing equipment ensures the balance of power in each battery cell by real-time monitoring and intelligent adjustment of parameters such as voltage, current and temperature of each single battery in the battery pack, thereby avoiding problems such as uneven charging, overcharging, and over-discharging, and extending the service life of the battery pack. With the continuous updating and development of technology, the firmware upgrade of multi-channel battery balancing equipment has become an important means to improve equipment performance and functions; however, traditional firmware upgrade methods often have problems such as low efficiency, complex operation and high risk. Summary of the invention

[0003] The embodiments of the present invention provide a firmware upgrade method, apparatus and device based on a multi-channel battery balancing device, aiming to solve the problems of low efficiency and complex operation of firmware upgrade of the multi-channel battery balancing device in the prior art methods.

[0004] In a first aspect, an embodiment of the present invention provides a firmware upgrade method based on a multi-channel battery balancing device, wherein the multi-channel battery balancing device includes a host computer and a plurality of balancing instrument modules electrically connected to the host computer, and different balancing instrument modules are associated with different module response identification codes. The method is applied to the host computer, and the method includes:

[0005] Sending an upgrade detection instruction to all equalizer modules, so that each equalizer module performs compliance detection on basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information;

[0006] Sending a first upgrade query instruction to all equalizer modules, so that each equalizer module returns corresponding compliance detection information, and determining the equalizer module to be upgraded according to the compliance detection information;

[0007] Sending an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process;

[0008] Sending a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information;

[0009] If it is detected that the upgrade file sent to the target equalizer module is complete, the firmware upgrade of the target equalizer module is completed.

[0010] In a second aspect, an embodiment of the present invention further provides a firmware upgrade device based on a multi-channel battery balancing device, wherein the multi-channel battery balancing device includes a host computer and a plurality of equalizer modules electrically connected to the host computer, and different equalizer modules are associated with different module response identification codes. The device is applied to the host computer, and the device includes:

[0011] An upgrade detection unit, used for sending an upgrade detection instruction to all equalizer modules, so that each equalizer module performs compliance detection on the basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information;

[0012] A first upgrade query unit, used to send a first upgrade query instruction to all equalizer modules, so that each equalizer module returns corresponding compliance detection information, and determines the equalizer module to be upgraded according to the compliance detection information;

[0013] An upgrade matching unit, used for sending an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process;

[0014] A second upgrade query unit, used to send a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information;

[0015] The upgrade processing unit is used to complete the firmware upgrade of the target equalizer module if it is detected that the upgrade file sent to the target equalizer module is complete.

[0016] In a third aspect, an embodiment of the present invention further provides a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0017] Memory, used to store computer programs;

[0018] The processor is used to implement the steps of the firmware upgrade method based on the multi-channel battery balancing device described in the first aspect when executing the program stored in the memory.

[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the firmware upgrade method based on the multi-channel battery balancing device as described in the first aspect above are implemented.

[0020] The embodiment of the present invention provides a firmware upgrade method, device and equipment based on a multi-channel battery balancing device, the method comprising: sending an upgrade detection instruction to all equalizer modules, so that each equalizer module performs compliance detection on the basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information; sending a first upgrade query instruction to all equalizer modules, so that each equalizer module returns corresponding compliance detection information, and determines the equalizer module to be upgraded according to the compliance detection information; sending an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process; sending a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information; if it is detected that the upgrade file sent to the target equalizer module is complete, the firmware upgrade of the target equalizer module is completed. The above-mentioned firmware upgrade method based on a multi-channel battery balancing device is applied to a host computer, which can effectively improve the efficiency, security and reliability of firmware upgrades, and save firmware upgrade time and cost. At the same time, firmware upgrades can ensure that all devices run on the same version, optimize the collaborative work of various equalizer modules, improve the overall performance and reliability of multi-channel battery balancing equipment, and enhance user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0022] Figure 1 A method flow chart of a firmware upgrade method based on a multi-channel battery balancing device provided by an embodiment of the present invention;

[0023] Figure 2 A schematic diagram of an application scenario of a firmware upgrade method based on a multi-channel battery balancing device provided by an embodiment of the present invention;

[0024] Figure 3 A schematic diagram of another application scenario of the firmware upgrade method based on a multi-channel battery balancing device provided by an embodiment of the present invention;

[0025] Figure 4 A schematic block diagram of a firmware upgrade device based on a multi-channel battery balancing device provided by an embodiment of the present invention;

[0026] Figure 5 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0029] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0030] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0031] First, the basic concepts of professional terms involved in the present invention application are explained as follows:

[0032] See also Figure 1 and Figure 2 As shown in the figure, an embodiment of the present invention provides a firmware upgrade method based on a multi-channel battery balancing device, wherein the multi-channel battery balancing device includes a host computer 10 and a plurality of balancing instrument modules 20 electrically connected to the host computer 10, and different balancing instrument modules 20 are associated with different module response identification codes.

[0033] The multi-channel equalizer device is composed of multiple equalizer modules 20, and the host computer 10 and each equalizer module 20 are connected to the same communication bus composed of RS485. Each equalizer module independently controls the equalization control of a battery channel. Each equalizer module has the same independent controller. Each equalizer module is hung on the RS485 bus. The host computer controls the equalization work and firmware upgrade function of each equalizer module through instructions. The host computer reads the compliant firmware upgrade file (referred to as the upgrade file) from the network or USB flash drive. The host computer divides the firmware upgrade file into multiple data packets, and sends them to all equalizer modules in accordance with the rules. After sending each package of upgrade package data, the response status of each module is queried according to the module number, and the corresponding processing method is performed according to the obtained status, that is, the upgrade package data is sent according to a certain time interval.

[0034] The firmware upgrade method based on the multi-channel battery balancing device is applied to the host computer 10. If the host computer 10 sends an upgrade detection instruction to all the equalizer modules 20, so that each equalizer module 20 performs a compliance detection on the basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information; the host computer 10 also sends a first upgrade query instruction to all the equalizer modules 20, so that each equalizer module 20 returns corresponding compliance detection information, and determines the equalizer module to be upgraded according to the compliance detection information; the host computer 10 also sends an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process; the host computer 10 also sends a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information; the host computer 10 also completes the firmware upgrade of the target equalizer module when it is detected that the upgrade file sent to the target equalizer module is complete. Therefore, the above method effectively improves the efficiency, security and reliability of firmware upgrades and saves firmware upgrade time and cost by detecting and controlling the firmware upgrade process of all equalizer modules through the host computer 10. At the same time, firmware upgrades can ensure that all devices run on the same version, optimize the collaborative work of each equalizer module, improve the overall performance and reliability of multi-channel battery balancing equipment, and enhance user experience.

[0035] like Figure 1 As shown, in one embodiment, the multi-channel battery balancing device includes a host computer and a plurality of balancing instrument modules electrically connected to the host computer, different balancing instrument modules are associated with different module response identification codes, and the method is applied to the host computer. The firmware upgrade method based on the multi-channel battery balancing device is applied to the host computer of the multi-channel battery balancing device, and the method includes steps S110 to S150.

[0036] Step S110 , sending an upgrade detection instruction to all equalizer modules, so that each equalizer module performs compliance detection on the basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information.

[0037] In this embodiment, the upgrade detection instruction usually includes basic information of the upgrade file. When the upper computer sends the upgrade detection instruction to all equalizer modules, each equalizer module can parse the upgrade detection instruction to obtain the basic information of the upgrade file at this time. By performing compliance detection on the basic information of the upgrade file, the corresponding compliance detection result can be obtained.

[0038] Among them, the upgrade detection instruction can also include a public flag code, which can be 0, and 0 represents the ID set of all equalizer modules. ID (identification) is used to identify the uniqueness of an object, and each object has a unique ID. Usually, different equalizer modules correspond to different instruction module response flag codes, such as, each number in 0-64 can represent the ID of the equalizer module. When the upgrade detection instruction includes a public flag code, it means that the upgrade detection instruction package needs to be sent to all equalizer modules.

[0039] In one embodiment, the upgrade detection instruction includes a public flag code and basic information of the upgrade file, the basic information of the upgrade file includes a module upgrade enable identification code, a firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and the number of upgrade packages, the compliance detection information is the first response flag information, and the step S110 includes the following sub-steps:

[0040] The upgrade detection instruction is sent to all equalizer modules according to the public flag code in the upgrade detection instruction; each equalizer module is controlled to determine whether the module upgrade enable identification code in the upgrade detection instruction is valid; the equalizer module with a valid module upgrade enable identification code is controlled to record the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and number of upgrade packages in the upgrade detection instruction, and perform compliance judgment; the equalizer module with a compliance judgment result is controlled to clear the data in the firmware backup area and the upgrade information area, and designate the corresponding first response mark information as the information code waiting for the upgrade package data; the equalizer module with a non-compliant judgment result is controlled to designate the corresponding first response mark information as the non-compliant information code.

[0041] The upper computer will send the upgrade detection instruction to all equalizer modules according to the public identification code in the upgrade detection instruction, so as to control all equalizer modules to perform compliance detection on the basic information of the upgrade file in the upgrade detection instruction.

[0042] When the equalizer module receives the upgrade detection instruction, it will perform corresponding analysis and determine whether the module upgrade enable identification code is valid. If it is invalid, no processing will be performed. If it is valid, the firmware upgrade file checksum, upgrade file version information, upgrade file size, upgrade package maximum upgrade package size, and the number of upgrade packages will be recorded and compliance will be determined.

[0043] Among them, the module upgrade enable identification code has 8 bytes, a total of 64 bits, each bit represents a corresponding module, and the module upgrade enable identification code can indicate whether the module is included in the upgrade list. If there is no problem with the module upgrade enable identification code, it means that the equalizer module at this time is the module that needs to be upgraded.

[0044] The firmware upgrade file checksum refers to a verification process for the firmware upgrade file to ensure the integrity and correctness of the file. Checksum is a technology used to verify data integrity. It calculates the data of the firmware file to generate a specific value (checksum). Then, during the firmware upgrade process, the equalizer module as the receiver will recalculate this value and compare it with the checksum provided by the sender. If the two match, it means that the firmware file has not been tampered with or damaged during transmission.

[0045] Upgrade file version information usually refers to updates or improvements to the software product, and its version number is adjusted accordingly to reflect these changes.

[0046] Upgrade file size usually refers to the size of the software upgrade package or update file, which is an important indicator to measure the amount of upgrade content and the required storage space.

[0047] In addition, the relationship between the firmware upgrade file, upgrade package and data packet can be summarized as follows: a firmware upgrade file usually contains one or more upgrade packages, and an upgrade package is composed of multiple data packets.

[0048] A firmware upgrade file is a file that contains the firmware update content of a device. Common formats include binary images (.bin), compressed packages (.zip, .tar, .gz, .xz), image files (.img), Intel HEX files (.hex), and Motorola S-record files (.srec, .s19). These files are commonly used in routers, cameras, IoT devices, etc., and contain all the code and data required for the device to operate.

[0049] The upgrade package is a further subdivision of the firmware upgrade file, usually in the form of an update.zip file. The upgrade package is an extension and enhancement of the base package, containing a series of auxiliary tools and services for updating and optimizing the base package.

[0050] Data packets are the specific implementation units of the upgrade package. The firmware file is usually disassembled into 512 bytes, and the end of the file is padded with 0 if it is less than 512 bytes. Each data packet needs to be confirmed by the client before the next data packet is pushed.

[0051] Therefore, it can be seen that the firmware upgrade file is the largest unit, which contains one or more upgrade packages; the upgrade package is composed of multiple data packets, and each data packet contains a part of the firmware update content.

[0052] Specifically, if the module upgrade enable identification code is invalid, no processing is performed. If the module upgrade enable identification code is valid, record the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and number of upgrade packages, and make a compliance judgment. If it is not compliant, designate the first response mark as a non-compliant information code, that is, designate the first response mark as an information code that is not waiting for the upgrade data packet. If it is compliant, the equalizer module clears the data in the firmware backup area and the upgrade information area, and designates the first response mark as the information code waiting for the upgrade data packet, and then waits for the host computer to query the status.

[0053] The firmware backup area is mainly used to store firmware backups so that they can be restored when problems occur during firmware upgrades, while the upgrade information area is used to store firmware upgrade related information, including the storage location of the new firmware and upgrade instructions.

[0054] Step S120: sending a first upgrade query instruction to all equalizer modules, so that each equalizer module returns corresponding compliance detection information, and determines the equalizer module to be upgraded according to the compliance detection information.

[0055] In this embodiment, the host computer sends the first upgrade query instruction to all the equalizer modules in sequence according to the instruction module response flag code corresponding to each equalizer module, thereby controlling each equalizer module to respond to the first upgrade query instruction and return corresponding compliance detection information to the host computer. The host computer can determine the equalizer module to be upgraded based on the returned compliance detection information.

[0056] In one embodiment, the step S120 includes the following sub-steps:

[0057] According to the instruction module response flag codes of all equalizer modules, the first upgrade query command is sent to the corresponding equalizer modules in turn; the equalizer module that has received the first upgrade query command is controlled to return the corresponding first response flag information; if the received first response flag information is an information code waiting for upgrade package data, the equalizer module corresponding to the first response flag information is determined as the equalizer module to be upgraded; if the received first response flag information is an illegal information code, the equalizer module corresponding to the first response flag information is determined as not being the equalizer module to be upgraded.

[0058] The host computer sends the first upgrade query instruction in sequence according to the response identification code of the equalizer module to be upgraded, and the instruction module response identification code can be the ID of the equalizer module. After receiving the first upgrade query instruction, the equalizer module will respond to the response information generated by the upgrade detection instruction, that is, the compliance detection information response to the host computer.

[0059] The host computer removes the module upgrade enable identification code corresponding to the equalizer module that responds to the information code of the waiting upgrade data packet, and makes a corresponding prompt, so as not to include the equalizer module in the upgrade list, ensuring that the equalizer module will not be upgraded. At the same time, when the received first response flag information is the information code of the waiting upgrade package data, the host computer can also determine the equalizer module corresponding to the first response flag information as the equalizer module to be upgraded.

[0060] Step S130: sending an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process.

[0061] In this embodiment, the upper computer can send an upgrade matching instruction to the equalizer module to be upgraded based on the determined equalizer module to be upgraded, thereby controlling the equalizer module to be upgraded to detect whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process, thereby determining whether the equalizer module to be upgraded is suitable for upgrading.

[0062] In one embodiment, the upgrade matching instruction includes a public identification code and characteristic information of the upgrade file, and the characteristic information of the upgrade file includes a module upgrade enable identification code, an upgrade package data number, and upgrade package data; the step S130 includes the following sub-steps:

[0063] According to the public flag code in the upgrade matching instruction, the upgrade matching instruction is sent to all the equalizer modules to be upgraded; each equalizer module to be upgraded is controlled to determine whether the module upgrade enable identification code in the upgrade matching instruction is valid; the equalizer module to be upgraded with the valid module upgrade enable identification code is controlled to determine whether the upgrade package data number in the upgrade matching instruction it receives matches the number of the data packet it currently needs; if they match, the equalizer module to be upgraded is controlled to write the upgrade package data in the upgrade matching instruction into the firmware backup area, and designate the corresponding response mark information as the information code waiting for the upgrade package data.

[0064] The host computer can send the upgrade matching instruction to all equalizer modules to be upgraded according to the public identification code in the upgrade matching instruction. For example, if the instruction module response identification code is 0, the equalizer module does not respond autonomously.

[0065] The equalizer module receives the upgrade matching instruction sent by the host computer and parses it. First, it determines whether the module upgrade enable identification code is valid. If it is invalid, no processing is performed. If it is valid, it determines whether the upgrade package data number in the characteristic information of the currently issued upgrade file matches the number of the data packet required in the current upgrade process. If it does not match, the information of the response failure of the data packet mismatch is recorded. If it matches, the upgrade package data is written to the corresponding position in the firmware backup area, and the count of the upgrade package data is increased by one, and the response mark is designated as the information code waiting for the upgrade data packet. Finally, wait for the host computer to query the status.

[0066] Step S140: sending a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information.

[0067] In this embodiment, the host computer can send the second upgrade query instruction to each equalizer module to be upgraded in sequence according to the instruction module response flag code of the equalizer module to be upgraded, so as to control the equalizer module to be upgraded to return the corresponding matching result information, and determine the target equalizer module according to the matching result information. If the matching result information is not matched, the equalizer module to be upgraded will no longer be upgraded. If it is matched, the next step of operation will be performed.

[0068] In one embodiment, the matching information result is second response flag information, and step S140 includes the following sub-steps:

[0069] According to the instruction module response flag codes of all equalizer modules to be upgraded, the second upgrade query command is sent to the corresponding equalizer modules in turn; the equalizer module that has received the second upgrade query command is controlled to return the corresponding second response flag information; if the received second response flag information is an information code waiting for upgrade package data, the equalizer module corresponding to the second response flag information is determined as the target equalizer module.

[0070] Among them, the host computer sends the second upgrade query instruction to the module in sequence according to the instruction module response identification code, and this instruction module response identification code is the module ID. The equalizer module receives the second upgrade query instruction and responds to the host computer with the second response information in response to the upgrade matching instruction. The host computer removes the module upgrade enable identification code corresponding to the equalizer module whose response is not the information code of waiting for the upgrade data packet, and records the ID of the module that failed to respond. If the received second response flag information is the information code of waiting for the upgrade package data, the equalizer module corresponding to the second response flag information is determined as the target equalizer module.

[0071] Step S150: If it is detected that the upgrade file sent to the target equalizer module is complete, the firmware upgrade of the target equalizer module is completed.

[0072] In this embodiment, if the host computer detects that the upgrade file sent to the target equalizer module is complete, the firmware upgrade of the target equalizer module is completed.

[0073] In one embodiment, step 150 may further include the following steps:

[0074] Determine whether the upgrade package data sent to all target equalizer modules is the last package data in the upgrade file; if so, control each target equalizer module to calculate the data checksum of all upgrade package data written to the firmware backup area; determine whether the calculated data checksum matches the firmware upgrade file checksum; if the match is successful, write the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and number of upgrade packages included in the upgrade detection instruction into the upgrade information area to complete the firmware upgrade of the target equalizer module.

[0075] Among them, after the host computer determines the target equalizer module, it determines whether the upgrade package data sent to all target equalizer modules is the last package data in the upgrade file. If not, return to continue to execute step S130 and step S140. If so, control each target equalizer module to calculate the data checksum of all upgrade package data written to the firmware backup area, and determine whether the calculated data checksum matches the firmware upgrade file checksum. If the match is successful, the firmware upgrade file checksum, upgrade file version information, upgrade file size, upgrade package maximum upgrade package size, and number of upgrade packages included in the upgrade detection instruction are written into the upgrade information area to complete the firmware upgrade of the target equalizer module. If the match is unsuccessful, it means that the upgrade failed. If the upgrade fails, the host computer will restart the upgrade process at this time.

[0076] like Figure 3 As shown, in another embodiment of the invention, the present invention further includes the following steps:

[0077] S1, each equalizer module receives the upgrade instruction 1 (upgrade detection instruction) to match the upgrade information, and after determining that the match is successful, the equalizer module is ready for upgrading.

[0078] S2, the host computer sends upgrade instructions 2 (first upgrade query instructions) to the equalizer modules in sequence according to the equalizer module ID, so that the equalizer module returns the result to the host computer.

[0079] S3, the host computer receives the returned result and analyzes it.

[0080] S4, the host computer sends an upgrade instruction 3 (upgrade matching instruction) to the equalizer module, so that the equalizer module receives the upgrade data packet and saves it, and waits for the host computer to obtain the status.

[0081] S5, the host computer sends an upgrade instruction 4 (upgrade matching instruction) to the equalizer module, so that the equalizer module responds with corresponding status information;

[0082] S6, when the host computer receives the status information of the response in S5, it determines whether all the upgrade package data has been sent. If so, the upgrade is successfully completed. Otherwise, it returns to S4.

[0083] It can be seen from this that by detecting and controlling the firmware upgrade process of all equalizer modules by the upper computer 10, automatic upgrade of multiple equalizer modules in a multi-channel equalizer device can be achieved, that is, the firmware upgrade can ensure that all equalizer modules of the device run on the same version, thereby improving the overall performance and reliability of the system.

[0084] In summary, the method of the above embodiment can effectively improve the efficiency, security and reliability of firmware upgrades, save time and cost of firmware upgrades. At the same time, firmware upgrades can ensure that all devices run on the same version, optimize the collaborative work of each equalizer module, improve the overall performance and reliability of multi-channel battery balancing equipment, and enhance user experience.

[0085] The embodiment of the present invention also provides a firmware upgrade device based on a multi-channel battery balancing device, which can be configured in a host computer of the multi-channel battery balancing device, and is used to execute any embodiment of the firmware upgrade method based on the multi-channel battery balancing device. Specifically, please refer to Figure 4 , Figure 4 A schematic block diagram of a firmware upgrade device based on a multi-channel battery balancing device provided by an embodiment of the present invention.

[0086] like Figure 4 As shown, the firmware upgrade device 100 based on the multi-channel battery balancing device includes an upgrade detection unit 110 , a first upgrade query unit 120 , an upgrade matching unit 130 , a second upgrade query unit 140 and an upgrade processing unit 150 .

[0087] The upgrade detection unit 110 is used to send an upgrade detection instruction to all equalizer modules, so that each equalizer module performs a compliance detection on the basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information.

[0088] In this embodiment, the upgrade detection instruction usually includes basic information of the upgrade file. When the upper computer sends the upgrade detection instruction to all equalizer modules, each equalizer module can parse the upgrade detection instruction to obtain the basic information of the upgrade file at this time. By performing compliance detection on the basic information of the upgrade file, the corresponding compliance detection result can be obtained.

[0089] Among them, the upgrade detection instruction can also include a public flag code, which can be 0, and 0 represents the ID set of all equalizer modules. ID (identification) is used to identify the uniqueness of an object, and each object has a unique ID. Usually, different equalizer modules correspond to different instruction module response flag codes, such as, each number in 0-64 can represent the ID of the equalizer module. When the upgrade detection instruction includes a public flag code, it means that the upgrade detection instruction package needs to be sent to all equalizer modules.

[0090] In one embodiment, the upgrade detection instruction includes a public flag code and basic information of the upgrade file, the basic information of the upgrade file includes a module upgrade enable identification code, a firmware upgrade file checksum, an upgrade file version information, an upgrade file size, a maximum upgrade package size, and the number of upgrade packages, the compliance detection information is the first response flag information, and the upgrade detection unit 110 is further used to perform the following steps:

[0091] The upgrade detection instruction is sent to all equalizer modules according to the public flag code in the upgrade detection instruction; each equalizer module is controlled to determine whether the module upgrade enable identification code in the upgrade detection instruction is valid; the equalizer module with the valid module upgrade enable identification code is controlled to record the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, number of upgrade packages in the upgrade detection instruction, and perform compliance judgment; the equalizer module with the judgment result of compliance is controlled to clear the data in the firmware backup area and the upgrade information area, and designate the corresponding first response mark information as the information code waiting for the upgrade package data; the equalizer module with the judgment result of non-compliance is controlled to designate the corresponding first response mark information as the non-compliant information code.

[0092] The upper computer will send the upgrade detection instruction to all equalizer modules according to the public identification code in the upgrade detection instruction, so as to control all equalizer modules to perform compliance detection on the basic information of the upgrade file in the upgrade detection instruction.

[0093] When the equalizer module receives the upgrade detection instruction, it will perform corresponding analysis and determine whether the module upgrade enable identification code is valid. If it is invalid, no processing will be performed. If it is valid, the firmware upgrade file checksum, upgrade file version information, upgrade file size, upgrade package maximum upgrade package size, and the number of upgrade packages will be recorded and compliance will be determined.

[0094] Among them, the module upgrade enable identification code has 8 bytes, a total of 64 bits, each bit represents a corresponding module, and the module upgrade enable identification code can indicate whether the module is included in the upgrade list. If there is no problem with the module upgrade enable identification code, it means that the equalizer module at this time is the module that needs to be upgraded.

[0095] The firmware upgrade file checksum refers to a verification process for the firmware upgrade file to ensure the integrity and correctness of the file. Checksum is a technology used to verify data integrity. It calculates the data of the firmware file to generate a specific value (checksum). Then, during the firmware upgrade process, the equalizer module as the receiver will recalculate this value and compare it with the checksum provided by the sender. If the two match, it means that the firmware file has not been tampered with or damaged during transmission.

[0096] Upgrade file version information usually refers to updates or improvements to the software product, and its version number is adjusted accordingly to reflect these changes.

[0097] Upgrade file size usually refers to the size of the software upgrade package or update file, which is an important indicator to measure the amount of upgrade content and the required storage space.

[0098] In addition, the relationship between the firmware upgrade file, upgrade package and data packet can be summarized as follows: a firmware upgrade file usually contains one or more upgrade packages, and an upgrade package is composed of multiple data packets.

[0099] A firmware upgrade file is a file that contains the firmware update content of a device. Common formats include binary images (.bin), compressed packages (.zip, .tar, .gz, .xz), image files (.img), Intel HEX files (.hex), and Motorola S-record files (.srec, .s19). These files are commonly used in routers, cameras, IoT devices, etc., and contain all the code and data required for the device to operate.

[0100] The upgrade package is a further subdivision of the firmware upgrade file, usually in the form of an update.zip file. The upgrade package is an extension and enhancement of the base package, containing a series of auxiliary tools and services for updating and optimizing the base package.

[0101] Data packets are the specific implementation units of the upgrade package. The firmware file is usually disassembled into 512 bytes, and the end of the file is padded with 0 if it is less than 512 bytes. Each data packet needs to be confirmed by the client before the next data packet is pushed.

[0102] Therefore, it can be seen that the firmware upgrade file is the largest unit, which contains one or more upgrade packages; the upgrade package is composed of multiple data packets, and each data packet contains a part of the firmware update content.

[0103] Specifically, if the module upgrade enable identification code is invalid, no processing is performed. If the module upgrade enable identification code is valid, record the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and number of upgrade packages, and make a compliance judgment. If it is not compliant, designate the first response mark as a non-compliant information code, that is, designate the first response mark as an information code that is not waiting for the upgrade data packet. If it is compliant, the equalizer module clears the data in the firmware backup area and the upgrade information area, and designates the first response mark as the information code waiting for the upgrade data packet, and then waits for the host computer to query the status.

[0104] The firmware backup area is mainly used to store firmware backups so that they can be restored when problems occur during firmware upgrades, while the upgrade information area is used to store firmware upgrade related information, including the storage location of the new firmware and upgrade instructions.

[0105] The first upgrade query unit 120 is used to send a first upgrade query instruction to all equalizer modules, so that each equalizer module returns corresponding compliance detection information, and determines the equalizer module to be upgraded according to the compliance detection information.

[0106] In this embodiment, the host computer sends the first upgrade query instruction to all the equalizer modules in sequence according to the instruction module response flag code corresponding to each equalizer module, thereby controlling each equalizer module to respond to the first upgrade query instruction and return corresponding compliance detection information to the host computer. The host computer can determine the equalizer module to be upgraded based on the returned compliance detection information.

[0107] In one embodiment, the first upgrade query unit 120 is further configured to perform the following sub-steps:

[0108] According to the instruction module response flag codes of all equalizer modules, the first upgrade query command is sent to the corresponding equalizer modules in turn; the equalizer module that has received the first upgrade query command is controlled to return the corresponding first response flag information; if the received first response flag information is an information code waiting for upgrade package data, the equalizer module corresponding to the first response flag information is determined as the equalizer module to be upgraded; if the received first response flag information is an illegal information code, the equalizer module corresponding to the first response flag information is determined as not being the equalizer module to be upgraded.

[0109] The host computer sends the first upgrade query instruction in sequence according to the response identification code of the equalizer module to be upgraded, and the instruction module response identification code can be the ID of the equalizer module. After receiving the first upgrade query instruction, the equalizer module will respond to the response information generated by the upgrade detection instruction, that is, the compliance detection information response to the host computer.

[0110] The host computer removes the module upgrade enable identification code corresponding to the equalizer module that responds to the information code of the waiting upgrade data packet, and makes a corresponding prompt, so as not to include the equalizer module in the upgrade list, ensuring that the equalizer module will not be upgraded. At the same time, when the received first response flag information is the information code of the waiting upgrade package data, the host computer can also determine the equalizer module corresponding to the first response flag information as the equalizer module to be upgraded.

[0111] The upgrade matching unit 130 is used to send an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process.

[0112] In this embodiment, the upper computer can send an upgrade matching instruction to the equalizer module to be upgraded based on the determined equalizer module to be upgraded, thereby controlling the equalizer module to be upgraded to detect whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process, thereby determining whether the equalizer module to be upgraded is suitable for upgrading.

[0113] In one embodiment, the upgrade matching instruction includes a public identification code and characteristic information of the upgrade file, and the characteristic information of the upgrade file includes a module upgrade enable identification code, an upgrade package data number, and upgrade package data; the upgrade matching unit 130 is further used to perform the following sub-steps:

[0114] According to the public flag code in the upgrade matching instruction, the upgrade matching instruction is sent to all the equalizer modules to be upgraded; each equalizer module to be upgraded is controlled to determine whether the module upgrade enable identification code in the upgrade matching instruction is valid; the equalizer module to be upgraded with the valid module upgrade enable identification code is controlled to determine whether the upgrade package data number in the upgrade matching instruction it receives matches the number of the data packet it currently needs; if they match, the equalizer module to be upgraded is controlled to write the upgrade package data in the upgrade matching instruction into the firmware backup area, and designate the corresponding response mark information as the information code waiting for the upgrade package data.

[0115] The host computer can send the upgrade matching instruction to all equalizer modules to be upgraded according to the public identification code in the upgrade matching instruction. For example, if the instruction module response identification code is 0, the equalizer module does not respond autonomously.

[0116] The equalizer module receives the upgrade matching instruction sent by the host computer and parses it. First, it determines whether the module upgrade enable identification code is valid. If it is invalid, no processing is performed. If it is valid, it determines whether the upgrade package data number in the characteristic information of the currently issued upgrade file matches the number of the data packet required in the current upgrade process. If it does not match, the information of the response failure of the data packet mismatch is recorded. If it matches, the upgrade package data is written to the corresponding position in the firmware backup area, and the count of the upgrade package data is increased by one, and the response mark is designated as the information code waiting for the upgrade data packet. Finally, wait for the host computer to query the status.

[0117] The second upgrade query unit 140 is used to send a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information.

[0118] In this embodiment, the host computer can send the second upgrade query instruction to each equalizer module to be upgraded in sequence according to the instruction module response flag code of the equalizer module to be upgraded, so as to control the equalizer module to be upgraded to return the corresponding matching result information, and determine the target equalizer module according to the matching result information. If the matching result information is not matched, the equalizer module to be upgraded will no longer be upgraded. If it is matched, the next step of operation will be performed.

[0119] In one embodiment, the matching information result is second response flag information, and the second upgrade query unit 140 is further configured to perform the following sub-steps:

[0120] According to the instruction module response flag codes of all equalizer modules to be upgraded, the second upgrade query command is sent to the corresponding equalizer modules in turn; the equalizer module that has received the second upgrade query command is controlled to return the corresponding second response flag information; if the received second response flag information is an information code waiting for upgrade package data, the equalizer module corresponding to the second response flag information is determined as the target equalizer module.

[0121] Among them, the host computer sends the second upgrade query instruction to the module in sequence according to the instruction module response identification code, and this instruction module response identification code is the module ID. The equalizer module receives the second upgrade query instruction and responds to the host computer with the second response information in response to the upgrade matching instruction. The host computer removes the module upgrade enable identification code corresponding to the equalizer module whose response is not the information code of waiting for the upgrade data packet, and records the ID of the module that failed to respond. If the received second response flag information is the information code of waiting for the upgrade package data, the equalizer module corresponding to the second response flag information is determined as the target equalizer module.

[0122] The upgrade processing unit 150 is used to complete the firmware upgrade of the target equalizer module if it is detected that the upgrade file sent to the target equalizer module is complete.

[0123] In this embodiment, if the host computer detects that the upgrade file sent to the target equalizer module is complete, the firmware upgrade of the target equalizer module is completed.

[0124] In one embodiment, the upgrade processing unit 150 may also be used to perform the following steps:

[0125] Determine whether the upgrade package data sent to all target equalizer modules is the last package data in the upgrade file; if so, control each target equalizer module to calculate the data checksum of all upgrade package data written to the firmware backup area; determine whether the calculated data checksum matches the firmware upgrade file checksum; if the match is successful, write the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and number of upgrade packages included in the upgrade detection instruction into the upgrade information area to complete the firmware upgrade of the target equalizer module.

[0126] Among them, after the upper computer determines the target equalizer module, it determines whether the upgrade package data sent to all target equalizer modules is the last package data in the upgrade file. If not, return to the upgrade matching unit 130 and the second upgrade query unit 140 to execute relevant steps. If so, control each target equalizer module to calculate the data checksum of all upgrade package data written to the firmware backup area, and determine whether the calculated data checksum matches the firmware upgrade file checksum. If the match is successful, the firmware upgrade file checksum, upgrade file version information, upgrade file size, upgrade package maximum upgrade package size, and number of upgrade packages included in the upgrade detection instruction are written into the upgrade information area to complete the firmware upgrade of the target equalizer module. If the match is unsuccessful, it means that the upgrade failed. If the upgrade fails, the upper computer will restart the upgrade process at this time.

[0127] The firmware upgrade device based on the multi-channel battery balancing device can be implemented in the form of a computer program. The computer program can be Figure 5 Runs on the computer device shown.

[0128] See also Figure 5 , Figure 5 : is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device can be used to execute a firmware upgrade method based on a multi-channel battery balancing device to implement a firmware upgrade of an equalizer module of the multi-channel battery balancing device according to a firmware upgrade module based on the multi-channel battery balancing device imported into an operating system.

[0129] See also Figure 5 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .

[0130] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute a firmware upgrade method based on a multi-channel battery balancing device, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.

[0131] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0132] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a firmware upgrade method based on a multi-channel battery balancing device.

[0133] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0134] The processor 502 is used to run a computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned firmware upgrade method based on the multi-channel battery balancing device.

[0135] Those skilled in the art will understand that Figure 5 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 5 The embodiments shown are consistent and will not be described again here.

[0136] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0137] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the firmware upgrade method based on the multi-channel battery balancing device are implemented.

[0138] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0139] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.

[0140] 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 units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.

[0141] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

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

[0143] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A firmware upgrade method based on a multi-channel battery balancing device, characterized in that: The multi-channel battery balancing device includes a host computer and a plurality of balancing instrument modules electrically connected to the host computer, different balancing instrument modules are associated with different module response identification codes, and the method is applied to the host computer, and the method includes: Sending an upgrade detection instruction to all equalizer modules, so that each equalizer module performs compliance detection on basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information; Sending a first upgrade query instruction to all equalizer modules, so that each equalizer module returns corresponding compliance detection information, and determining the equalizer module to be upgraded according to the compliance detection information; Sending an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process; Sending a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information; If it is detected that the upgrade file sent to the target equalizer module is complete, the firmware upgrade of the target equalizer module is completed.

2. The firmware upgrade method based on a multi-channel battery balancing device according to claim 1, characterized in that: Different equalizer modules are associated with different instruction module response flag codes, and all equalizer modules are associated with a common flag code. The upgrade detection instruction includes the common flag code and basic information of the upgrade file. The basic information of the upgrade file includes the module upgrade enable identification code, the firmware upgrade file checksum, the upgrade file version information, the upgrade file size, the maximum upgrade package size of the upgrade package, and the number of upgrade packages. The compliance detection information is the first response flag information. The step of sending the upgrade detection instruction to all equalizer modules so that each equalizer module performs compliance detection on the basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information, includes: Sending the upgrade detection instruction to all equalizer modules according to the public identification code in the upgrade detection instruction; Control each equalizer module to determine whether the module upgrade enable identification code in the upgrade detection instruction is valid; The equalizer module with a valid module upgrade enable identification code is controlled to record the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and number of upgrade packages in the upgrade detection instruction, and perform compliance judgment; Control the equalizer module whose judgment result is compliance to clear the data in the firmware backup area and the upgrade information area, and designate the corresponding first response mark information as the information code waiting for the upgrade package data; The equalizer module whose control judgment result is non-compliant designates the corresponding first response mark information as a non-compliant information code.

3. The firmware upgrade method based on the multi-channel battery balancing device according to claim 2, characterized in that: The step of sending the first upgrade query instruction to all equalizer modules so that each equalizer module returns corresponding compliance detection information, and determining the equalizer module to be upgraded according to the compliance detection information, further includes: According to the instruction module response flag codes of all equalizer modules, the first upgrade query instruction is sent to the corresponding equalizer modules in sequence; Controlling the equalizer module that has received the first upgrade query instruction to return corresponding first response flag information; If the received first response flag information is an information code for waiting for upgrade package data, the equalizer module corresponding to the first response flag information is determined as the equalizer module to be upgraded; If the received first response flag information is an illegal information code, the equalizer module corresponding to the first response flag information is determined as not being the equalizer module to be upgraded.

4. The firmware upgrade method based on a multi-channel battery balancing device according to claim 3, characterized in that: The upgrade matching instruction includes a public identification code and characteristic information of the upgrade file, and the characteristic information of the upgrade file includes a module upgrade enable identification code, an upgrade package data number, and upgrade package data; the step of sending the upgrade matching instruction to the equalizer module to be upgraded so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process, further includes: Sending the upgrade matching instruction to all equalizer modules to be upgraded according to the public identification code in the upgrade matching instruction; Control each equalizer module to be upgraded to determine whether the module upgrade enable identification code in the upgrade matching instruction is valid; Controlling the equalizer module to be upgraded with the module upgrade enable identification code being valid to determine whether the upgrade package data number in the upgrade matching instruction received by it matches the data packet number currently required by it; If they match, the equalizer module to be upgraded is controlled to write the upgrade package data in the upgrade matching instruction into the firmware backup area, and the corresponding response mark information is designated as the information code waiting for the upgrade package data.

5. The firmware upgrade method based on a multi-channel battery balancing device according to claim 4, characterized in that: The matching information result is the second response flag information, the step of sending the second upgrade query instruction to the equalizer module to be upgraded so that the equalizer module to be upgraded returns the corresponding matching result information, and determining the target equalizer module according to the matching result information includes: According to the instruction module response flag codes of all the equalizer modules to be upgraded, sending a second upgrade query instruction to the corresponding equalizer modules in sequence; Controlling the equalizer module that has received the second upgrade query instruction to return corresponding second response flag information; If the received second response flag information is an information code for waiting for upgrade package data, the equalizer module corresponding to the second response flag information is determined as the target equalizer module.

6. The firmware upgrade method based on a multi-channel battery balancing device according to claim 5, characterized in that: The method further comprises: If the received second response flag information is not an information code for waiting for upgrade package data, the equalizer module corresponding to the second response flag information is removed from its corresponding module upgrade enable identification code.

7. The firmware upgrade method based on a multi-channel battery balancing device according to claim 5, characterized in that: If it is detected that the upgrade file sent to the target equalizer module is complete, the step of completing the firmware upgrade of the target equalizer module includes: Determine whether the upgrade package data sent to all target equalizer modules is the last package data in the upgrade file; If yes, control each target equalizer module to calculate the data checksum of all upgrade package data written into the firmware backup area; Determining whether the calculated data checksum matches the firmware upgrade file checksum; If the match is successful, the firmware upgrade file checksum, upgrade file version information, upgrade file size, maximum upgrade package size, and number of upgrade packages included in the upgrade detection instruction are written into the upgrade information area to complete the firmware upgrade of the target equalizer module.

8. A firmware upgrade device based on a multi-channel battery balancing device, characterized in that: The multi-channel battery balancing device includes a host computer and a plurality of balancing instrument modules electrically connected to the host computer, different balancing instrument modules are associated with different module response identification codes, and the device is applied to the host computer, and the device includes: An upgrade detection unit, used for sending an upgrade detection instruction to all equalizer modules, so that each equalizer module performs compliance detection on the basic information of the upgrade file in the upgrade detection instruction, thereby obtaining corresponding compliance detection information; A first upgrade query unit, used to send a first upgrade query instruction to all equalizer modules, so that each equalizer module returns corresponding compliance detection information, and determines the equalizer module to be upgraded according to the compliance detection information; An upgrade matching unit, used for sending an upgrade matching instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded detects whether the characteristic information of the upgrade file in the upgrade matching instruction matches the characteristic information of the current upgrade process; A second upgrade query unit, used to send a second upgrade query instruction to the equalizer module to be upgraded, so that the equalizer module to be upgraded returns corresponding matching result information, and determines the target equalizer module according to the matching result information; The upgrade processing unit is used to complete the firmware upgrade of the target equalizer module if it is detected that the upgrade file sent to the target equalizer module is complete.

9. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the firmware upgrade method based on a multi-channel battery balancing device according to any one of claims 1 to 7 when executing the program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the firmware upgrade method based on a multi-channel battery balancing device according to any one of claims 1 to 7 are implemented.