Calibration parameter setting method, device, system, equipment and medium
Technical Field
The invention relates to the technical field of solar cells, in particular to a method, a device, a system, equipment and a medium for setting calibration parameters.
Background
The solar thin film battery is widely applied by the advantages of small mass, thin thickness, flexibility and the like, the generated power of the solar thin film battery is influenced by the illumination amplitude in the use process, and the output power of the solar thin film battery can be changed at any time, so that the solar thin film battery is usually matched with a direct current converter for use to obtain the output voltage and the output current meeting the use requirements.
When the solar thin film battery is used in cooperation with the direct current converter, the generated power of the solar thin film battery is influenced by the illumination amplitude, the output power of the solar thin film battery can change at any time, namely the input power in the direct current converter can change at any time, and the output voltage and the output current of the direct current converter have a direct relation with the input power. In this case, in order to ensure the accuracy of the output voltage and the output current of the dc converter, the detection accuracy of the dc converter with respect to the input voltage, the input current, the output voltage, and the output current becomes important.
The direct current converter comprises a voltage (current) detection circuit and a voltage (current) calibration circuit, wherein the voltage (current) detection circuit is used for detecting input voltage (current) and output voltage (current), and the voltage (current) calibration circuit calibrates the detected input voltage (current) and output voltage (current) through configured voltage calibration coefficients.
In practical applications, different dc converters use the same voltage calibration coefficient and current calibration coefficient, but some dc converters may have a large error in performing voltage (current) calibration due to the difference between the circuit boards in different dc converters.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a system, equipment and a medium for setting calibration parameters, which are used for improving the accuracy of the calibration parameters of a direct current converter.
According to an aspect of the present invention, there is provided a method for setting calibration parameters, which is applied to setting calibration parameters of a dc converter, the method including:
selecting a plurality of test values from the value range to test in the direct current converter respectively according to the value range of the test values of the calibration parameters for setting the target object, which are configured in advance;
collecting a corresponding measured value of each test value when the test value is tested in the direct current converter;
comparing each test value with the corresponding measured value of each test value to generate a calibration parameter of the target object;
and configuring the generated calibration parameters of the target object into the direct current converter.
In a possible implementation manner, in the foregoing method provided by the embodiment of the present invention, comparing each test value with a measurement value corresponding to each test value, and generating a calibration parameter of a target object includes:
comparing each test value with the corresponding measured value of each test value to generate a temporary calibration parameter of the target object;
and under the condition that the verification result of the temporary calibration parameters to the target object in the DC converter meets the preset allowable error, taking the temporary calibration parameters as the calibration parameters of the target object.
In a possible implementation manner, in the foregoing method provided by the embodiment of the present invention, comparing each test value with a measurement value corresponding to each test value, and generating a calibration parameter of a target object includes:
comparing each test value with the corresponding measured value of each test value to generate a calibration parameter of the target object at each test value;
and fitting to generate a calibration parameter curve of the target object based on the calibration parameters of the target object at each test value, and taking the calibration parameter curve as the calibration parameters of the target object.
In a possible implementation manner, an embodiment of the present invention provides the above method, where the target object includes one or more of the following: input voltage, input current, output voltage, and output current.
In a possible implementation manner, in the method provided by the embodiment of the present invention, when the target object includes the input voltage, a value range of a test value of a calibration parameter, which is configured in advance and used for setting the target object, includes a value range of a test value of the input voltage;
according to a pre-configured value range of test values for setting calibration parameters of a target object, selecting a plurality of test values from the value range to test in a direct current converter respectively, wherein the method comprises the following steps:
and selecting a plurality of input voltages from the value range of the test value of the input voltage according to the value range of the test value of the input voltage configured in advance, and inputting the input voltages into the direct current converter for testing.
In a possible implementation manner, in the method provided by the embodiment of the present invention, when the target object includes the output voltage, a value range of a test value for setting the calibration parameter of the target object, which is configured in advance, includes a value range of a test value of the output voltage;
according to a pre-configured value range of test values for setting calibration parameters of a target object, selecting a plurality of test values from the value range to test in a direct current converter respectively, wherein the method comprises the following steps:
selecting a plurality of output voltages from the value range of the test value of the output voltage according to the value range of the test value of the output voltage configured in advance;
and adjusting the load connected with the DC converter so that the DC converter respectively outputs a plurality of selected output voltages for testing.
In a possible implementation manner, in the method provided by the embodiment of the present invention, when the target object includes the input current, the value range of the test value for setting the calibration parameter of the target object, which is configured in advance, includes the value range of the test value of the input voltage and the value range of the test value of the input current;
according to a pre-configured value range of test values for setting calibration parameters of a target object, selecting a plurality of test values from the value range to test in a direct current converter respectively, wherein the method comprises the following steps:
selecting a plurality of input voltages from the value range of the test value of the input voltage according to the value range of the test value of the input voltage configured in advance;
and aiming at each selected input voltage, under the condition that each input voltage is input into the DC converter, selecting a plurality of input currents from the value range of the test value of the input current to respectively test the DC converter.
In a possible implementation manner, in the method provided by an embodiment of the present invention, when the target object includes the output current, the value range of the test value for setting the calibration parameter of the target object, which is configured in advance, includes the value range of the test value of the output voltage and the value range of the test value of the output current;
according to a pre-configured value range of test values for setting calibration parameters of a target object, selecting a plurality of test values from the value range to test in a direct current converter respectively, wherein the method comprises the following steps:
selecting a plurality of output voltages from the value range of the test value of the output voltage according to the value range of the test value of the output voltage configured in advance;
and aiming at each selected output voltage, under the condition that the load connected with the direct current converter is adjusted to enable the direct current converter to output each output voltage, selecting a plurality of output currents from the value range of the test value of the output current, and enabling the direct current converter to output the plurality of output currents respectively for testing.
According to an aspect of the present invention, there is provided a calibration parameter setting apparatus for setting a calibration parameter of a dc converter, the apparatus including:
the test unit is used for selecting a plurality of test values from the value range to test in the direct current converter respectively according to the value range of the test values of the calibration parameters for setting the target object, which are configured in advance;
the acquisition unit is used for acquiring a corresponding measured value when each test value is tested in the direct current converter;
the processing unit is used for comparing each test value with the corresponding measured value of each test value to generate a calibration parameter of the target object;
and the configuration unit is used for configuring the generated calibration parameters of the target object into the direct current converter.
In a possible implementation manner, in the apparatus provided in an embodiment of the present invention, the processing unit is specifically configured to:
comparing each test value with the corresponding measured value of each test value to generate a temporary calibration parameter of the target object;
and under the condition that the verification result of the temporary calibration parameters to the target object in the DC converter meets the preset allowable error, taking the temporary calibration parameters as the calibration parameters of the target object.
In a possible implementation manner, in the apparatus provided in an embodiment of the present invention, the processing unit is specifically configured to:
comparing each test value with the corresponding measured value of each test value to generate a calibration parameter of the target object at each test value;
and fitting to generate a calibration parameter curve of the target object based on the calibration parameters of the target object at each test value, and taking the calibration parameter curve as the calibration parameters of the target object.
In a possible implementation manner, an embodiment of the present invention provides the above apparatus, wherein the target object includes one or more of the following: input voltage, input current, output voltage, and output current.
In a possible implementation manner, in the apparatus provided in an embodiment of the present invention, when the target object includes the input voltage, a value range of a test value for setting the calibration parameter of the target object, which is configured in advance, includes a value range of a test value of the input voltage;
the test unit is specifically configured to:
and selecting a plurality of input voltages from the value range of the test value of the input voltage according to the value range of the test value of the input voltage configured in advance, and inputting the input voltages into the direct current converter for testing.
In a possible implementation manner, in the apparatus provided in an embodiment of the present invention, when the target object includes the output voltage, a value range of a test value for setting the calibration parameter of the target object, which is configured in advance, includes a value range of a test value of the output voltage;
the test unit is specifically configured to:
selecting a plurality of output voltages from the value range of the test value of the output voltage according to the value range of the test value of the output voltage configured in advance;
and adjusting the load connected with the DC converter so that the DC converter respectively outputs a plurality of selected output voltages for testing.
In a possible implementation manner, in the apparatus provided in an embodiment of the present invention, when the target object includes the input current, the pre-configured value range of the test value for setting the calibration parameter of the target object includes a value range of the test value of the input voltage and a value range of the test value of the input current;
the test unit is specifically configured to:
selecting a plurality of input voltages from the value range of the test value of the input voltage according to the value range of the test value of the input voltage configured in advance;
and aiming at each selected input voltage, under the condition that each input voltage is input into the DC converter, selecting a plurality of input currents from the value range of the test value of the input current to respectively test the DC converter.
In a possible implementation manner, in the apparatus provided in an embodiment of the present invention, when the target object includes the output current, a value range of a test value for setting the calibration parameter of the target object, which is configured in advance, includes a value range of a test value of the output voltage and a value range of a test value of the output current;
the test unit is specifically configured to:
selecting a plurality of output voltages from the value range of the test value of the output voltage according to the value range of the test value of the output voltage configured in advance;
and aiming at each selected output voltage, under the condition that the load connected with the direct current converter is adjusted to enable the direct current converter to output each output voltage, selecting a plurality of output currents from the value range of the test value of the output current, and enabling the direct current converter to output the plurality of output currents respectively for testing.
According to an aspect of the present invention, there is provided a calibration parameter setting system, including: the calibration parameter setting device provided by the above embodiment of the present invention, the digital adjustable electronic load, the digital adjustable power supply, and the dc converter, which are in communication connection with the calibration parameter setting device; wherein,
the calibration parameter setting device selects a plurality of test values from a value range of the test values of the calibration parameters for setting the target object, which are configured in advance, through a digital adjustable power supply and/or a digital adjustable electronic load, tests the test values in the direct current converter respectively, acquires a corresponding measured value of each test value when the test value is tested in the direct current converter, compares each test value with the corresponding measured value of each test value to generate the calibration parameters of the target object, and configures the generated calibration parameters of the target object into the direct current converter.
According to an aspect of the present invention, there is provided a calibration parameter setting apparatus including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method for setting calibration parameters provided by the above-described embodiments of the present invention.
According to an aspect of the present invention, there is provided a computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the setting method of calibration parameters provided by the above-described embodiments of the present invention.
According to the calibration parameter setting method, device, system, equipment and medium provided by the embodiment of the invention, according to the value range of the test values of the calibration parameter for setting the target object, a plurality of test values are selected from the value range and are respectively tested in the direct current converter, the corresponding measured value of each test value during testing in the direct current converter is collected, the measured value corresponding to each test value and each test value is compared, the calibration parameter of the target object is generated, and the generated calibration parameter of the target object is configured in the direct current converter.
According to the setting scheme of the calibration parameters, the calibration parameters are tested and configured independently for each direct current converter, and compared with the fact that all direct current converters in the prior art use the same calibration parameters, the calibration parameters configured independently for each direct current converter are obtained by considering the difference between circuit boards in different direct current converters, and accuracy of the calibration parameters of the direct current converters is improved.
Drawings
Fig. 1 is a schematic flow chart of a method for setting calibration parameters according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of setting calibration parameters of an input voltage according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of setting calibration parameters of an input current according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of setting calibration parameters of an output voltage according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of setting calibration parameters for output current according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for setting calibration parameters according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a system for setting calibration parameters according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a device for setting calibration parameters according to an embodiment of the present invention.
Detailed Description
The following describes in detail specific embodiments of a method, an apparatus, a system, a device, and a medium for setting calibration parameters according to embodiments of the present invention with reference to the accompanying drawings.
As shown in fig. 1, the method for setting calibration parameters according to the embodiment of the present invention may include the following steps:
step 101, selecting a plurality of test values from the value range of the test values to test in the dc converter respectively according to the value range of the test values of the calibration parameters for setting the target object configured in advance.
It should be noted that, when the dc converter is used in cooperation with the solar thin film battery, there is a boundary between the output voltage and the output current of the solar thin film battery, that is, there is a boundary between the input voltage and the input current of the dc converter, and there is a boundary between the output voltage and the output current of the dc converter, so that in the embodiment of the present invention, when setting the calibration parameter of the dc converter, it is only necessary to set the calibration parameter of the dc converter within a certain range, so as to reduce the calculation amount.
In specific implementation, the value range of the test value of the calibration parameter for setting the target object may be pre-configured by a tester according to the input voltage, the input current, the output voltage, and the output current of the dc converter. Of course, in other embodiments of the present invention, the range of the test value of the calibration parameter for setting the target object may also be freely set by the tester, and is not limited in this respect.
In specific implementation, when a plurality of test values are selected from the range of the test values and are respectively tested in the dc converter, to improve accuracy, the test values should be selected as many as possible from the range of the test values, for example, the range of the test values is [5 volts (V), 10V ], when the test values are selected, 5V can be selected as a first test value, then one test value is selected at intervals of 0.2V, and so on, the plurality of test values are selected.
In specific implementation, when a plurality of test values are selected from the value range of the test values and are respectively tested in the direct current converter, if a target object is input voltage and/or input current, the selected test values are respectively input into the direct current converter for testing; and if the target object is the output voltage and/or the output current, controlling the direct current converter to respectively output a plurality of selected test values for testing.
Step 102, collecting a corresponding measured value of each test value when the test value is tested in the direct current converter.
In specific implementation, if the target object is input voltage and/or input current, in step 101, when a plurality of test values are selected from the range of the test values and are respectively tested in the dc converter, the selected plurality of test values are respectively input into the dc converter for testing, and at this time, the test value corresponding to each test value in the dc converter is collected, that is, the test value corresponding to each input test value of the dc converter is read.
In specific implementation, if the target object is output voltage and/or output current, in step 101, when a plurality of test values are selected from the range of the test values and are respectively tested in the dc converter, the dc converter is controlled to respectively output the selected plurality of test values for testing, and at this time, the test value corresponding to each test value in the dc converter is collected, that is, the test value is the voltage value and/or the current value output by the dc converter.
And 103, comparing each test value with the corresponding measured value of each test value to generate a calibration parameter of the target object.
In specific implementation, after the selected multiple test values are respectively tested in the dc converter and the measured value corresponding to each test value is collected, the calibration parameter of the target object can be generated according to each test value and the measured value corresponding to each test value.
In one example, when each test value and the measurement value corresponding to each test value are compared to generate the calibration parameter of the target object, the ratio of each test value and the measurement value corresponding to each test value may be used as the calibration parameter of the target object.
In a possible embodiment, in step 103, comparing each test value with the measurement value corresponding to each test value, generating a calibration parameter of the target object, which is a calibration parameter of the target object at each test value, and in order to obtain the calibration parameter of the target object at each point in the range of the test values, fitting to generate a calibration parameter curve of the target object based on the calibration parameter of the target object at each test value, and taking the calibration parameter curve as the calibration parameter of the target object.
In one possible embodiment, in order to improve the accuracy of the generated calibration parameter of the target object, when the calibration parameter of the target object is generated by comparing each test value with the measurement value corresponding to each test value, a temporary calibration parameter of the target object may be generated by comparing each test value with the measurement value corresponding to each test value, and then the temporary calibration parameter may be used as the calibration parameter of the target object under the condition that it is determined that the verification result of the temporary calibration parameter on the target object in the dc converter meets the preset allowable error.
During specific implementation, each test value is compared with a measured value corresponding to each test value, a temporary calibration parameter of a target object is generated, the temporary calibration parameter is temporarily stored in a memory of the direct current converter, then a plurality of test values are selected from a value range of the test values to verify the temporary calibration parameter temporarily stored in the direct current converter, and the temporary calibration parameter is used as the calibration parameter of the target object under the condition that a verification result meets a preset allowable error.
When the temporary calibration parameters temporarily stored in the dc converter are verified by selecting a plurality of test values within the range of the test values, the selected plurality of test values may be different from the plurality of test values selected in step 101.
And step 104, configuring the generated calibration parameters of the target object into the direct current converter.
In specific implementation, after the calibration parameters of the target object are generated, the generated calibration parameters of the target object may be written into a hardware memory of the dc converter, so as to configure the generated calibration parameters of the target object into the dc converter.
The target object mentioned in the embodiment of the present invention includes one or more of the following: input voltage, input current, output voltage, and output current.
The following describes in detail the procedure of setting the calibration parameter of the input voltage, the calibration parameter of the input current, the calibration parameter of the output voltage, and the calibration parameter of the output current, respectively.
As shown in fig. 2, when the target object is the input voltage, the pre-configured value range of the test value of the calibration parameter for setting the target object is the value range of the test value of the input voltage, and the specific step of setting the calibration parameter of the input voltage includes:
step 201, a value range of a test value of the input voltage, a number n of test points, and an allowable error e are configured in advance. For example, the range of the test value of the input voltage is the interval [5V, 10V ], the number of test points is 50, and the allowable error is 1%.
In step 202, n test values of the input voltage are selected from the value range of the test values of the input voltage. In the specific selection, the selection may be performed at fixed intervals, or may be performed randomly, which is not limited in the present invention.
Step 203, inputting the selected n test values of the input voltage into the dc converter for testing. In specific implementation, the selected n input voltages can be generated by the digital adjustable power supply and are respectively input into the direct current converter for testing.
Step 204, collecting the measured value of the dc converter for each input voltage. I.e. to collect the measured values of the dc converter for each input voltage.
Step 205, comparing the test value of the input voltage with the measured value corresponding to each collected test value, and generating a calibration parameter of the input voltage. For example, a ratio of a test value of the input voltage to a measured value corresponding to each collected test value is calculated as a calibration parameter of the input voltage at each test value.
And step 206, performing interpolation fitting on the generated calibration parameters of the input voltage at each test value to form a calibration parameter curve of the input voltage, and temporarily storing the calibration parameters in the direct current converter.
Step 207, reselecting a plurality of test values to verify the calibration parameter curve of the input voltage temporarily stored in the dc converter. In one embodiment, the selected test values may be different from the n test values selected in step 202.
In step 208, it is determined whether the error of the verification result exceeds the allowable error e, if yes, step 202 is executed to reselect the input voltage for testing, and if not, step 209 is executed.
It should be noted that, because the repeatability of the voltage is good, when the error of the verification result is determined to exceed the allowable error e, the input voltage may be reselected for testing.
In step 209, the calibration parameter curve of the input voltage generated in step 206 is written into the memory of the dc converter.
As shown in fig. 3, when the target object is the input current, the pre-configured value range of the test value of the calibration parameter for setting the target object includes a value range of the test value of the input voltage and a value range of the test value of the input current, and the specific step of setting the calibration parameter of the input current includes:
step 301, pre-configuring a value range of a test value of an input voltage, a number n of test points of the input voltage, a value range of a test value of an input current, a number m of test points of the input current, and an allowable error e. For example, the range of the test value of the input voltage is the interval [5V, 10V ], the number of the test points of the input voltage is 20, the range of the test value of the input current is the interval [200 milliampere (mA), 2 ampere (a) ], the number of the test points of the input current is 50, and the allowable error is 1%.
Step 302, selecting n test values of the input voltage from the value range of the test values of the input voltage, and selecting m test values of the input current from the value range of the test values of the input current. In the specific selection, the selection may be performed at fixed intervals, or may be performed randomly, which is not limited in the present invention.
Step 303, under each test value of the input voltage, the selected test values of the m input currents are respectively input into the dc converter for testing. In specific implementation, the selected input voltage and the selected input current can be generated by the digital adjustable power supply and are respectively input into the direct current converter for testing.
Step 304, collecting a measured value of each input current for each direct current converter under the test value of each input voltage. That is, the measured value of each input current by the dc converter is acquired under the test value of each input voltage.
And 305, comparing the test value of the input current with the measured value corresponding to each acquired test value, and generating a calibration parameter of the input current. For example, a ratio of a test value of the input current to a measured value corresponding to each of the collected test values is calculated as a calibration parameter of the input current at each of the test values.
And step 306, performing interpolation fitting on the generated calibration parameters of the input current at each test value to form a calibration parameter curve of the input current, and temporarily storing the calibration parameters in the direct current converter.
It should be noted that the calibration parameter curve of the input current may be multiple, each test value of the input voltage corresponds to one calibration parameter curve of the input current, and the multiple calibration parameter curves of the input current may also be fitted to the calibration parameter curved surface of the input current.
Step 307, reselecting a plurality of test values of the output voltage and the input current, and verifying the calibration parameter curve of the input current temporarily stored in the dc converter.
In one embodiment, the test value of the input voltage may be re-selected from a pre-configured range of values of the test value of the input voltage, and the selected test values of the plurality of input voltages may be different from the n test values selected in step 202.
In specific implementation, the test value of the input current may be reselected from a value range of the pre-configured test values of the input current, and the selected test values of the plurality of input currents may be different from the m test values selected in step 202.
Step 308, determining whether the error of the verification result exceeds the allowable error e, if yes, executing step 309, and if not, executing step 310.
It should be noted that, due to poor repeatability of the current, when the error of the verification result is determined to exceed the allowable error e, the fitting mode can be replaced to re-fit the calibration parameter curve of the input current.
Step 309, replacing the fitting mode, re-fitting the calibration parameter curve of the generated input current according to the calibration parameter of the input current generated in step 305, temporarily storing the re-generated calibration parameter curve in the dc converter, and performing step 307 to perform verification.
Step 310, writing the calibration parameter curve of the input current with the calibration error smaller than e into the memory of the dc converter.
As shown in fig. 4, when the target object is the output voltage, the pre-configured value range of the test value of the calibration parameter for setting the target object is the value range of the test value of the output voltage, and the specific step of setting the calibration parameter of the output voltage includes:
step 401, pre-configuring a value range of a test value of the output voltage, a number n of test points, and an allowable error e. For example, the range of the test value of the output voltage is the interval [4V, 6V ], the number of test points is 50, and the allowable error is 1%.
Step 402, selecting n test values of the output voltage from the value range of the test values of the output voltage. In the specific selection, the selection may be performed at fixed intervals, or may be performed randomly, which is not limited in the present invention.
And 403, adjusting the load connected with the dc converter to enable the dc converter to output the selected test values of the n output voltages respectively for testing. During specific implementation, the size of the load connected with the direct current converter can be changed by adjusting the digital adjustable electronic load connected with the direct current converter, so that the direct current converter can respectively output the selected n output voltages for testing.
Step 404, collecting the measured value of the output voltage of the dc converter under each test value of the output voltage. That is, the output voltage of the dc-dc converter under the test value of each output voltage is measured, and the measurement value corresponding to the test value of each output voltage is obtained.
Step 405, comparing the test value of the output voltage with the measured value corresponding to each collected test value, and generating a calibration parameter of the output voltage. For example, a ratio of a test value of the output voltage to a measured value corresponding to each collected test value is calculated as a calibration parameter of the output voltage at each test value.
And 406, performing interpolation fitting on the generated calibration parameters of the output voltage at each test value to form a calibration parameter curve of the output voltage, and temporarily storing the calibration parameters in the direct current converter.
Step 407, a plurality of test values are reselected to verify the calibration parameter curve of the output voltage temporarily stored in the dc converter. In one embodiment, the selected test values may be different from the n test values selected in step 404.
Step 408, determining whether the error of the verification result exceeds the allowable error e, if yes, executing step 404 to reselect the output voltage for testing, and if not, executing step 409.
It should be noted that, because the repeatability of the voltage is good, when it is determined that the error of the verification result exceeds the allowable error e, the output voltage can be reselected for testing.
In step 409, the calibration parameter curve of the output voltage generated in step 406 is written into the memory of the dc converter.
As shown in fig. 5, when the target object is the output current, the pre-configured value range of the test value of the calibration parameter for setting the target object includes a value range of the test value of the output voltage and a value range of the test value of the output current, and the specific step of setting the calibration parameter of the output current includes:
step 501, a value range of a test value of output voltage, a number n of test points of output voltage, a value range of a test value of output current, a number m of test points of output current, and an allowable error e are configured in advance. For example, the range of the test value of the output voltage is the interval [4V, 8V ], the number of test points of the output voltage is 20, the range of the test value of the output current is the interval [200mA, 2A ], the number of test points of the output current is 50, and the allowable error is 1%.
Step 502, selecting n test values of the output voltage from the value range of the test value of the output voltage, and selecting m test values of the output current from the value range of the test value of the output current. In the specific selection, the selection may be performed at fixed intervals, or may be performed randomly, which is not limited in the present invention.
Step 503, under each test value of the output voltage, adjusting the load connected to the dc converter to make the dc converter output the m selected output currents respectively for testing. During specific implementation, the size of the load connected with the direct current converter can be changed by adjusting the digital adjustable electronic load connected with the direct current converter, so that the direct current converter can respectively output the selected n output voltages and m output currents for testing.
Step 504, collecting the measured value of the output current of the dc converter under each test value of the output voltage and each test value of the output current.
And 505, comparing the test value of the output current with the measured value corresponding to each acquired test value, and generating a calibration parameter of the output current. For example, a ratio of a test value of the output current to a measured value corresponding to each of the collected test values is calculated as a calibration parameter of the output current at each of the test values.
Step 506, performing interpolation fitting on the calibration parameters of the generated output current at each test value to form a calibration parameter curve of the output current, and temporarily storing the calibration parameters in the dc converter.
It should be noted that the calibration parameter curves of the output currents may be multiple, each test value of the output voltage corresponds to one calibration parameter curve of the output current, and the multiple calibration parameter curves of the output currents may also be fitted to the calibration parameter curved surface of the output current.
Step 507, reselecting the test values of the plurality of output voltages and the test value of the output current, and verifying the calibration parameter curve of the output current temporarily stored in the dc converter.
In one embodiment, the test value of the output voltage may be re-selected from a pre-configured range of values of the test value of the output voltage, and the selected test values of the plurality of output voltages may be different from the n test values selected in step 202.
In specific implementation, the test value of the output current may be reselected from a value range of the pre-configured test values of the output current, and the selected test values of the plurality of output currents may be different from the m test values selected in step 202.
In step 508, it is determined whether the error of the verification result exceeds the allowable error e, if yes, step 509 is executed, and if not, step 510 is executed.
It should be noted that, because the repeatability of the current is poor, when the error of the verification result is determined to exceed the allowable error e, the fitting mode can be replaced to re-fit the calibration parameter curve of the output current.
Replacing the fitting mode, re-fitting the calibration parameter curve generated in step 509 according to the calibration parameter of the output current generated in step 505, temporarily storing the re-generated calibration parameter curve in the dc converter, and performing the verification in step 507.
Step 510, writing the calibration parameter curve of the output current with the calibration error smaller than e into the memory of the dc converter.
Based on the same inventive concept, the embodiment of the invention also provides a setting device for the calibration parameters.
As shown in fig. 6, the apparatus for setting calibration parameters according to the embodiment of the present invention includes:
the test unit 601 is configured to select a plurality of test values from a value range according to a value range of test values configured in advance for setting a calibration parameter of a target object, and respectively test the selected test values in the dc converter.
The collecting unit 602 is configured to collect a corresponding measurement value when each test value is tested in the dc converter.
The processing unit 603 is configured to compare each test value with the corresponding measurement value of each test value, and generate a calibration parameter of the target object.
A configuration unit 604, configured to configure the generated calibration parameters of the target object into the dc converter.
In a possible implementation, the processing unit 603 is specifically configured to: comparing each test value with the corresponding measured value of each test value to generate a temporary calibration parameter of the target object; and under the condition that the verification result of the temporary calibration parameters to the target object in the DC converter meets the preset allowable error, taking the temporary calibration parameters as the calibration parameters of the target object.
In a possible implementation, the processing unit 603 is specifically configured to: comparing each test value with the corresponding measured value of each test value to generate a calibration parameter of the target object at each test value; and fitting to generate a calibration parameter curve of the target object based on the calibration parameters of the target object at each test value, and taking the calibration parameter curve as the calibration parameters of the target object.
In one possible embodiment, the target object includes one or more of: input voltage, input current, output voltage, and output current.
In a possible implementation manner, when the target object includes the input voltage, the value range of the test value of the calibration parameter for setting the target object, which is configured in advance, includes the value range of the test value of the input voltage; the test unit 601 is specifically configured to: and selecting a plurality of input voltages from the value range of the test value of the input voltage according to the value range of the test value of the input voltage configured in advance, and inputting the input voltages into the direct current converter for testing.
In a possible implementation manner, when the target object includes the output voltage, the value range of the test value of the calibration parameter for setting the target object, which is configured in advance, includes the value range of the test value of the output voltage; the test unit 601 is specifically configured to: selecting a plurality of output voltages from the value range of the test value of the output voltage according to the value range of the test value of the output voltage configured in advance; and adjusting the load connected with the DC converter so that the DC converter respectively outputs a plurality of selected output voltages for testing.
In a possible implementation manner, when the target object includes the input current, the value range of the test value of the calibration parameter, which is configured in advance and used for setting the target object, includes the value range of the test value of the input voltage and the value range of the test value of the input current; the test unit 601 is specifically configured to: selecting a plurality of input voltages from the value range of the test value of the input voltage according to the value range of the test value of the input voltage configured in advance; and aiming at each selected input voltage, under the condition that each input voltage is input into the DC converter, selecting a plurality of input currents from the value range of the test value of the input current to respectively test the DC converter.
In a possible implementation manner, when the target object includes the output current, the value range of the test value of the calibration parameter, which is configured in advance and used for setting the target object, includes the value range of the test value of the output voltage and the value range of the test value of the output current; the test unit 601 is specifically configured to: selecting a plurality of output voltages from the value range of the test value of the output voltage according to the value range of the test value of the output voltage configured in advance; and aiming at each selected output voltage, under the condition that the load connected with the direct current converter is adjusted to enable the direct current converter to output each output voltage, selecting a plurality of output currents from the value range of the test value of the output current, and enabling the direct current converter to output the plurality of output currents respectively for testing.
An embodiment of the present invention further provides a system for setting calibration parameters, as shown in fig. 7, including: the second aspect of the embodiment of the present invention provides a calibration parameter setting device 701, a digitally tunable electronic load 702 communicatively connected to the calibration parameter setting device 701, a digitally tunable power supply 703, and a dc converter 704.
The calibration parameter setting device 701 selects a plurality of test values from a pre-configured range of test values for setting a calibration parameter of a target object through the digital adjustable power source 703 and/or the digital adjustable electronic load 702, tests the test values in the dc converter 704, acquires a corresponding measurement value of each test value when testing in the dc converter 704, compares each test value with the corresponding measurement value of each test value, generates a calibration parameter of the target object, and configures the generated calibration parameter of the target object into the dc converter 704.
It should be noted that, in the system for setting calibration parameters provided in the embodiment of the present invention, the setting device 702 of calibration parameters may be connected to one or more dc converters 704, that is, calibration parameters of a plurality of dc converters may be set simultaneously.
In addition, the calibration parameter setting method and apparatus described in conjunction with fig. 1 to 6 according to the embodiments of the present invention may be implemented by a calibration parameter setting device. Fig. 8 is a schematic diagram illustrating a hardware configuration of a device for setting calibration parameters according to an embodiment of the present invention.
The setting device of the calibration parameters may comprise a processor 801 and a memory 802 storing computer program instructions.
Specifically, the processor 801 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
Memory 802 may include mass storage for data or instructions. By way of example, and not limitation, memory 802 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, a tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 802 may include removable or non-removable (or fixed) media, where appropriate. The memory 802 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 802 is a non-volatile solid-state memory. In a particular embodiment, the memory 802 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
The processor 801 reads and executes the computer program instructions stored in the memory 802 to implement any one of the calibration parameter setting methods in the above embodiments.
In one example, the setting device of the calibration parameters may further include a communication interface 803 and a bus 810. As shown in fig. 8, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 810 to complete communication therebetween.
The communication interface 803 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
The bus 810 includes hardware, software, or both to couple the components of the setting device of the calibration parameters to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 88 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
The calibration parameter setting device may execute the calibration parameter setting method in the embodiment of the present invention based on the selected test value and the measurement value corresponding to each test value, thereby implementing the calibration parameter setting method and apparatus described in conjunction with fig. 1 to 6.
In addition, in combination with the method for setting the calibration parameter in the above embodiments, the embodiments of the present invention can be implemented by providing a computer-readable storage medium. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any one of the calibration parameter setting methods in the above embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.