System upgrading method and device, control system, storage medium and program product
By using the target daughterboard and management board to perform one-time verification and second-time verification in the energy storage control system, the inconvenience of online upgrade of the energy storage control system in remote areas is solved, and the safety and reliability of system upgrades are improved.
Patent Information
- Application Number
- CN202311618470.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-24
- Filing Date
- 2023-11-29
- Publication Date
- 2025-05-27
AI Technical Summary
The online upgrade of energy storage control system is inconvenient in on-site maintenance in remote areas, especially the old system needs to be manually upgraded by board through burning devices, which reduces the efficiency of the system usage and puts forward higher requirements for the safety and reliability of the system upgrade.
By introducing the target daughterboard and the management board to perform one-time check and second-time checking in the energy storage control system, the accuracy of the upgrade file is ensured, and the permission upgrade instructions are sent to the target daughterboard after the secondary check is passed, thereby realizing the system update and upgrade processing.
It improves the safety and reliability of the upgrade of the energy storage control system, reduces the risk of verification errors, and improves the accuracy and efficiency of the upgrade of the system.
Smart Images

Figure CN120045201A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of energy storage systems, and in particular to a system upgrade method, device, control system, storage medium, and program product. Background Art
[0002] With the substantial investment in new energy fields, it is becoming increasingly important to set up energy storage systems on the power generation side, user side, and grid side. The control and protection functions of the valve control system largely determine the efficiency, safety, reliability, etc. of the entire energy storage system. In remote areas such as the northwest of China, there are a large amount of clean energy such as wind energy and solar energy that can be converted into electric energy, and energy storage systems are mostly arranged in these places, which brings many inconveniences to the on-site maintenance and upgrade of the control system of the energy storage system. At the same time, there are some old systems that need to be upgraded board by board manually through a burning device, reducing the usage efficiency of the system.
[0003] Currently, for systems that are not easily directly operable by personnel and have complex devices, controlled online system upgrade is a better choice, and system upgrade can be achieved through manual operation. However, for the system upgrade of energy storage control systems, there are higher requirements. The reliability, especially the safety, of system upgrade directly affects whether the entire energy storage system can continuously provide reliable power energy storage guarantee. Summary of the Invention
[0004] Based on the above problems, this application provides a system upgrade method, device, control system, storage medium, and program product, which can improve the safety and reliability of the energy storage control system upgrade.
[0005] In a first aspect, this application provides a system upgrade method, which includes: sending an upgrade file obtained from an external device to a target sub-board to be upgraded in an energy storage control system for the target sub-board to perform a first verification according to the upgrade file; in the case where the first verification is passed, performing a second verification according to the upgrade file; in the case where the second verification is passed, sending an upgrade permission instruction to the target sub-board, and the upgrade permission instruction is used to instruct the target sub-board to perform an update and upgrade process according to the upgrade file.
[0006] In the technical solution of the embodiments of this application, the target sub-board and the management board are respectively used for the first verification and the second verification. In this way, the risk of simultaneous verification failures of the target sub-board and the management board is relatively low. Therefore, the verification accuracy can be improved, thereby improving the safety and reliability of the energy storage control system upgrade.
[0007] In some embodiments, in the case where the primary verification passes, secondary verification is performed according to the upgrade file, including: receiving the primary verification result returned by the target daughter board; in the case where the primary verification result indicates that the primary verification passes, determining the offline verification code and the online verification code according to the upgrade file; and performing secondary verification according to the offline verification code and the online verification code. In the technical solution of the embodiments of the present application, the management board performs secondary verification through the offline verification code and the online verification code, and the verification efficiency is relatively high.
[0008] In some embodiments, determining the offline verification code and the online verification code according to the upgrade file includes: extracting the offline verification code from the upgrade file; calculating the verification code by using a preset verification algorithm for the upgrade file; and determining the online verification code according to the verification code and a preset correction value. In the technical solution of the embodiments of the present application, the management board obtains the offline verification code and the online verification code in two different ways respectively, which can improve the accuracy of secondary verification, thereby enhancing the security of system upgrade.
[0009] In some embodiments, the method further includes: in the case where the primary verification fails or the secondary verification fails, feeding back the verification failure information to an external device. In the technical solution of the embodiments of the present application, the management board obtains the offline verification code and the online verification code in two different ways respectively, which can improve the accuracy of secondary verification, thereby enhancing the security of system upgrade.
[0010] In some embodiments, the method further includes: performing login verification according to the login information sent by the external device; and in the case where the login verification passes, receiving the upgrade file transmitted by the external device. In the technical solution of the embodiments of the present application, login verification can enhance the security of system upgrade and reduce the risk of system failure caused by incorrect operations or illegal use.
[0011] In some embodiments, performing login verification according to the login information sent by the external device includes: after receiving the upgrade request sent by the external device, detecting the state of the energy storage control system to obtain system state information; in the case where it is determined that the energy storage control system allows upgrade according to the system state information, obtaining the login information from the external device; and performing login verification according to the login information and the pre-stored verification information. In the technical solution of the embodiments of the present application, the management board performs system detection before system upgrade, which can further improve the reliability and efficiency of system upgrade.
[0012] In a second aspect, the present application further provides a system upgrade method, which includes: receiving an upgrade file sent by a management board in an energy storage control system, where the upgrade file is obtained by the management board from an external device; performing a first verification based on the upgrade file, and notifying the management board to perform a second verification based on the upgrade file when the first verification passes; receiving an upgrade permission instruction sent by the management board when the second verification passes, and performing an update and upgrade process based on the upgrade permission instruction and the upgrade file.
[0013] In the technical solution of the embodiment of the present application, a target daughter board and a management board are respectively used for the first verification and the second verification. In this way, the risk of simultaneous verification failures of the target daughter board and the management board is relatively low. Therefore, the verification accuracy can be improved, thereby enhancing the security and reliability of the energy storage control system upgrade.
[0014] In some embodiments, the above-mentioned performing a first verification based on the upgrade file includes: determining an offline verification code and an online verification code based on the upgrade file; performing a first verification based on the offline verification code and the online verification code. In the technical solution of the embodiment of the present application, the management board obtains the offline verification code and the online verification code through two different methods respectively, which can improve the accuracy of the second verification, thereby enhancing the security of the system upgrade.
[0015] In some embodiments, the above-mentioned determining an offline verification code and an online verification code based on the upgrade file includes: extracting the offline verification code from the upgrade file; calculating a verification code by using a preset verification algorithm for the upgrade file; determining the online verification code based on the verification code and a preset correction value. In the technical solution of the embodiment of the present application, the target daughter board determines the offline verification code and the online verification code through two different methods, which can improve the reliability of the first verification.
[0016] In a third aspect, the present application further provides a system upgrade device, which includes:
[0017] A file transmission module, configured to send an upgrade file obtained from an external device to a target daughter board to be upgraded in an energy storage control system for the target daughter board to perform a first verification based on the upgrade file;
[0018] A verification module, configured to perform a second verification based on the upgrade file when the first verification passes;
[0019] An upgrade module, configured to send an upgrade permission instruction to the target daughter board when the second verification passes, where the upgrade permission instruction is used to instruct the target daughter board to perform an update and upgrade process based on the upgrade file.
[0020] In a fourth aspect, the present application further provides a system upgrade device, which includes:
[0021] A file receiving module, configured to receive an upgrade file sent by a management board in an energy storage control system, where the upgrade file is obtained by the management board from an external device;
[0022] A verification module, configured to perform a first verification based on the upgrade file, and notify the management board to perform a second verification based on the upgrade file when the first verification is passed;
[0023] An upgrade module, configured to receive an upgrade permission instruction sent by the management board when the second verification is passed, and perform an update and upgrade process based on the upgrade permission instruction and the upgrade file.
[0024] In a fifth aspect, the present application further provides an energy storage control system. The energy storage system includes a management board and a target sub-board to be upgraded, and the target sub-board includes at least one of a collection board, a logic board, a communication board, a power supply board, and a drive board;
[0025] The management board is configured to implement the method described in the first aspect;
[0026] The target sub-board is configured to implement the method described in the second aspect.
[0027] In a sixth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the first aspect or the second aspect is implemented.
[0028] In a seventh aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in the first aspect or the second aspect is implemented. Description of the Drawings
[0029] By reading the detailed description of the following optional embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the optional embodiments, and are not considered to be a limitation to the present application. Moreover, in all the drawings, the same reference numerals are used to represent the same components. In the drawings:
[0030] Figure 1 is a schematic diagram of the application environment of the system upgrade method according to an embodiment of the present application;
[0031] Figure 2 is a flowchart of the system upgrade method according to an embodiment of the present application;
[0032] Figure 3 is a flowchart of the second verification step according to an embodiment of the present application;
[0033] Figure 4 is a flowchart of the step of determining the offline verification code and the online verification code according to an embodiment of the present application;
[0034] Figure 5 is a schematic flowchart of the login verification and file receiving steps in an embodiment of the present application;
[0035] Figure 6 is a schematic flowchart of the login verification step in an embodiment of the present application;
[0036] Figure 7 is a schematic flowchart of the system upgrade method in an embodiment of the present application;
[0037] Figure 8 is a structural block diagram of the system upgrade device in an embodiment of the present application;
[0038] Figure 9 is a structural block diagram of the system upgrade device in an embodiment of the present application;
[0039] Figure 10 is a structural block diagram of the system upgrade device in an embodiment of the present application;
[0040] Figure 11 is a structural block diagram of the system upgrade device in another embodiment of the present application;
[0041] Figure 12 is a schematic structural diagram of the energy storage control system in an embodiment of the present application. Detailed implementation manners
[0042] Hereinafter, embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to illustrate the technical solution of the present application more clearly, and thus are only examples and should not be used to limit the protection scope of the present application.
[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above drawings are intended to cover non-exclusive inclusion.
[0044] In the description of the embodiments of the present application, technical terms such as "first" and "second" are only used to distinguish different objects and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity, specific order or primary-secondary relationship of the indicated technical features. In the description of the embodiments of the present application, "a plurality" means more than two unless otherwise specifically defined.
[0045] Reference to "embodiment" in this document means that the specific features, structures, or characteristics described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears at various positions in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
[0046] In the description of the embodiments of the present application, the term "and / or" is merely an association relationship describing associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after.
[0047] In the description of the embodiments of the present application, the term "plurality" refers to two or more (including two). Similarly, "multiple groups" refers to two or more groups (including two groups), and "multiple pieces" refers to two or more pieces (including two pieces).
[0048] With the substantial investment in the new energy field, it is becoming increasingly important to set up energy storage systems on the power generation side, user side, and grid side. The control and protection functions of the valve control system largely determine the efficiency, safety, reliability, etc. of the entire energy storage system. In remote areas such as the northwest of China, there are a large amount of clean energy such as wind energy and solar energy that can be converted into electric energy, and energy storage systems are mostly arranged in these places, which brings a lot of inconvenience to the on-site maintenance and upgrade of the control system of the energy storage system. At the same time, there are some old systems that need to be upgraded board by board manually through a burning device, reducing the use efficiency of the system.
[0049] Currently, for systems that are not easily directly operable by personnel and have complex devices, controlled online system upgrade is a better choice, and system upgrade can be achieved through manual operation. However, for the system upgrade of the energy storage control system, there are higher requirements. The reliability, especially the safety, of the system upgrade directly affects whether the entire energy storage system can continuously provide reliable power energy storage guarantee.
[0050] To improve the security of system upgrades, an embodiment of this application provides a system upgrade method. The management board in the energy storage control system sends the upgrade file obtained from an external device to the target daughter board to be upgraded, and the target daughter board performs a primary verification based on the upgrade file; in the case where the primary verification passes, the management board performs a secondary verification based on the upgrade file; in the case where the secondary verification passes, the management board sends an upgrade permission instruction to the target daughter board; after receiving the upgrade permission instruction, the target daughter board performs an update and upgrade process based on the upgrade file. In the technical solution of the embodiment of this application, the target daughter board and the management board of the energy storage control system perform a primary verification and a secondary verification respectively. In this way, the risk of simultaneous verification failures of the target daughter board and the management board is relatively low. Therefore, the verification accuracy can be improved, thereby enhancing the security and reliability of the energy storage control system upgrade.
[0051] The system upgrade method provided by the embodiment of this application can be applied to Figure 1 the application environment shown in the figure. This application environment includes an energy storage control system 101 and an external device 102. Among them, the energy storage control system 101 is a control system for an energy storage system or an energy storage device. The energy storage control system 101 includes a management board and at least one daughter board among an acquisition board, a logic board, a communication board, a power supply board, and a drive board. Among them, the management board can implement the control function in the energy storage control system, the acquisition board can collect relevant data in the energy storage control system, the logic board can perform logical operations on the data collected by the acquisition board, the communication board can implement communication between the energy storage control system and external system devices, the power supply board can supply power to the energy storage control system, and the drive board can implement the drive of each daughter board in the energy storage control system. It should be noted that the above only briefly describes the main functions of each daughter board. In actual applications, each daughter board can also implement other functions. The external device 102 can include but is not limited to various personal computers, laptop computers, smart phones, tablet computers, etc.
[0052] According to some embodiments of this application, with reference to Figure 2 , a system upgrade method is provided. Taking the method applied to the management board in the Figure 1 energy storage control system as an example for illustration, it can include the following steps:
[0053] Step 201: Send the upgrade file obtained from the external device to the target daughter board to be upgraded in the energy storage control system for the target daughter board to perform a primary verification based on the upgrade file.
[0054] The management board of the energy storage control system obtains the upgrade file from the external device, and then the management board sends the upgrade file to the target daughter board to be upgraded. Among them, the target daughter board can be one or more of the acquisition board, logic board, communication board, power supply board, and drive board of the energy storage control system.
[0055] In some instances, the upgrade file carries the sub-board identifier, and the management board sends the upgrade file to the corresponding target sub-board according to the sub-board identifier. For example, if the sub-board identifier is the identifier of the acquisition board, the management board sends the upgrade file to the acquisition board according to the sub-board identifier; if the sub-board identifier is the identifier of the logic board, the management board sends the upgrade file to the logic board according to the sub-board identifier.
[0056] In some embodiments, there are multiple upgrade files, and different upgrade files carry different sub-board identifiers. The management board sends the upgrade files separately according to different sub-board identifiers.
[0057] In some embodiments, each upgrade file may include multiple sub-files, and different sub-files carry different sub-board identifiers. The management board sends the sub-files separately according to different sub-board identifiers.
[0058] In some embodiments, the management board sends the upgrade file to the target sub-board. After receiving the upgrade file, the target sub-board may send response information to the management board. If the management board receives the response information returned by the target sub-board within the preset time period after sending the upgrade file, it indicates that the target sub-board has received the upgrade file; if the management board does not receive the response information returned by the target sub-board within the preset time period after sending the upgrade file, it indicates that the target sub-board may not have received the upgrade file, and then the management board may resend the upgrade file to the target sub-board. It can be understood that adding a retransmission mechanism in case of timeout and errors can reduce system overhead, improve communication performance and enhance reliability at the same time.
[0059] After receiving the upgrade file, the target sub-board can first extract the sub-board identifier from the upgrade file and verify the sub-board identifier; if the verification passes, it indicates that the upgrade file corresponds to the target sub-board to be upgraded, and then the target sub-board performs a verification according to the upgrade file. If the verification fails, it indicates that the upgrade file does not correspond to the target sub-board to be upgraded, and then the target sub-board feeds back the verification result to the management board, and the management board can resend the upgrade file. It can be understood that the verification of the sub-board identifier by the target sub-board can improve the correctness of the upgrade file.
[0060] When the target sub-board performs a verification according to the upgrade file, it can be to extract the verification code from the upgrade file. If the verification code matches the pre-stored verification information in the target sub-board, it is determined that the verification passes. If the verification code does not match the verification information, it is determined that the verification fails. Or, the target sub-board extracts the verification code from the upgrade file, and then calculates the verification code using a preset algorithm to obtain a calculation result; if the calculation result is the preset value, it is determined that the verification passes; if the calculation result is not the preset value, it is determined that the verification fails.
[0061] It should be noted that the method of one-time verification is not limited to the above description. In actual applications, other verification methods can also be used.
[0062] Step 202: In the case where the primary verification is passed, perform secondary verification based on the upgrade file.
[0063] If the primary verification is passed, the management board performs secondary verification based on the upgrade file. In practical applications, the method for the management board to perform secondary verification can be the same as or different from the method for the target daughter board to perform primary verification.
[0064] For example, in the case where the verification methods are the same, the target daughter board first extracts the verification code from the upgrade file and performs primary verification based on the verification code and verification information; after the primary verification is passed, the management board also extracts the verification code from the upgrade file and performs secondary verification based on the verification code and the pre-stored verification information in the management board. In the case where the verification methods are different, the target daughter board first extracts the verification code from the upgrade file and performs primary verification based on the verification code and verification information; after the primary verification is passed, the management board performs secondary verification based on the verification code and a preset algorithm.
[0065] It can be understood that if the method for the management board to perform secondary verification is the same as the method for the target daughter board to perform primary verification, the verification method is easy to implement. If the method for the management board to perform secondary verification is different from the method for the target daughter board to perform primary verification, the accuracy of verification can be improved, thereby enhancing the security of system upgrade.
[0066] Step 203: In the case where the secondary verification is passed, send an upgrade permission instruction to the target daughter board.
[0067] Among them, the upgrade permission instruction is used to instruct the target daughter board to perform update and upgrade processing according to the upgrade file.
[0068] In the case where the secondary verification is passed, the management board sends an upgrade permission instruction to the target daughter board. The target daughter board receives the upgrade permission instruction and then performs system update and upgrade processing according to the upgrade file.
[0069] In the above embodiment, the upgrade file obtained from an external device is sent to the target daughter board to be upgraded in the energy storage control system for the target daughter board to perform primary verification according to the upgrade file; in the case where the primary verification is passed, perform secondary verification according to the upgrade file; in the case where the secondary verification is passed, send an upgrade permission instruction to the target daughter board. In the technical solution of the embodiment of the present application, the target daughter board and the management board are respectively used to perform primary verification and secondary verification. In this way, the risk of simultaneous verification failures of the target daughter board and the management board is relatively low. Therefore, the verification accuracy can be improved, thereby enhancing the security and reliability of the energy storage control system upgrade.
[0070] According to some embodiments of the present application, with reference to Figure 3, in the case where the primary verification is passed, the process of performing secondary verification according to the upgrade file may include the following steps:
[0071] Step 301, receive the primary verification result returned by the target daughter board.
[0072] Step 302, in the case where the primary verification result indicates that the primary verification is passed, determine the offline verification code and the online verification code according to the upgrade file.
[0073] Step 303, perform secondary verification according to the offline verification code and the online verification code.
[0074] After the target daughter board performs the primary verification, it sends the primary verification result to the management board. If the primary verification result indicates that the primary verification is passed, the management board can determine the offline verification code and the online verification code respectively in two different ways. For example, the management board finds out the pre-stored offline verification code according to the upgrade file, and calculates the online verification code by using a preset algorithm for the upgrade file. Or, calculate the offline verification code by using the first preset algorithm for the upgrade file, and calculate the online verification code by using the second preset algorithm for the upgrade file.
[0075] It should be noted that the determination methods of the offline verification code and the online verification code are not limited to the above description. In practical applications, other methods can also be used for determination.
[0076] After determining the offline verification code and the online verification code, the management board can compare the offline verification code and the online verification code. If the offline verification code is consistent with the online verification code, it is determined that the secondary verification is passed; if the offline verification code is inconsistent with the online verification code, it is determined that the secondary verification is not passed.
[0077] Or, the management board can calculate the first value and the second value respectively for the offline verification code and the online verification code by using a preset method; if the first value is equal to the second value, it is determined that the secondary verification is passed; if the first value is not equal to the second value, it is determined that the secondary verification is not passed.
[0078] In the above embodiment, the management board receives the primary verification result returned by the target daughter board; in the case where the primary verification result indicates that the primary verification is passed, determines the offline verification code and the online verification code according to the upgrade file; performs secondary verification according to the offline verification code and the online verification code. In the technical solution of the embodiment of the present application, the management board performs secondary verification through the offline verification code and the online verification code, and the verification efficiency is relatively high.
[0079] According to some embodiments of the present application, referring to Figure 4 , the process of determining the offline verification code and the online verification code according to the upgrade file may include the following steps:
[0080] Step 3021: Extract the offline verification code from the upgrade file.
[0081] Step 3022: Calculate the verification code for the upgrade file using a preset verification algorithm.
[0082] Step 3023: Determine the online verification code based on the verification code and a preset correction value.
[0083] Before sending the upgrade file to the management board, the external device can first determine the offline verification code based on the upgrade file. Then, when the external device sends the upgrade file to the management board, the upgrade file carries the offline verification code. The management board receives the upgrade file sent by the external device and extracts the offline verification code from the upgrade file.
[0084] The management board can calculate the verification code for the upgrade file using a preset verification algorithm. The preset verification algorithm can include at least one of the cyclic redundancy check (CRC) algorithm and the MD5 verification algorithm. For example, the management board calculates the verification code checkword using the CRC algorithm for the upgrade file; or, the management board calculates the verification code checkword using the MD5 algorithm for the upgrade file.
[0085] The management board can store the preset correction value. After determining the verification code, the management board calculates the verification code and the preset correction value according to a preset relational expression to obtain the online verification code.
[0086] In some embodiments, the preset relational expression can include that the value obtained by performing an exclusive OR calculation on the inverted verification code and the preset correction value is the online verification code. For example, online_checkword = ~checkword ^ correctvalue, where online_checkword is the online verification code, checkword is the verification code, and correctvalue is the preset correction value.
[0087] It should be noted that the method of determining the online verification code based on the verification code and the preset correction value is not limited to the above description. In practical applications, other methods can also be used. In addition, the management board can determine the offline verification code and the online verification code in the above serial manner or in a parallel manner.
[0088] In the above embodiments, the management board extracts the offline verification code from the upgrade file; calculates the verification code for the upgrade file using a preset verification algorithm; and determines the online verification code based on the verification code and the preset correction value. In the technical solution of the embodiments of the present application, the management board obtains the offline verification code and the online verification code through two different methods respectively, which can improve the accuracy of the secondary verification and thus improve the security of system upgrade.
[0089] According to some embodiments of the present application, it may further include: when the primary verification fails or the secondary verification fails, the management board feeds back the verification failure information to the external device.
[0090] After the management board sends the upgrade file to the target daughter board, the target daughter board performs a primary verification based on the upgrade file and sends the primary verification result to the management board. If the primary verification result indicates that the primary verification fails, the management board feeds back the verification failure information to the external device.
[0091] If the primary verification result indicates that the primary verification passes, the management board performs a secondary verification based on the upgrade file. If the secondary verification fails, the management board feeds back the verification failure information to the external device. If the secondary verification passes, the management board sends an upgrade permission instruction to the target daughter board. The target daughter board receives the upgrade permission instruction and, under the indication of the upgrade permission instruction, performs system update and upgrade processing according to the upgrade file.
[0092] After receiving the verification failure information fed back by the management board, the external device can directly end the system upgrade; or it can resend the upgrade file to the management board so that the target daughter board performs system upgrade according to the resent upgrade file. It should be noted that the processing method after the external device receives the verification failure information is not limited to the above description, and other processing methods can also be adopted.
[0093] In the above embodiments, when the primary verification fails or the secondary verification fails, the management board feeds back the verification failure information to the external device. In the technical solution of the embodiments of the present application, feeding back to the external device when the verification fails can timely notify relevant personnel to take remedial measures through the external device, thereby improving the upgrade efficiency of the energy storage control system.
[0094] According to some embodiments of the present application, referring to Figure 5 , before the primary verification, the embodiments of the present application may further include the following steps:
[0095] Step 401, perform login verification according to the login information sent by the external device.
[0096] Step 402, when the login verification passes, receive the upgrade file transmitted by the external device.
[0097] Among them, the login information may include at least one of an account identifier and a password, a short message verification code, facial information, and fingerprint information.
[0098] In the case where the system needs to be upgraded, the external device first sends login information to the management board, and the management board performs login verification on the external device according to the login information. For example, the external device sends an account identifier and a password to the management board; the management board obtains the pre-stored password according to the account identifier, and compares the password sent by the external device with the pre-stored password; if the comparison is consistent, it is determined that the login verification is passed; if the comparison is inconsistent, it is determined that the login verification fails.
[0099] In the case where the login verification is passed, the management board feeds back the verification passed information to the external device. The external device receives the verification passed information and sends an upgrade file to the management board. The management board receives the upgrade file transmitted by the external device.
[0100] In the case where the login verification fails, the management board feeds back the verification failed information to the external device. The external device receives the verification failed information and resends the login information to the management board so that the management board can perform login verification again.
[0101] In some embodiments, when the number of times of failed login verification is greater than the preset number of times, the system upgrade ends.
[0102] In some embodiments, the upgrade file sent by the external device to the management board can be to send one upgrade file, and this upgrade file corresponds to multiple target daughter boards; it can also be to send multiple upgrade files, and different upgrade files correspond to different target daughter boards; it can also be to send multiple upgrade files, and multiple upgrade files correspond to one target daughter board. Among them, when the external device sends the upgrade file, the Trivial File Transfer Protocol (TFTP) can be used.
[0103] It should be noted that the way for the external device to send the upgrade file to the management board is not limited to the above description, and in practical applications, other ways can also be adopted.
[0104] In the above embodiments, login verification is performed according to the login information sent by the external device; in the case where the login verification is passed, the upgrade file transmitted by the external device is received. In the technical solution of the embodiments of the present application, login verification can enhance the security of system upgrade and reduce the risk of system failure caused by incorrect operations or illegal use.
[0105] According to some embodiments of the present application, referring to Figure 6 , the process of performing login verification according to the login information sent by the external device can include the following steps:
[0106] Step 4011, after receiving the upgrade request sent by the external device, perform a status detection on the energy storage control system to obtain system status information.
[0107] Step 4012, when it is determined that the energy storage control system allows an upgrade according to the system status information, obtain the login information from an external device.
[0108] Step 4013, perform a login verification based on the login information and the pre-stored verification information.
[0109] When a system upgrade is required, the external device first sends an upgrade request to the management board. For example, the external device displays an upgrade interface for the energy storage control system, and an upgrade control is set in the upgrade interface. After the upgrade control is triggered, the external device sends an upgrade request to the management board.
[0110] The management board receives the upgrade request sent by the external device, performs a status detection on the energy storage control system, and obtains the system status information. Among them, the system status information may include the self-check result of the system online function, the survival status of whether each daughter board communicates with the management board normally, and the upgrade status of whether each daughter board allows an upgrade, etc. It should be noted that the system status information is not limited to the above description and can be set according to the actual situation.
[0111] After obtaining the system status information, if it is determined according to the system status information that some daughter boards in the energy storage control system allow an upgrade, the management board sends a login information acquisition request to the external device. The external device receives the login information acquisition request and displays a login information input interface according to the login information acquisition request. The user inputs the login information based on the login information input interface, and the external device sends the login information input by the user to the management board for login verification.
[0112] The management board pre-stores the verification information. After receiving the login information sent by the external device, it compares the login information with the verification information; if the login information matches the verification information, it is determined that the login verification is passed; if the login information does not match the verification information, it is determined that the login verification fails.
[0113] It should be noted that there are various ways to compare the login information with the verification, and it can be selected according to the actual situation.
[0114] In some embodiments, before the external device sends the login information, it can first encrypt the login information and then send the encrypted login information to the management board. The management board receives the encrypted login information, first decrypts it to obtain the login information, and then performs a login verification based on the login information and the verification information.
[0115] In the above embodiments, after receiving an upgrade request sent by an external device, the management board performs a status detection on the energy storage control system to obtain system status information; when it is determined that the energy storage control system allows an upgrade according to the system status information, login information is obtained from the external device; login verification is performed according to the login information and the pre-stored verification information. In the technical solution of the embodiments of the present application, the management board performs system detection before system upgrade, which can further improve the reliability and efficiency of system upgrade.
[0116] According to some embodiments of the present application, with reference to Figure 7 , a system upgrade method is provided. Taking the example that this method is applied to the target daughter board in the energy storage control system for illustration, it may include the following steps:
[0117] Step 501, receive an upgrade file sent by the management board in the energy storage control system.
[0118] Among them, the upgrade file is obtained by the management board from an external device.
[0119] When performing system upgrade, the external device sends an upgrade file to the management board, and the management board sends the upgrade file to the target daughter board. The target daughter board receives the upgrade file sent by the management board.
[0120] For example, if the target daughter board to be upgraded is the logic board, after the management board receives the upgrade file sent by the external device, it sends the upgrade file to the logic board. The transmission process of the upgrade file can refer to the description of the above embodiments, and the embodiments of the present application will not elaborate here.
[0121] Step 502, perform a first verification according to the upgrade file, and notify the management board to perform a second verification according to the upgrade file when the first verification passes.
[0122] After the target daughter board receives the upgrade file, it performs a first verification according to the upgrade file. Among them, the method of the first verification may be the same as or different from the method of the management board for the second verification.
[0123] After the first verification, the target daughter board sends the first verification result to the management board. The management board receives the first verification result. If the first verification result indicates that the first verification passes, the management board performs a second verification according to the upgrade file.
[0124] Step 503, receive an upgrade permission instruction sent by the management board when the second verification passes, and perform an update and upgrade process according to the upgrade permission instruction and the upgrade file.
[0125] After the management board performs secondary verification, if the secondary verification passes, it sends an upgrade permission instruction to the target daughter board. The target daughter board receives the upgrade permission instruction sent by the management board and, under the indication of the upgrade permission instruction, performs system update and upgrade processing according to the upgrade file.
[0126] In the above embodiment, the target daughter board receives the upgrade file sent by the management board in the energy storage control system; performs primary verification according to the upgrade file, and notifies the management board to perform secondary verification according to the upgrade file when the primary verification passes; receives the upgrade permission instruction sent by the management board when the secondary verification passes, and performs update and upgrade processing according to the upgrade permission instruction and the upgrade file. In the technical solution of the embodiment of the present application, the target daughter board and the management board are respectively used to perform primary verification and secondary verification. In this way, the risk of simultaneous verification failures of the target daughter board and the management board is relatively low. Therefore, the verification accuracy can be improved, thereby improving the safety and reliability of the upgrade of the energy storage control system.
[0127] According to some embodiments of the present application, the method for the target daughter board to perform primary verification may be the same as the method for the management board to perform secondary verification. The above process of performing primary verification according to the upgrade file may include: determining an offline verification code and an online verification code according to the upgrade file; performing primary verification according to the offline verification code and the online verification code.
[0128] During the process of the target daughter board performing primary verification, an offline verification code and an online verification code are respectively determined according to the upgrade file. Optional methods are as follows: extracting the offline verification code from the upgrade file; calculating the verification code by using a preset verification algorithm for the upgrade file; determining the online verification code according to the verification code and a preset correction value.
[0129] After determining the offline verification code and the online verification code, the target daughter board performs a consistency check on the offline verification code and the online verification code; if the offline verification code and the online verification code are consistent, it is determined that the primary verification passes; if the offline verification code and the online verification code are inconsistent, it is determined that the primary verification fails.
[0130] In the above embodiment, the target daughter board determines an offline verification code and an online verification code according to the upgrade file; performs primary verification according to the offline verification code and the online verification code. In the technical solution of the embodiment of the present application, the target daughter board determines the offline verification code and the online verification code in two different ways, which can improve the reliability of the primary verification, thereby improving the safety of the system upgrade.
[0131] According to some embodiments of the present application, a system upgrade method is provided. Taking the energy storage control system to which this method is applied Figure 1 as an example for illustration, it may include the following steps:
[0132] Step 1, after the management board receives an upgrade request sent by an external device, it performs a status detection on the energy storage control system to obtain system status information.
[0133] Step 2, when the management board determines that the energy storage control system allows for an upgrade based on the system status information, it obtains login information from the external device.
[0134] Step 3, the management board performs a login verification based on the login information and the pre-stored verification information.
[0135] Step 4, when the login verification is passed, the management board receives the upgrade file transmitted by the external device.
[0136] Step 5, the management board sends the upgrade file to the target sub-board to be upgraded.
[0137] Step 6, the target sub-board extracts the offline verification code from the upgrade file; calculates the verification code by using a preset verification algorithm for the upgrade file; determines the online verification code based on the verification code and a preset correction value; and performs a primary verification based on the offline verification code and the online verification code.
[0138] Step 7, the management board receives the primary verification result returned by the target sub-board.
[0139] Step 8, when the primary verification result indicates that the primary verification is passed, the management board extracts the offline verification code from the upgrade file; calculates the verification code by using a preset verification algorithm for the upgrade file; determines the online verification code based on the verification code and a preset correction value; and performs a secondary verification based on the offline verification code and the online verification code.
[0140] Step 9, when the secondary verification is passed, the management board sends an upgrade permission instruction to the target sub-board.
[0141] Step 10, the target sub-board performs an update and upgrade process based on the upgrade permission instruction and the upgrade file.
[0142] Step 11, when the primary verification fails or the secondary verification fails, the management board feeds back verification failure information to the external device.
[0143] It should be understood that although the steps in the above flowcharts are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless specifically stated in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowcharts may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0144] Based on the same inventive concept, an embodiment of the present application further provides an over-system upgrade device for implementing the over-system upgrade method involved above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the over-system upgrade device provided below can refer to the limitations on the over-system upgrade method in the above text, and will not be repeated here.
[0145] According to some embodiments of the present application, referring to Figure 8 , a system upgrade device is provided, and the device includes:
[0146] A file transfer module 601, configured to send an upgrade file obtained from an external device to a target sub-board to be upgraded in an energy storage control system, for the target sub-board to perform a primary verification according to the upgrade file;
[0147] A verification module 602, configured to perform a secondary verification according to the upgrade file when the primary verification passes;
[0148] An upgrade module 603, configured to send an upgrade permission instruction to the target sub-board when the secondary verification passes, where the upgrade permission instruction is used to instruct the target sub-board to perform an update and upgrade process according to the upgrade file.
[0149] In some embodiments, the verification module 602 is specifically configured to receive a primary verification result returned by the target sub-board; when the primary verification result indicates that the primary verification passes, determine an offline verification code and an online verification code according to the upgrade file; and perform a secondary verification according to the offline verification code and the online verification code.
[0150] In some embodiments, the verification module 602 is specifically configured to extract the offline verification code from the upgrade file; calculate a verification code for the upgrade file by using a preset verification algorithm; and determine the online verification code according to the verification code and a preset correction value.
[0151] In some embodiments, referring to Figure 9, the device further includes:
[0152] A feedback module 604, configured to feedback verification failure information to an external device when the primary verification fails or the secondary verification fails.
[0153] In some embodiments, referring to Figure 10 , the device further includes:
[0154] A login verification module 605, configured to perform login verification according to the login information sent by the external device;
[0155] A file receiving module 606, configured to receive the upgrade file transmitted by the external device when the login verification is passed.
[0156] In some embodiments, the login verification module 605 is specifically configured to, after receiving the upgrade request sent by the external device, perform a status detection on the energy storage control system to obtain system status information; when it is determined that the energy storage control system allows an upgrade according to the system status information, obtain the login information from the external device; and perform login verification according to the login information and the pre-stored verification information.
[0157] According to some embodiments of the present application, referring to Figure 11 , the present application further provides a system upgrade device, and the device includes:
[0158] A file receiving module 701, configured to receive the upgrade file sent by the management board in the energy storage control system, where the upgrade file is obtained by the management board from an external device;
[0159] A verification module 702, configured to perform a primary verification according to the upgrade file, and notify the management board to perform a secondary verification according to the upgrade file when the primary verification is passed;
[0160] An upgrade module 703, configured to receive the upgrade permission instruction sent by the management board when the secondary verification is passed, and perform an update and upgrade process according to the upgrade permission instruction and the upgrade file.
[0161] In some embodiments, the verification module 702 is specifically configured to determine an offline verification code and an online verification code according to the upgrade file; and perform a primary verification according to the offline verification code and the online verification code.
[0162] In some embodiments, the verification module 702 is specifically configured to extract the offline verification code from the upgrade file; calculate the verification code for the upgrade file by using a preset verification algorithm; and determine the online verification code according to the verification code and a preset correction value.
[0163] Each module in the above system upgrade device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0164] According to some embodiments of the present application, referring to Figure 12 , a energy storage control system is provided. The energy storage system 101 includes a management board 1011 and a target daughter board 1012 to be upgraded. The target daughter board includes at least one of an acquisition board, a logic board, a communication board, a power supply board, and a drive board. The management board and the target daughter board implement the system upgrade method in the above embodiments.
[0165] In some embodiments, each daughter board can be provided with a backup. For example, multiple acquisition boards can be provided, and multiple communication boards can be provided.
[0166] In the technical solution of the embodiments of the present application, the energy storage control system is provided with a management board, and a primary verification and a secondary verification can be respectively performed using the target daughter board and the management board, thereby reducing the problems of insufficient information security and functional security existing in the system upgrade process and greatly improving the reliability of the system upgrade.
[0167] According to some embodiments of the present application, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions. The above instructions can be executed by the processor of the electronic device to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0168] According to some embodiments of the present application, a computer program product is also provided. When the computer program is executed by the processor, the above method can be implemented. The computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on the computer, part or all of the above method can be implemented in accordance with the process or function described in the embodiments of the present application.
[0169] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0170] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.
[0171] The above-described embodiments merely represent several implementation manners of the present application, facilitating the specific and detailed understanding of the technical solution of the present application, but should not be construed as a limitation on the protection scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and these all fall within the protection scope of the present application. It should be understood that the technical solutions obtained by those skilled in the art through logical analysis, reasoning, or limited experiments based on the technical solution provided by the present application are all within the protection scope of the appended claims of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the content of the appended claims, and the specification and drawings can be used to explain the content of the claims.
Claims
1. A system upgrade method, characterized in that, the method includes: Sending the upgrade file obtained from an external device to the target daughter board to be upgraded in the energy storage control system for the target daughter board to perform a first verification according to the upgrade file; In the case where the first verification passes, performing a second verification according to the upgrade file; In the case where the second verification passes, sending an upgrade permission instruction to the target daughter board, and the upgrade permission instruction is used to instruct the target daughter board to perform an update and upgrade process according to the upgrade file.
2. The method according to claim 1, characterized in that, the performing a second verification according to the upgrade file in the case where the first verification passes includes: Receiving the first verification result returned by the target daughter board; In the case where the first verification result indicates that the first verification passes, determining an offline verification code and an online verification code according to the upgrade file; Performing a second verification according to the offline verification code and the online verification code.
3. The method according to claim 2, characterized in that, the determining an offline verification code and an online verification code according to the upgrade file includes: Extracting the offline verification code from the upgrade file; Calculating the upgrade file using a preset verification algorithm to obtain a verification code; Determining the online verification code according to the verification code and a preset correction value.
4. The method according to any one of claims 1-3, characterized in that, the method further includes: In the case where the first verification fails or the second verification fails, feeding back verification failure information to the external device.
5. The method according to any one of claims 1-3, characterized in that, the method further includes: Performing a login verification according to the login information sent by the external device; In the case where the login verification passes, receiving the upgrade file transmitted by the external device.
6. The method according to claim 4, characterized in that, the performing a login verification according to the login information sent by the external device includes: After receiving the upgrade request sent by the external device, detecting the state of the energy storage control system to obtain system state information; In the case where it is determined according to the system state information that the energy storage control system allows an upgrade, obtaining the login information from the external device; Performing a login verification according to the login information and the pre-stored verification information.
7. A system upgrade method, characterized in that, the method includes: Receiving the upgrade file sent by the management board in the energy storage control system, and the upgrade file is obtained by the management board from an external device; Performing a first verification according to the upgrade file, and in the case where the first verification passes, notifying the management board to perform a second verification according to the upgrade file; Receiving the upgrade permission instruction sent by the management board in the case where the second verification passes, and performing an update and upgrade process according to the upgrade permission instruction and the upgrade file.
8. The method according to claim 7, characterized in that, the performing a first verification according to the upgrade file includes: Determining an offline verification code and an online verification code according to the upgrade file; Perform a primary verification based on the offline verification code and the online verification code.
9. The method according to claim 8, wherein, the determining the offline verification code and the online verification code according to the upgrade file includes: extracting the offline verification code from the upgrade file; calculating the upgrade file by using a preset verification algorithm to obtain a verification code; determining the online verification code according to the verification code and a preset correction value.
10. A system upgrade device, wherein, the device includes: a file transmission module, configured to send an upgrade file obtained from an external device to a target sub-board to be upgraded in an energy storage control system, for the target sub-board to perform a primary verification according to the upgrade file; a verification module, configured to perform a secondary verification according to the upgrade file when the primary verification is passed; an upgrade module, configured to send an upgrade permission instruction to the target sub-board when the secondary verification is passed, where the upgrade permission instruction is used to instruct the target sub-board to perform an update and upgrade process according to the upgrade file.
11. A system upgrade device, wherein, the device includes: a file receiving module, configured to receive an upgrade file sent by a management board in an energy storage control system, where the upgrade file is obtained by the management board from an external device; a verification module, configured to perform a primary verification according to the upgrade file, and notify the management board to perform a secondary verification according to the upgrade file when the primary verification is passed; an upgrade module, configured to receive an upgrade permission instruction sent by the management board when the secondary verification is passed, and perform an update and upgrade process according to the upgrade permission instruction and the upgrade file.
12. An energy storage control system, wherein, the energy storage system includes a management board and a target sub-board to be upgraded, and the target sub-board includes at least one of a collection board, a logic board, a communication board, a power supply board, and a drive board; the management board is configured to implement the method according to any one of claims 1-6; the target sub-board is configured to implement the method according to any one of claims 7-9.
13. A computer-readable storage medium, on which a computer program is stored, wherein, the computer program, when executed by a processor, implements the method according to any one of claims 1 to 9.
14. A computer program product, including a computer program, wherein, the computer program, when executed by a processor, implements the method according to any one of claims 1 to 9.