CN-120447935-B - Method and system for upgrading PCS firmware through collector
Abstract
The invention discloses a method and a system for upgrading PCS firmware through a collector, which relate to the technical field of firmware upgrading, and comprise the steps of obtaining an upgrade protocol document of a PCS, writing an upgrade program in a PCS cloud upgrade service platform according to the upgrade protocol document, uploading the PCS firmware to the PCS cloud upgrade service platform through a PCS firmware management module, designating the upgrade program to be used, sending an upgrade command to the collector through the PCS cloud upgrade service platform, downloading the PCS firmware and the upgrade program to a local storage space of the collector through a firmware upgrade control module, using an upgrade program interpreter to run the upgrade program through the upgrade command, completing PCS firmware upgrading, exiting the upgrade process of the collector, rapidly developing the PCS firmware upgrade program under the condition of not updating the collector firmware, and jointly completing remote PCS upgrading through cooperation of the collector and the PCS cloud upgrade service platform.
Inventors
- ZHANG KE
- ZHANG YUHANG
Assignees
- 上海汉枫电子科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20250711
Claims (7)
- 1. The method for upgrading PCS firmware through the collector comprises a PCS cloud upgrade service platform and the collector connected with the PCS cloud upgrade service platform, wherein the PCS cloud upgrade service platform comprises a PCS firmware management module, and is characterized in that the collector comprises an upgrade program interpreter and a firmware upgrade control module, and further comprises the following steps: Acquiring an upgrade protocol document of a PCS (personal communications System), writing an upgrade program on a PCS cloud upgrade service platform according to the upgrade protocol document, developing the upgrade program in the background, forming an upgrade program for the PCS of the same type, and uniformly managing the upgrade program on the PCS cloud upgrade service platform; uploading PCS firmware to a PCS cloud upgrade service platform through a PCS firmware management module, and designating an upgrade program to be used; sending an upgrade command to the collector through the PCS cloud upgrade service platform; Downloading PCS firmware and an upgrade program to a local storage space of a collector through a firmware upgrade control module, and operating the upgrade program through an upgrade command by using an upgrade program interpreter, wherein the working content of the collector is that the collector interacts with the upgrade program in the PCS to complete the block transmission, data verification, data error retransmission and interrupt upgrade of the PCS firmware; and finishing PCS firmware upgrading, and exiting the upgrading flow by the collector.
- 2. The method of upgrading PCS firmware by a collector in claim 1, wherein the PCS firmware management module uploads the PCS firmware to a PCS cloud upgrade service platform, and designates one or more devices to be upgraded in an upgrade program to be used.
- 3. The method of upgrading PCS firmware by a collector of claim 1 wherein the upgrading command is sent to the collector by a PCS cloud upgrade service platform, the upgrading command at least including download addresses of the PCS firmware and an upgrade program.
- 4. The method of upgrading PCS firmware by means of a collector according to claim 1, wherein the upgrading control module downloads the PCS firmware and an upgrading program to a local storage space of the collector, and the collector sets interface parameters in running the upgrading program by means of an upgrading command using an upgrading program interpreter, divides the upgrading program into a plurality of data blocks, encapsulates the data blocks and adds necessary information, and simultaneously informs the PCS of entering an upgrading mode, wherein the necessary information includes a burning position and a length of the data blocks, an offset or a serial number in the upgrading program, and verification information of data.
- 5. The method of upgrading PCS firmware by a collector in claim 4 wherein the PCS firmware upgrade is completed, the collector exits the upgrade process, the PCS is restarted after the firmware upgrade is completed, and the PCS is restored from the upgrade mode to the normal operation mode.
- 6. The method for upgrading PCS firmware by means of a collector according to claim 1, wherein the downloading of PCS firmware and an upgrade program to a local storage space of the collector by means of the firmware upgrade control module, and the running of the upgrade program by means of an upgrade command using an upgrade program interpreter, the working contents of the collector further include network speed measurement, download progress reporting, upgrade progress reporting and upgrade result reporting.
- 7. The method of upgrading PCS firmware by a collector of claim 6 wherein the upgrade results include upgrade success, upgrade failure and upgrade alarms.
Description
Method and system for upgrading PCS firmware through collector Technical Field The invention relates to the technical field of firmware upgrading, in particular to a method and a system for upgrading PCS firmware through a collector. Background Photovoltaic inverters (PCS) contain an embedded software system, which often requires software upgrades for maintenance or for adding new functionality. Generally, an upgrade process of an inverter upgrade includes steps of starting the upgrade, downloading firmware, message interaction during the upgrade, error processing, data verification, ending the upgrade, and the like. The PCS upgrading method mainly comprises the steps of on-site upgrading, downloading and upgrading new versions through a physical upgrading interface connected with the PCS, wherein the method requires maintenance personnel to go to the equipment site, is high in cost and high in maintenance personnel requirement, and the PCS is remotely upgraded through a collector connected with the PCS, but the method has high requirements on the collector, because PCS in the market is various, even PCS of the same manufacturer has various kinds, upgrading processes, communication protocols and the like are different, the collector is required to develop different firmware for each PCS, the development period is long, the versions are multiple, maintenance and after-sale service are difficult, and if the plurality of PCS upgrades are required to be supported simultaneously, the firmware codes of the collector are inevitably increased, so that the later function is increased or the increase of the new PCS upgrading function is even impossible. Disclosure of Invention In view of the above-mentioned shortcomings in the current firmware upgrading technology field, the invention provides a method and a system for upgrading PCS firmware through a collector, which can rapidly develop a PCS firmware upgrading program under the condition of not updating the collector firmware, and complete the remote upgrading of PCS together through the cooperation of the collector and a PCS cloud upgrading service platform, thereby reducing a large number of development periods and collector firmware codes and enabling maintenance and after-sale service to be simpler. In order to achieve the above purpose, the embodiment of the present invention adopts the following technical scheme: The method for upgrading PCS firmware through the collector comprises a PCS cloud upgrade service platform and the collector connected with the PCS cloud upgrade service platform, wherein the PCS cloud upgrade service platform comprises a PCS firmware management module, and the collector comprises an upgrade program interpreter and a firmware upgrade control module and further comprises the following steps: s1, acquiring an upgrade protocol document of a PCS, and writing an upgrade program on a PCS cloud upgrade service platform according to the upgrade protocol document; s2, uploading PCS firmware to a PCS cloud upgrade service platform through a PCS firmware management module, and designating an upgrade program to be used; S3, sending an upgrade command to the collector through the PCS cloud upgrade service platform; S4, downloading PCS firmware and an upgrade program to a local storage space of the collector through a firmware upgrade control module, and running the upgrade program through an upgrade program interpreter by an upgrade command; S5, finishing the updating of PCS firmware, and exiting the updating flow by the collector. According to one aspect of the invention, the upgrade protocol document of the PCS is obtained, and according to the upgrade protocol document, in writing an upgrade program in a PCS cloud upgrade service platform, development of the upgrade program is performed in the background, so that an upgrade program for the same type of PCS is formed, and unified management is performed in the PCS cloud upgrade service platform. According to one aspect of the invention, the PCS firmware is uploaded to the PCS cloud upgrade service platform by the PCS firmware management module, and the number of devices to be upgraded in the upgrade program to be used is specified to be one or more. According to one aspect of the invention, the upgrade command is sent to the collector through the PCS cloud upgrade service platform, and the upgrade command at least comprises a download address of the PCS firmware and an upgrade program. According to one aspect of the invention, the firmware upgrade control module downloads the PCS firmware and the upgrade program to the local storage space of the collector, and the collector sets interface parameters in running the upgrade program by using the upgrade program interpreter through the upgrade command, divides the upgrade program into a plurality of data blocks, encapsulates the data blocks and adds necessary information, and simultaneously informs the PCS to enter an upgrade mode, wherein the nece