Batch upgrading method of inverter system, electronic equipment and storage medium
By splitting the inverter upgrade package and broadcasting, the inverter system has achieved batch upgrades, solving the problem of traditional platform-by-channel upgrade time and significantly shortening the upgrade time.
Patent Information
- Application Number
- CN202411647702.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-02-21
AI Technical Summary
There are many inverters in the inverter system, and the traditional upgrade method takes a long time to upgrade, and there is a lack of effective solutions.
The inverter upgrade package is divided into multiple partial files and transmitted in batches through broadcast mode. The inverter detects and assembles the upgrade package, and reisses missing partial files to achieve batch upgrades.
By upgrading multiple inverters in parallel, the upgrade time of the inverter system is significantly shortened and time-consuming.
Smart Images

Figure CN119493589A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of inverters, and in particular to a batch upgrade method, electronic equipment, and storage medium for inverter systems. Background Art
[0002] There are usually multiple inverters in the inverter system. When upgrading the inverters in the system, the relevant technology usually needs to send the upgrade package through a predetermined communication method and perform a single control upgrade. In the case of a large number of inverters that need to be upgraded, and limited by the communication rate and packet loss rate of the communication method, it takes a long time to upgrade a single inverter, and it takes even longer to upgrade all the micro-inverters in the entire system.
[0003] With regard to the problem that there are a large number of inverters in the inverter system in the related art and that it takes a long time to upgrade each inverter one by one using the traditional method, no effective solution has been proposed so far. Summary of the invention
[0004] The present invention provides a batch upgrade method, electronic device, and storage medium for an inverter system, which at least solves the problem in the related art that there are a large number of inverters in the inverter system and it takes a long time to upgrade each inverter one by one using the traditional method.
[0005] According to one aspect of an embodiment of the present invention, a batch upgrade method for an inverter system is provided, comprising: dividing an upgrade package of an inverter to obtain multiple partial files; broadcasting the multiple partial files in batches to inverters that need to be upgraded, wherein after receiving the multiple partial files, the inverter detects and assembles them into the upgrade package, and feeds back the abnormally detected partial files through a reply message; receiving a reply message from the inverter to the missing partial files; and in response to the reply message, resending the missing partial files to the corresponding inverter, wherein the inverter writes the missing partial files into the upgrade package and uses the upgrade package for upgrading.
[0006] As an optional embodiment, before splitting the inverter upgrade package to obtain multiple partial files, the method also includes: downloading and parsing upgrade information from a cloud server, wherein the upgrade information includes device information that needs to be upgraded and upgrade package information for pulling the upgrade package; pulling the upgrade package from the cloud server according to the upgrade package information; and during the process of pulling the upgrade package, feeding back the download status of the upgrade package to the cloud server, wherein the download status includes whether the download has started, whether the download has been completed, and the degree of download completion.
[0007] As an optional embodiment, after pulling the upgrade package from the cloud server according to the upgrade package information, the method also includes: verifying the upgrade package; if the verification fails, providing feedback to the cloud server, re-downloading the upgrade information, and pulling the upgrade package; if the verification passes, notifying the corresponding device to upgrade according to the device information.
[0008] As an optional embodiment, upgrading the device corresponding to the device information notification includes: sending a start upgrade instruction to the inverter corresponding to the device information, wherein the inverter performs device initialization after receiving the start upgrade instruction, and after the initialization is completed, feeds back a notification message of preparation for receiving the upgrade package; based on the inverter receiving the notification message, determining the initialization process of multiple inverters of the device information; and feeding back the initialization process to the cloud server.
[0009] As an optional embodiment, the multiple partial files are broadcasted to the inverter that needs to be upgraded in batches by broadcasting, including: broadcasting the partial files to the inverter that needs to be upgraded in batches according to a preset frequency, wherein an integer number of the partial files are broadcast in each batch, and after the inverter receives the partial files, the inverter performs an abnormality check, and if the check passes, assembles the partial files into the upgrade package, and if the check fails, replies with the abnormal partial files; after broadcasting the partial files of the upgrade package, execute the step of receiving the inverter's reply message for the missing partial files.
[0010] As an optional embodiment, after broadcasting partial files of the upgrade package and before executing the step of receiving a reply message of the inverter for the missing partial files, it includes: querying a bitmap through multiple partial files of the upgrade package to obtain bitmap information of the multiple partial files, wherein the bitmap information includes information for characterizing whether the multiple partial files are missing; sending the bitmap information to the inverter receiving the upgrade package, wherein after receiving the bitmap information, the inverter processes the bitmap information according to the received partial files to obtain a reply bitmap message, wherein the reply bitmap message characterizes whether the partial files received by the inverter are missing.
[0011] As an optional embodiment, receiving a reply message from the inverter for missing partial files includes: receiving the reply bitmap message, determining whether the corresponding inverter is missing partial files and the missing partial file identifiers when the partial files are missing according to the reply bitmap message; responding to the reply message and resending the missing partial files to the corresponding inverter includes: when determining that the partial files are missing, obtaining the corresponding partial files and generating a missing package according to the missing partial file identifiers; sending the missing package to the corresponding inverter, wherein after receiving the missing package, the inverter writes the corresponding partial files into an upgrade package and feeds back the upgrade package reception completion information; determining the sending progress of the missing package according to the inverter that receives the reception completion information and all inverters that receive the upgrade package, and feeding back the progress to the cloud server.
[0012] As an optional embodiment, after responding to the reply message and resending the missing partial files to the corresponding inverter, the method also includes: sending an upgrade result query request to the upgraded inverter, wherein, after receiving the missing partial files, the inverter completes the reception of the upgrade package, upgrades according to the upgrade package, and after the upgrade is completed, responds to the upgrade result query request and feeds back the upgrade result; receives the upgrade result returned in response to the upgrade result query request; determines the upgrade process based on the inverters that receive successful upgrade results and the inverters that need to be upgraded, and feeds back to the cloud server.
[0013] According to another aspect of the present invention, an electronic device is provided, comprising: a processor, and a memory storing a program, wherein the program comprises instructions, and when the instructions are executed by the processor, the processor executes any one of the above methods.
[0014] According to another aspect of the present invention, there is provided a non-transitory machine-readable medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute any one of the above methods.
[0015] According to another aspect of the present invention, there is provided a computer program product, including a computer program / instruction, wherein when the computer program / instruction is executed by a processor, any one of the above methods is implemented.
[0016] The batch upgrade method of the inverter system provided by the invention embodiment divides the upgrade package with a large data volume into partial files with a smaller data volume, transmits the partial files in batches by broadcasting, and detects the reply message of the partial files through the inverter, reissues the missing partial files, and sends the upgrade package to the inverter in batches, thereby batch issuing the upgrade package to multiple inverters in the inverter system, so that the inverters that need to be upgraded can be upgraded in parallel, achieving the technical effect of greatly shortening the upgrade time of multiple inverters in the inverter system and greatly reducing the time-consuming upgrade of multiple inverters by the inverter system. The problem that the inverter system in the related art has a large number of inverters and the time-consuming traditional method of upgrading each inverter is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other embodiments can be obtained based on these drawings without creative work.
[0018] Figure 1 The present invention is a flow chart of a method for batch upgrading an inverter system according to an embodiment of the present invention.
[0019] Figure 2 It is a timing diagram of the upgrade package downloading of the embodiment created by the present invention.
[0020] Figure 3 It is a timing diagram of the inverter initialization of the embodiment created by the present invention.
[0021] Figure 4 It is a timing diagram of the broadcast transmission upgrade package of the embodiment created by the present invention.
[0022] Figure 5 It is a timing diagram of querying a bitmap to resend an upgrade package according to an embodiment of the present invention.
[0023] Figure 6 It is a timing diagram of the query upgrade result of the embodiment created by the present invention.
[0024] Figure 7 It is a structural schematic diagram of the electronic device created by the present invention. DETAILED DESCRIPTION
[0025] The embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0026] In order to solve the problem in the related art that there are a large number of inverters in the inverter system and that the traditional method of upgrading each inverter one by one takes a long time, an embodiment of the present invention provides a batch upgrade method for the inverter system.
[0027] Figure 1 is a flow chart of a batch upgrade method of an inverter system according to an embodiment of the present invention, such as Figure 1 As shown, the batch upgrade method of the inverter system provided by the embodiment of the invention comprises the following steps: Step S101, splitting the inverter upgrade package to obtain multiple partial files; Step S102, broadcasting multiple partial files to the inverters that need to be upgraded in batches by broadcasting, wherein after receiving the multiple partial files, the inverter detects and assembles them into an upgrade package, and feeds back the partial files with abnormal detection through a reply message; Step S103, receiving a reply message from the inverter for the missing part of the file; Step S104, in response to the reply message, the missing part of the file is resent to the corresponding inverter, wherein the inverter writes the missing part of the file into the upgrade package and uses the upgrade package for upgrading.
[0028] The batch upgrade method for the above-mentioned inverter system provided by the embodiment created by the present invention divides the upgrade package with a larger data volume into partial files with smaller data volume, transmits the partial files in batches by broadcasting, and detects the reply message of the partial files through the inverter to reissue the missing partial files, and sends the upgrade packages to the inverter in batches, thereby batch issuing the upgrade packages to multiple inverters in the inverter system, so that the inverters that need to be upgraded can be upgraded in parallel, thereby greatly shortening the upgrade time of multiple inverters in the inverter system and greatly reducing the time-consuming technical effect of upgrading multiple inverters of the inverter system.
[0029] The execution subject of the above steps may be an energy gateway of the inverter system, for example, ECC (Energy Control Center) and ECC_PLC (Power Line Carrier). The above inverter system may include a cloud server, an energy gateway, and an inverter.
[0030] The cloud server can store data in the form of cloud services, including upgrade packages, upgrade records, historical data, etc. The energy gateway can be used as the gateway of the inverter, set between the inverter and the cloud server, can run the control program, and can also serve as a communication medium between the cloud server and the inverter.
[0031] The above upgrade package can be stored in the cloud server, or edited by the remote terminal and uploaded to the cloud server. For the energy gateway, when upgrading, the cloud server can initiate an upgrade instruction and send the upgrade instruction to the energy gateway, carrying relevant upgrade information.
[0032] After obtaining the upgrade package, split the upgrade package into multiple partial files. The data size of the partial files must not exceed the maximum data size sent in a single broadcast batch. If it exceeds, a single broadcast batch may not be able to send a partial file. In other words, a single broadcast batch must send at least one partial file.
[0033] Then, multiple partial files can be broadcasted in batches to the inverters that need to be upgraded. It should be noted that the inverters that need to be upgraded can be described in the upgrade package, or described through the supporting files of the upgrade package, which can be the same as the way to obtain the upgrade package, or can be carried through the upgrade instruction and sent to the energy gateway.
[0034] After receiving multiple partial files, the inverter can perform tests. For example, completion check, safety check, bitmap check, etc. After passing the test, they can be assembled into an upgrade package, and the partial files with abnormal detection can be fed back through reply messages. The above detection abnormalities correspond to the above detection methods, that is, the completion check fails, the safety check fails, and the bitmap detection is missing.
[0035] The abnormal part of the files can be fed back to the energy gateway by replying messages. The energy gateway will resend the abnormal part of the files for a specific inverter according to the different situations of each inverter. This resending method can be through PLC communication, or through the existing one-to-one or one-to-many communication methods of the inverter such as broadcasting.
[0036] After receiving the reply message of the inverter for the missing partial files, the energy gateway responds to the reply message and resends the missing partial files to the corresponding inverter. After receiving the missing partial files resent by the energy gateway, the inverter writes the missing partial files into the upgrade package, improves the upgrade package, and uses the improved upgrade package for upgrading.
[0037] As an optional embodiment, before splitting the inverter upgrade package to obtain multiple partial files, the method also includes: downloading and parsing upgrade information from a cloud server, wherein the upgrade information includes device information that needs to be upgraded and upgrade package information for pulling the upgrade package; pulling the upgrade package from the cloud server according to the upgrade package information; and during the process of pulling the upgrade package, feeding back the download status of the upgrade package to the cloud server, wherein the download status includes whether the download has started, whether the download has been completed, and the degree of download completion.
[0038] Since the upgrade package is stored in the cloud server, before the upgrade package of the inverter is divided into multiple partial files, the upgrade package needs to be obtained from the cloud server first.
[0039] Figure 2 : is a timing diagram of the upgrade package downloading of the embodiment created by the present invention, such as Figure 2 As shown, the cloud server sends the upgrade information to the energy gateway ECC through the MQTT communication protocol. The upgrade information includes the device information that needs to be upgraded, such as the upgrade device SN table, and the upgrade information, such as the upgrade file URL.
[0040] It should be noted that Figures 2 to 6 In the above description, both ECC and ECC_PLC belong to the energy gateway, and can be understood as different parts of the energy gateway. In other embodiments, both ECC and ECC_PLC can be used as energy gateways alone.
[0041] After the energy gateway ECC downloads and parses the upgrade information from the cloud server, it pulls the upgrade package from the cloud server according to the upgrade package information. Figure 2 In the process, HTTP (Hyper Text Transfer Protocol) is used to request the cloud server to pull the upgrade package. The cloud server responds to the HTTP request and sends the upgrade package back.
[0042] After receiving the data of the upgrade package, ECC reports the download status of the upgrade package through the MQTT (Message Queuing Telemetry Transport) protocol. The download status includes whether the download has started, whether the download has been completed, and the degree of download completion. Figure 2The word "loop" means "cycle". This is because the download of the upgrade package is a cyclic process of multiple rounds. The cycle ends when the download is completed. Figures 3 to 6 are the same in all.
[0043] As an optional embodiment, after pulling the upgrade package from the cloud server according to the upgrade package information, the method also includes: verifying the upgrade package; if the verification fails, providing feedback to the cloud server, re-downloading the upgrade information, and pulling the upgrade package; if the verification passes, notifying the corresponding device to upgrade according to the device information.
[0044] like Figure 2 As shown in the figure, after ECC downloads the upgrade package from the cloud server, it verifies the integrity and legality of the downloaded upgrade package file to ensure the accuracy and security of the upgrade package, which guarantees the subsequent batch distribution.
[0045] As an optional embodiment, upgrading the device corresponding to the device information notification includes: sending a start upgrade instruction to the inverter corresponding to the device information, wherein the inverter initializes the device after receiving the start upgrade instruction, and after the initialization is completed, feeds back a notification message that it is ready to receive the upgrade package; based on the inverter that receives the notification message, determining the initialization process of multiple inverters of the device information; and feeding back the initialization process to the cloud server.
[0046] Figure 3 : is a timing diagram of the inverter initialization of the embodiment of the present invention, such as Figure 3 As shown, when notifying the corresponding device to initialize in preparation for upgrading, the ECC sends a start upgrading instruction to the inverter corresponding to the device information. Figure 3 It can be forwarded through ECC_PLC.
[0047] After receiving the upgrade start command, the inverter initializes the device and sends a notification message that it is ready to receive the upgrade package after the initialization is completed. Figure 3 The notification message is forwarded to ECC through ECC_PLC. When ECC receives the notification message of a certain inverter, it can be clear that the initialization of the inverter is completed.
[0048] Since there are probably multiple inverters that need to be upgraded, the time for receiving different inverters is different. ECC can determine the initialization process of multiple inverters in device information based on the inverters that received the notification message. Initialization process (%) = number of inverters that received the notification message / total number of inverters that need to be upgraded.
[0049] After the initialization calculation is completed, ECC can feedback the initialization process to the cloud server through the MQTT protocol.
[0050] As an optional embodiment, multiple partial files are broadcasted in batches to the inverter that needs to be upgraded, including: broadcasting partial files to the inverter that needs to be upgraded in batches at a preset frequency, wherein an integer number of partial files are broadcast in each batch, and after the inverter receives the partial files, an abnormality check is performed, and if the check passes, the partial files are assembled into an upgrade package, and if the check fails, the abnormal partial files are replied; after the partial files of the upgrade package are broadcast, the step of receiving the inverter's reply message for the missing partial files is executed.
[0051] Figure 4 : is a timing diagram of the broadcast transmission upgrade package of the embodiment created by the present invention, such as Figure 4 As shown, ECC broadcasts partial files to the inverters that need to be upgraded in batches according to a preset frequency. An integer number of partial files are broadcast in each batch to avoid further segmentation of the partial files during transmission, thereby ensuring the accuracy of partial file transmission.
[0052] Figure 3 After receiving the partial files, the inverter directly writes the upgrade package, which means that the partial files are safe and complete by default. In other embodiments, the inverter can perform an abnormality check after receiving the partial files. If the check passes, the partial files are assembled into an upgrade package. If the check fails, the abnormal partial files are replied to ensure the integrity and accuracy of the partial files and the upgrade package.
[0053] The above-mentioned abnormality check can be one of the above-mentioned completion check, security check, bitmap detection, etc. After the test is passed, it can be assembled into an upgrade package, and the part of the file with the detection abnormality can be fed back through a reply message. The above-mentioned detection abnormality corresponds to the above-mentioned detection method, that is, the completion check fails, the security check fails, and the bitmap detection is missing.
[0054] After ECC broadcasts some files of the upgrade package in each batch, it can report the broadcast progress of the upgrade package to the cloud server through the MQTT protocol. The broadcast progress is actually the ratio of the distributed partial files to the total partial files. After the partial files of the upgrade package are distributed as a whole through cyclic broadcast, the step of receiving the inverter's reply message for the missing partial files is executed.
[0055] As an optional embodiment, after broadcasting partial files of the upgrade package and before executing the step of receiving the inverter's reply message for the missing partial files, the step includes: querying a bitmap through multiple partial files of the upgrade package to obtain bitmap information of the multiple partial files, wherein the bitmap information includes information for characterizing whether the multiple partial files are missing; sending the bitmap information to the inverter that receives the upgrade package, wherein after receiving the bitmap information, the inverter processes the bitmap information according to the received partial files to obtain a reply bitmap message, wherein the reply bitmap message characterizes whether the partial files received by the inverter are missing.
[0056] Figure 5 It is a timing diagram of querying the bitmap re-issuing the upgrade package according to the embodiment of the present invention, such as Figure 5 As shown, when verifying some files based on bitmap detection, the inverter needs to first obtain accurate bitmap information of some files of the upgrade package, and use the bitmap information to perform abnormality detection.
[0057] ECC queries the bitmap to obtain bitmap information of the multiple partial files based on the multiple partial files of the upgrade package. The bitmap information records all the partial files of the upgrade package in a bitmap manner. By searching based on the bitmap information, it can be determined whether there is a missing file and which partial file is missing.
[0058] ECC sends the bitmap information to the inverter that receives the upgrade package. After receiving the bitmap information, the inverter processes the bitmap information according to the received partial files to obtain a reply bitmap message. The reply bitmap message indicates whether the partial files received by the inverter are missing.
[0059] It should be noted that the above Figure 5 In the process, the contents sent by ECC to the inverter are all forwarded by ECC_PLC. The information returned by the inverter to ECC is also forwarded by ECC_PLC.
[0060] As an optional embodiment, receiving a reply message from the inverter for missing partial files includes: receiving a reply bitmap message, determining whether the corresponding inverter is missing partial files and identifying the missing partial files if the partial files are missing according to the reply bitmap message; responding to the reply message and resending the missing partial files to the corresponding inverter includes: when determining that the partial files are missing, obtaining the corresponding partial files and generating a missing package according to the missing partial file identifier; sending the missing package to the corresponding inverter, wherein after receiving the missing package, the inverter writes the corresponding partial files into an upgrade package and feeds back the reception completion information of the upgrade package; determining the sending progress of the missing package according to the inverter that receives the reception completion information and all inverters that receive the upgrade package, and feeding back the progress to the cloud server.
[0061] like Figure 5As shown, after determining the reply bitmap message of each inverter, the missing packet is resent to the corresponding inverter. Specifically, after receiving the reply bitmap message of the inverter, the ECC can determine whether the corresponding inverter is missing some files according to the reply bitmap message, and which files are missing if some files are missing.
[0062] When determining that a partial file is missing, the ECC obtains the corresponding partial file according to the missing partial file identifier, generates a missing packet, and sends the missing packet to the corresponding inverter.
[0063] After the inverter receives the missing package, it writes the corresponding part of the file into the upgrade package after abnormal detection, and feedbacks the reception completion information of the upgrade package. After the ECC receives the reception completion information of the inverter, it can determine that the inverter has completed the reception of the upgrade package.
[0064] Similarly, since the number of inverters that ECC is responsible for upgrading is usually multiple, the sending progress of the missing packets can be determined based on the inverters that have received the reception completion information and all the inverters that have received the upgrade packages. The sending progress is the ratio of the number of inverters that have received the reception completion information to the number of inverters that need to be upgraded.
[0065] like Figure 5 As shown in the figure, after the sending progress calculation is completed, ECC feeds back the sending progress to the cloud server cloud through the MQTT protocol so as to provide real-time feedback to the user.
[0066] As an optional embodiment, after responding to the reply message and resending the missing part of the files to the corresponding inverter, the method also includes: sending an upgrade result query request to the upgraded inverter, wherein after the inverter receives the missing part of the files, it completes the reception of the upgrade package, and upgrades according to the upgrade package. After the upgrade is completed, it responds to the upgrade result query request and feeds back the upgrade result; receives the upgrade result returned in response to the upgrade result query request; determines the upgrade process based on the inverter for which the upgrade result is successful and the inverter that needs to be upgraded, and feeds back to the cloud server.
[0067] Figure 6 It is a timing diagram of the query upgrade result of the embodiment created by the present invention, such as Figure 6 As shown, the inverter will be upgraded according to the upgrade package, and ECC can send an upgrade result query request to the upgraded inverter. Figure 6 Forwarding is performed through ECC_PLC.
[0068] After the inverter receives the query request, it may not be upgraded completely. You can wait for the inverter to complete the upgrade according to the upgrade package, and then respond to the upgrade result query request and feedback the upgrade result. Figure 6The upgrade result may include upgrade success or upgrade failure.
[0069] The ECC receives the upgrade result returned in response to the upgrade result query request. If the upgrade is successful, it determines that the corresponding inverter has been upgraded. If it fails, the upgrade package can be re-issued to the inverter separately for upgrading until the upgrade is successful or the number of cycles reaches the preset number.
[0070] Similarly, since the number of inverters that ECC is responsible for upgrading is usually multiple, ECC determines the upgrade progress based on the inverters that have received successful upgrade results and the inverters that need to be upgraded. The upgrade progress is the ratio of the number of inverters that have received successful upgrade results to the total number of inverters that need to be upgraded. Figure 6 As shown, ECC feeds back the upgrade process to the cloud server through the MQTT protocol so as to provide real-time feedback to users.
[0071] Based on the batch upgrade method of the inverter system provided by the embodiment of the invention, the embodiment of the invention further provides a batch upgrade device of the inverter system, which is applied to batch upgrade of multiple inverters of the inverter system. The batch upgrade device of the inverter system includes: A segmentation module is used to segment the upgrade package of the inverter to obtain multiple partial files; a broadcast module is connected to the above segmentation module and is used to broadcast the multiple partial files in batches to the inverter that needs to be upgraded, wherein the inverter detects and assembles the multiple partial files into an upgrade package after receiving the multiple partial files, and feeds back the partial files with abnormal detection through a reply message; a receiving module is connected to the above broadcast module and is used to receive the inverter's reply message for the missing partial files; a resending module is connected to the above receiving module and is used to respond to the reply message and resend the missing partial files to the corresponding inverter, wherein the inverter writes the missing partial files into the upgrade package and uses the upgrade package for upgrading.
[0072] The batch upgrade device for the above-mentioned inverter system provided by the embodiment created by the present invention divides the upgrade package with a larger data volume into partial files with smaller data volume, transmits the partial files in batches by broadcasting, and detects the reply message of the partial files through the inverter, reissues the missing partial files, and sends the upgrade packages to the inverter in batches, thereby batch issuing the upgrade packages to multiple inverters in the inverter system, so that the inverters that need to be upgraded can be upgraded in parallel, thereby greatly shortening the upgrade time of multiple inverters in the inverter system, and greatly reducing the time-consuming technical effect of upgrading multiple inverters of the inverter system.
[0073] The embodiments of the present invention also provide a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiments of the present invention.
[0074] The embodiments of the present invention further provide a computer program product, including a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method of the embodiments of the present invention.
[0075] The embodiment of the invention also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform the method of the embodiment of the invention when executed by the at least one processor.
[0076] refer to Figure 7 , a block diagram of an electronic device that can be used as a server or client of an embodiment of the invention will now be described, which is an example of hardware devices that can be applied to various aspects of the invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or required herein.
[0077] like Figure 7 As shown, the electronic device includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 to a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0078] Multiple components in the electronic device are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 can be any type of device that can input information to the electronic device, and the input unit 706 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device. The output unit 707 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 can include but is not limited to a disk, an optical disk. The communication unit 709 allows the electronic device to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, and / or a wireless communication transceiver, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0079] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a CPU, a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing units, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the method embodiments created by the present invention may be implemented as a computer program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via a ROM 702 and / or a communication unit 709. In some embodiments, the computing unit 701 may be configured to perform the above-described method in any other appropriate manner (e.g., by means of firmware).
[0080] The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the computer program, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0081] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable signal medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, or infrared systems, devices, or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0082] It should be noted that the term "including" and its variations used in the embodiments of the present invention are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The modifications of "one" and "multiple" mentioned in the embodiments of the present invention are illustrative and not restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0083] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0084] The various steps described in the method implementation methods provided by the embodiments of the present invention can be performed in different orders and / or in parallel. In addition, the method implementation methods may include additional steps and / or omit the steps shown. The scope of protection of the present invention is not limited in this respect.
[0085] The term "embodiment" in this specification refers to specific features, structures or characteristics described in conjunction with the embodiment that can be included in at least one embodiment of the invention. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. The various embodiments in this specification are described in a related manner, and the same and similar parts between the various embodiments refer to each other. In particular, for the device, equipment, and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment.
[0086] The above-described embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.
Claims
1. A batch upgrade method for an inverter system, characterized in that: include: Split the inverter upgrade package into multiple partial files; The plurality of partial files are broadcasted and transmitted to the inverters that need to be upgraded in batches by broadcasting, wherein after receiving the plurality of partial files, the inverter detects and assembles them into the upgrade package, and feeds back the partial files with abnormal detection through a reply message; Receive the inverter's reply message for the missing part of the file; In response to the reply message, the missing part of the file is resent to the corresponding inverter, wherein the inverter writes the missing part of the file into the upgrade package and uses the upgrade package to perform the upgrade.
2. The method according to claim 1, characterized in that Before dividing the inverter upgrade package to obtain multiple partial files, the method further includes: Download and parse the upgrade information from the cloud server, wherein the upgrade information includes the device information to be upgraded and the upgrade package information for pulling the upgrade package; Pull the upgrade package from the cloud server according to the upgrade package information; During the process of pulling the upgrade package, the download status of the upgrade package is fed back to the cloud server, wherein the download status includes whether the download has started, whether the download has been completed, and the degree of download completion.
3. The method according to claim 2, characterized in that After pulling the upgrade package from the cloud server according to the upgrade package information, the method further includes: Verifying the upgrade package; If the verification fails, feedback is sent to the cloud server, and the upgrade information is downloaded again to pull the upgrade package; If the verification is passed, the corresponding device is notified to upgrade according to the device information.
4. The method according to claim 2, characterized in that: Notifying the corresponding device to upgrade according to the device information includes: Sending a start upgrade instruction to the inverter corresponding to the device information, wherein the inverter performs device initialization after receiving the start upgrade instruction, and feeds back a notification message of being ready to receive the upgrade package after the initialization is completed; Determine the initialization process of multiple inverters of the device information according to the inverter receiving the notification message; Feedback the initialization process to the cloud server.
5. The method according to claim 1, characterized in that The plurality of partial files are broadcasted and transmitted to the inverters that need to be upgraded in batches by broadcasting, including: Broadcast the partial files to the inverters that need to be upgraded in batches according to a preset frequency, wherein an integer number of the partial files are broadcast in each batch. After receiving the partial files, the inverter performs an abnormality check. If the check passes, the partial files are assembled into the upgrade package. If the check fails, the abnormal partial files are replied; After broadcasting some files of the upgrade package, a step of receiving a reply message from the inverter for the missing some files is performed.
6. The method according to claim 1, characterized in that After broadcasting some files of the upgrade package, before executing the step of receiving a reply message from the inverter for the missing some files, the method includes: By querying a bitmap through the multiple partial files of the upgrade package, bitmap information of the multiple partial files is obtained, wherein the bitmap information includes information for indicating whether the multiple partial files are missing; The bitmap information is sent to an inverter that receives the upgrade package, wherein after receiving the bitmap information, the inverter processes the bitmap information according to the received partial files to obtain a reply bitmap message, wherein the reply bitmap message indicates whether the partial files received by the inverter are missing.
7. The method according to claim 6, characterized in that The receiving inverter's reply message for the missing files includes: Receive the reply bitmap message, and determine whether the corresponding inverter is missing some files according to the reply bitmap message, and the missing part file identifiers if some files are missing; In response to the reply message, resending the missing part of the file to the corresponding inverter includes: When it is determined that some files are missing, the corresponding partial files are obtained according to the identifiers of the missing partial files, and a missing package is generated; Send the missing package to the corresponding inverter, wherein after receiving the missing package, the inverter writes the corresponding partial file into the upgrade package and feeds back the reception completion information of the upgrade package; According to the inverters that have received the reception completion information and all the inverters that have received the upgrade package, the sending progress of the missing package is determined and fed back to the cloud server.
8. The method according to claim 1, characterized in that After responding to the reply message and resending the missing partial file to the corresponding inverter, the method further includes: Send an upgrade result query request to the upgraded inverter, wherein the inverter completes receiving the upgrade package after receiving the missing part of the files, performs the upgrade according to the upgrade package, and after the upgrade is completed, responds to the upgrade result query request and feeds back the upgrade result; Receiving an upgrade result returned in response to the upgrade result query request; Based on the inverters whose upgrade results are successful and the inverters that need to be upgraded, the upgrade progress is determined and fed back to the cloud server.
9. An electronic device, comprising: A processor and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 8.
10. A non-transitory machine-readable medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.