A kind of firmware upgrade method and its device
Technical field
The present invention relates to photovoltaic DC-to-AC converter electricity generation system, more particularly to a kind of firmware upgrade method of photovoltaic DC-to-AC converter of light
And its installation method.
Background technology
At present, DSP control panels are generally used in photovoltaic power generation equipment, the DSP programs (firmware) of DSP control panels are generally going out
Had been cured during factory to internal FLASH.The program preserved in hardware directly can not be read or changed by user.Typically
It is not necessary to carry out updating operation to firmware, serious Bug is found that in firmware, it is also necessary to carried out by professional
Operation.Early stage firmware chip typically employs ROM designs, and its firmware code solidifies, can not changed in process of production.
With the continuous development of technology, hardware environment of the modification firmware to adapt to constantly upgrade can weigh into an urgent demand of users
Make carbon copies into programmable and erasable read-only storage EPROM (Erasable Programmable ROM), EEPROM and flash
It is adjoint and give birth to.These chips can repeat to write with a brush dipped in Chinese ink, and allow firmware to be able to change and upgrade.
Traditional firmware upgrade method is as shown in Figure 1:The DSP control chips of photovoltaic DC-to-AC converter are receiving program upgrade command
Afterwards, because in-chip FLASH space is limited, can directly wipe the code area of in-chip FLASH application program needs what is upgraded to store
Code.This method has following deficiency:
1. due to erasing application program, in transmitting procedure, inverter can not generate electricity the program of upgrading;
2. due to being remotely updating program, now program upgrading personnel are not aware that the working condition of inverter, it is possible to
Inverter is operated in unsure state, after application program is wiped, if inverter powers off, can cause the mistake of this time upgrading
Lose, until inverter re-powers, then receive the upgrading of telefile program again, this process inverter does not generate electricity;
3. file is in remote transmission, it may appear that the probability of mistake, if finding ROMPaq after application program is wiped
Mistake, it is necessary to transmit ROMPaq again, will now increase the time of program upgrading, inverter is not sent out during this period
Electricity, it result in Solar use waste of time.
Such as:In the case where baud rate is 9600bps, a transmission time of a upgrade file bag is about
30min;If first time bust this, is transmitted again for the second time, then 30min is needed again.In more than this hours, inverter
Do not generate electricity.Loss is very big for a power station or multiple power stations.
The content of the invention
To solve deficiency of the prior art, it is an object of the invention to:Reduction inverter online upgrading is provided not generate electricity
Time, improve the stability of whole program escalation process.
In order to realize the purpose of the present invention, the present invention realizes by following technical solution:
A kind of photovoltaic DC-to-AC converter, has:
DSP control panels, the control panel be additionally provided with one preserve program to be upgraded temporarily extend out FLASH.
Preferably, above-mentioned photovoltaic DC-to-AC converter, it is connected by cable network pattern with host computer.
Preferably, above-mentioned photovoltaic DC-to-AC converter, it is connected by wireless mode with host computer.
One embodiment of the present of invention additionally provides a kind of method of the upgrading of the firmware of photovoltaic DC-to-AC converter:
Methods described comprises the following steps:
Step 1:Receive the program come from host computer transmission, and the program is temporarily stored into and extended out in FLASH;
Step 2:Judge the current working condition of photovoltaic DC-to-AC converter;
Step 3:The program extended out in FLASH will be temporarily stored in, be written in internal FLASH;
Program upgrading is completed.
Preferably, after above-mentioned steps 1, it is additionally provided with the step for judging whether received program is correct.Further, on
Step is stated, using summing mode or CIC modes,
If judging, received program is correct, into step 2;
If judging, received program is incorrect, and error message is fed back into host computer.
Preferably, the current working condition of photovoltaic DC-to-AC converter is judged in step 2 above, refers to that photovoltaic DC-to-AC converter is in surely
Determine working condition;
If judging, photovoltaic DC-to-AC converter is currently located in stable working condition, i.e., into program upgrade mode;
If judging, photovoltaic DC-to-AC converter is currently located in non-stable working condition, program upgrading is fixed tentatively, until judging photovoltaic
Inverter is currently located in stable working condition, into program upgrade mode.
Further, whether steady-working state is specifically stablized in the power output for photovoltaic DC-to-AC converter, photovoltaic DC-to-AC converter
Bus voltages whether stablize.
Preferably, above-mentioned steps 3 FLASH is extended out being temporarily stored in program, before being written in internal FLASH,
The FLASH spaces of erase-slice memory storage application program first, then the program extended out in FLASH will be temporarily stored in, be written to inside
In FLASH.In the program that will be temporarily stored in extending out FLASH, also have whether program upgrades completion after being written in internal FLASH
Judgment step,
If determining program upgrading is completed, terminate;
If determining program does not upgrade completion, repeat step 3, until upgrading is completed,
Terminate.
Beneficial effect:
After program file has been received, DSP will verify to being stored in the file extended out in FLASH, if verification
Correctly, then into next step, if incorrect, the next step of program upgrading is not entered back into;It is inverse in this section of course of work
It is to generate electricity all the time to become device;After checking routine file is correct, DSP can judge the working condition of inverter if appropriate for program liter
Level, enter next program upgrade step if suitable program upgrades, reexamined after a while if unsuitable program upgrades inverse
Become device working condition.When application program of the inverter in the state for being adapted to program upgrading, then erasing in-chip FLASH, and by outside
The program for expanding FLASH writes the application area of in-chip FLASH, and upgrading is completed.
In whole program escalation process:The not generating dutation of inverter substantially reduces and drops to 2min by 30min, and significantly
Improve the stability of program on-line upgrading.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment including technology description in
The accompanying drawing needed to use, which is done, simply to be introduced, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Other deformation accompanying drawings are obtained all within protection scope of the present invention.
Fig. 1 is the flow chart of existing firmware upgrade,
Fig. 2 is the flow chart of the upgrading of the photovoltaic DC-to-AC converter of the present invention,
Fig. 3 is the photovoltaic generating system schematic diagram with monitoring of the present invention.
Embodiment
Such scheme is described further below in conjunction with specific embodiment.It should be understood that these embodiments are to be used to illustrate
The present invention and be not limited to limit the scope of the present invention.
As shown in Figure 2:For a kind of flow chart of the method for photovoltaic DC-to-AC converter remote upgrade of technical solution of the present invention:Connect down
Carry out the implementation process of detailed description technique scheme:
Step 1:When needing ROMPaq, the host computer that the DSP control panels of inverter receive to be attached thereto transmits treat
ROMPaq, and program to be upgraded is temporarily stored into and extended out in FLASH, determine to be temporarily stored in outside by summing mode after the completion of receiving
Whether the program to be upgraded expanded in FLASH is correct,
If judging, program to be upgraded is correct, into step 2,
If judging, program to be upgraded is incorrect, error message is sent into host computer, again transmission belt ROMPaq, directly
To entrance step 2;
Step 2:Judge that the current working condition of photovoltaic DC-to-AC converter upgrades if appropriate for line program is entered;
If judging, the current working condition of photovoltaic DC-to-AC converter is appropriate for program upgrading, into step 3,
If judging, the current working condition of photovoltaic DC-to-AC converter is not suitable for upgrading into line program, time out program upgrading, every one
The section time is judged again, until judging that the current working condition of photovoltaic DC-to-AC converter is appropriate for program upgrading and enters step 3;
Step 3:Program upgrades:The program extended out in FLASH will be temporarily stored in, be written in internal FLASH;Will be to be upgraded
Before program is written in internal FLASH, FLASH spaces of erase-slice memory storage application program first;Then line program liter is entered
Level;There is the judgment step whether program upgrades completion after program upgrading,
If determining program upgrading is completed, terminate;
If determining program does not upgrade completion, repeat step 3,
Until upgrading is completed, terminate.
Condition stub:
The current working condition of photovoltaic DC-to-AC converter in such scheme in step 2, specifically refers to, the output work of inverter
Whether rate is stablized, and whether its BUS voltage is stablized, and only when inverter is in stable working condition, then enters line program upgrading.
In the technical program, judge that the current working condition of photovoltaic DC-to-AC converter is not suitable for upgrading into line program, when one section
Between judged again, be to utilize timer, interval time visually setting depending on (such as:It is spaced 20min or 30min).
It is pluggable structure to extend out FLASH.
In step 1, judge that program to be upgraded is incorrect, then error message is sent to host computer, host computer refers to therewith
The PMU of connection.
When needing upgrading, ROMPaq can be downloaded manually:Professional downloads the version for needing program from website;Upgrading
Personnel click on " upgrading " button after program is placed in " more new folder ";Program file will be transmitted to PMU from server;PMU
Basic verification can be carried out after receiving program file, corresponding inverter will be sent to after verification is correct.
Inverter receives and the condition judgment of correlation can be carried out after complete program file (whether file is correct, is currently
No suitable burning), condition can be carried out burning after meeting,
Can also be by downloading ROMPaq automatically, when having program fresh information, server is shaken hands with PMU and contacted, transmission
The program that need to upgrade.
As shown in Figure 3:For the photovoltaic generating system schematic diagram with monitoring.Photovoltaic generating system 300, comprising:Distal end takes
Business device 1, PMU1, PMU2, photovoltaic DC-to-AC converter 11- photovoltaic DC-to-AC converters 1n;Photovoltaic DC-to-AC converter 21- photovoltaic DC-to-AC converter 2n, remote service
By netting twine and PMU1, PMU2's device 1 is connected interactive information;Photovoltaic DC-to-AC converter 11- photovoltaic DC-to-AC converters 1n is connected with PMU1, enters
Row information interacts;Photovoltaic DC-to-AC converter 21- photovoltaic DC-to-AC converters 2n is connected with PMU2, carries out information exchange.
Condition stub:
In this programme with depending on the power configuration of the quantity viewing system of the single PMU photovoltaic DC-to-AC converters being connected, n scope:1
≤n≤30;
Only list 2 PMU system diagram in Fig. 3, PMU quantity can more than 2 (power configuration of specific viewing system and
It is fixed)
In above-mentioned technical proposal, far-end server 1 is connected between PMU by network, is passed through between pmu and photovoltaic DC-to-AC converter
One kind in CAN patterns, RS485/232 patterns, wireless mode is connected.
Technique effect:
The ROMPaq received is stored in and extended out in FLASH by DSP first.After complete program file is received, DSP
It will be verified to being stored in the file extended out in FLASH, if the next step that verification correctly, upgrades into program, such as
Fruit is incorrect, then does not enter back into the next step of program upgrading.And error message is uploaded to host computer.In this section of course of work
In, inverter is to generate electricity all the time.
After checking routine file is correct, DSP can judge that the working condition of inverter upgrades if appropriate for program, if being adapted to
Program upgrading then enters next program update phase, reexamines inverter work shape after a while if unsuitable program upgrades
State.When inverter is in the application program of the state, then erasing in-chip FLASH that are adapted to program upgrading, and the journey that will extend out FLASH
Sequence writes the application area of in-chip FLASH.Program escalation process is just completed after whole file writes.
The foregoing examples are merely illustrative of the technical concept and features of the invention, its object is to allow the person skilled in the art to be
Present disclosure can be understood and implemented according to this, it is not intended to limit the scope of the present invention.Such as.It is all according to this hair
The equivalent transformation or modification that bright Spirit Essence is done, should all be included within the scope of the present invention.