Equipment batch upgrading method and system of household energy storage system

By introducing batch upgrade methods in the home energy storage system, the battery host automated controlled the firmware update of all batteries in the battery system, solving the problem that the inverter in the existing technology cannot update other batteries in the battery system, and achieve the battery. The efficient, convenient upgrade and stability improvement of the system.

CN119356704APending Publication Date: 2025-01-24HANGZHOU WEIMU TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411382401.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the existing home energy storage system, the inverter can only update the firmware of the battery host, and cannot update and upgrade the firmware of other batteries in the battery system, resulting in a cumbersome upgrade process and taking up a lot of time for operation and maintenance personnel.

Method used

Proposal the equipment batch upgrade method of the home energy storage system. After obtaining the battery host to obtain the fixedware package, enter the batch upgrade process, control the battery synchronization or upgrade in accordance with the preset priority, and confirm the packet and information confirmation message through the handshake message and information confirmation message Steps and other steps of subcontracting data to ensure that the firmware package of all batteries in the battery system is updated.

Benefits of technology

It realizes efficient and convenient upgrade of the battery system, automates the batch upgrade process of batteries, greatly reduces the workload of after-sales operation and maintenance personnel, and improves the stability and user experience of the entire battery system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356704A_ABST
    Figure CN119356704A_ABST
Patent Text Reader

Abstract

The invention provides an equipment batch upgrading method and system for a household energy storage system, and the upgrading method comprises the steps: enabling a battery host to obtain a to-be-updated firmware package of a battery, and then transmitting a handshake message to the battery; the battery host sends an information confirmation message of the to-be-updated firmware package of the battery to the battery; the battery host splits a to-be-updated firmware package of the battery into a plurality of sub-packages, and sends data messages and check codes of the sub-packages to the battery according to set conditions; the battery host sends an upgrade completion message containing the total check code or the total check code to the battery; and restarting the battery and operating the obtained firmware package. According to the method, each battery does not need to be upgraded, other batteries of the battery system can be automatically upgraded after the battery host receives the new firmware package, and after-sales operation and maintenance personnel do not need to perform single battery operation and upgrading, so that efficient and convenient upgrading of the battery system is realized, and the workload of the after-sales operation and maintenance personnel is greatly reduced; and the stability and the user experience of the whole battery system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of new energy technologies, and in particular to a method and system for batch upgrading equipment of a household energy storage system. Background Art

[0002] A home energy storage system is an energy storage device used in a home environment. It can store excess electrical energy and release it when needed to achieve the purpose of peak shaving, load balancing, and improving power quality. The home energy storage system can reduce the burden on the power grid, improve power quality, and provide residents with stable power output.

[0003] Although home energy storage systems have many advantages and application prospects, they still face some challenges. The existing home energy storage system is divided into two parts: the battery system and the inverter. The battery system has multiple battery usage clearances. During normal use, the on-site battery system needs to be updated and upgraded due to control strategies and algorithms that need to be modified or defects in the battery system.

[0004] The inverter can only update the firmware of the battery host, and cannot update the firmware of other batteries in the battery system. The Bluetooth APP and the supporting host computer require after-sales maintenance personnel to perform individual operations and upgrades. Such upgrade steps are cumbersome, and the upgrade of the entire battery system will take up a lot of time for after-sales maintenance personnel. Therefore, a method for batch upgrading batteries is needed to automatically batch upgrade other batteries in the battery system. Summary of the invention

[0005] The main purpose of the present invention is to propose a method and system for batch upgrading of equipment in a home energy storage system, aiming to solve the problem that the inverter can only update the firmware of the battery host but cannot update the firmware of other batteries in the battery system.

[0006] In view of the above problems, the present invention proposes a method for batch upgrading of equipment of a home energy storage system, wherein the home energy storage system comprises a battery system, wherein the battery system comprises a battery host and a battery, wherein the battery system comprises a plurality of batteries, and the upgrading method comprises: After the battery host obtains the battery firmware package to be updated, it enters the batch upgrade process, controls battery synchronization or upgrades according to the preset priority, and sends a handshake message to the battery to confirm communication; After the battery replies to the handshake successfully, the battery host sends an information confirmation message of the battery firmware package to be updated to the battery to confirm the information data; After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission; After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total verification code containing a total verification code to the battery; after the total verification code is verified to be correct, the battery restarts and runs the obtained firmware package.

[0007] Optionally, after the battery host obtains the battery firmware package to be updated, sending a handshake message to the battery to confirm communication includes the following steps: The battery host obtains the firmware package and sends a handshake message to the battery. When the battery determines that the current state of the battery allows the upgrade based on the handshake message, the battery replies that the handshake is successful and enters the upgrade state; When it is determined that the current state of the battery does not allow upgrading, the battery replies that the handshake has failed.

[0008] Optionally, after the battery reply handshake is successful, the battery host sends an information confirmation message of the battery firmware package to be updated to the battery to confirm the information data, including the following steps: After the battery replies that the handshake is successful, the battery host sends an information confirmation message to the battery, and the battery replies that the battery is successful based on the information confirmation message when the battery is in a normal state; When a storage abnormality is found in the battery, the battery reply confirms failure.

[0009] Optionally, after the battery reply confirmation is successful, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission, including the following steps: After the battery replies and confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data messages and their verification codes to the battery in sequence, so that the battery checks the verification code of the sub-packet data after receiving the sub-packet data and its verification code. When the verification code is correct, the battery stores the sub-packet data in the corresponding storage address and replies that the sub-packet transmission is successful; When the verification code is checked incorrectly, the battery stores the sub-packet data in an error and responds with a failure.

[0010] Optionally, after the battery reply confirmation is successful, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission, including the following steps: After the battery replies and confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its verification code to the battery according to the sub-packet sequence number, so that the battery checks the verification code of the sub-packet data after receiving the sub-packet data and its verification code. When the verification code is correct, the battery stores the sub-packet data in the corresponding storage address and replies that the sub-packet transmission is successful; When the verification code is checked incorrectly, the battery discards the current sub-packet and responds with failure.

[0011] Optionally, after the battery replies that all sub-packets are successfully transmitted, the battery host sends an upgrade completion message or a total check code containing a total check code to the battery; after the total check code is verified to be correct, the battery restarts and runs the obtained firmware package, including the following steps: After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total verification code to the battery, so that after the battery receives the total verification code, it verifies the total verification code. When the total verification code is verified to be correct, the battery restarts and runs the obtained firmware package; When the total check code verification fails, the battery reply fails and erases the previously received firmware package.

[0012] Optionally, the upgrading method further includes: Obtain the device addresses of multiple batteries in the battery system, and upgrade the batteries in order from the smallest to the largest device addresses; When the battery host sends any one of the handshake message, information confirmation message or sub-packetized data message to the target battery, if the target battery fails to respond or does not respond within a preset time, the target battery will resend until the target battery responds successfully within a preset number of times; After the target battery resends a preset number of times, the target battery is marked as an upgrade failure; After the target battery replies that the handshake is successful, the battery host will send an information confirmation message of the battery firmware package to be updated to the battery; After the target battery replies with information confirming success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data messages and their check codes to the battery in sequence; After the target battery replies that the current sub-packet transmission is successful, the battery host sends the next sub-packet data message and its check code, until the battery host has sent all sub-packets, and then the battery host sends the total check code to the battery; After the target battery successfully replies with the total check code, the target battery automatically restarts and runs the new firmware program, the battery host marks the currently upgraded target battery as successful, and restarts the steps of the upgrade method for the next battery; after the target battery fails to reply with the total check code, the target battery responds with failure and erases the received firmware package.

[0013] Optionally, the upgrading method further includes: When the battery host sends a handshake message or an information confirmation message to multiple online batteries in the battery system simultaneously, the battery host marks the online battery that has successfully responded as successful, and continues to repeatedly send messages at a set frequency to the online battery that has failed to respond until all online batteries respond successfully; The battery host sends the sub-packet data message and its check code according to the sub-packet sequence number until all sub-packets are sent. The battery host will send an upgrade completion message containing a total check code to the battery; When the battery host synchronously sends an upgrade completion message containing a total check code to multiple online batteries in the battery system, the battery host marks the online batteries that reply successfully as upgraded successfully, and marks the online batteries that reply failed as upgraded failed. After all online batteries are marked, the battery host restarts the steps of the upgrade method for all batteries that failed to upgrade until all online batteries are marked upgraded successfully or the battery host receives an instruction to cancel the upgrade.

[0014] Optionally, the battery host confirms whether to obtain the firmware package to be updated, and after confirming to obtain the firmware package to be updated, the battery host will start an internal batch upgrade; After confirming that the firmware package to be updated is not obtained, the battery host re-confirms; After confirming that the firmware package to be updated is obtained, the battery host starts an internal batch upgrade and identifies the internal networking mode of the battery system; The battery host enters the corresponding batch upgrade process according to the internal networking mode of the battery system.

[0015] The present invention also proposes a batch upgrade system, comprising a memory and a processor, wherein the memory has a computer program, and the processor is used to call and run the computer program stored in the memory to execute the steps of the above-mentioned method.

[0016] The present invention does not need to upgrade each battery. After the battery host receives the new firmware package, other batteries in the battery system will be automatically upgraded. There is no need for after-sales operation and maintenance personnel to operate and upgrade individual batteries, thus achieving efficient and convenient upgrades of the battery system and batch upgrades of batteries, greatly reducing the workload of after-sales operation and maintenance personnel and improving the stability of the entire battery system and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 A flow chart of a device upgrade method for a household energy storage system according to the present invention; Figure 2 A flow chart of a method for upgrading a battery in a device upgrading method for a household energy storage system according to the present invention; Figure 3 A flow chart of a device upgrade method and a batch upgrade method of a household energy storage system according to the present invention; Figure 4 A flow chart of an equipment upgrade method for a household energy storage system and an upgrade method for an upgraded battery-based RS485 bus of a device of the present invention; Figure 5 The present invention provides a device upgrade method for a household energy storage system and a flow chart of an upgrade method for an upgraded battery of the device based on a CAN bus.

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

[0020] The following will be combined with the attached embodiment of the present invention Figures 1 to 5 , the technical solutions in the embodiments of the present invention are clearly and completely described. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. 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.

[0021] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0022] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0023] In addition, in the present invention, descriptions such as "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0024] The existing home energy storage system is divided into two parts: the battery system and the inverter. The battery system has multiple batteries that need to be cleared. The inverter can only update the firmware of the battery host, and cannot update the firmware of other batteries in the battery system. The Bluetooth APP and the supporting host computer require after-sales maintenance personnel to perform a single operation upgrade. Such upgrade steps are cumbersome, and the upgrade of the entire battery system will take up a lot of time for after-sales maintenance personnel.

[0025] In view of the above problems, the present invention proposes a method for batch upgrading of equipment of a household energy storage system, wherein the household energy storage system comprises a battery system, the battery system comprises a battery host and a battery, and the battery system comprises a plurality of batteries, such as Figure 1 As shown, the upgrade methods include: Step S100: After the battery host obtains the battery firmware package to be updated, it enters the batch upgrade process, controls the battery synchronization or upgrades according to the preset priority, and sends a handshake message to the battery to confirm the communication; The battery host first needs to receive the firmware package to be updated from a reliable source. This firmware package contains all the data and instructions required to upgrade the battery system. Verify the firmware package: After downloading or receiving the firmware package, the battery host should verify it to ensure the integrity and correctness of the firmware package, which usually includes verification mechanisms such as checksums.

[0026] Once the firmware package is verified, the battery host will start the batch upgrade process. This process involves the coordination and management of multiple battery units to ensure the smooth progress of the upgrade. The battery host starts sending handshake messages to the battery. The handshake message is a key step in establishing communication between the battery host and the battery. The message usually contains some basic information, such as device type, firmware version number, communication protocol, etc., so that both parties can confirm each other's identity and compatibility.

[0027] After the battery host sends the handshake message to the battery, the battery will parse and respond to it. If the handshake between the two parties is successful, that is, the communication protocol and device compatibility are confirmed to be correct, the subsequent upgrade operation can continue.

[0028] Step S200: After the battery replies to the handshake successfully, the battery host sends an information confirmation message of the battery firmware package to be updated to the battery to confirm the information data; After the battery successfully replies to the handshake message and confirms that the communication is correct, the battery host will further send a confirmation message of the battery firmware package to be updated to the battery. The purpose of this step is to ensure that the battery is ready to receive the firmware package data and that both parties have a clear consensus on the content and format of the data to be transmitted.

[0029] The battery host prepares an information confirmation message based on the communication protocol and parameters determined in the previous handshake process. This message usually contains metadata of the firmware package. The battery host sends the information confirmation message to the battery through the previously established communication channel. During this process, the battery host needs to ensure the integrity and correctness of the message to avoid data loss or errors during transmission.

[0030] After receiving the information confirmation message, the battery will parse and process it. It will check the firmware package metadata in the message and compare it with the firmware information stored in itself to confirm whether the firmware needs to be updated. If the battery confirms that the firmware needs to be updated and is ready to receive the firmware package data, it will reply a confirmation message to the battery host. This confirmation message may contain some additional information, such as the current battery power status, remaining storage space, etc., so that the battery host can make more reasonable arrangements when sending the firmware package data.

[0031] Step S300: After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission; The battery host first determines the size of each subpacket based on the limitations of the communication protocol, the storage capacity of the battery, and the reliability requirements of data transmission. The subpacket size should be moderate, neither too large to increase the transmission failure rate nor too small to cause low transmission efficiency. Based on the determined subpacket size, the battery host splits the firmware package into multiple continuous data blocks, each of which is a subpacket.

[0032] For each sub-packet, the battery host calculates the checksum of its data to verify the integrity of the data at the receiving end. The calculated checksum is attached to the data part of the sub-packet to form a complete sub-packet data message. The battery host sets the conditions for sending sub-packets according to the communication protocol and actual needs. When the sending conditions are met, the battery host sends the sub-packet data message to the battery through the communication channel. Each sub-packet should be sent independently and wait for the battery's receipt confirmation.

[0033] After receiving the packet data message, the battery will verify it and reply a reception confirmation message to the battery host. If the battery host does not receive the reception confirmation message within the scheduled time, or the received confirmation message indicates that the verification failed, it will resend the packet according to the retransmission mechanism. The number of retransmissions and the interval can be configured according to the actual situation.

[0034] Step S400: After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total verification code containing a total verification code to the battery; after the total verification code is verified to be correct, the battery restarts and runs the obtained firmware package.

[0035] Before or after sending all sub-packets, the battery host will calculate the total check code of the entire firmware package data. Through the previously established communication channel, the battery host will send the upgrade completion message containing the total check code or the total check code itself to the battery.

[0036] After the battery receives the upgrade completion message or the total check code, it will parse out the total check code. The battery uses the same algorithm to check the entire firmware package data and compares the calculated check code with the received total check code. If the two check codes match, it means that there is no error or damage in the firmware package data during transmission; if they do not match, it means that there is a data error and the firmware package may need to be retransmitted or other error handling may be required.

[0037] After the total checksum is verified to be correct, the battery will start writing the firmware package data to its non-volatile storage medium. This process may involve decompression, decryption (if the firmware package is encrypted), and writing to a specific storage area.

[0038] Restart preparation: After writing is complete, the battery will perform the necessary restart preparations. After the battery restarts, it will load and run the updated firmware from the new firmware package. During this process, the battery may perform a series of self-tests, initialization operations, and functional tests to ensure that the firmware upgrade is successful and the device is running normally. After the battery successfully runs the updated firmware, it will report the status information of the successful upgrade to the battery host. This helps the battery host monitor and manage the firmware upgrade process of the device.

[0039] The present invention does not need to upgrade each battery. After the battery host receives the new firmware package, other batteries in the battery system will be automatically upgraded. There is no need for after-sales operation and maintenance personnel to operate and upgrade individual batteries, thus achieving efficient and convenient upgrades of the battery system and batch upgrades of batteries, greatly reducing the workload of after-sales operation and maintenance personnel and improving the stability of the entire battery system and user experience.

[0040] like Figure 2 As shown, an upgrade method embodiment includes: Step S1: After the battery host obtains the battery firmware package to be updated, it sends a handshake message to the battery to confirm communication; The battery host obtains the firmware package and sends a handshake message to the battery. Based on the handshake message, when the battery determines that the current state of the battery allows the upgrade, the battery replies that the handshake is successful and enters the upgrade state; When determining that the current state of the battery does not allow upgrading, the battery replies that the handshake has failed.

[0041] Step S2: After the battery replies that the handshake is successful, the battery host sends an information confirmation message of the battery firmware package to be updated to the battery to confirm the information data; After the battery replies that the handshake is successful, the battery host sends an information confirmation message to the battery. The battery confirms the message based on the information. When the battery is in a normal state, the battery replies that the confirmation is successful. When a storage anomaly is found in the battery, the battery reply confirmation fails.

[0042] Step S3: After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission; After the battery replies and confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data messages and their check codes to the battery in sequence, so that the battery checks the check codes of the sub-packet data after receiving the sub-packet data and its check code. When the check code is correct, the battery stores the sub-packet data in the corresponding storage address and replies that the sub-packet transmission is successful; When the verification code is checked incorrectly, the battery stores the sub-packet data in error and responds with failure, waiting for the sub-packet data to repeat the step.

[0043] Step S4: The battery host determines whether all sub-packet data has been sent and transmitted successfully. After all sub-packet data has been sent, it proceeds to the next step; when it is confirmed that all sub-packet data has not been sent, it waits for the sub-packet data and returns to step S3.

[0044] Step S5: After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total verification code containing a total verification code to the battery; after the total verification code is verified to be correct, the battery restarts and runs the obtained firmware package; After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total check code to the battery, so that the battery checks the total check code after receiving it. When the total check code is verified to be correct, the battery restarts and runs the obtained firmware package; When the total checksum verification fails, the battery reply fails and erases the previously received firmware package.

[0045] In another embodiment, the difference from the above embodiment is that: After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission; After the battery replies and confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the sub-packet sequence number, so that the battery can check the check code of the sub-packet data after receiving the sub-packet data and its check code. When the check code is correct, the battery stores the sub-packet data in the corresponding storage address and replies that the sub-packet transmission is successful; When the verification code is checked incorrectly, the battery discards the current sub-packet and responds with a failure, waiting for sub-packet data to repeat the step.

[0046] Since the battery system has different internal networking modes, the mode of sending the sub-packet data is different. Therefore, this embodiment is different from step S3 of the previous embodiment.

[0047] The battery host firmware package of the battery system can be updated and upgraded through the following three ways: Upgrade via Bluetooth APP; remote upgrade via inverter; online upgrade via supporting host computer. After receiving the new firmware package, the battery host will select the corresponding batch upgrade method according to the current networking mode of the battery system. In actual applications, there are two main internal networking modes of the battery system, namely CAN bus networking and serial port RS485 bus networking.

[0048] For batteries based on serial RS485 bus networking, since the serial RS485 bus is a half-duplex communication mode, only batteries can be upgraded one by one. The upgrade sequence is based on the device address of the battery, and the firmware is upgraded from small to large. The upgrade time for a single battery is about 5 minutes, and the upgrade time for the entire system depends on the number of batteries in the system.

[0049] For a battery system based on CAN bus networking, since the CAN bus supports full-duplex communication, the batteries in the battery system can be upgraded synchronously in batches. The upgrade time for the entire set of batteries is about 5 minutes. Compared with a battery system based on a serial port RS485 bus, this upgrade method saves a lot of upgrade time.

[0050] In one embodiment, the battery system includes a plurality of batteries, such as Figure 4 As shown, the battery system batch upgrade method based on the serial port RS485 bus networking mode includes: Step SA1: After the battery host obtains the battery firmware package to be updated, it obtains the device addresses of multiple batteries in the battery system, selects the battery that has not been upgraded and has the smallest device address in the battery system for upgrading, and determines whether all batteries have been upgraded in the current step; If it is confirmed that the battery upgrade has not been completed, proceed to the next step; When all batteries have been upgraded, the process ends.

[0051] Step SA2: The battery host sends a handshake message to the battery to confirm communication; After receiving the upgrade handshake confirmation message from the battery host, if the current state allows the upgrade, the target battery will respond with a successful handshake and enter the upgrade state. After receiving the reply handshake success, the battery host will jump to the next step; When the target battery fails to respond or does not respond within the preset time of 5S, the target battery will resend the handshake message until the target battery responds successfully within three times; after the target battery fails to respond three times, the target battery will be marked as upgraded and return to step SA1.

[0052] Step SA3: After the battery replies to the handshake successfully, the battery host sends an information confirmation message of the battery firmware package to be updated to the battery to confirm the information data; wherein the information confirmation message includes the firmware package size, each package size, and the total number of packages.

[0053] After receiving the information of the information confirmation message, the target battery replies to confirm success, and after receiving the reply confirmation success, the battery host jumps to the next step; After discovering that the external FLASH is insufficient in size or the storage area is damaged, the target battery will reply with a confirmation failure. When the target battery fails to reply or does not respond within the preset time of 5S, the target battery will resend the information confirmation message until the target battery successfully replies within three times. After the target battery fails to reply three times, the target battery will be marked as an upgrade failure and return to SA1.

[0054] Step SA4: After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission; The battery host sends the sub-packaged firmware data message in sequence, and attaches the CRC16 check code of the sub-packaged data to the battery, so that the battery can check the check code of the sub-packaged data based on the received sub-packaged data and its check code.

[0055] When the verification code is correct, the battery stores the sub-packet data into the corresponding storage address and replies that the sub-packet transmission is successful. After the target battery replies that the current sub-packet transmission is successful, the battery host sends the next sub-packet data message and its verification code until the battery host has sent all sub-packets and jumps to the next step; When the target battery fails to respond or does not respond within the preset time of 5S, the target battery will resend the sub-packet data until the target battery responds successfully within three times; after the target battery fails to respond three times, the target battery will be marked as upgraded and return to step SA1.

[0056] Step SA5: The battery host determines whether all sub-packet data has been sent and transmitted successfully. After all sub-packet data has been sent, it proceeds to the next step; When it is confirmed that there is sub-packet data that has not been sent, wait for the sub-packet data and return to step SA4.

[0057] After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total check code containing a CRC16 total check code to the battery; after the target battery replies that the total check code is successful, the target battery automatically restarts to run the new firmware program, and the battery host marks the currently upgraded target battery as successful, and restarts the steps of the upgrade method for the next battery; After the target battery fails to reply with the total checksum, the target battery fails to reply and the previously received firmware package is erased.

[0058] In one embodiment, the battery system includes a plurality of batteries, such as Figure 5 As shown, the battery system batch upgrade method using the CAN bus networking method includes: Step SB1: After the battery host obtains the battery firmware package to be updated, it synchronously sends a handshake confirmation message to other online batteries in the battery system; After receiving the upgrade handshake confirmation message from the battery host, if the current state allows the upgrade, the target battery will respond with a successful handshake and enter the upgrade state. After receiving the successful handshake reply, the battery host will mark the successful handshake as successful for the battery that responded successfully and jump to the next step. If there are batteries on the bus that have not entered the upgrade state (batteries that have failed to respond), the battery host will continue to send handshake messages repeatedly at a set frequency every 200ms until all online batteries respond with a successful handshake and jump to the next step.

[0059] Step SB2: After the battery replies to the handshake successfully, the battery host synchronously sends an information confirmation message to other online batteries in the battery system; wherein the information confirmation message includes the firmware package size, each package size, and the total number of packages.

[0060] After receiving the information confirmation message from the battery host, the target battery replies to confirm success. After receiving the reply confirmation, the battery host confirms the successful reply of the battery information and jumps to the next step. After the target battery finds that the external FLASH is insufficient in size or the storage area is damaged, it responds with a confirmation failure; If there are batteries on the bus that have not entered the upgrade state, the battery host will continue to send information confirmation messages repeatedly at a set frequency every 200ms until all online batteries reply to confirm success and jump to the next step.

[0061] Step SB3: After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and broadcasts the firmware data message every 200ms according to the sub-packet sequence number and attaches the CRC16 check code of the sub-packet data, so that the battery does not respond in the transmission stage after receiving the sub-packet data and its check code. Jump to the next stage after the transmission is completed; When the verification code is correct, the battery stores the sub-packet data into the corresponding storage address and replies that the sub-packet transmission is successful; when the verification code is wrong, the battery discards the current sub-packet and replies failure.

[0062] Step SB4: The battery host determines whether all sub-packet data has been sent and transmitted successfully. After all sub-packet data has been sent, the next step is entered; When it is confirmed that there are sub-packet data that have not been sent completely, the battery host continues to repeatedly send the sub-packet data at a set frequency every 200ms until all the sub-packet data are sent completely.

[0063] After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total check code containing a total check code to the battery; When the battery host sends an upgrade completion message containing a total check code to multiple online batteries in the battery system simultaneously, after the total check code is verified to be correct, the battery replies successfully and restarts and runs the obtained firmware package, and the battery host marks the online battery that replies successfully as having been upgraded successfully; The battery host marks the online batteries that failed to reply as upgrade failure. After all online batteries are marked, the battery host restarts the steps of the upgrade method for all batteries that failed to upgrade until all online batteries are marked as upgraded successfully or the battery host receives an instruction to cancel the upgrade.

[0064] Battery systems that are internally networked via the CAN bus can be upgraded in batches simultaneously, which can save a lot of time when upgrading in batches compared to battery systems that are internally networked via the RS485 bus.

[0065] It is worth noting that the above-mentioned embodiment includes the upgrading method steps of the upgraded battery, and the upgrading steps of the home energy storage system should also include other upgrading methods, such as Figure 3 As shown, the upgrade method also includes: Step SC1: The battery host confirms whether to obtain the firmware package to be updated. After confirming to obtain the firmware package to be updated, the battery host proceeds to the next step; After confirming that the firmware package to be updated is not obtained, the battery host reconfirms; Step SC2: after confirming and obtaining the firmware package to be updated, the battery host starts internal batch upgrade; Step SC3: The battery host identifies the internal networking mode of the battery system; Step SC4: The battery host enters the corresponding batch upgrade process according to the internal networking mode of the battery system, and chooses to enter steps SA1 to SA5 or steps SB1 to SB4; Step SC5: Upgrade completed.

[0066] The batch upgrade method of this embodiment supports two types of battery systems based on CAN bus and RS485 bus networking. When upgrading, the battery host will select the corresponding batch upgrade method according to the current networking mode of the battery system. After the batch upgrade is completed, the battery host will also report the success status of this upgrade. The operation and maintenance personnel can determine whether to start the batch upgrade operation again based on this information.

[0067] The present invention also proposes a batch upgrade system, including a memory and a processor, wherein the memory has a computer program, and the processor is used to call and run the computer program stored in the memory to execute the steps of the above method.

[0068] The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.

Claims

1. A method for batch upgrading of equipment of a household energy storage system, wherein the household energy storage system comprises a battery system, wherein the battery system comprises a battery host and a battery, wherein the battery system comprises a plurality of batteries, wherein: The upgrading method comprises: After the battery host obtains the battery firmware package to be updated, it enters the batch upgrade process, controls battery synchronization or upgrades according to the preset priority, and sends a handshake message to the battery to confirm communication; After the battery replies to the handshake successfully, the battery host sends an information confirmation message of the battery firmware package to be updated to the battery to confirm the information data; After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission; After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total verification code containing a total verification code to the battery; after the total verification code is verified to be correct, the battery restarts and runs the obtained firmware package.

2. The method for batch upgrading of devices of a household energy storage system according to claim 1, characterized in that: After the battery host obtains the battery firmware package to be updated, sending a handshake message to the battery to confirm communication includes the following steps: The battery host obtains the firmware package and sends a handshake message to the battery. When the battery determines that the current state of the battery allows the upgrade based on the handshake message, the battery replies that the handshake is successful and enters the upgrade state; When it is determined that the current state of the battery does not allow upgrading, the battery replies that the handshake has failed.

3. The method for batch upgrading of household energy storage system equipment according to claim 1, characterized in that: After the battery reply handshake is successful, the battery host sends an information confirmation message of the battery firmware package to be updated to the battery to confirm the information data, including the following steps: After the battery replies that the handshake is successful, the battery host sends an information confirmation message to the battery, and the battery replies that the battery is successful based on the information confirmation message when the battery is in a normal state; When a storage abnormality is found in the battery, the battery reply confirms failure.

4. The method for batch upgrading of household energy storage system equipment according to claim 1, characterized in that: After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission, including the following steps: After the battery replies and confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data messages and their verification codes to the battery in sequence, so that the battery checks the verification code of the sub-packet data after receiving the sub-packet data and its verification code. When the verification code is correct, the battery stores the sub-packet data in the corresponding storage address and replies that the sub-packet transmission is successful; When the verification code is checked incorrectly, the battery stores the sub-packet data in an error and responds with a failure.

5. The method for batch upgrading of household energy storage system equipment according to claim 1, characterized in that: After the battery reply confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its check code to the battery according to the set conditions to confirm the data transmission, including the following steps: After the battery replies and confirms success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data message and its verification code to the battery according to the sub-packet sequence number, so that the battery checks the verification code of the sub-packet data after receiving the sub-packet data and its verification code. When the verification code is correct, the battery stores the sub-packet data in the corresponding storage address and replies that the sub-packet transmission is successful; When the verification code is checked incorrectly, the battery discards the current sub-packet and responds with failure.

6. The method for batch upgrading of household energy storage system equipment according to claim 1, characterized in that: After the battery replies that all sub-packets are successfully transmitted, the battery host sends an upgrade completion message or a total check code containing a total check code to the battery; After the total check code is verified to be correct, the battery restarts and runs the obtained firmware package, including the following steps: After the battery replies that all sub-packets have been successfully transmitted, the battery host sends an upgrade completion message or a total verification code to the battery, so that after the battery receives the total verification code, it verifies the total verification code. When the total verification code is verified to be correct, the battery restarts and runs the obtained firmware package; When the total check code verification fails, the battery reply fails and erases the previously received firmware package.

7. The method for batch upgrading of household energy storage system equipment according to claim 1, characterized in that: The upgrading method further comprises: Obtain the device addresses of multiple batteries in the battery system, and upgrade the batteries in order from the smallest to the largest device addresses; When the battery host sends any one of the handshake message, information confirmation message or sub-packetized data message to the target battery, if the target battery fails to respond or does not respond within a preset time, the target battery will resend until the target battery responds successfully within a preset number of times; After the target battery resends a preset number of times, the target battery is marked as an upgrade failure; After the target battery replies that the handshake is successful, the battery host will send an information confirmation message of the battery firmware package to be updated to the battery; After the target battery replies with information confirming success, the battery host splits the battery firmware package to be updated into multiple sub-packets, and sends the sub-packet data messages and their check codes to the battery in sequence; After the target battery replies that the current sub-packet transmission is successful, the battery host sends the next sub-packet data message and its check code, until the battery host has sent all sub-packets, and then the battery host sends the total check code to the battery; After the target battery successfully replies with the total check code, the target battery automatically restarts and runs the new firmware program, the battery host marks the currently upgraded target battery as successful, and restarts the steps of the upgrade method for the next battery; after the target battery fails to reply with the total check code, the target battery responds with failure and erases the received firmware package.

8. The method for batch upgrading of household energy storage system equipment according to claim 1, characterized in that: The upgrading method further comprises: When the battery host sends a handshake message or an information confirmation message to multiple online batteries in the battery system simultaneously, the battery host marks the online battery that has successfully responded as successful, and continues to repeatedly send messages at a set frequency to the online battery that has failed to respond until all online batteries respond successfully; The battery host sends the sub-packet data message and its check code according to the sub-packet sequence number until all sub-packets are sent. The battery host will send an upgrade completion message containing a total check code to the battery; When the battery host synchronously sends an upgrade completion message containing a total check code to multiple online batteries in the battery system, the battery host marks the online batteries that reply successfully as upgraded successfully, and marks the online batteries that reply failed as upgraded failed. After all online batteries are marked, the battery host restarts the steps of the upgrade method for all batteries that failed to upgrade until all online batteries are marked upgraded successfully or the battery host receives an instruction to cancel the upgrade.

9. The method for batch upgrading of household energy storage system equipment according to claim 1, characterized in that: The upgrading method further comprises: The battery host confirms whether to obtain the firmware package to be updated. After confirming to obtain the firmware package to be updated, the battery host will start internal batch upgrade; After confirming that the firmware package to be updated is not obtained, the battery host re-confirms; After confirming that the firmware package to be updated is obtained, the battery host starts an internal batch upgrade and identifies the internal networking mode of the battery system; The battery host enters the corresponding batch upgrade process according to the internal networking mode of the battery system.

10. A batch upgrade system, characterized in that: The method comprises a memory and a processor, wherein the memory has a computer program, and the processor is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Battery pack firmware upgrading method and device, terminal equipment and program product

    CN120447936A