Controller upgrading method, energy storage system and storage medium
By designing a controller upgrade method in the energy storage system, using information propagation between the controllers to be upgraded to accelerate the upgrade process, the problem of low upgrade efficiency in the existing technology is solved, and rapid and efficient controller upgrade is achieved, reducing the number of times and more. labor costs.
Patent Information
- Application Number
- CN202411182989.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-29
AI Technical Summary
The local controller upgrade method of existing energy storage systems requires manual operation, resulting in low upgrade efficiency and waste of time and labor costs.
By designing a controller upgrade method, in which the controller to be upgraded obtains the upgrade package information and sends it to other controllers, forming a ring network propagation, ensuring that each controller becomes an information disseminator after the upgrade is successful, thereby accelerating the entire ring network Upgrade efficiency.
The rapid and efficient upgrade of controllers in the ring network is achieved, which shortens the upgrade time, reduces labor costs, and improves efficiency through automated upgrade processes.
Smart Images

Figure CN119045868A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy storage technology, and specifically provides a controller upgrading method, an energy storage system and a storage medium. Background Art
[0002] Energy storage systems, especially battery energy storage systems, have become an important part of modern energy management. By storing and releasing energy, they play a key role in power demand fluctuations, renewable energy access, and grid stability. As the scale and complexity of energy storage systems increase, the requirements for local controllers are also getting higher and higher.
[0003] The current local controller upgrade method for energy storage systems requires manual upgrades of each device, resulting in low upgrade efficiency of the local controller and a waste of time and labor costs. Summary of the invention
[0004] In order to overcome the above defects, the present application is proposed to provide a solution or at least partially solve the technical problem of low upgrade efficiency corresponding to the existing local controller upgrade method of the energy storage system. The present application provides a controller upgrade method, an energy storage system and a storage medium.
[0005] In a first aspect, the present application provides a controller upgrade method, characterized in that the method comprises:
[0006] The first controller to be upgraded obtains upgrade package information and performs an upgrade based on the upgrade package information;
[0007] The first controller to be upgraded sends upgrade package information to the second controller to be upgraded, so that the second controller to be upgraded is upgraded based on the upgrade package information;
[0008] The first controller to be upgraded to the nth controller to be upgraded respectively send upgrade package information to the n+1th controller to be upgraded to the 2nth controller to be upgraded;
[0009] The n+1th controller to be upgraded to the 2nth controller to be upgraded are upgraded based on the upgrade package information respectively, wherein 2≤n≤N, N is the total number of controllers to be upgraded, and N is a natural number greater than or equal to 2.
[0010] In one embodiment of the present application, before the first controller to be upgraded obtains the upgrade package information, the method further includes:
[0011] Each local controller obtains the preset version number of the upgrade package;
[0012] Each local controller determines whether it is a controller to be upgraded based on a comparison result between a current version number and the preset version number;
[0013] The controller to be upgraded sends an upgrade request to the upgrading device, so that the upgrading device determines the first controller to be upgraded based on the reception time of the upgrade request.
[0014] In one embodiment of the present application, before the first controller to be upgraded sends upgrade package information to the second controller to be upgraded, the method further includes:
[0015] The first controller to be upgraded broadcasts a first upgrade instruction to other controllers to be upgraded;
[0016] The first controller to be upgraded receives first response information sent by other controllers to be upgraded, and determines the second controller to be upgraded based on a time when the first response information is received.
[0017] In one embodiment of the present application, the first controller to be upgraded determines the second controller to be upgraded based on the reception time of the first response information, including: the first controller to be upgraded determines the second controller to be upgraded based on the first response information received first.
[0018] In one embodiment of the present application, before the first controller to be upgraded to the nth controller to be upgraded respectively sends upgrade package information to the n+1th controller to be upgraded to the 2nth controller to be upgraded, the method further includes:
[0019] The first to nth controllers to be upgraded simultaneously broadcast a second upgrade instruction to other controllers to be upgraded;
[0020] The other controllers to be upgraded respond to the second instruction and send second response information to the first controller to be upgraded to the nth controller to be upgraded;
[0021] The first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded based on the reception time of the second response information.
[0022] In one embodiment of the present application, the other controllers to be upgraded respond to the second instruction, including: the other controllers to be upgraded respond to the second instruction received first; and / or
[0023] The first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded based on the reception time of the second response information, including: the first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded based on the first received second response information.
[0024] In one embodiment of the present application, the method further includes:
[0025] When the number of upgrades of any one of the first controller to be upgraded to the 2nth controller to be upgraded is greater than a preset threshold, it is determined that the upgrade has failed;
[0026] Delete the controller that failed to be upgraded from the network consisting of all controllers to be upgraded.
[0027] In one embodiment of the present application, the method further includes: for the controller that fails to upgrade, receiving upgrade package information sent by an upgrade device, and performing an upgrade based on the upgrade package information.
[0028] In a second aspect, an energy storage system is provided, characterized in that the energy storage system comprises a plurality of container systems and an upgrade device, wherein the container system comprises a local controller; The local controller is configured to control the container system;
[0029] The upgrading device is configured to communicate with the plurality of local controllers to upgrade the plurality of local controllers.
[0030] In a third aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored in the computer-readable storage medium, wherein the program codes are suitable for being loaded and run by a processor to execute any of the controller upgrade methods described above.
[0031] The above one or more technical solutions of this application have at least one or more of the following Beneficial effects:
[0032] The controller upgrade method in the present application includes: the first controller to be upgraded obtains upgrade package information and upgrades based on the upgrade package information; the first controller to be upgraded sends upgrade package information to the second controller to be upgraded, and the second controller to be upgraded is upgraded based on the upgrade package information; the first controller to be upgraded to the nth controller to be upgraded sends upgrade package information to the n+1th controller to be upgraded to the 2nth controller to be upgraded respectively; the n+1th controller to be upgraded to the 2nth controller to be upgraded are upgraded based on the upgrade package information respectively, wherein 2≤n≤N, N is the total number of controllers to be upgraded, and N is a natural number greater than or equal to 2. In this way, each controller to be upgraded will also become a disseminator of information after the upgrade is successful, which is conducive to accelerating the upgrade efficiency of the controllers in the entire ring network and shortening the upgrade time, thereby quickly and efficiently realizing the upgrade of the controllers in the ring network. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The disclosure of the present application will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. In addition, similar numbers in the drawings are used to represent similar components, among which:
[0034] Figure 1 This is a schematic diagram of the main steps of a controller upgrade method in one embodiment of the present application;
[0035] Figure 2 is a schematic diagram of the interaction between the controller and the upgrade device in one embodiment of the present application;
[0036] Figure 3 This is a schematic diagram of a local controller upgrade process in one embodiment of the present application;
[0037] Figure 4 It is a schematic diagram of the main structure of an energy storage system in one embodiment of the present application. DETAILED DESCRIPTION
[0038] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.
[0039] In the description of the present application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memory, and may also include software parts, such as program code, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B" and may include only A, only B or A and B. The singular terms "one" and "the" may also include plural forms.
[0040] The current traditional local controller upgrade method for energy storage systems requires manual upgrades of each device, resulting in low upgrade efficiency of the local controller and a waste of time and labor costs.
[0041] To this end, the present application provides a controller upgrade method, an energy storage system and a storage medium. Specifically, the energy storage system may include an energy storage ring network, the energy storage ring network includes multiple container systems and an upgrade device, each container system includes a local controller, and the local controller has the function of controlling the energy storage container system and upgrading.
[0042] The upgrade device is a key component that communicates with multiple local controllers in the energy storage ring network. It is equipped with a display screen to display the status information of the energy storage ring network and its internal devices, such as the operating status of the local controller, the upgrade results of the local controller, the energy storage status of the energy storage container system, fault warnings or maintenance prompts, etc. The existence of the display screen allows operators to intuitively understand the current health and working status of the system.
[0043] See attached Figure 1 , Figure 1 It is a flowchart of the main steps of a controller upgrade method according to an embodiment of the present application.
[0044] like Figure 1 As shown, the controller upgrade method in the embodiment of the present application mainly includes the following steps S101 to S104.
[0045] Step S101: a first controller to be upgraded obtains upgrade package information and performs an upgrade based on the upgrade package information.
[0046] Upgrade package information usually includes version information, change log, compatibility information, and installation guide.
[0047] The version information includes a version number, which is used to determine which version of the system or software the upgrade package is applicable to, and can help confirm the new version after the upgrade.
[0048] The change log describes the changes made in this upgrade, including new features, bug fixes, performance improvements, or security updates.
[0049] Compatibility information includes device or platform compatibility lists to ensure that the upgrade package can be correctly applied to the target device.
[0050] The installation guide includes installation steps and precautions, and instructs users on how to correctly install the upgrade package.
[0051] Step S102: the first controller to be upgraded sends upgrade package information to the second controller to be upgraded, so that the second controller to be upgraded is upgraded based on the upgrade package information.
[0052] Step S103: the first controller to be upgraded to the nth controller to be upgraded respectively sends upgrade package information to the n+1th controller to be upgraded to the 2nth controller to be upgraded.
[0053] Step S104: the n+1th controller to be upgraded to the 2nth controller to be upgraded are upgraded based on the upgrade package information respectively, wherein 2≤n≤N, N is the total number of controllers to be upgraded, and N is a natural number greater than or equal to 2.
[0054] Based on the above steps S101 to S104, the first controller to be upgraded obtains the upgrade package information and upgrades based on the upgrade package information; the first controller to be upgraded sends the upgrade package information to the second controller to be upgraded, and the second controller to be upgraded is upgraded based on the upgrade package information; the first controller to be upgraded to the nth controller to be upgraded sends the upgrade package information to the n+1th controller to be upgraded to the 2nth controller to be upgraded respectively; the n+1th controller to be upgraded to the 2nth controller to be upgraded are upgraded based on the upgrade package information respectively, wherein 2≤n≤N, N is the total number of controllers to be upgraded, and N is a natural number greater than or equal to 2. In this way, each controller to be upgraded will also become a disseminator of information after the upgrade is successful, which is conducive to accelerating the upgrade efficiency of the controllers in the entire ring network and shortening the upgrade time, thereby realizing fast and efficient upgrades of controllers in the ring network.
[0055] The above steps S101 to S104 are further explained below.
[0056] With respect to the above-mentioned step S101, in a specific embodiment of the present application, before the first controller to be upgraded obtains the upgrade package information, the method further includes: each local controller obtains a preset version number of the upgrade package; each local controller determines whether it is a controller to be upgraded based on a comparison result between the current version number and the preset version number; the controller to be upgraded sends an upgrade request to the upgrade device, so that the upgrade device determines the first controller to be upgraded based on the reception time of the upgrade request.
[0057] The default version number of the upgrade package refers to the upgrade version number broadcast by the upgrade device.
[0058] The receiving time of the upgrade request refers to the specific time corresponding to when the upgrade device receives the upgrade request.
[0059] Specifically, after receiving the upgrade package information uploaded by the user or downloaded remotely, the upgrade device broadcasts the upgrade package version number in the energy storage ring network. After receiving the broadcast, the local controller compares the received preset version information with its own current version number. When the current version number is lower than the preset version number, it determines that the controller needs to be upgraded and sends an upgrade request to the upgrade device. The upgrade device records all local controllers that need to be upgraded according to the upgrade request, and determines the local controller corresponding to the first received upgrade request as the first controller to be upgraded.
[0060] After determining the first controller to be upgraded, the upgrading device establishes a communication connection with the first controller to be upgraded, and sends upgrade package information to the first controller to be upgraded.
[0061] After receiving the upgrade package information, the first controller to be upgraded copies the upgrade package information to generate a mirror file for saving and backing up, and upgrades the program according to the upgrade package information. After the upgrade is successful, the upgrade result can also be sent to the upgrade device.
[0062] The above is a further description of step S101 , and the following is a further description of step S102 .
[0063] In a specific embodiment of the present application, before the first controller to be upgraded sends upgrade package information to the second controller to be upgraded, the method further includes: the first controller to be upgraded broadcasts a first upgrade instruction to other controllers to be upgraded; the first controller to be upgraded receives first response information sent by other controllers to be upgraded, and determines the second controller to be upgraded based on the time of receiving the first response information. In a specific embodiment of the present application, the first controller to be upgraded determines the second controller to be upgraded based on the time of receiving the first response information, including: the first controller to be upgraded determines the second controller to be upgraded based on the first response information received first.
[0064] The first upgrade instruction is a data packet generated by the first controller to be upgraded and broadcasted to other controllers to be upgraded in the network. The main function is to notify other controllers in the network that the upgrade process is about to start or is in progress.
[0065] The first response information is confirmation or status update information sent by other controllers to be upgraded to the first controller to be upgraded after receiving the first upgrade instruction, which indicates that other controllers have successfully received the upgrade instruction and want to perform an upgrade.
[0066] Specifically, after the program of the first controller to be upgraded is successfully upgraded, it broadcasts the first upgrade instruction to other controllers to be upgraded in the ring network that need to be upgraded. After receiving the first upgrade instruction, other controllers to be upgraded feedback the first response information to the first controller to be upgraded. Based on the first response information, the first controller to be upgraded uses the local controller corresponding to the first response information received first as the second controller to be upgraded.
[0067] Specifically, after determining the second controller to be upgraded, the first controller to be upgraded establishes a communication connection with the second controller to be upgraded, the first controller to be upgraded sends upgrade package information to the second controller to be upgraded, and after receiving the upgrade package information sent by the first controller, the second controller to be upgraded copies the upgrade package information to generate an image file for backup, and performs program upgrades according to the upgrade package information. After the upgrade is successful, the upgrade result can also be sent to the upgrade device.
[0068] The above is a further description of step S102 , and the following is a further description of step S103 .
[0069] In a specific embodiment of the present application, before the first to nth controllers to be upgraded send upgrade package information to the n+1th to 2nth controllers to be upgraded respectively, the method also includes: the first to nth controllers to be upgraded simultaneously broadcast a second upgrade instruction to other controllers to be upgraded; the other controllers to be upgraded respond to the second instruction and send a second response information to the first to nth controllers to be upgraded; the first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded based on the reception time of the second response information.
[0070] The second upgrade instruction is a data packet that can be generated by the first to nth controllers to be upgraded and broadcasted to other controllers to be upgraded in the network. Its main function is to notify other controllers in the network that the upgrade process is about to start or is in progress.
[0071] The second response information is confirmation or status update information sent by other controllers to be upgraded to the n+1th to 2nth controllers to be upgraded after receiving the second upgrade instruction, which indicates that other controllers have successfully received the upgrade instruction and want to upgrade.
[0072] Specifically, the first to nth controllers to be upgraded broadcast the second upgrade instructions to other controllers to be upgraded simultaneously, and other controllers to be upgraded respond to the received second instructions according to the sequence of the received second instructions and send second response information to the first to nth controllers to be upgraded; the first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded according to the sequence of the received second response information.
[0073] In a specific embodiment, the other controllers to be upgraded respond to the second instruction, including: the other controllers to be upgraded respond to the second instruction received first; and / or the first controller to be upgraded to the nth controller to be upgraded respectively determine the n+1th controller to be upgraded to the 2nth controller to be upgraded based on the reception time of the second response information, including: the first controller to be upgraded to the nth controller to be upgraded respectively determine the n+1th controller to be upgraded to the 2nth controller to be upgraded based on the second response information received first.
[0074] Specifically, the first controller to be upgraded to the nth controller to be upgraded that has been upgraded simultaneously multicast the second instruction to other controllers to be upgraded in the ring network. Other controllers to be upgraded adopt a competition mechanism. When multiple identical broadcast messages are received in a short period of time, they only respond to the first broadcast instruction, and the broadcaster only responds to the local controller corresponding to the first returned response instruction. Based on this, the n+1th controller to be upgraded to the 2nth controller to be upgraded are determined.
[0075] Exemplarily, taking n=3 as an example, the first controller to be upgraded uses the counterpart of the first received second response information as the fourth controller to be upgraded, the second controller to be upgraded uses the counterpart of the first received second response information as the fifth controller to be upgraded, and the third controller to be upgraded uses the counterpart of the first received second response information as the sixth controller to be upgraded.
[0076] After determining the n+1th controller to be upgraded to the 2nth controller to be upgraded, that is, the first controller to be upgraded establishes a communication connection with the n+1th controller to be upgraded, the second controller to be upgraded establishes a communication connection with the n+2th controller to be upgraded, and so on, the nth controller to be upgraded establishes a communication connection with the 2nth controller to be upgraded, the first controller to be upgraded sends the upgrade package information to the n+1th controller to be upgraded, the second controller to be upgraded sends the upgrade package information to the n+2th controller to be upgraded, and the nth controller to be upgraded sends the upgrade package information to the n+2th controller to be upgraded.
[0077] The above is a further description of step S103 , and the following is a further description of step S104 .
[0078] Specifically, after receiving the upgrade package information, the n+1th to-be-upgraded controller to the 2nth to-be-upgraded controller first copies the upgrade package information to generate an image file for saving backup, and then performs program upgrade according to the upgrade package information.
[0079] In a specific embodiment of the present application, the method further includes: when the upgrade times of any one of the first to 2n controllers to be upgraded are greater than a preset threshold, determining that the upgrade has failed; and deleting the controller that has failed to upgrade from the network composed of all controllers to be upgraded.
[0080] The preset threshold may be a value obtained in advance based on experiments, and may be adaptively adjusted according to actual usage scenarios.
[0081] Specifically, when any controller to be upgraded in the energy storage ring network fails to upgrade, the image file is deleted and the upgrade broadcast is listened to again to wait for another upgrade. If the number of consecutive upgrade failures exceeds the preset threshold, the failure information is sent to the upgrade device and the controller is deleted from the upgrade network composed of all controllers to be upgraded. In this way, the faulty controller in the upgrade network can be effectively isolated to prevent affecting the upgrade of other controllers to be upgraded, which is conducive to improving the upgrade efficiency.
[0082] In a specific implementation of the present application, the method further includes: for a controller that fails to be upgraded, receiving upgrade package information sent by an upgrade device, and performing an upgrade based on the upgrade package information.
[0083] Specifically, when the upgrade device detects that all local controllers that need to be upgraded have been upgraded, the upgrade broadcast is stopped in the ring network, and the upgrade device sends upgrade package information to the local controller that failed to be upgraded for point-to-point upgrade. The controller that failed to be upgraded receives the upgrade package information sent by the upgrade device and upgrades based on the upgrade package information. In this way, the upgrade speed of the controller that failed to be upgraded can be improved.
[0084] like Figure 2 As shown, during the upgrade process, the upgrade results of the local controller can be output to the upgrade device and displayed on the LED display screen of the upgrade device, so that the operation and maintenance personnel can intuitively see the upgrade results, which is beneficial for the operation and maintenance personnel to know the upgrade status of the local controller in time and make good response strategies accordingly, thereby improving the user experience.
[0085] Below, combined with the attached Figure 3 The controller upgrade method of the present application is described in detail.
[0086] Specific as Figure 3 As shown, when an upgrade is required, the upgrade device broadcasts the version number of the upgrade package in the ring network. After receiving the version information, the local controller in the ring network checks its own version information and determines whether to upgrade (excluding the case where individual stand-alone machines are upgraded separately). When an upgrade is required, the upgrade device is fed back with a request for the upgrade. The upgrade device receives all feedback requests and records them to generate an upgrade list, and sends the upgrade package to the first local controller that feeds back.
[0087] After receiving the upgrade package, the first local controller (hereinafter referred to as 1#LC for ease of description) generates an image file of the upgrade package as a backup, and then 1#LC upgrades itself. If the upgrade of 1#LC is successful, it directly feedbacks the result to the upgrade device, otherwise it performs the upgrade operation again. After multiple failures, it feedbacks the failure to the upgrade device, and the upgrade device sends the upgrade package to other local controllers for upgrading. The upgrade device will also generate two tables to record the upgrade status of the local controllers, one for the upgrade success table and the other for the upgrade failure table.
[0088] When 1#LC is successfully upgraded, this local controller broadcasts the upgrade command to the local controllers that need to be upgraded. Similarly, the upgrade package is only sent to the first local controller that responds. At this time, 2#LC receives the upgrade package, generates the image file and upgrades. After the upgrade of 2#LC is successfully completed, the upgrade result is fed back to 1#LC. If the first upgrade of 2#LC fails, the upgrade package is deleted and the upgrade broadcast is listened again, and the result is fed back to 1#LC.
[0089] When 1#LC and 2#LC are successfully upgraded, they send broadcasts to the remaining local controllers that need to be upgraded at the same time. At this time, the remaining local controllers respond to the first broadcast received first, and the local controller that has been successfully upgraded only responds to the first feedback received. When the local controller that has not been upgraded finds that the broadcast it responded to does not send an upgrade package to it, it re-enters the monitoring. When the local controller that has been successfully upgraded finds that the local controller that first fed back to it has not established a connection with itself, it re-initiates the broadcast. After this round of broadcasts, the two local controllers 3#LC and 4#LC have completed the upgrade.
[0090] Entering the third round of broadcasting, 1#LC, 2#LC, 3#LC, and 4#LC simultaneously broadcast upgrade instructions, and four connections should be established. Through this round of broadcasting, the upgrade of the four local controllers 5#LC, 6#LC, 7#LC, and 8#LC is completed.
[0091] By analogy, in the fourth round of broadcast, local controllers 9#LC, 10#LC, 11#LC, 12#LC, 13#LC, 14#LC, 15#LC, and 16#LC have completed the upgrade.
[0092] Similarly, when the upgrade device compares the list of successful and failed upgrades and finds that they coincide with the list of all local controllers that need to be upgraded, the upgrade device sends a command to all local controllers to stop broadcasting, and initiates a point-to-point upgrade to the local controllers in the list of failed upgrades, and finally displays the upgrade results on the screen.
[0093] Through the above method, the controller in the ring network can be automatically upgraded to reduce manpower waste; the upgrade records can be tracked and the upgrade fault point can be accurately located; the equipment in the ring network can be quickly upgraded through a form similar to virus infection, saving labor costs.
[0094] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present application.
[0095] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal and software distribution medium, etc. that can carry the computer program code.
[0096] Furthermore, the present application also provides an energy storage system.
[0097] See attached Figure 4 , Figure 4 FIG. 1 is a main structural block diagram of an energy storage system according to an embodiment of the present application. Figure 4As shown, the energy storage system in the embodiment of the present application mainly includes multiple container systems and an upgrade device. The container system includes a local controller, which is configured to control the container system; the upgrade device is configured to communicate with the multiple local controllers to achieve the upgrade of the multiple local controllers.
[0098] Furthermore, the present application also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present application, the computer-readable storage medium can be configured to store a program for executing the controller upgrade method of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned controller upgrade method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium can be a memory device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.
[0099] So far, the technical solutions of the present application have been described in conjunction with the specific implementations shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific implementations. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.
Claims
1. A controller upgrade method, characterized in that: The method comprises: The first controller to be upgraded obtains upgrade package information and performs an upgrade based on the upgrade package information; The first controller to be upgraded sends upgrade package information to the second controller to be upgraded, and the second controller to be upgraded is upgraded based on the upgrade package information; The first controller to be upgraded to the nth controller to be upgraded respectively send upgrade package information to the n+1th controller to be upgraded to the 2nth controller to be upgraded; The n+1th controller to be upgraded to the 2nth controller to be upgraded are upgraded based on the upgrade package information respectively, wherein 2≤n≤N, N is the total number of controllers to be upgraded, and N is a natural number greater than or equal to 2.
2. The controller upgrade method according to claim 1, characterized in that: Before the first controller to be upgraded obtains the upgrade package information, the method further includes: Each local controller obtains the preset version number of the upgrade package; Each local controller determines whether it is a controller to be upgraded based on a comparison result between a current version number and the preset version number; The controller to be upgraded sends an upgrade request to the upgrading device, so that the upgrading device determines the first controller to be upgraded based on the reception time of the upgrade request.
3. The controller upgrade method according to claim 2, characterized in that: Before the first controller to be upgraded sends upgrade package information to the second controller to be upgraded, the method further includes: The first controller to be upgraded broadcasts a first upgrade instruction to other controllers to be upgraded; The first controller to be upgraded receives first response information sent by other controllers to be upgraded, and determines the second controller to be upgraded based on a time when the first response information is received.
4. The controller upgrade method according to claim 3, characterized in that: The first controller to be upgraded determines the second controller to be upgraded based on the time of receiving the first response information, including: the first controller to be upgraded determines the second controller to be upgraded based on the first response information received first.
5. The controller upgrade method according to claim 1, characterized in that: Before the first controller to be upgraded to the nth controller to be upgraded respectively sends upgrade package information to the n+1th controller to be upgraded to the 2nth controller to be upgraded, the method further includes: The first to nth controllers to be upgraded simultaneously broadcast a second upgrade instruction to other controllers to be upgraded; The other controllers to be upgraded respond to the second upgrade instruction and send second response information to the first controller to be upgraded to the nth controller to be upgraded; The first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded based on the reception time of the second response information.
6. The controller upgrade method according to claim 5, characterized in that: The other controllers to be upgraded respond to the second upgrade instruction, including: the other controllers to be upgraded respond to the second upgrade instruction received first; and / or The first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded based on the reception time of the second response information, including: the first to nth controllers to be upgraded respectively determine the n+1th to 2nth controllers to be upgraded based on the first received second response information.
7. The controller upgrade method according to claim 1, characterized in that: The method further comprises: When the number of upgrades of any one of the first controller to be upgraded to the 2nth controller to be upgraded is greater than a preset threshold, it is determined that the upgrade has failed; Delete the controller that failed to be upgraded from the network consisting of all controllers to be upgraded.
8. The controller upgrade method according to claim 7, characterized in that: The method further includes: for the controller that fails to be upgraded, receiving upgrade package information sent by an upgrade device, and upgrading based on the upgrade package information.
9. An energy storage system, characterized in that: The energy storage system includes a plurality of container systems and an upgrade device, wherein the container system includes a local controller; The local controller is configured to control the container system; The upgrading device is configured to communicate with the plurality of local controllers to upgrade the plurality of local controllers.
10. A computer-readable storage medium storing a plurality of program codes, characterized in that: The program code is suitable for being loaded and run by a processor to execute the controller upgrading method according to any one of claims 1 to 8.
