Parallel asynchronous upgrading method and system for energy storage equipment
By employing a parallel asynchronous upgrade method and utilizing I/O multiplexing and listening queue technology, we have achieved efficient, reliable, and seamless integrated upgrades of energy storage devices. This solves the problems of high resource consumption, low efficiency, and poor stability in traditional upgrade methods, and is suitable for large-scale online upgrades of energy storage devices in new energy power systems.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-24
- Publication Date
- 2026-03-31
AI Technical Summary
Traditional energy storage device upgrade methods suffer from high resource consumption, low upgrade efficiency, and strong system coupling when deployed on a large scale. They also pose security risks and stability hazards. In particular, the frequent creation and destruction of processes in the Linux environment can exacerbate memory fragmentation and affect system stability.
A parallel asynchronous upgrade approach is adopted. By building a TCP/IP client that supports I/O multiplexing, and utilizing a listening queue and a multiplexed transaction state machine, the upgrade progress of multiple devices can be achieved without synchronization. Combined with breakpoint resume mechanism and event triggering mechanism, it is integrated into the daily data communication system for upgrades.
It enables independent upgrades for multiple devices, reduces resource consumption, improves upgrade success rate and efficiency, enhances system stability and reliability, adapts to complex network environments, and supports large-scale remote online upgrades for devices.
Smart Images

Figure CN121764503A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of energy storage technology for new energy power systems, and more specifically, to a parallel asynchronous upgrade method and system for energy storage devices. Background Technology
[0002] With the rapid development of new energy power systems, energy storage devices are playing an increasingly important role in scenarios such as grid peak shaving, renewable energy consumption, and emergency backup power. Modern energy storage systems consist of energy storage system packs (PACKs), which are independently operable units composed of multiple battery modules or integrated devices, and are widely distributed across different geographical locations. The reliability and intelligence level of their operation directly affect the safety and efficiency of the entire power system. To improve the functionality, safety, and compatibility of energy storage devices, remote firmware or application online upgrades have become an important means of operation and maintenance management.
[0003] However, traditional energy storage device upgrade methods often employ synchronous polling mechanisms or point-to-point serial upgrade modes, which expose numerous problems when facing large-scale deployed energy storage systems. First, during the upgrade process, the master control unit needs to continuously poll all connected devices to obtain status feedback, resulting in high CPU and network resource utilization and a significant increase in system load. Second, to achieve simultaneous upgrades of multiple devices, multiple communication channels or independent processes are often required, leading to wasted system resources and potentially causing process contention or communication blockage. Third, existing upgrade architectures generally require all devices to maintain synchronized upgrade progress; if a device experiences a response delay due to network fluctuations or hardware malfunctions, it will slow down the overall upgrade process and may even cause timeouts, severely impacting upgrade success rate and efficiency.
[0004] Furthermore, most existing solutions load the upgrade function as a separate, temporary module, requiring an additional upgrade service process to be started. This not only increases system complexity but also introduces potential security risks and stability vulnerabilities. Especially in a Linux environment, frequent process creation and destruction can exacerbate memory fragmentation, affecting the long-term stable operation of the energy storage system.
[0005] Chinese patent CN117785247A discloses a method, apparatus, and system for upgrading equipment in an energy storage system. The method includes: an energy management system receiving an upgrade package via a communication interface and parsing the package; the communication interface includes a network interface; if the parsing result indicates an upgrade for itself, the energy management system upgrades itself according to the upgrade package; if the parsing result indicates an upgrade for other devices, the energy management system forwards the upgrade package to those other devices for upgrades. However, this upgrade method does not solve the efficiency and success rate issues during the upgrade process.
[0006] Therefore, there is a need for a parallel asynchronous upgrade method and system for energy storage devices to meet the requirements of efficient and reliable remote upgrades of large-scale energy storage systems in complex network environments. Summary of the Invention
[0007] The purpose of this invention is to provide a parallel asynchronous upgrade method and system for energy storage devices, which can support concurrent operation of multiple devices without strict synchronization, achieve asynchronous upgrades with low resource consumption, high reliability and deep integration with existing data communication systems, and solve problems such as high resource consumption, low upgrade efficiency and strong system coupling in traditional upgrade methods.
[0008] To achieve the above objectives, this invention provides a parallel asynchronous upgrade method and system for energy storage devices. The technical solution of this invention is implemented as follows:
[0009] A parallel asynchronous upgrade method for energy storage devices includes: building a client supporting I / O multiplexing on the management end, the client being used to receive network connection requests from multiple energy storage devices and establish an independent sub-link for each connection; a listening queue recording the connection and upgrade status information of each energy storage device in real time; when a new device connection event is detected, the management end sending an upgrade start frame to the device; and issuing corresponding upgrade messages according to the information of each device in the listening queue, thereby enabling upgrades of multiple energy storage devices without synchronizing upgrade progress.
[0010] Furthermore, the listening queue works in conjunction with a multiplexed transaction state machine, which is used to maintain the state transition process of each connection, including the connection establishment, upgrade preparation, data transmission, verification completion, and connection closing phases.
[0011] Furthermore, each energy storage device actively connects to the management terminal through the client, while the management terminal does not actively initiate connections, and all communication adopts a transaction-triggered mechanism.
[0012] Furthermore, after the transaction triggering mechanism is activated, the management terminal parses the transaction type and performs corresponding operations; the transaction types include new connection access, connection disconnection or abnormal interruption, and receiving upgrade tail frames.
[0013] According to the method described in claim 1, the upgrade message is sent in frames according to data blocks, and the device returns an acknowledgment response after receiving the message; if no response is received, the message is retransmitted.
[0014] Furthermore, during the upgrade process, the management terminal sends data segments with corresponding offset addresses to different devices based on the file read position of each device recorded in the monitoring queue, thereby enabling the function of resuming interrupted downloads.
[0015] Furthermore, the breakpoint resume mechanism, combined with the upgrade log file stored locally on the device, enables the upgrade progress to be restored across sessions, avoiding the retransmission of received data.
[0016] Furthermore, the management terminal integrates the upgrade management function into the daily data communication system, without the need to temporarily start additional processes or occupy dedicated communication channels, and can normally perform data collection and monitoring tasks during non-upgrade periods.
[0017] Furthermore, after the upgrade is completed, each energy storage device performs a self-verification operation and reports the verification results; the monitoring queue updates the upgrade status of each energy storage device and triggers a restart command to make the new version effective.
[0018] A parallel asynchronous upgrade system for energy storage devices, used to implement the above method, includes an energy storage digital energy exchange device, a multiplexed transaction state machine, a listening queue module, and an energy storage system PACK; the energy storage digital energy exchange device acts as a management terminal, pre-storing the latest upgrade files of each type of device in the energy storage system PACK; the multiplexed transaction state machine establishes a TCP / IP client supporting I / O multiplexing with the energy storage digital energy exchange device, and each type of device in the energy storage system PACK actively connects to the client; the listening queue module is used to store and manage the connection and upgrade status information of each device.
[0019] Compared with existing technologies, the parallel asynchronous upgrade method and system for energy storage devices described in this invention have the following advantages:
[0020] 1. Achieve truly parallel and asynchronous upgrades. The upgrade process of each energy storage device is independent of each other, without the need for synchronization. This avoids the impact of delays in individual devices on the overall upgrade process, significantly improving the upgrade success rate and execution efficiency.
[0021] 2. Reduce system resource consumption. The TCP / IP client is built based on the I / O multiplexing mechanism in the Linux environment, which supports single-threaded management of multiple connections. It does not require opening a separate process or channel for each device, effectively reducing the consumption of system resources such as CPU and memory.
[0022] 3. Adopt an event-triggered mechanism to improve response efficiency. The upgraded management terminal captures transaction-triggered events such as connection establishment and data readiness in real time through a listening queue, and processes them only when they occur. This eliminates the traditional polling mechanism, significantly reduces system load, and improves real-time response.
[0023] 4. Integrated design, no additional service required. The upgrade function is deeply integrated into the daily data communication system, utilizing existing communication links to complete firmware or application distribution. There is no need to temporarily start a dedicated upgrade process, simplifying the system architecture and enhancing operational stability.
[0024] 5. Supports large-scale remote online upgrades for devices. By using a multiplexed transaction state machine, the upgrade status (such as connection status, file read location, and upgrade progress) of each device is independently recorded and managed. This provides strong scalability and is suitable for centralized remote maintenance scenarios involving massive amounts of energy storage equipment.
[0025] 6. Improve system reliability and fault tolerance. During equipment upgrades, interruptions can be resumed based on the recorded file read position, supporting a breakpoint resume mechanism; at the same time, a single device failure does not affect the normal upgrade of other devices, demonstrating good fault tolerance and robustness.
[0026] 7. Suitable for complex network environments. In field environments with frequent network fluctuations, it ensures connection stability through asynchronous non-blocking communication mechanisms, adapting to adverse conditions such as weak networks and high latency, and ensuring the continuity and integrity of remote upgrades. Attached Figure Description
[0027] Figure 1 This is a schematic diagram of the upgrade process for various types of devices in the energy storage system PACK described in Embodiment 1 of the present invention;
[0028] Figure 2 This is a schematic diagram of the multi-link upgrade process described in Embodiment 1 of the present invention;
[0029] Figure 3 This is a schematic diagram of the multiplexing upgrade method described in Embodiment 1 of the present invention;
[0030] Figure 4 This is a schematic diagram of the multi-device parallel upgrade monitoring queue architecture described in Embodiment 2 of the present invention.
[0031] Explanation of reference numerals in the attached figures:
[0032] none. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the described embodiments are only some, not all, of the embodiments of this invention. The specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0034] This invention provides a parallel asynchronous upgrade method for energy storage devices, comprising: constructing a TCP / IP client supporting I / O multiplexing on the management end, wherein the TCP / IP client is used to receive network connection requests initiated by multiple energy storage devices and establish an independent sub-link for each connection; recording the connection status, upgrade progress, and read location of firmware or application files of each energy storage device in real time through a listening queue; triggering a transaction response mechanism when a new device connection event is detected and sending an upgrade start frame to the device; and asynchronously sending corresponding upgrade messages according to the independent status information of each device in the listening queue, thereby enabling multiple energy storage devices to complete remote firmware or application upgrades without synchronizing upgrade progress.
[0035] The "parallelism and asynchronicity" refers to the concurrent execution of the upgrade process for each energy storage device in the energy storage system, while ensuring that the upgrades are performed asynchronously and independently. This mechanism differs from the traditional approach of allocating independent threads or temporary caches to each device, which leads to a large consumption of system resources. This invention achieves concurrent upgrades with efficient resource utilization through the collaborative design of I / O multiplexing technology and a listening queue.
[0036] The I / O multiplexing mechanism allows the management end to handle multiple TCP connections from various types of devices in a single thread, enabling multiple devices to connect and communicate simultaneously, thus avoiding thread bloat and resource consumption. I / O multiplexing employs at least one of the select, poll, or epoll mechanisms to achieve efficient monitoring and event-driven processing of multiple socket connections under a single thread. Each energy storage device actively connects to the management end through the client; the management end does not actively initiate connections, and all communication is based on transaction triggering rather than polling.
[0037] When an event is triggered, the management system parses the transaction type and executes the corresponding operation:
[0038] When the transaction type is "new connection access", an upgrade start frame is sent to the device to start the firmware upgrade process; at the same time, the upgrade information of the device is registered to the upgrade listening queue and included in unified management.
[0039] When the transaction type is "connection lost or abnormally interrupted", query whether the device is currently undergoing an upgrade. If it is already in the upgrade queue, mark it as an upgrade failure, clear related status information, and prevent resource leaks.
[0040] When the transaction type is "receive upgrade tail frame (end frame)", the device upgrade is confirmed to be complete, and an upgrade end response is sent. Then, the upgrade status of the remaining devices in the listening queue is checked. If all devices have successfully completed the upgrade, the batch upgrade process is declared to be successfully completed.
[0041] The listening queue maintains an independent upgrade status record for each device, including the current upgrade stage (e.g., upgrade started, file transfer in progress, upgrade completed), the sequence number of received frames, and the location of the upgrade file. The listening queue works in conjunction with a multiplexed transaction state machine, which maintains the state transition process for each connection, including connection establishment, upgrade preparation, data transmission, verification completion, and connection closure phases.
[0042] Based on the above structure, the management terminal dynamically sends corresponding upgrade messages according to the real-time progress of each energy storage device in the monitoring queue: sending an upgrade start frame to devices that are still in standby mode; continuing to push upgrade file data frames to devices that are being upgraded, resuming transmission from the last read position; and sending an upgrade end frame to devices that have completed the upgrade and closing the connection.
[0043] The management system sends data segments with corresponding offset addresses to different devices based on the file read position recorded in the monitoring queue, enabling breakpoint resume functionality. Furthermore, by combining upgrade log files stored locally on the devices, upgrade progress can be restored across sessions, avoiding duplicate transmission of already received data.
[0044] The management system integrates upgrade management functions into the daily data communication system, eliminating the need to start additional processes or occupy dedicated communication channels. It can perform data collection and monitoring tasks normally during non-upgrade periods.
[0045] During the upgrade process, each energy storage device operates independently. Upgrade failure, interruption, or delay in any one device does not affect the upgrade process of other devices. This not only enables asynchronous upgrades between devices of the same type but also, by recording and tracking the read position of each device's upgrade file, further supports global asynchronous upgrades across different device types. This ensures that different types of devices can complete upgrades independently at different times and progress stages, without blocking or requiring synchronization, significantly improving upgrade efficiency and system stability.
[0046] Example 1
[0047] This embodiment combines Figures 1-3 This invention details the specific implementation process of a parallel asynchronous upgrade method for energy storage devices. This embodiment is based on the collaborative operation of an energy storage digital energy exchange device, a multiplexed transaction state machine, a listening queue, and an energy storage system PACK. Under a Linux environment, it achieves parallel asynchronous remote upgrades of multiple devices through an I / O multiplexing mechanism.
[0048] S1 deploys energy storage digital energy exchange devices at the management end and pre-stores the latest firmware or application upgrade files for various types of devices.
[0049] Upgrade resources will be centrally managed to avoid duplicate transmissions and version confusion, thereby improving upgrade preparation efficiency.
[0050] The S11 energy storage digital power exchange device uses a Linux system to build a TCP / IP client that supports I / O multiplexing and enables select / poll / epoll mechanisms to listen for network events. This achieves efficient single-threaded management of a large number of connections, significantly reducing CPU and memory resource consumption, and eliminating the need to open a separate channel for each device.
[0051] S12, disable the polling mechanism and switch to a transaction-triggered mechanism, responding only to actual communication transactions to eliminate the high load problem caused by traditional polling and improve the real-time response and stability of the system.
[0052] like Figure 2 The diagram illustrates a multi-device parallel upgrade process. On the energy storage digital energy exchange device side, a TCP / IP client listening module based on I / O multiplexing (such as epoll) is constructed. This module adopts an event-driven architecture, eliminating the need for actively polling the connection status of each sub-device. When various devices in the energy storage system PACK initiate a connection, disconnect, or receive data, each event is automatically triggered as an independent transaction event. The device only needs to respond to the corresponding link of the triggered event, significantly reducing system overhead and improving processing efficiency.
[0053] S2, different types of devices in each energy storage system PACK actively initiate connection requests as clients to access the TCP / IP client established by the energy storage digital energy exchange device.
[0054] The connection is initiated by the terminal side, and the management end does not need to actively scan or dial, so as to adapt to complex network environments and enhance security and scalability.
[0055] Each time a connection is successfully established, the energy storage digital energy exchange device generates a corresponding sub-link, which is then uniformly scheduled by a multiplexed transaction state machine. This enables parallel access for multiple devices, ensures orderly connection management, and prevents resource contention and conflicts.
[0056] S3: When a new connection transaction is detected, the transaction processing flow is initiated.
[0057] This embodiment takes a transaction type of "new connection" as an example and performs the following steps:
[0058] S31 identifies the transaction type as "new connection".
[0059] S32, the energy storage digital power exchange device sends an upgrade start frame to the device, notifying it that it is about to begin receiving upgrade data. This lightweight signal initiates the upgrade process, ensuring the device is in a ready state and preventing accidental operation.
[0060] S33: Write the device's connection information, device ID, device type, and initial upgrade status to the listening queue, generating an independent record entry. This enables independent tracking of the upgrade status of each device and supports asynchronous and non-synchronous upgrade mechanisms.
[0061] S4, after the upgrade command is initiated, the energy storage digital energy exchange device reads the corresponding upgrade file from the local machine according to the device type.
[0062] S41 parses and upgrades metadata such as file size, checksum, and encryption identifier.
[0063] S42 calculates the total number of frames based on a fixed-length framing strategy and determines the incomplete length of the last frame. A standardized data delivery format is used to facilitate breakpoint resumption and error retransmission handling.
[0064] S43 stores information such as the file interface pointer, current read position, and target frame sequence number into the corresponding device record in the listening queue. This achieves state persistence and supports progress recovery after abnormal interruption.
[0065] S5, the energy storage digital energy exchange device begins sending upgrade messages frame by frame.
[0066] The upgrade message is sent in frames according to data blocks. Each frame contains a sequence number, data length, checksum and encryption identifier. After receiving the message, the device returns an acknowledgment response. If no response is received, the message is retransmitted.
[0067] S51 sends a start frame, which includes control information such as version number, total number of frames, and encryption method.
[0068] S52 sends intermediate frames sequentially, each frame carrying a sequence number, data length, fixed-length data block, checksum, and encryption identifier.
[0069] S53 records the sequence number of the currently transmitted frame and its file offset address. This ensures ordered data transmission and facilitates verification and retransmission at the receiving end.
[0070] S54 processes special data in the last frame to adapt to files of any size, ensuring integrity and avoiding data truncation or wasted padding.
[0071] S541, if the remaining data is less than the fixed length, extract and encapsulate it into a tail frame according to the actual number of bytes.
[0072] S542 sends the tail frame and marks it with the "end frame" flag.
[0073] S6, wait for the device to send back a confirmation response.
[0074] S61: If an ACK response is received within the set time, the process continues to the next frame or ends.
[0075] S62, if no response is received or a NAK is returned, execute the retransmission mechanism.
[0076] The same frame can be retransmitted a maximum of three times. If it still fails, the device upgrade is considered abnormal, and data transmission to it is stopped. The device is marked as "upgrade failed" in the listening queue, and log information is retained.
[0077] This mechanism is fault-tolerant, and a single point of failure will not affect the overall upgrade process, demonstrating true parallel and asynchronous characteristics.
[0078] S7, after completing the transmission of all frames, sends an upgrade end frame.
[0079] After the upgrade is completed (after the device receives the end frame), the device performs a self-verification operation and reports the verification result. The management terminal updates the device upgrade status according to the listening queue and triggers a restart command to make the new version effective, so as to realize the unattended upgrade closed loop and improve the level of operation and maintenance automation.
[0080] S8, the listening queue continuously monitors the status of all child links.
[0081] If a device disconnects abnormally while it is undergoing an upgrade, update its status to "interrupted" and retain the last file location.
[0082] After the device reconnects, the system searches the history and resumes transmission from the point of interruption. It supports resuming interrupted transmissions, reducing redundant transfers and making it suitable for unstable communication environments.
[0083] S9 determines whether all devices have successfully completed the upgrade.
[0084] Iterate through all device records in the monitoring queue and check their final status. If all records are "Completed" or "Skipped," then the batch upgrade task is declared complete. This achieves closed-loop control throughout the entire process and supports remote maintenance of large-scale cluster devices.
[0085] In addition, the multiplexed transaction state machine works in conjunction with the battery management system inside the energy storage system PACK to ensure power stability and critical task priority scheduling during the upgrade process.
[0086] The method described in this embodiment completely eliminates the limitations of traditional upgrade processes, which require synchronized progress, temporary activation of multiple channels, and high resource consumption. Through event-driven mechanisms, I / O multiplexing, and independent management of listening queues, it achieves truly parallel and asynchronous upgrades between multiple devices. The entire upgrade function is seamlessly integrated into the daily data communication system, eliminating the need to start a dedicated service process. This significantly improves system stability, resource utilization, and remote operation and maintenance efficiency, making it particularly suitable for large-scale online upgrade scenarios involving hundreds or thousands of energy storage units in new energy power systems.
[0087] Example 2
[0088] like Figure 4 The diagram shown illustrates the multi-device parallel upgrade monitoring queue architecture of this invention, used to achieve parallel asynchronous upgrades of various types of devices in the energy storage system PACK. The specific operation of the monitoring queue is explained below in this embodiment:
[0089] When the energy storage digital energy exchange device, acting as the management terminal, receives a connection request from a device in the energy storage system PACK, it first adds a new listening message to the listening queue to independently track the communication and upgrade status of that device.
[0090] The multiplexed transaction state machine is responsible for maintaining the sub-links of the connection, recording their port information, connection status and I / O events, and supporting a single thread to manage multiple device connections at the same time, avoiding excessive consumption of system resources caused by creating a separate thread for each device.
[0091] The sub-link calculates the unique index position of the device in the listening queue according to the preset indexing algorithm, and stores the device data into the corresponding position in the sub-link queue according to the index. At the same time, it registers identification information such as device ID and device type to ensure accurate subsequent message routing.
[0092] Once the upgrade process is initiated, the system dynamically binds the corresponding upgrade file interface based on the device type, determines the starting position of the upgrade file in the storage medium, and forms an independent file reading channel.
[0093] During the upgrade process, the listening queue continuously records the upgrade status of each device, including status information such as "upgrade started", "upgrade in progress", "upgrade completed" or "upgrade error", and independently maintains the read position of its upgrade file and the sequence number of the frame to be sent, based on the current upgrade progress of the device.
[0094] Each device's upgrade messages (such as upgrade start frames, upgrade data frames, and upgrade end frames) are independently sent by the management terminal based on the status in the listening queue, without waiting for other devices to synchronize their progress. Even if the upgrade of a device is paused due to network interruption or verification failure, the remaining devices can still continue to complete the upgrade at their own pace.
[0095] Through the above mechanism, true parallel and asynchronous upgrades between different devices are achieved. That is, relying on I / O multiplexing technology, multiple devices can be connected and data can be transmitted simultaneously to reflect parallelism; relying on the listening queue to independently record the upgrade progress, file offset and frame sequence number of each device, differentiated control and resume capability are achieved to reflect asynchronousness.
[0096] This embodiment effectively solves the problems of needing to synchronize progress, temporarily open caches, and waste thread resources in traditional upgrade methods, thereby improving the overall upgrade efficiency and reliability of the system.
[0097] This invention also provides a parallel asynchronous upgrade system for energy storage devices, used to implement the above-mentioned parallel asynchronous upgrade method, comprising: an energy storage digital energy exchange device, a multiplexed transaction state machine, a listening queue module, and an energy storage system PACK; the energy storage digital energy exchange device acts as a management terminal, pre-storing the latest upgrade files of each type of device in the energy storage system PACK; the multiplexed transaction state machine establishes a TCP / IP client supporting I / O multiplexing with the energy storage digital energy exchange device, and each type of device in the energy storage system PACK actively connects to the client; the listening queue module is used to store and manage the connection and upgrade status information of each device.
[0098] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.
Claims
1. A method for parallel asynchronous upgrade of energy storage devices, characterized in that, Comprise: A client supporting I / O multiplexing is built on the management end, which is used to receive network connection requests of multiple energy storage devices and establish independent sub-links for each connection; The listening queue records the connection and upgrade state information of each energy storage device in real time; when a new device connection event is detected, the management end sends an upgrade initiation frame to the device; According to the information of each device in the listening queue, the corresponding upgrade message is issued to realize the upgrade of multiple energy storage devices without synchronous upgrade progress.
2. The method of claim 1, wherein, The listening queue works with the multiplexing transaction state machine, which is used to maintain the state transition process of each connection, including connection establishment, upgrade preparation, data transmission, verification completion and connection closing phase.
3. The method of claim 1, wherein, Each energy storage device actively connects to the management end through the client, and the management end does not actively initiate connection, and all communications use transaction trigger mechanism.
4. The method of claim 3, wherein, After the transaction trigger mechanism works, the management end analyzes the transaction type and performs corresponding operations; the transaction type includes new connection access, connection disconnection or abnormal interruption and receiving upgrade tail frame.
5. The method of claim 1, wherein, The upgrade message is issued in data block frame, and the device returns an acknowledgement after receiving the message, and retransmits if no acknowledgement is received.
6. The method of claim 1, wherein, During the upgrade process, the management end sends data segments with corresponding offset addresses to different devices according to the file reading position of each device recorded in the listening queue, realizing the breakpoint resume function.
7. The method of claim 6, wherein, The breakpoint resume mechanism combines with the upgrade log file stored locally by the device to realize the upgrade progress recovery across sessions and avoid repeated transmission of received data.
8. The method of claim 1, wherein, The management end integrates the upgrade management function in the daily data communication system, without the need to temporarily start additional processes or occupy special communication channels, and normally performs data acquisition and monitoring tasks during non-upgrade period.
9. The method of claim 1, wherein, After the upgrade is completed, each energy storage device performs self-checking operation and reports the verification result; the listening queue updates the upgrade state of each energy storage device and triggers the restart instruction to make the new version effective.
10. A parallel asynchronous upgrade system for energy storage devices, comprising: The system is used to realize the method of any one of claims 1-9, comprising an energy storage digital energy exchange device, a multiplexing transaction state machine, a listening queue module and an energy storage system PACK; the energy storage digital energy exchange device serves as the management end and pre-stores the latest upgrade files of each type of device in the energy storage system PACK; The multiplexing transaction state machine and the energy storage digital energy exchange device establish a TCP / IP client supporting I / O multiplexing, and each type of device in the energy storage system PACK actively connects to the client; The listening queue module is used to store and manage the connection and upgrade state information of each device.
Citation Information
Patent Citations
Equipment upgrading method, device and system of energy storage system
CN117785247A