Input source identification method, input source identification circuit, and electronic device
By processing the filtered input voltage and current of the power conversion circuit and combining the differential resistance characteristic value scoring, the stability and reliability issues of the input source identification method are solved, and highly accurate input source type differentiation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN MEGMEET ELECTRICAL CO LTD
- Filing Date
- 2026-05-12
- Publication Date
- 2026-06-12
AI Technical Summary
Existing input source identification methods are easily affected by transient noise and glitches, resulting in low stability and reliability.
By acquiring N filtered input voltages and currents from the power conversion circuit, preset calculations are performed to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance. The first and second scoring calculations are used to determine whether the input source is of the first or second type. The magnitude of the differential resistance is used as the identification criterion to filter out the influence of abnormal data.
It improves the accuracy and reliability of input source identification without increasing hardware costs. It can effectively distinguish input source types using only software algorithms, and the calculation method is simple and consumes less software resources.
Smart Images

Figure CN122193784A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of circuit control technology, and in particular to input source identification methods, input source identification circuits and electronic devices. Background Technology
[0002] Nowadays, with the increasing variety of power supply scenarios, power conversion and regulation methods are becoming more and more diverse. In particular, power conversion circuits involving different input types usually require different control modes. For example, when the power supply input of a power conversion circuit has two different input types, namely photovoltaic input and DC voltage source input, in order to adapt to different input types and control the power conversion circuit, it is necessary to first identify its input type.
[0003] However, input source identification in related technologies is usually achieved based on output impedance detection and maximum power point tracking on the input side. The entire identification decision depends on the impedance value obtained from a single measurement and calculation, and is compared with a fixed threshold. This is easily affected by transient noise and glitches, resulting in low stability and reliability. Summary of the Invention
[0004] The main technical problem addressed by this application is to provide an input source identification method, an input source identification circuit, and an electronic device, which simplifies the control logic and solves the problem that existing input source identification methods are easily affected by transient noise and glitches, resulting in low stability and reliability.
[0005] To solve the above-mentioned technical problems, one technical solution adopted in this application is: providing an input source identification method for power conversion circuits, wherein the input source identification method includes: acquiring N filtered input voltages and N filtered input currents of the power conversion circuit; wherein N is a positive integer greater than 1; performing preset calculations on the N filtered input voltages and N filtered input currents to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance; performing a first scoring calculation on the voltage mean square error, the mean square error of the differential resistance, and the average value of the differential resistance to obtain a first type of input source feature value; performing a second scoring calculation on the voltage mean square error, the mean square error of the differential resistance, and the average value of the differential resistance to obtain a second type of input source feature value; detecting whether the first type of input source feature value is greater than the second type of input source feature value; if the first type of input source feature value is greater than the second type of input source feature value, determining that the input source of the power conversion circuit is a first type of input source; if the first type of input source feature value is less than the second type of input source feature value, determining that the input source of the power conversion circuit is a second type of input source.
[0006] The steps for obtaining the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance by performing preset calculations on N filtered input voltages and N filtered input currents include: using a first calculation function to process the N filtered input voltages to obtain the voltage mean square error; wherein the formula for the first calculation function is: ; ; The second operation function is used to process the N filtered input voltages and N filtered input currents to obtain the average value and root mean square error of the differential resistance; the formula for the second operation function is as follows: ; ; ; ; ; in, , Let i be the i-th filter input voltage. The average voltage. For the voltage mean square deviation, For the (i-1)th filter input voltage, Let i be the i-th differential voltage. Let i be the i-th filter input current. For the (i-1)th filter input current, Let i be the i-th differential current. Let i be the i-th differential resistor. The average value of the differential resistance. The root mean square error of the differential resistance.
[0007] The step of performing a first scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the first type of input source feature value includes: performing a first numerical comparison on the voltage mean square error to obtain a first count value; performing a second numerical comparison on the differential resistance mean square error to obtain a second count value; performing a third numerical comparison on the voltage mean square error and the differential resistance average value to obtain a third count value; and sequentially superimposing the first count value on the second count value and the third count value to obtain the first type of input source feature value.
[0008] The step of obtaining a first count value by comparing the voltage mean square error includes: recording the first count value as a first set value in response to the voltage mean square error being in a first numerical range; or, recording the first count value as a second set value in response to the voltage mean square error being in a second numerical range; wherein the first set value is greater than the second set value.
[0009] The step of obtaining a second count value by comparing the second numerical value of the root mean square error of the differential resistance includes: recording the second count value as a second set value in response to the root mean square error of the differential resistance being located in a third numerical range; or, recording the second count value as a third set value in response to the root mean square error of the differential resistance being located in a fourth numerical range; wherein the second set value is greater than the third set value.
[0010] The step of obtaining a third count value by comparing the voltage mean square error and the average value of the differential resistance includes: recording the third count value as a second set value in response to the voltage mean square error being in a fifth numerical interval and the average value of the differential resistance being in a sixth numerical interval.
[0011] The step of performing a second scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the second type of input source feature value includes: performing a fourth numerical comparison on the voltage mean square error to obtain a fourth count value; performing a fifth numerical comparison on the differential resistance mean square error to obtain a fifth count value; performing a sixth numerical comparison on the voltage mean square error and the differential resistance average value to obtain a sixth count value; and sequentially superimposing the fourth count value on the fifth count value and the sixth count value to obtain the second type of input source feature value.
[0012] The step of obtaining a fourth count value by performing a fourth numerical comparison on the voltage mean square error includes: recording the fourth count value as a first set value in response to the voltage mean square error being located in a seventh numerical interval; or, recording the fourth count value as a second set value in response to the voltage mean square error being located in an eighth numerical interval.
[0013] Specifically, in response to the root mean square error of the differential resistance being in the ninth numerical interval, the fifth count value is recorded as the second set value; or, in response to the root mean square error of the differential resistance being in the tenth numerical interval, the fifth count value is recorded as the third set value.
[0014] The step of comparing the voltage mean square error and the average value of the differential resistance to obtain the sixth count value includes: recording the sixth count value as a second set value in response to the voltage mean square error being in the eleventh numerical interval and the average value of the differential resistance being in the twelfth numerical interval.
[0015] The steps for acquiring N filtered input voltages and N filtered input currents of the power conversion circuit include: adjusting the target reference current to increase the set step current; acquiring the instantaneous input voltage and instantaneous input current of the power conversion circuit; detecting whether the error value between the target reference current and the instantaneous input current is less than a set error threshold; if the error value is not less than the set error threshold, deleting the instantaneous input voltage and instantaneous input current; if the error value is less than the set error threshold, returning to the steps of acquiring the instantaneous input voltage and instantaneous input current of the power conversion circuit until the cumulative number of samples of instantaneous input voltage and instantaneous input current is n; where n is a positive integer greater than 1; averaging the n instantaneous input voltages to obtain the filtered input voltage; averaging the n instantaneous input currents to obtain the instantaneous input current; returning to the steps of adjusting the target reference current to increase the set step current until the cumulative number of samples of filtered input voltage and filtered input current is N.
[0016] If the characteristic value of the first type of input source is less than the characteristic value of the second type of input source, after determining that the input source of the power conversion circuit is the second type of input source, the method further includes: in response to the input source of the power conversion circuit being the first type of input source, performing calculation processing on the error value using a first adjustment control rule to obtain a first control signal; and using the first control signal to adjust and control the power conversion circuit; or, in response to the input source of the power conversion circuit being the second type of input source, performing calculation processing on the error value using a second adjustment control rule to obtain a second control signal; and using the second control signal to adjust and control the power conversion circuit.
[0017] To solve the above-mentioned technical problems, another technical solution adopted in this application is: to provide an input source identification circuit, wherein the input source identification circuit is used to couple with the power conversion circuit; wherein the input source identification circuit is used to control the power conversion circuit using the input source identification method described in any of the above claims.
[0018] To solve the above-mentioned technical problems, another technical solution adopted in this application is: to provide an electronic device, wherein the electronic device includes a housing and an input source identification circuit connected to the housing; wherein the input source identification circuit is the input source identification circuit as described above.
[0019] The beneficial effects of this application are as follows: Unlike existing technologies, the input source identification method provided in this application obtains N filtered input voltages and N filtered input currents of the power conversion circuit, and performs preset calculations on the N filtered input voltages and N filtered input currents to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance. Then, a first scoring operation and a second scoring operation are performed on the voltage mean square error, the differential resistance mean square error, and the average value of the differential resistance to obtain the first type of input source feature value and the second type of input source feature value. Therefore, by detecting the magnitude of the first type of input source feature value and the second type of input source feature value, the input source of the power conversion circuit can be determined as either the first type of input source or the second type of input source. That is, by using variance to measure the overall voltage dispersion and the dispersion of the differential resistance of the input source, and combining the magnitude of the differential resistance as the basis for input source identification, the influence of individual abnormal data can be effectively filtered out, improving the accuracy and reliability of input source identification, without increasing any hardware cost. The input source type can be effectively distinguished and identified through software algorithms, the calculation method is simple, and the software resources required are small. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort, wherein: Figure 1 This is a flowchart illustrating the first embodiment of the input source identification method of this application; Figure 2 This is a schematic diagram of the first embodiment of the input source identification circuit and power conversion circuit of this application; Figure 3 yes Figure 1 A flowchart illustrating an embodiment of S12; Figure 4 yes Figure 1 A flowchart of an embodiment of S13; Figure 5 yes Figure 1 A flowchart of an embodiment of S14; Figure 6 This is a flowchart illustrating the second embodiment of the input source identification method of this application; Figure 7 This is a schematic diagram of one embodiment of the electronic device of this application. Detailed Implementation
[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0022] The terms "first," "second," and "third" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movements between components in a specific orientation (as shown in the figures). If the specific orientation changes, the directional indications also change accordingly. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0023] In this document, the term "implementation" means that a specific feature, structure, or characteristic described in connection with an implementation may be included in at least one implementation of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same implementation, nor is it a separate or alternative implementation mutually exclusive with other implementations. It will be explicitly and implicitly understood by those skilled in the art that the implementations described herein can be combined with other implementations.
[0024] The present application will now be described in detail with reference to the accompanying drawings and embodiments.
[0025] Please refer to the following: Figure 1 and Figure 2 ,in, Figure 1 This is a flowchart illustrating the first embodiment of the input source identification method of this application. Figure 2 This is a schematic diagram of the first embodiment of the input source identification circuit and power conversion circuit of this application. Specifically, it may include the following steps: S11: Obtain N filtered input voltages and N filtered input currents of the power conversion circuit.
[0026] It is understood that the input source identification method in this embodiment is specifically applied to, for example... Figure 2 The power conversion circuit 201 shown has an input source identification function. The first input source identification circuit 101 is coupled to the power conversion circuit 201. The power conversion circuit 201 is coupled to a first type of input source 301, a second type of input source 302, and a load operating circuit 401, so as to be controlled by the first input source identification circuit 101 to supply power to the load operating circuit 401 using the first type of input source 301 or the second type of input source 302. The first input source identification circuit 101 is used to control the power conversion circuit 201 using any of the input source identification methods described herein.
[0027] In some embodiments, the power conversion circuit 201 may be one or more of the following: a buck circuit, a boost circuit, a bridge converter circuit, or other circuit topologies, which are used to realize signal conversion such as AC-DC conversion, DC conversion, current / voltage amplitude adjustment, and waveform frequency adjustment. This embodiment does not limit this.
[0028] In some embodiments, the first input source identification circuit 101 may specifically include any reasonable circuit unit with signal processing function, such as a control chip, a DSP (Digital Signal Processing) chip, an MCU (Micro Controller Unit) circuit, a CPU (Central Processing Unit), a microcontroller, a field-programmable gate array, a programmable logic device, a discrete gate or transistor logic device, or discrete hardware. This application does not limit this.
[0029] In some embodiments, the first type of input source 301 can be any reasonable DC power source with stable DC output, such as a battery, adapter, or thermal power source; the second type of input source 302 can be any reasonable power source with unstable DC or AC output, such as a photovoltaic power source, wind power source, or hydropower source, and this application does not limit it.
[0030] It is worth noting that when the first type of input source 301 has a stable DC output, while the second type of input source 302 has an unstable DC or AC output, the corresponding input current and input voltage will have different data characteristics, such as amplitude change rate, dispersion, and mean stability, which will show obvious differences, especially during the power-on startup stage. This difference can be detected and distinguished through appropriate data analysis and calculation.
[0031] Furthermore, the term "coupled" in this document refers to any direct or indirect connection. Therefore, if the document describes a first circuit coupled to a second circuit, it means that the first circuit can be directly connected to the second circuit via electrical connection or signal connection methods such as wireless transmission or optical transmission, or indirectly connected to the second circuit via other circuits or connection methods via electrical connection or signal connection.
[0032] Specifically, the first input source identification circuit 101 uses a preset sampling frequency or cyclic sampling rule to sequentially sample multiple input voltages and multiple input currents from the power conversion circuit 201, and further performs filtering operations to obtain N filtered input voltages and N filtered input currents.
[0033] Where N is a positive integer greater than 1, meaning that there are multiple currently acquired filter input voltages and filter input currents.
[0034] In some embodiments, N can be 10-25, and preferably 16, but this application does not limit it.
[0035] In some embodiments, the first input source identification circuit 101 may specifically acquire the input voltage and input current by one or more of a current transformer, a voltage divider, a sampling resistor, a Hall sensor, and any other reasonable built-in monitoring circuit. This application does not limit this.
[0036] S12: Perform preset calculations on N filtered input voltages and N filtered input currents to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance.
[0037] Pre-defined calculation rules and functions are used to perform pre-defined calculations on N filtered input voltages and N filtered input currents to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance in sequence.
[0038] S13: Perform a first scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the first type of input source feature value.
[0039] The voltage mean square error, the differential resistance mean square error, and the differential resistance average value are compared with one or more preset array intervals to give corresponding scoring feature values based on each comparison result, and the first scoring operation is performed to obtain the first type of input source feature values; or, different weighting coefficient combinations are used to perform function operations and / or stability and discreteness data analysis on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value, i.e., the first scoring operation obtains the first type of input source feature values.
[0040] S14: Perform a second scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the feature values of the second type of input source.
[0041] The voltage mean square error, differential resistance mean square error, and differential resistance average value are compared with one or more other array intervals to give corresponding scoring feature values based on each comparison result, and a second scoring operation is performed to obtain the second type of input source feature values; or, other weighting coefficient combinations are used to perform function operations and / or stability and discreteness data analysis on the voltage mean square error, differential resistance mean square error, and differential resistance average value, i.e., the second scoring operation obtains the second type of input source feature values.
[0042] S15: Detect whether the feature value of the first type of input source is greater than the feature value of the second type of input source.
[0043] The first type of input source feature value is compared with the second type of input source feature value to detect whether the first type of input source feature value is greater than the second type of input source feature value.
[0044] If the feature value of the first type of input source is greater than the feature value of the second type of input source, then S16 is executed; if the feature value of the first type of input source is less than the feature value of the second type of input source, then S17 is executed.
[0045] S16: Determine that the input source of the power conversion circuit is a first-type input source.
[0046] When it is determined that the characteristic value of the first type of input source is greater than the characteristic value of the second type of input source, the current input source of the power conversion circuit 201 is determined to be the first type of input source 301. That is, the first control algorithm that matches the first type of input source 301 needs to be called to drive the power conversion circuit 201 in the future.
[0047] S17: Determine that the input source of the power conversion circuit is a type II input source.
[0048] When it is determined that the characteristic value of the first type of input source is less than the characteristic value of the second type of input source, the current input source of the power conversion circuit 201 is determined to be the second type of input source 302. That is, the second control algorithm that matches the second type of input source 302 needs to be called to drive the power conversion circuit 201.
[0049] It is worth noting that when the characteristic value of the first type of input source is equal to that of the second type of input source, it is difficult to classify the current input source of the power conversion circuit 201. However, in the subsequent control scheme, the power conversion circuit 201 can be driven and controlled according to the set first control algorithm or the second control algorithm. The specific method is determined by the actual application scenario, and this application does not limit it.
[0050] The above scheme, by using variance to measure the overall voltage dispersion of the input source and the dispersion of the differential resistance, and combining the magnitude of the differential resistance as the basis for input source identification, can effectively filter out the influence of individual abnormal data, improve the accuracy and reliability of input source identification, and does not increase any hardware cost. It does not rely on communication protocols or pre-stored identification numbers, but only on real-time electrical measurements to determine the type of input source. That is, the type of input source can be effectively distinguished and identified through software algorithms. The calculation method is simple and occupies less software resources.
[0051] By extracting statistical features (mean square error, differential resistance) from multi-channel filtered voltage / current data and combining this with a dual-scoring mechanism for classification decisions, an innovative solution is constructed that can intelligently identify the type of input source without requiring a communication protocol and relying solely on electrical characteristics. It requires only voltage / current sampling, is compatible with any input source, has low computational complexity (mean, variance, differential), and can be processed in real-time by an MCU circuit. Based on statistical features, it is insensitive to transient noise. After identification, it can automatically configure appropriate control strategies, making it suitable for automatically identifying the type of input energy in multi-source compatible power supply systems. It exhibits high robustness and engineering practical value.
[0052] Please continue reading. Figure 3 , Figure 3 yes Figure 1 A flowchart illustrating an embodiment of S12 is provided. In one embodiment, the input source identification method of this application, in addition to the above-described S11-S17, further includes some more specific steps. Specifically, S12 may further include the following steps: S121: The first operation function is used to process the N filtered input voltages to obtain the voltage mean square error.
[0053] The formula for the first operational function is: ; ; in, , Let i be the i-th filter input voltage. The average voltage. This represents the voltage mean square deviation.
[0054] S122: The second operation function is used to process the N filtered input voltages and N filtered input currents to obtain the average value and root mean square error of the differential resistance.
[0055] The formula for the second operational function is as follows: ; ; ; ; ; in, , Let i be the i-th filter input voltage. The average voltage. For the voltage mean square deviation, For the (i-1)th filter input voltage, Let i be the i-th differential voltage. Let i be the i-th filter input current. For the (i-1)th filter input current, Let i be the i-th differential current. Let i be the i-th differential resistor. The average value of the differential resistance. The root mean square error of the differential resistance.
[0056] Please continue reading. Figure 4 , Figure 4 yes Figure 1 A flowchart illustrating an embodiment of S13 is shown. In one embodiment, the input source identification method of this application, in addition to the above-described S11-S17, further includes some more specific steps. Specifically, S13 may further include the following steps: S131: Perform a first numerical comparison on the voltage mean square error to obtain the first count value.
[0057] voltage mean square error A first numerical comparison is performed with one or more defined array intervals to give a corresponding scoring feature value, i.e., a first count value, based on each comparison result.
[0058] S132: A second count value is obtained by performing a second numerical comparison on the root mean square error of the differential resistance.
[0059] The differential resistance mean square error A second numerical comparison is performed with one or more other array intervals to give a corresponding scoring feature value, i.e., a second count value, based on each comparison result.
[0060] S133: A third count value is obtained by comparing the root mean square error of the voltage with the average value of the differential resistance.
[0061] voltage mean square error and the average value of differential resistance Each value is compared with one or more other array intervals to give a corresponding scoring feature value, i.e., a third count value, based on the comparison results and the yes / no judgment rules.
[0062] S134: The first count value is superimposed with the second count value and the third count value to obtain the first type of input source feature value.
[0063] The sum of the first count value, the second count value, and the third count value is obtained, which is the first type of input source feature value.
[0064] Furthermore, in one embodiment, the above-mentioned S131 may further include: responding to the voltage mean square error The first count value located in the first numerical range is recorded as the first set value.
[0065] Understandably, the voltage mean square deviation With the first numerical interval, such as or Compare the values with any reasonable range to determine the voltage mean square error. When the value is within the first numerical range, the first count value is recorded as the first set value and stored in the first storage location.
[0066] Furthermore, in one embodiment, the above-mentioned S131 may further include: responding to the voltage mean square error The first count value is recorded as the second set value when it is located in the second numerical range.
[0067] At the same time, the voltage mean square deviation And the second numerical interval, such as or Compare the values with any reasonable range to determine the voltage mean square error. When the value is within the second numerical range, the first count value is recorded as the second set value and stored in the first storage location.
[0068] In some embodiments, the first setting value is greater than the second setting value. Specifically, the first setting value can be 3 and the second setting value can be 2; or, the first setting value can be 4 and the second setting value can be 3. The specific value is determined by the actual application scenario, and this application does not limit it.
[0069] Furthermore, in one embodiment, S132 may further include: responding to the root mean square error of the differential resistance. The second count value is recorded as the second set value when it is located in the third numerical range.
[0070] Similarly, the root mean square error of the differential resistance... And the third numerical interval, such as or Compare with any reasonable range of values to determine the root mean square error of the differential resistance. When the value is in the third numerical range, the second count value is recorded as the second set value and recorded in the second storage location, or it is directly superimposed on the value in the first storage location.
[0071] Furthermore, in one embodiment, S132 may further include: responding to the root mean square error of the differential resistance. The second count value located in the fourth numerical range is recorded as the third set value; wherein the second set value is greater than the third set value.
[0072] At the same time, the root mean square error of the differential resistance And the fourth numerical interval, such as or Compare with any reasonable range of values to determine the root mean square error of the differential resistance. When the value is in the fourth value range, the second count value is recorded as the third set value and recorded in the second storage location, or it is directly superimposed on the value in the first storage location.
[0073] In some embodiments, the third setting value is less than the second setting value. Specifically, the third setting value can be 1 and the second setting value can be 2; or, the third setting value can be 2 and the second setting value can be 3. The specific value is determined by the actual application scenario, and this application does not limit it.
[0074] Furthermore, in one embodiment, the above-mentioned S133 may further include: responding to the voltage mean square error Located in the fifth numerical range, and the average value of the differential resistance The third count value in the sixth numerical range is recorded as the second set value.
[0075] Similarly, the voltage mean square error And the fifth numerical interval, such as or Compare the values within any reasonable range, and simultaneously average the differential resistance. With the sixth numerical interval, as or Compare the values with any reasonable range to determine the voltage mean square error. Located in the fifth numerical range, and the average value of the differential resistance When the value is in the sixth value range, the third count value is recorded as the second set value and recorded in the third storage location, or it is directly superimposed on the value in the first storage location.
[0076] It is worth noting that when none of the above judgments and adjustments are met, i.e., the voltage mean square deviation... , differential resistance mean square error and the average value of differential resistance If the value is not within the corresponding number range mentioned above, the corresponding count value is 0.
[0077] Please continue reading. Figure 5 , Figure 5 yes Figure 1 A flowchart illustrating an embodiment of S14 is shown. In one embodiment, the input source identification method of this application, in addition to the above-described S11-S17, further includes some more specific steps. Specifically, S14 may further include the following steps: S141: The fourth count value is obtained by performing a fourth numerical comparison on the voltage mean square error.
[0078] voltage mean square error A fourth numerical comparison is performed with one or more defined array intervals to provide a corresponding scoring feature value, i.e., a fourth count value, based on each comparison result.
[0079] S142: The fifth count value is obtained by performing a fifth numerical comparison on the root mean square error of the differential resistance.
[0080] The differential resistance mean square error A fifth numerical comparison is performed with one or more other array intervals to give a corresponding scoring feature value, i.e., a fifth count value, based on each comparison result.
[0081] S143: The sixth count value is obtained by performing a sixth numerical comparison between the voltage mean square error and the average value of the differential resistance.
[0082] voltage mean square error and the average value of differential resistance The sixth numerical value is compared with one or more other array intervals to give the corresponding scoring feature value, i.e., the sixth count value, based on the comparison results and the yes / no judgment rules.
[0083] S144: The fourth count value is superimposed on the fifth and sixth count values to obtain the second type of input source feature value.
[0084] Add the fourth count value to the fifth count value, and then add the sixth count value to get the sum of the three, which is the second type of input source feature value.
[0085] Furthermore, in one embodiment, the above-mentioned S141 may further include: responding to the voltage mean square error The fourth count value in the seventh numerical range is recorded as the first set value.
[0086] Understandably, the voltage mean square deviation And the seventh numerical interval, such as or Compare the values with any reasonable range to determine the voltage mean square error. When the value is in the seventh value range, the fourth count value is recorded as the first set value and stored in the fourth storage location.
[0087] Furthermore, in one embodiment, the above-mentioned S141 may further include: responding to the voltage mean square error The fourth count value in the eighth numerical range is recorded as the second set value.
[0088] At the same time, the voltage mean square deviation With the eighth numerical interval, such as or Compare the values with any reasonable range to determine the voltage mean square error. When the value is in the eighth value range, the fourth count value is recorded as the second set value and stored in the fourth storage location.
[0089] Furthermore, in one embodiment, the above-mentioned S142 may further include: responding to the root mean square error of the differential resistance. The fifth count value is recorded as the second set value when it is located in the ninth numerical range.
[0090] Similarly, the root mean square error of the differential resistance... With the ninth numerical interval, such as or Compare with any reasonable range of values to determine the root mean square error of the differential resistance. When the value is in the ninth value range, the fifth count value is recorded as the second set value and recorded in the fifth storage location, or it is directly superimposed on the value in the fourth storage location.
[0091] Furthermore, in one embodiment, the above-mentioned S142 may further include: responding to the root mean square error of the differential resistance. The fifth count value in the tenth numerical interval is recorded as the third set value.
[0092] At the same time, the root mean square error of the differential resistance And the tenth numerical interval, such as or Compare with any reasonable range of values to determine the root mean square error of the differential resistance. When the value is in the tenth value range, the fifth count value is recorded as the third set value and recorded in the fifth storage location, or it is directly superimposed on the value in the fourth storage location.
[0093] Furthermore, in one embodiment, the above-mentioned S143 may further include: responding to the voltage mean square error Located in the eleventh numerical interval, and the average value of the differential resistance The sixth count value in the twelfth numerical interval is recorded as the second set value.
[0094] Similarly, the voltage mean square error And the eleventh numerical interval, such as or Compare the values within any reasonable range, and simultaneously average the differential resistance. With the twelfth numerical interval as or Compare the values with any reasonable range to determine the voltage mean square error. Located in the eleventh numerical interval, and the average value of the differential resistance When the value is in the twelfth numerical range, the sixth count value is recorded as the second set value and recorded in the sixth storage location, or it is directly superimposed on the value in the fourth storage location.
[0095] For ease of understanding, let's take the first type of input source 301 as a DC (Direct Current) source and the second type of input source 302 as a PV (Photovoltaic) source, and let's assume that the first and second scoring operations correspond to the following scoring rules table, respectively. Then we can see that:
[0096] Where, when the voltage mean square deviation When the first type of input source eigenvalue of the DC source is increased by 3 points, and the voltage mean square error is... When the voltage mean square error is 1, the first type of input source eigenvalue of the DC source is increased by 2 points; while when the voltage mean square error is 1, the first type of input source eigenvalue is increased by 2 points. When the second type of input source eigenvalue of the PV source is increased by 3 points, the voltage mean square error is... When the PV source's second type of input source feature value is increased by 2 points, the score is increased accordingly.
[0097] When the differential resistance mean square error When the first type of input source eigenvalue of the DC source is increased by 2 points, the root mean square error of the differential resistance is... When the DC source's first-type input source eigenvalue is at that time, the corresponding score is increased by 1; while when the differential resistance root mean square error... When the second type of input source eigenvalue of the PV source is increased by 2, the mean square error of the differential resistance is... When the PV source's second type of input source feature value is increased by 1 point, the score is increased accordingly.
[0098] When the voltage mean square deviation And the average value of the differential resistance When the voltage mean square error is 1, the corresponding first-type input source eigenvalue of the DC source is increased by 2 points. And the average value of the differential resistance When the PV source's second type of input source feature value is increased by 2 points, the score is increased accordingly.
[0099] Finally, when the characteristic value of the first type of input source is greater than the characteristic value of the second type of input source, the input source of the power conversion circuit 201 is determined to be a DC source; when the characteristic value of the first type of input source is less than the characteristic value of the second type of input source, the input source of the power conversion circuit 201 is determined to be a PV source; and when the characteristic value of the first type of input source is equal to the characteristic value of the second type of input source, it is difficult to classify the input source, and it can be treated as a DC source for subsequent control processing.
[0100] Please see Figure 6 , Figure 6 This is a flowchart illustrating the second embodiment of the input source identification method of this application. The input source identification method of this embodiment... Figure 1 A detailed implementation flowchart of the input source identification method is shown, which specifically includes the following steps: S21: Adjust the target reference current to increase the set step current.
[0101] Understandably, during the power-on startup phase, the power input of the power conversion circuit 201 usually changes significantly, and identifying the input source based on the power input at this time will be more effective and reliable.
[0102] Specifically, when the first input source identification circuit 101 and the power conversion circuit 201 are powered on, the target reference current is gradually increased, for example, starting from 0, and each time it is increased in steps by a set step current, so as to obtain the target value of input current feedback adjustment in sequence. That is, each time S21 is executed in a cycle, a set step current is added on the basis of the previous target reference current to obtain the current target reference current.
[0103] In some embodiments, the set step current can be 0.3-1A (Amperes), and preferably 0.5A, but this application does not limit it.
[0104] S22: Obtain the instantaneous input voltage and instantaneous input current of the power conversion circuit.
[0105] The instantaneous input voltage and instantaneous input current are sampled from the power conversion circuit 201 cyclically using a preset sampling frequency.
[0106] S23: Detect whether the error between the target reference current and the instantaneous input current is less than the set error threshold.
[0107] Each time the instantaneous input voltage and instantaneous input current are sampled, the current target reference current is subtracted from the instantaneous input current to obtain the error value, and the error value is checked to see if it is less than the set error threshold.
[0108] If the error value is not less than the set error threshold, then S24 is executed; if the error value is less than the set error threshold, then S25 is executed.
[0109] S24: Delete instantaneous input voltage and instantaneous input current.
[0110] If the error value is determined to be not less than the set error threshold, then the instantaneous input current is determined to be invalid data because it does not meet the allowable error range of the given value, and the instantaneous input voltage and instantaneous input current obtained by the current sampling need to be deleted.
[0111] S25: Check if the cumulative number of samples of instantaneous input voltage and instantaneous input current is n.
[0112] If the error value is determined to be less than the set error threshold, the instantaneous input voltage and instantaneous input current obtained by the current sampling are recorded to the set storage location. Then, it is further checked whether the cumulative number of samples of instantaneous input voltage and instantaneous input current is n. If the cumulative number of samples is not n, S22-S25 are executed repeatedly until the cumulative number of samples of instantaneous input voltage and instantaneous input current is n.
[0113] Understandably, the first input source identification circuit 101 can be specifically set with a loop function. Each time the instantaneous input voltage and instantaneous input current are recorded, the first loop count is incremented by 1, and it is determined that the first loop count is equal to n. When the first loop count is equal to n, the loop ends and the next step, namely S26, is executed.
[0114] In some embodiments, n is 1000-5000, and preferably 5000, but this application does not limit it.
[0115] If the cumulative number of samples of instantaneous input voltage and instantaneous input current is n, then S26 is executed; if the cumulative number of samples of instantaneous input voltage and instantaneous input current is not n, then S22 is executed.
[0116] S26: The filtered input voltage is obtained by averaging the n instantaneous input voltages.
[0117] The filtered input voltage is obtained by averaging the n instantaneous input voltages currently stored.
[0118] S27: The instantaneous input current is obtained by averaging the n instantaneous input currents.
[0119] The filtered input voltage is obtained by averaging the n instantaneous input currents currently stored.
[0120] S28: Check if the cumulative number of samples of the filter input voltage and filter input current is N.
[0121] Furthermore, it checks whether the cumulative number of samples of the filtered input voltage and the filtered input current is N. If the cumulative number of samples is not N, it executes S21-S28 repeatedly until the cumulative number of samples of the filtered input voltage and the filtered input current is N.
[0122] Understandably, the first input source identification circuit 101 can be specifically set with a loop function. Each time the filtered input voltage and filtered input current are recorded, the second loop count is incremented by 1, and it is determined whether the second loop count is equal to N. When the second loop count is equal to N, the loop ends and the next step, namely S29, is executed.
[0123] If the cumulative number of samples of the filtered input voltage and the filtered input current is N, then S29 is executed; if the cumulative number of samples of the filtered input voltage and the filtered input current is not N, then S21 is executed.
[0124] S29: Perform preset calculations on N filtered input voltages and N filtered input currents to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance.
[0125] S210: Perform a first scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the first type of input source feature value.
[0126] S211: Perform a second scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the feature values of the second type of input source.
[0127] S212: Detect whether the feature value of the first type of input source is greater than the feature value of the second type of input source.
[0128] S213: Determine that the input source of the power conversion circuit is a first-type input source.
[0129] Among them, S29, S210, S211, S212 and S213 and Figure 1 S12, S13, S14, S15 and S16 are the same. Please refer to S12, S13, S14, S15 and S16 and their related textual descriptions for details. They will not be repeated here.
[0130] S214: The error value is processed using the first regulation and control rule to obtain the first control signal.
[0131] Understandably, when the input source of the power conversion circuit 201 is determined to be the first type of input source 301, the control algorithm that matches the first type of input source 301 needs to be called. That is, the first adjustment control rule calculates and processes the error value obtained by subtracting the instantaneous input current from the current target reference current to obtain the first control signal.
[0132] In some embodiments, the first regulation control rule may specifically correspond to a current limiting feedback regulation algorithm; the first control signal may specifically be one or more of any reasonable control signals such as PWM (Pulse Width Modulation) signal or PFM (Pulse Frequency Modulation) signal, and this application does not limit it.
[0133] S215: The power conversion circuit is regulated and controlled using the first control signal.
[0134] The first control signal is sent to the power conversion circuit 201 to trigger the switching element inside the power conversion circuit 201 to turn on or off, so that the instantaneous input current gradually approaches the target reference current.
[0135] S216: Determine that the input source of the power conversion circuit is a type II input source.
[0136] Among them, S216 and Figure 1 The same applies to S17 in the text. Please refer to S17 and its related textual description for details, which will not be repeated here.
[0137] S217: The error value is processed using the second regulation control rule to obtain the second control signal.
[0138] Understandably, when the input source of the power conversion circuit 201 is determined to be the second type of input source 302, the control algorithm that matches the second type of input source 302 needs to be called. That is, the second adjustment control rule calculates the error value obtained by subtracting the instantaneous input current from the current target reference current to obtain the second control signal.
[0139] In some embodiments, the second adjustment control rule may specifically correspond to an MPPT (Maximum PowerPoint Tracking) control algorithm; the second control signal may specifically be one or more of any reasonable control signals such as PWM (Pulse Width Modulation) signal or PFM (Pulse Frequency Modulation) signal, and this application does not limit it.
[0140] S218: The power conversion circuit is regulated and controlled using the second control signal.
[0141] The second control signal is sent to the power conversion circuit 201 to trigger the switching element inside the power conversion circuit 201 to turn on or off, so that the instantaneous input current gradually approaches the target reference current.
[0142] This application also provides an electronic device, please refer to... Figure 7 , Figure 7 This is a schematic diagram of one embodiment of the electronic device of this application. In this embodiment, the electronic device 30 includes a housing 31 and a second input source identification circuit 32 connected to the housing 31.
[0143] It should be noted that the second input source identification circuit 32 described in this embodiment is the first input source identification circuit 101 described in any of the above embodiments. Please refer to [link / reference] for details. Figures 1-6 The relevant textual content will not be elaborated upon here.
[0144] The beneficial effects of this application are as follows: Unlike existing technologies, this application provides a method that obtains N filtered input voltages and N filtered input currents of a power conversion circuit, and performs preset calculations on these N filtered input voltages and N filtered input currents to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance. Then, it performs a first scoring operation and a second scoring operation on the voltage mean square error, the differential resistance mean square error, and the average value of the differential resistance to obtain the characteristic values of the first and second types of input sources. This allows for the determination of whether the input source of the power conversion circuit is a first-type or second-type input source by detecting the magnitude of the first-type and second-type input source characteristic values. In other words, by using variance to measure the overall voltage dispersion and the dispersion of the differential resistance, and combining the magnitude of the differential resistance as the basis for input source identification, the influence of individual abnormal data can be effectively filtered out, improving the accuracy and reliability of input source identification without increasing any hardware costs. The input source type can be effectively distinguished and identified through software algorithms, the calculation method is simple, and the software resources required are minimal.
[0145] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. An input source identification method, applied to input source identification in a power conversion circuit, characterized in that, The input source identification method includes: Obtain N filtered input voltages and N filtered input currents of the power conversion circuit; where N is a positive integer greater than 1; The mean square error of voltage, the average value of differential resistance, and the mean square error of differential resistance are obtained by performing preset calculations on N filtered input voltages and N filtered input currents. The first type of input source feature value is obtained by performing a first scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value; The second type of input source feature value is obtained by performing a second scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value; Detect whether the feature value of the first type of input source is greater than the feature value of the second type of input source; If the feature value of the first type of input source is greater than the feature value of the second type of input source, the input source of the power conversion circuit is determined to be the first type of input source; If the characteristic value of the first type of input source is less than the characteristic value of the second type of input source, the input source of the power conversion circuit is determined to be the second type of input source.
2. The input source identification method according to claim 1, characterized in that, The step of performing preset calculations on the N filtered input voltages and N filtered input currents to obtain the voltage mean square error, the average value of the differential resistance, and the mean square error of the differential resistance includes: The voltage mean square error is obtained by performing calculations on the N filtered input voltages using a first operation function. The formula for the first operational function is: ; ; The average value of the differential resistance and the root mean square error of the differential resistance are obtained by performing calculations on the N filtered input voltages and N filtered input currents using a second operation function. The formula for the second operation function is: ; ; ; ; ; in, , For the i-th filtered input voltage, The average voltage. The mean square error of the voltage. For the (i-1)th filtered input voltage, Let i be the i-th differential voltage. For the i-th filtered input current, For the (i-1)th filtered input current, Let i be the i-th differential current. Let i be the i-th differential resistor. The average value of the differential resistance, The mean square error of the differential resistance is given.
3. The input source identification method according to claim 1, characterized in that, The step of performing a first scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the feature value of the first type of input source includes: A first count value is obtained by performing a first numerical comparison on the voltage mean square error; A second count value is obtained by performing a second numerical comparison on the root mean square error of the differential resistance; A third count value is obtained by comparing the mean square error of the voltage with the average value of the differential resistance. The first type of input source feature value is obtained by sequentially superimposing the first count value, the second count value, and the third count value.
4. The input source identification method according to claim 3, characterized in that, The step of obtaining a first count value by performing a first numerical comparison on the voltage mean square error includes: In response to the voltage mean square error being within a first numerical range, the first count value is recorded as a first set value; Alternatively, in response to the voltage mean square error being within a second numerical range, the first count value is recorded as a second set value; wherein the first set value is greater than the second set value.
5. The input source identification method according to claim 3, characterized in that, The step of performing a second numerical comparison on the root mean square error of the differential resistance to obtain a second count value includes: In response to the fact that the root mean square error of the differential resistance is in the third numerical range, the second count value is recorded as the second set value; Alternatively, in response to the root mean square error of the differential resistance being in a fourth numerical range, the second count value is recorded as a third set value; wherein the second set value is greater than the third set value.
6. The input source identification method according to claim 3, characterized in that, The step of comparing the root mean square error of the voltage and the average value of the differential resistance to obtain the third count value includes: In response to the voltage mean square error being in the fifth numerical range and the average value of the differential resistance being in the sixth numerical range, the third count value is recorded as the second set value.
7. The input source identification method according to claim 1, characterized in that, The step of performing a second scoring operation on the voltage mean square error, the differential resistance mean square error, and the differential resistance average value to obtain the feature value of the second type of input source includes: A fourth count value is obtained by performing a fourth numerical comparison on the voltage mean square error; A fifth count value is obtained by performing a fifth numerical comparison on the root mean square error of the differential resistance; A sixth count value is obtained by performing a sixth numerical comparison between the voltage mean square error and the average value of the differential resistance; The second type of input source feature value is obtained by sequentially superimposing the fourth count value, the fifth count value, and the sixth count value.
8. The input source identification method according to claim 7, characterized in that, The step of performing a fourth numerical comparison on the voltage mean square error to obtain a fourth count value includes: In response to the voltage mean square error being in the seventh numerical interval, the fourth count value is recorded as the first set value; Alternatively, in response to the voltage mean square error being in the eighth numerical range, the fourth count value is recorded as the second set value.
9. The input source identification method according to claim 7, characterized in that, The step of performing a fifth numerical comparison on the root mean square error of the differential resistance to obtain a fifth count value includes: In response to the fact that the root mean square error of the differential resistance is in the ninth numerical range, the fifth count value is recorded as the second set value; Alternatively, in response to the mean square error of the differential resistance being in the tenth numerical interval, the fifth count value is recorded as the third set value.
10. The input source identification method according to claim 7, characterized in that, The step of performing a sixth numerical comparison between the voltage mean square error and the average differential resistance to obtain a sixth count value includes: In response to the voltage mean square error being in the eleventh numerical interval and the average value of the differential resistance being in the twelfth numerical interval, the sixth count value is recorded as the second set value.
11. The input source identification method according to claim 1, characterized in that, The steps of obtaining the N filtered input voltages and N filtered input currents of the power conversion circuit include: Increase the target reference current by setting the step current; Obtain the instantaneous input voltage and instantaneous input current of the power conversion circuit; Detect whether the error value between the target reference current and the instantaneous input current is less than a set error threshold; If the error value is not less than the set error threshold, delete the instantaneous input voltage and the instantaneous input current; If the error value is less than the set error threshold, return to the step of obtaining the instantaneous input voltage and instantaneous input current of the power conversion circuit until the cumulative number of samples of the instantaneous input voltage and the instantaneous input current is n; where n is a positive integer greater than 1; The filtered input voltage is obtained by averaging the n instantaneous input voltages. The instantaneous input current is obtained by averaging the n instantaneous input currents. Return to the step of increasing the target reference current by the set step current until the cumulative number of samples of the filtered input voltage and the filtered input current is N.
12. The input source identification method according to claim 11, characterized in that, After the step of determining that the input source of the power conversion circuit is a second type of input source if the feature value of the first type of input source is less than the feature value of the second type of input source, the method further includes: In response to the input source of the power conversion circuit being the first type of input source, the error value is processed using the first adjustment control rule to obtain the first control signal; The power conversion circuit is adjusted and controlled using the first control signal; Alternatively, in response to the input source of the power conversion circuit being the second type of input source, the error value is processed using the second adjustment control rule to obtain the second control signal; The power conversion circuit is regulated and controlled using the second control signal.
13. An input source identification circuit, characterized in that, The input source identification circuit is used to couple with the power conversion circuit; The input source identification circuit uses the input source identification method as described in any one of claims 1-12 to control the power conversion circuit.
14. An electronic device, characterized in that, The electronic device includes a housing and an input source identification circuit connected to the housing; The input source identification circuit is the input source identification circuit as described in claim 13.