CN115220759A - Photovoltaic cell firmware online upgrading method and device and storage medium - Google Patents

Photovoltaic cell firmware online upgrading method and device and storage medium Download PDF

Info

Publication number
CN115220759A
CN115220759A CN202210751632.6A CN202210751632A CN115220759A CN 115220759 A CN115220759 A CN 115220759A CN 202210751632 A CN202210751632 A CN 202210751632A CN 115220759 A CN115220759 A CN 115220759A
Authority
CN
China
Prior art keywords
firmware
upgrading
mainboard
data
firmware data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210751632.6A
Other languages
Chinese (zh)
Inventor
曾嘉爵
卢雪明
欧阳家淦
李云
张春明
王平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Sanjing Electric Co Ltd
Original Assignee
Guangzhou Sanjing Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Sanjing Electric Co Ltd filed Critical Guangzhou Sanjing Electric Co Ltd
Priority to CN202210751632.6A priority Critical patent/CN115220759A/en
Publication of CN115220759A publication Critical patent/CN115220759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a photovoltaic cell firmware online upgrading method, a photovoltaic cell firmware online upgrading device and a storage medium, wherein the method comprises the following steps: acquiring merged firmware data; determining the quantity and the attributes of the firmware through a preset rule according to the merged firmware data; judging the upgrading of the mainboard according to the firmware attribute; judging and confirming the judgment result of upgrading according to the upgrading judgment of the mainboard, backing up the firmware data of the mainboard, and updating the mainboard according to the preset updating condition; sequentially carrying out slave board upgrading judgment on the plurality of slave boards according to the firmware attributes; according to the judgment result of the target slave board upgrading judgment, backing up target slave board firmware data from the plurality of slave board firmware data, and updating the target slave board through the target slave board firmware data. According to the scheme for upgrading the backup firmware data, the combined firmware data is judged and then the backup upgrading is carried out, so that the upgrading stability is ensured, the normal operation of a battery system in the upgrading process can be ensured, and the method can be widely applied to the technical field of photovoltaic battery upgrading.

Description

Photovoltaic cell firmware online upgrading method and device and storage medium
Technical Field
The invention relates to the technical field of photovoltaic cell upgrading, in particular to a photovoltaic cell firmware online upgrading method, a photovoltaic cell firmware online upgrading device and a storage medium.
Background
As the use of photovoltaic cells is more and more common, more and more households start to install energy storage systems, and because the installation target individuals are households, each energy storage system cannot be concentrated in a certain area; based on the above situation, if the system needs to upgrade the firmware and there is no online upgrade, the workload and the maintenance cost of the maintenance personnel can be increased; therefore, the firmware online upgrading technology must be developed to make up for the disadvantages of the distributed energy storage system.
In the traditional upgrading mode, local upgrading is used, an upgrading link is short and is not prone to errors, and upgrading reliability can be guaranteed; if the firmware is used for online upgrading, the upgrading link transmits the firmware to the local through WiFi or 4G, the upgrading link is long, no professional is on site, and the data transmission reliability is poor; according to the upgrading scheme in the prior art, when an upgrading instruction is received, the photovoltaic cell system enters the BootLoader and erases an original APP, the stage of receiving upgrading data is entered, the data receiving is completed, the integrity of firmware is verified, if the verification is passed, the upgrading of the APP is skipped, and otherwise, the upgrading is kept in the BootLoader for waiting for the next upgrading. Therefore, uncontrollable factors exist in the upgrading process, and if upgrading failure is always left in the BootLoader, the risk of overcharge or overdischarge of the battery system can be caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide an online upgrade method, an online upgrade device, and a storage medium for firmware of a photovoltaic cell, which can effectively solve the upgrade problem of firmware of a distributed photovoltaic energy storage system, and ensure normal operation of a battery system.
In one aspect, an embodiment of the present invention provides an online upgrade method for a photovoltaic cell firmware, including:
acquiring merged firmware data; the merged firmware data comprises mainboard firmware data and a plurality of slave firmware data;
determining the quantity and the attributes of the firmware through a preset rule according to the merged firmware data; wherein the firmware attributes comprise firmware attributes of respective firmware;
judging the upgrading of the mainboard according to the firmware attribute;
judging whether the upgrading is confirmed according to the upgrading judgment of the mainboard, backing up the firmware data of the mainboard, and updating the mainboard according to a preset updating condition;
sequentially carrying out slave board upgrading judgment on the slave boards according to the firmware attributes;
according to the judgment result of the target slave plate upgrading confirmation, backing up target slave plate firmware data from a plurality of slave plate firmware data, and updating the target slave plate through the target slave plate firmware data.
Optionally, the acquiring merged firmware data includes:
and acquiring merged firmware data of the inverter through the mainboard backup flash.
Optionally, the determining, according to the merged firmware data, the firmware quantity and the firmware attributes through a preset rule includes:
determining the number of the firmware and the attribute of the firmware through a firmware merging rule according to the firmware merging data;
wherein determining the firmware attributes by the merged firmware rule comprises:
determining a firmware type;
and, determining a firmware storage offset address;
and, determining a firmware entry address;
and, determining a firmware length;
and, determining the firmware CRC.
Optionally, the determining of upgrading the motherboard according to the firmware attribute includes:
judging whether the version of the mainboard firmware data in the merged firmware data is consistent with the version of the running firmware data of the mainboard or not according to the firmware attribute;
when the versions are consistent, obtaining a judgment result for confirming upgrading; otherwise, obtaining the judgment result waiting for upgrading.
Optionally, the performing, according to the firmware attribute, motherboard upgrade determination further includes:
judging whether the mainboard has firmware running data or not;
and when the mainboard does not have the running firmware data, obtaining a judgment result of confirming the upgrading.
Optionally, the determining, determining and updating the result of the upgrade according to the motherboard upgrade determination, backing up the motherboard firmware data, and updating the motherboard according to a preset update condition includes:
obtaining the firmware data of the mainboard, copying the firmware data to MCUflash, and judging the integrity of the firmware according to the judgment result of judging and confirming the upgrading of the mainboard;
when the mainboard firmware data is confirmed to be complete, updating the mainboard according to a preset updating condition;
the preset updating condition comprises system restart, system standby or the condition that the system receives a restart instruction from the inverter.
Optionally, the sequentially performing slave board upgrade judgment on the slave boards according to the firmware attributes includes:
taking the slave plate with the initial serial number as a target slave plate;
judging whether the version of the slave board firmware data in the merged firmware data is consistent with the version of the running firmware data of the target slave board or not according to the firmware attribute;
when the versions are consistent, obtaining a judgment result for confirming upgrading; otherwise, obtaining a judgment result waiting for upgrading;
and taking the slave plate with the sequence number added by one as a target slave plate, and then returning to the step of judging whether the version of the slave plate firmware data in the merged firmware data is consistent with the version of the running firmware data of the target slave plate according to the firmware attribute until all slave plates finish upgrading judgment.
On the other hand, an embodiment of the present invention provides an online upgrade device for a photovoltaic cell firmware, including:
a first module for obtaining merged firmware data; the merged firmware data comprises mainboard firmware data and a plurality of slave firmware data;
the second module is used for determining the number and the attributes of the firmware through a preset rule according to the merged firmware data; wherein the firmware attributes comprise firmware attributes of respective firmware;
the third module is used for carrying out mainboard upgrading judgment according to the firmware attributes;
the fourth module is used for backing up the mainboard firmware data according to the judgment result of the mainboard upgrading judgment confirmation upgrading and updating the mainboard according to the preset updating condition;
a fifth module, configured to sequentially perform slave board upgrade determination on the slave boards according to the firmware attributes;
a sixth module, configured to backup target slave board firmware data from a plurality of slave board firmware data according to a determination result of confirming the upgrade of the target slave board determined by the slave board upgrade, and update the target slave board through the target slave board firmware data.
In another aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing programs;
the processor executes the program to implement the method as described above.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program, and the program is executed by a processor to implement the method as described above.
The embodiment of the invention also discloses a computer program product or a computer program, which comprises computer instructions, and the computer instructions are stored in a computer readable storage medium. The computer instructions may be read by a processor of a computer device from a computer-readable storage medium, and the computer instructions executed by the processor cause the computer device to perform the foregoing method.
The embodiment of the invention firstly obtains the merged firmware data; the merged firmware data comprises main board firmware data and a plurality of slave board firmware data; determining the number of the firmware and the attributes of the firmware through a preset rule according to the merged firmware data; wherein the firmware attributes comprise firmware attributes of respective firmware; judging the upgrading of the mainboard according to the firmware attribute; judging whether the upgrading is confirmed according to the upgrading judgment of the mainboard, backing up the firmware data of the mainboard, and updating the mainboard according to a preset updating condition; sequentially carrying out slave board upgrading judgment on the slave boards according to the firmware attributes; according to the judgment result of the target slave plate upgrading confirmation, backing up target slave plate firmware data from a plurality of slave plate firmware data, and updating the target slave plate through the target slave plate firmware data. In order to make up the disadvantage of poor reliability of firmware online upgrade transmission, the invention judges the merged firmware data and then performs backup upgrade through the scheme of updating the backup firmware data so as to ensure the stability of upgrade and ensure the normal operation of a battery system in the upgrade process.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating the overall steps provided by an embodiment of the present invention;
FIG. 2 is a framework diagram of online upgrade of battery firmware provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of an upgrade flow of a master/slave board according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
To solve the problems in the prior art, in one aspect, an embodiment of the present invention provides an online upgrade method for a photovoltaic cell firmware, with reference to fig. 1, including:
acquiring merged firmware data; the merged firmware data comprises mainboard firmware data and a plurality of slave firmware data;
determining the number of the firmware and the attributes of the firmware through a preset rule according to the merged firmware data; wherein the firmware attributes comprise firmware attributes of respective firmware;
judging the upgrading of the mainboard according to the firmware attribute;
judging whether the upgrading is confirmed according to the upgrading judgment of the mainboard, backing up the firmware data of the mainboard, and updating the mainboard according to a preset updating condition;
sequentially carrying out slave board upgrading judgment on the slave boards according to the firmware attributes;
and backing up target slave board firmware data from a plurality of slave board firmware data according to the judgment result of the confirmation of the upgrade of the target slave board judged by the slave board upgrade, and updating the target slave board through the target slave board firmware data.
Optionally, the acquiring merged firmware data includes:
and acquiring merged firmware data of the inverter through the mainboard backup flash.
Optionally, the determining, according to the merged firmware data, the firmware quantity and the firmware attributes through a preset rule includes:
determining the quantity and the attributes of the firmware through a firmware merging rule according to the merged firmware data;
wherein determining the firmware attributes by the merged firmware rule comprises:
determining a firmware type;
and, determining a firmware storage offset address;
and, determining a firmware entry address;
and, determining a firmware length;
and, determining the firmware CRC.
Optionally, the determining of upgrading the motherboard according to the firmware attribute includes:
judging whether the version of the mainboard firmware data in the merged firmware data is consistent with the version of the running firmware data of the mainboard or not according to the firmware attribute;
when the versions are consistent, obtaining a judgment result for confirming upgrading; otherwise, obtaining the judgment result waiting for upgrading.
Optionally, the determining, according to the firmware attribute, the upgrading of the motherboard further includes:
judging whether the mainboard has firmware running data or not;
and when the mainboard does not have the running firmware data, obtaining a judgment result of confirming the upgrading.
Optionally, the determining, according to the motherboard upgrade determination, an upgrade determination result, backing up the motherboard firmware data, and performing motherboard update according to a preset update condition includes:
obtaining the firmware data of the mainboard, copying the firmware data to MCUflash according to the judgment result of judging and confirming the upgrading of the mainboard, and judging and processing the integrity of the firmware;
when the mainboard firmware data is confirmed to be complete, updating the mainboard according to a preset updating condition;
the preset updating condition comprises system restart, system standby or system receiving restart instructions from an inverter.
Optionally, the sequentially performing slave board upgrade judgment on the slave boards according to the firmware attributes includes:
taking the slave plate with the initial serial number as a target slave plate;
judging whether the version of the slave board firmware data in the merged firmware data is consistent with the version of the running firmware data of the target slave board or not according to the firmware attribute;
when the versions are consistent, obtaining a judgment result for confirming upgrading; otherwise, obtaining a judgment result waiting for upgrading;
and taking the slave plate with the sequence number added by one as a target slave plate, and then returning to the step of judging whether the version of the slave plate firmware data in the merged firmware data is consistent with the version of the running firmware data of the target slave plate according to the firmware attribute until all slave plates finish upgrading judgment.
On the other hand, an embodiment of the present invention provides an online upgrade device for a photovoltaic cell firmware, including:
a first module for obtaining merged firmware data; the merged firmware data comprises main board firmware data and a plurality of slave board firmware data;
the second module is used for determining the number and the attributes of the firmware through a preset rule according to the merged firmware data; wherein the firmware attributes comprise firmware attributes of respective firmware;
the third module is used for carrying out mainboard upgrading judgment according to the firmware attributes;
the fourth module is used for backing up the mainboard firmware data according to the judgment result of the mainboard upgrading judgment confirmation upgrading and updating the mainboard according to the preset updating condition;
the fifth module is used for sequentially carrying out slave board upgrading judgment on the slave boards according to the firmware attributes;
a sixth module, configured to backup target slave board firmware data from the plurality of slave board firmware data according to a determination result of confirmation of upgrade of the target slave board determined by the slave board upgrade, and update the target slave board through the target slave board firmware data.
The content of the method embodiment of the invention is all applicable to the device embodiment, the functions specifically realized by the device embodiment are the same as those of the method embodiment, and the beneficial effects achieved by the device embodiment are also the same as those achieved by the method.
Another aspect of the embodiments of the present invention further provides an electronic device, including a processor and a memory;
the memory is used for storing programs;
the processor executes the program to implement the method as before.
The contents of the embodiment of the method of the present invention are all applicable to the embodiment of the electronic device, the functions specifically implemented by the embodiment of the electronic device are the same as those of the embodiment of the method, and the beneficial effects achieved by the embodiment of the electronic device are also the same as those achieved by the method.
Yet another aspect of the embodiments of the present invention provides a computer-readable storage medium storing a program, the program being executed by a processor to implement the method as above.
The contents of the embodiment of the method of the present invention are all applicable to the embodiment of the computer-readable storage medium, the functions specifically implemented by the embodiment of the computer-readable storage medium are the same as those of the embodiment of the method described above, and the advantageous effects achieved by the embodiment of the computer-readable storage medium are also the same as those achieved by the method described above.
The embodiment of the invention also discloses a computer program product or a computer program, which comprises computer instructions, and the computer instructions are stored in a computer readable storage medium. The computer instructions may be read by a processor of a computer device from a computer-readable storage medium, and the computer instructions executed by the processor cause the computer device to perform the foregoing method.
The implementation principle of the online upgrade of the photovoltaic cell firmware is described in detail below:
aiming at the problems in the prior art, in order to make up the disadvantage of poor reliability of on-line upgrading transmission of firmware, the photovoltaic cell uses a backup upgrading technology, the whole firmware is received by the photovoltaic cell for integrity verification, and backup upgrading is carried out after no abnormity is verified so as to ensure the upgrading stability. Therefore, the problem of firmware upgrading of the distributed photovoltaic energy storage system is solved, and the introduction of the online firmware upgrading and backup technology is very important.
The schematic frame diagram of the invention is shown in fig. 2, the photovoltaic system firmware is issued to the remote module from the background through WiFi or 4G, after the module receives the data, the whole merged firmware data is issued to the inverter and then transmitted to the main board, after the firmware is issued, the BMS performs integrity check on the whole merged firmware and identifies the number and type of the firmware in the merged firmware, and then copies or issues each firmware.
The specific upgrade flow is shown in fig. 3, and includes the following steps:
step 1: the battery system mainboard interacts with the inverter, and the whole merged firmware is written into a mainboard backup flash; the mainboard judges the number of the firmware of the merged firmware according to the rule of the merged firmware and takes out the firmware attribute of each firmware, and the rule of the merged firmware is shown in table 1:
TABLE 1
Figure BDA0003721268310000071
And 2, step: the mainboard judges whether the firmware of the mainboard exists or not and judges whether the firmware versions are consistent or not according to the attributes of the firmware acquired in the step 1; if the mainboard firmware exists and the version numbers are inconsistent, copying the mainboard firmware to the MCUflash; after the MCU judges the integrity of the firmware, the MCU waits for the opportunity to copy and update; the update conditions are as follows:
1. and (3) restarting the system: after the system is restarted, automatically identifying whether firmware needs to be updated or not by the IAP, copying data of the backup MCUflash to an execution area and verifying the integrity of the firmware if the firmware needs to be updated, and jumping to an APP to finish data updating if the firmware is completely verified; otherwise, data copying is carried out again;
2. under the condition that the system is in a standby state, the system can restart by itself to complete firmware updating;
3. the system can receive an inverter restart instruction for firmware update.
And step 3: the method comprises the steps that a master board detects whether slave board firmware exists and whether the slave board firmware is consistent with the current slave board version number, if yes and the versions are inconsistent, the master board initiates an upgrading process and issues the slave board firmware to a slave board MCU backup flash through a CAN bus; the slave plate carries out integrity check on the firmware of the backup flash, and if the integrity check of the firmware is passed, the slave plate resets to copy the firmware;
and 4, step 4: and (4) continuously detecting whether the firmware versions are completely updated according to the step (3).
In summary, compared with the prior art, the technical scheme of the invention has at least the following beneficial effects:
1. from the aspect of battery operation stability, the upgrading data can be received under the condition of APP operation without entering a BootLoader, the battery system can be ensured to be always in a controlled state in the data receiving process, and the time of staying in the BootLoader is short only under the condition of resetting and copying data;
2. receiving data under the APP operation condition from a data link receiving layer, if data interaction is abnormal, enabling the battery system to still normally operate, and waiting for initiating an upgrading task next time;
3. from the background operation layer, the firmware merging technology supports that a plurality of firmware are merged together at one time and are issued to the battery system, and the inside of the battery system is processed, so that the phenomenon that the background initiates an upgrading task for many times is reduced.
In alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flow charts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed, and in which sub-operations described as part of larger operations are performed independently.
Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise indicated to the contrary, one or more of the described functions and/or features may be integrated in a single physical device and/or software module, or one or more functions and/or features may be implemented in separate physical devices or software modules. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary for an understanding of the present invention. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be understood within the ordinary skill of an engineer, given the nature, function, and internal relationship of the modules. Accordingly, those skilled in the art can, using ordinary skill, practice the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative of and not intended to limit the scope of the invention, which is defined by the appended claims and their full scope of equivalents.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An online upgrading method for firmware of a photovoltaic cell is characterized by comprising the following steps:
acquiring merged firmware data; the merged firmware data comprises mainboard firmware data and a plurality of slave firmware data;
determining the quantity and the attributes of the firmware through a preset rule according to the merged firmware data; wherein the firmware attributes comprise firmware attributes of respective firmware;
judging the upgrading of the mainboard according to the firmware attribute;
judging whether the upgrading is confirmed according to the upgrading judgment of the mainboard, backing up the firmware data of the mainboard, and updating the mainboard according to a preset updating condition;
sequentially carrying out slave board upgrading judgment on the slave boards according to the firmware attributes;
and backing up target slave board firmware data from a plurality of slave board firmware data according to the judgment result of the confirmation of the upgrade of the target slave board judged by the slave board upgrade, and updating the target slave board through the target slave board firmware data.
2. The method for upgrading firmware of a photovoltaic cell on line according to claim 1, wherein the acquiring merged firmware data includes:
and acquiring merged firmware data of the inverter through the mainboard backup flash.
3. The method for upgrading firmware of a photovoltaic cell on line according to claim 1, wherein the determining the number of firmware and the firmware attributes according to the merged firmware data and preset rules comprises:
determining the quantity and the attributes of the firmware through a firmware merging rule according to the merged firmware data;
wherein determining the firmware attributes by the merged firmware rule comprises:
determining a firmware type;
and, determining a firmware storage offset address;
and, determining a firmware entry address;
and, determining a firmware length;
and, determining a firmware CRC.
4. The method for upgrading firmware of a photovoltaic cell on line according to claim 1, wherein the judging of upgrading the mainboard according to the firmware attribute comprises:
judging whether the version of the mainboard firmware data in the merged firmware data is consistent with the version of the running firmware data of the mainboard or not according to the firmware attribute;
when the versions are consistent, obtaining a judgment result for confirming upgrading; otherwise, obtaining the judgment result waiting for upgrading.
5. The method for upgrading firmware of a photovoltaic cell on line according to claim 4, wherein the judging of upgrading the mainboard according to the firmware attribute further comprises:
judging whether the mainboard has firmware data to run;
and when the mainboard does not have the running firmware data, obtaining a judgment result of confirming the upgrading.
6. The method for upgrading firmware of a photovoltaic cell on line according to claim 1, wherein the step of determining the judgment result of upgrading according to the mainboard upgrading judgment, backing up the mainboard firmware data, and updating the mainboard according to preset updating conditions comprises:
obtaining the firmware data of the mainboard, copying the firmware data to MCUflash according to the judgment result of judging and confirming the upgrading of the mainboard, and judging and processing the integrity of the firmware;
when the mainboard firmware data is confirmed to be complete, updating the mainboard according to a preset updating condition;
the preset updating condition comprises system restart, system standby or the condition that the system receives a restart instruction from the inverter.
7. The method for on-line upgrading of the firmware of the photovoltaic cell according to claim 1, wherein the sequentially performing slave board upgrading judgment on the slave boards according to the firmware attributes comprises:
taking the slave plate with the initial serial number as a target slave plate;
judging whether the version of the slave board firmware data in the merged firmware data is consistent with the version of the running firmware data of the target slave board or not according to the firmware attribute;
when the versions are consistent, obtaining a judgment result for confirming upgrading; otherwise, obtaining a judgment result of waiting for upgrading;
and taking the slave plate with the serial number added by one as a target slave plate, and then returning to the step of judging whether the version of the slave plate firmware data in the merged firmware data is consistent with the version of the running firmware data of the target slave plate according to the firmware attribute until all slave plates finish upgrading judgment.
8. The utility model provides a photovoltaic cell firmware online upgrade device which characterized in that includes:
a first module for obtaining merged firmware data; the merged firmware data comprises mainboard firmware data and a plurality of slave firmware data;
the second module is used for determining the number of the firmware and the attribute of the firmware through a preset rule according to the merged firmware data; wherein the firmware attributes comprise firmware attributes of respective firmware;
the third module is used for carrying out mainboard upgrading judgment according to the firmware attributes;
the fourth module is used for judging and confirming the judgment result of upgrading according to the mainboard upgrading, backing up the mainboard firmware data and updating the mainboard according to the preset updating condition;
the fifth module is used for sequentially carrying out slave board upgrading judgment on the slave boards according to the firmware attributes;
a sixth module, configured to backup target slave board firmware data from a plurality of slave board firmware data according to a determination result of confirming the upgrade of the target slave board determined by the slave board upgrade, and update the target slave board through the target slave board firmware data.
9. An electronic device comprising a processor and a memory;
the memory is used for storing programs;
the processor executing the program realizes the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium stores a program, which is executed by a processor to implement the method according to any one of claims 1 to 7.
CN202210751632.6A 2022-06-29 2022-06-29 Photovoltaic cell firmware online upgrading method and device and storage medium Pending CN115220759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210751632.6A CN115220759A (en) 2022-06-29 2022-06-29 Photovoltaic cell firmware online upgrading method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210751632.6A CN115220759A (en) 2022-06-29 2022-06-29 Photovoltaic cell firmware online upgrading method and device and storage medium

Publications (1)

Publication Number Publication Date
CN115220759A true CN115220759A (en) 2022-10-21

Family

ID=83609396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210751632.6A Pending CN115220759A (en) 2022-06-29 2022-06-29 Photovoltaic cell firmware online upgrading method and device and storage medium

Country Status (1)

Country Link
CN (1) CN115220759A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909608A (en) * 2023-09-12 2023-10-20 深圳市首航新能源股份有限公司 Function updating method and device for battery product, battery product and energy storage system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909608A (en) * 2023-09-12 2023-10-20 深圳市首航新能源股份有限公司 Function updating method and device for battery product, battery product and energy storage system

Similar Documents

Publication Publication Date Title
CN102622280B (en) Control method and control device used for software version upgrade and based on dual file system
WO2021120887A1 (en) Online upgrade method for household appliance multi-mcu system, electronic device, and medium
US8732693B2 (en) Managing continuous software deployment
CN102289397B (en) Method and device for automatically restoring embedded system of set top box
CN103365696B (en) BIOS image file acquisition methods and device
US20180322012A1 (en) Systems and methods for detection of firmware image corruption and initiation of recovery
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN101989220A (en) Pressure testing method
CN115220759A (en) Photovoltaic cell firmware online upgrading method and device and storage medium
CN106095680A (en) A kind of out of order automated testing method of checking disk being applied to Linux
CN112099825B (en) Method, device, equipment and storage medium for upgrading component
CN104049999A (en) Automatic storage device repair system based on network and method thereof
CN105653405A (en) Fault processing method and system of U-boot
CN107908417A (en) Firmware upgrade method and electronic equipment
CN112650518A (en) DSP program on-line upgrading method
CN111209265A (en) Database switching method and terminal equipment
CN107992420B (en) Management method and system for test item
CN111090537B (en) Cluster starting method and device, electronic equipment and readable storage medium
CN113805925A (en) Online upgrading method, device, equipment and medium for distributed cluster management software
CN105824649A (en) Method and device for determining whether installation of driver application program is successful and electronic equipment
CN109254791A (en) Develop management method, computer readable storage medium and the terminal device of data
CN112612498A (en) Embedded equipment upgrading method and embedded equipment
CN107918574A (en) A kind of method of inspection based on test hardware information under Redhat
US11334419B1 (en) Information handling system fault analysis with remote remediation file system
CN116225832A (en) Automatic detection method, storage medium and equipment for automatic deployment of database cluster

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination