Summary of the invention
The object of this invention is to provide a kind ofly can have the multichannel PV input pattern recognition methods of input in which road of Real time identification PV.
For achieving the above object, the technical solution used in the present invention is: the PV magnitude of voltage detecting in real time each road, if within a certain period of time, what PV magnitude of voltage was greater than threshold voltage reaches threshold values effective time T.T., and there is input on Ze Gai road; If within a certain period of time, what PV magnitude of voltage was greater than threshold voltage does not reach threshold values effective time T.T., and Ze Gai road no-voltage inputs.
Optimize, compared between two respectively by the PV magnitude of voltage on each road, voltage difference is not more than pressure reduction threshold values and then thinks same input source; Voltage difference is greater than pressure reduction threshold values, then think different input source.
Further, be set with N road and be considered to same input source, N be greater than 1 natural number, disturbance is carried out on the M road that then only PV magnitude of voltage is minimum in N road, and respective PV magnitude of voltage is detected on other roads, if variation tendency is consistent with M road, then really think same input source, the result of calculation on direct use M road, while avoiding erroneous judgement input pattern, reduces the operand of control chip; If the PV magnitude of voltage that other roads detect does not change, then think that with M road be different input sources, adopt above-mentioned steps cycle criterion, until complete the identification to each road.
Because technique scheme is used, the present invention compared with prior art has following advantages: the present invention utilizes automatic identification technology, and can monitor which road PV in real time has input, can solve the situation that client in use plugs PV input end; After detecting multichannel input, can the voltage of more already present input source respectively, distinguishing which road is further identical input source, which road is different input sources, adopt different control modes, guaranteeing while erroneous judgement input mode, the calculated amount of control chip to be reduced.
Embodiment
Below in conjunction with embodiment shown in the drawings, the invention will be further described.
The basic functional principle of this multichannel PV input pattern recognition methods is: the PV magnitude of voltage Vpv detecting each road in real time, if at certain time interval T ime(threshold values 2) in, the T.T. cnt that Vpv is greater than threshold voltage (threshold values 1) reaches threshold values effective time (threshold values 3), and there is input on Ze Gai road; If at certain time interval T ime(threshold values 2) in, the T.T. cnt that Vpv is greater than threshold voltage (threshold values 1) does not reach threshold values effective time (threshold values 3), and Ze Gai road no-voltage inputs.Concrete grammar is as follows:
As shown in Figure 2, first, setting is used for the variable Time of timing sense cycle and corresponding time threshold values (threshold values 2), and each road of the variable Cnt n(input for timing has a timing variable cnt record, and N road is n variable altogether) and the time threshold values (threshold values 3) of correspondence; Input voltage threshold values (threshold values 1) is V.Detect start time, Time adds up from 0, detects the PV magnitude of voltage Vpv on each road, and with threshold voltage V(threshold values 1) compare, only when Vpv is greater than threshold voltage V(threshold values 1), Cnt n just add up.When Time is greater than time threshold values (threshold values 2), judges whether Cnt n is greater than time threshold values (threshold values 3), if be not less than, think that there is input on this road; If be less than, then think not input.
, compared between two respectively by the Vpv on each road, what voltage was close thinks same input source meanwhile; Voltage difference is larger, then think different input source.
If there is N road to be considered to same input source, then only disturbance is carried out to the M road that the Vpv in N road is minimum, respective Vpv is detected on other roads, if variation tendency is consistent with M road, then really think same input source, the result of calculation on direct use M road, while avoiding erroneous judgement input mode, decreases the operand of control chip; If the Vpv that other roads detect does not change, then think that with M road be different input sources.Circulation adopts said method, until complete the identification to each road.
As shown in Figure 3, this process flow diagram is only input as example as explanation using two-way PV, is described as follows:
A, once detection, then carry out timing Time2.When timing time is less than threshold values 5, then detecting two-way PV voltage difference always, if timing time is greater than threshold values 5, then starting to determine whether same input source.
B, in threshold values 5 time, the time that two-way voltage difference is less than threshold values 4 is Time3.
C, in threshold values 5 time, if Time3 is less than threshold values 6, illustrating that two-way PV voltage difference is comparatively large, is two different input sources.
D, within the Time2 time, if Time3 is greater than threshold values 6, illustrating that two-way PV voltage is more close, may be same input source (being only possible), then by the SameFlagTemp set of temporary sign position, being shown to be first time detects.
On the basis of the above, carry out second time to detect.And comparatively MPPT, BOOST are carried out Di mono-road to voltage simultaneously, if be really now same input source, then the variation tendency of two-way is consistent, and in threshold values 5 time, Time3 still can be greater than threshold values 6, SameFlag set; If not same input source, then another road voltage remains unchanged, and causes voltage difference can be very large, and Time3 can not be greater than threshold values, and SameFlag set resets.Two-way is the process flow diagram of same input source.
If E SameFlag is set, explanation is same input source, and when normally controlling, Jin Dui mono-tunnel calculates, and another road directly uses result of calculation; If SameFlag is cleared, explanation is different input sources, then need all to calculate two-way.
Above-described embodiment, only for technical conceive of the present invention and feature are described, its object is to person skilled in the art can be understood content of the present invention and implement according to this, can not limit the scope of the invention with this.All equivalences done according to Spirit Essence of the present invention change or modify, and all should be encompassed within protection scope of the present invention.