Disclosure of Invention
The embodiment of the invention provides a method and a device for determining residual electric quantity and an uninterruptible power supply, which are used for solving the problem of low reliability in the process of determining the residual electric quantity.
In a first aspect, an embodiment of the present invention provides a remaining power determining method, including:
Acquiring first test data and second test data of a target power supply; the first test data are voltage and electric quantity relation data obtained by performing discharge test of a first preset current on the target power supply, and the second test data are voltage and electric quantity relation data obtained by performing discharge test of a second preset current on the target power supply;
Acquiring first difference data of first test data and first standard voltage electric quantity relation data of a target power supply and second difference data of second test data and second standard voltage electric quantity relation data of the target power supply; the first standard voltage electric quantity relation data corresponds to a first preset current, and the second standard voltage electric quantity relation data corresponds to a second preset current;
according to the first preset current, the second preset current and the current discharge current of the target power supply, performing linear fitting on the first difference data and the second difference data to obtain third difference data corresponding to the current discharge current;
combining the third difference value data with third standard voltage electric quantity relation data of the target power supply corresponding to the current discharge current to obtain target voltage electric quantity relation data of the target power supply corresponding to the current discharge current;
and determining the residual electric quantity of the target power supply according to the target voltage electric quantity relation data.
In one possible implementation manner, the target power supply stores a plurality of standard voltage and electric quantity relation data sets of the preset batteries in advance;
Before acquiring the first difference value data of the first test data and the first standard voltage electric quantity relation data of the target power supply and the second difference value data of the second test data and the second standard voltage electric quantity relation data of the target power supply, the method further comprises:
Under the condition that a preset battery exists in a battery of a target power supply, acquiring first standard voltage electric quantity relation data, second standard voltage electric quantity relation data and third standard voltage electric quantity relation data from a standard voltage electric quantity relation data set of the corresponding preset battery;
Under the condition that a preset battery does not exist in the battery of the target power supply, acquiring first standard voltage electric quantity relation data, second standard voltage electric quantity relation data and third standard voltage electric quantity relation data from a standard voltage electric quantity relation data set of the default preset battery.
In one possible implementation, obtaining first difference data between the first test data and first standard voltage power relation data of the target power supply includes:
Respectively performing difference processing on the electric quantity values corresponding to the same voltage value in the first test data and the first standard voltage electric quantity relation data to obtain a first electric quantity difference value under the corresponding voltage value;
Determining all voltage values and a set of first electric quantity difference values under corresponding voltage values as first difference value data;
obtaining second difference data of second test data and second standard voltage electric quantity relation data of the target power supply comprises the following steps:
Respectively performing difference processing on the electric quantity values corresponding to the same voltage value in the second test data and the second standard voltage electric quantity relation data to obtain a second electric quantity difference value under the corresponding voltage value;
And determining a set of all the voltage values and the second electric quantity difference value under the corresponding voltage values as second difference value data.
In one possible implementation, the first preset current is less than the present discharge current, which is less than the second preset current;
According to the first preset current, the second preset current and the current discharge current of the target power supply, performing linear fitting on the first difference data and the second difference data to obtain third difference data corresponding to the current discharge current, wherein the linear fitting comprises the following steps:
acquiring a first current difference value between a second preset current and a first preset current and a second current difference value between the current discharge current and the first preset current;
According to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first electric quantity difference value and the second electric quantity difference value under the same voltage value to obtain a third electric quantity difference value under the corresponding voltage value;
and determining a set of all the voltage values and the third electric quantity difference value under the corresponding voltage values as third difference value data.
In one possible implementation manner, according to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first electric quantity difference value and the second electric quantity difference value under the same voltage value to obtain a third electric quantity difference value under the corresponding voltage value, including:
acquiring a fourth electric quantity difference value of the first electric quantity difference value and the second electric quantity difference value under the same voltage value;
calculating the multiplication value of the proportional value and the fourth electric quantity difference value;
and determining the sum of the multiplied value and the first electric quantity difference value as a third electric quantity difference value under the corresponding voltage value.
In one possible implementation, obtaining first difference data between the first test data and first standard voltage power relation data of the target power supply includes:
Respectively performing difference processing on the voltage values corresponding to the same electric quantity value in the first test data and the first standard voltage electric quantity relation data to obtain a first voltage difference value under the corresponding electric quantity value;
Determining a set of all electric quantity values and first voltage difference values under corresponding electric quantity values as first difference value data;
obtaining second difference data of second test data and second standard voltage electric quantity relation data of the target power supply comprises the following steps:
Respectively performing difference processing on the voltage values corresponding to the same electric quantity value in the second test data and the second standard voltage electric quantity relation data to obtain a second voltage difference value under the corresponding electric quantity value;
And determining a set of all the electric quantity values and second voltage difference values under the corresponding electric quantity values as second difference value data.
In one possible implementation, the first preset current is less than the present discharge current, which is less than the second preset current;
According to the first preset current, the second preset current and the current discharge current of the target power supply, performing linear fitting on the first difference data and the second difference data to obtain third difference data corresponding to the current discharge current, wherein the linear fitting comprises the following steps:
acquiring a first current difference value between a second preset current and a first preset current and a second current difference value between the current discharge current and the first preset current;
according to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first voltage difference value and the second voltage difference value under the same electric quantity value to obtain a third voltage difference value under the corresponding electric quantity value;
and determining a set of all the electric quantity values and third voltage difference values under the corresponding electric quantity values as third difference value data.
In one possible implementation manner, according to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first voltage difference value and the second voltage difference value under the same electric quantity value to obtain a third voltage difference value under the corresponding electric quantity value, including:
Acquiring a fourth voltage difference value of the first voltage difference value and the second voltage difference value under the same electric quantity value;
calculating the multiplication value of the proportional value and the fourth voltage difference value;
And determining the sum of the multiplied value and the first voltage difference value as a third voltage difference value under the corresponding electric quantity value.
In a second aspect, an embodiment of the present invention provides a remaining power determining apparatus, including:
The first acquisition module is used for acquiring first test data and second test data of the target power supply; the first test data are voltage and electric quantity relation data obtained by performing discharge test of a first preset current on the target power supply, and the second test data are voltage and electric quantity relation data obtained by performing discharge test of a second preset current on the target power supply;
The second acquisition module is used for acquiring first difference value data of the first test data and the first standard voltage electric quantity relation data of the target power supply and second difference value data of the second test data and the second standard voltage electric quantity relation data of the target power supply; the first standard voltage electric quantity relation data corresponds to a first preset current, and the second standard voltage electric quantity relation data corresponds to a second preset current;
The fitting module is used for linearly fitting the first difference value data and the second difference value data according to the first preset current, the second preset current and the current discharge current of the target power supply to obtain third difference value data corresponding to the current discharge current;
The merging module is used for merging the third difference value data with third standard voltage electric quantity relation data of the target power supply corresponding to the current discharge current to obtain target voltage electric quantity relation data of the target power supply corresponding to the current discharge current;
and the determining module is used for determining the residual capacity of the target power supply according to the target voltage and capacity relation data.
In one possible implementation manner, the target power supply stores a plurality of standard voltage and electric quantity relation data sets of the preset batteries in advance;
correspondingly, the residual electric quantity determining device further comprises a third acquisition module, configured to:
Under the condition that a preset battery exists in a battery of a target power supply, acquiring first standard voltage electric quantity relation data, second standard voltage electric quantity relation data and third standard voltage electric quantity relation data from a standard voltage electric quantity relation data set of the corresponding preset battery;
Under the condition that a preset battery does not exist in the battery of the target power supply, acquiring first standard voltage electric quantity relation data, second standard voltage electric quantity relation data and third standard voltage electric quantity relation data from a standard voltage electric quantity relation data set of the default preset battery.
In one possible implementation, the second acquisition module is further configured to:
Respectively performing difference processing on the electric quantity values corresponding to the same voltage value in the first test data and the first standard voltage electric quantity relation data to obtain a first electric quantity difference value under the corresponding voltage value;
Determining all voltage values and a set of first electric quantity difference values under corresponding voltage values as first difference value data;
Respectively performing difference processing on the electric quantity values corresponding to the same voltage value in the second test data and the second standard voltage electric quantity relation data to obtain a second electric quantity difference value under the corresponding voltage value;
And determining a set of all the voltage values and the second electric quantity difference value under the corresponding voltage values as second difference value data.
In one possible implementation, the first preset current is less than the present discharge current, which is less than the second preset current;
correspondingly, the fitting module is further configured to:
acquiring a first current difference value between a second preset current and a first preset current and a second current difference value between the current discharge current and the first preset current;
According to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first electric quantity difference value and the second electric quantity difference value under the same voltage value to obtain a third electric quantity difference value under the corresponding voltage value;
and determining a set of all the voltage values and the third electric quantity difference value under the corresponding voltage values as third difference value data.
In one possible implementation, the fitting module is further configured to:
acquiring a fourth electric quantity difference value of the first electric quantity difference value and the second electric quantity difference value under the same voltage value;
calculating the multiplication value of the proportional value and the fourth electric quantity difference value;
and determining the sum of the multiplied value and the first electric quantity difference value as a third electric quantity difference value under the corresponding voltage value.
In one possible implementation, the second acquisition module is further configured to:
Respectively performing difference processing on the voltage values corresponding to the same electric quantity value in the first test data and the first standard voltage electric quantity relation data to obtain a first voltage difference value under the corresponding electric quantity value;
Determining a set of all electric quantity values and first voltage difference values under corresponding electric quantity values as first difference value data;
Respectively performing difference processing on the voltage values corresponding to the same electric quantity value in the second test data and the second standard voltage electric quantity relation data to obtain a second voltage difference value under the corresponding electric quantity value;
And determining a set of all the electric quantity values and second voltage difference values under the corresponding electric quantity values as second difference value data.
In one possible implementation, the first preset current is less than the present discharge current, which is less than the second preset current;
correspondingly, the fitting module is further configured to:
acquiring a first current difference value between a second preset current and a first preset current and a second current difference value between the current discharge current and the first preset current;
according to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first voltage difference value and the second voltage difference value under the same electric quantity value to obtain a third voltage difference value under the corresponding electric quantity value;
and determining a set of all the electric quantity values and third voltage difference values under the corresponding electric quantity values as third difference value data.
In one possible implementation, the fitting module is further configured to:
Acquiring a fourth voltage difference value of the first voltage difference value and the second voltage difference value under the same electric quantity value;
calculating the multiplication value of the proportional value and the fourth voltage difference value;
And determining the sum of the multiplied value and the first voltage difference value as a third voltage difference value under the corresponding electric quantity value.
In a third aspect, an embodiment of the present invention provides an uninterruptible power supply, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the first aspect when the computer program is executed.
The embodiment of the invention provides a residual electric quantity determining method, a residual electric quantity determining device and an uninterruptible power supply, wherein first test data and second test data of a target power supply, namely corresponding two actual voltage electric quantity relation curves, can be obtained by carrying out discharge tests of different discharge currents, namely a first preset current discharge test and a second preset current discharge test, on the target power supply in advance. And then, fitting error data of the known standard voltage electric quantity relation curve of the current discharge current and the unknown actual voltage electric quantity relation curve of the current discharge current by utilizing error data of the two actual voltage electric quantity relation curves and the corresponding standard voltage electric quantity relation curves. Therefore, under the condition that the standard voltage and electric quantity relation curve of the current discharge current and corresponding error data are known, the actual voltage and electric quantity relation curve of the current discharge current can be obtained by back-pushing. The actual voltage-electricity relation curve of the current discharge current obtained by the back-pushing accords with the data rule obtained by a large number of tests, so that the actual voltage-electricity relation curve of the current discharge current obtained by the back-pushing can be considered to be the actual voltage-electricity relation curve of the current discharge current, and the residual electricity obtained based on the actual voltage-electricity relation curve has extremely high reliability.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the following description will be made by way of specific embodiments with reference to the accompanying drawings.
As described in the background art, currently, a standard voltage power relation curve built in the UPS device before shipment is generally used to determine the remaining power of the UPS device. Along with the increase of the service time of the UPS equipment, the battery of the power supply module gradually has an aging problem, the electrochemical parameter of the battery is different from the electrochemical parameter of the battery when the battery leaves the factory, at the moment, the standard voltage electric quantity relation curve is not suitable for the power supply module, if the standard voltage electric quantity relation curve is continuously adopted to determine the residual electric quantity of the UPS equipment, a larger error can occur, the reliability of the determined residual electric quantity is lower, the normal operation of the UPS equipment can be influenced, and the service life is even shortened.
In addition, a user sometimes replaces a battery of the power module during use of the UPS device, and there is a phenomenon in which the replaced battery is different from a factory battery. The manufacturer of the UPS device will not normally embed the standard voltage-power relation curves of all battery manufacturers in the UPS device, and at this time, the UPS device will determine the remaining power by using the general voltage-power relation curve, and since the general voltage-power relation curve is not in conformity with the standard voltage-power relation curve of the UPS device at this time, the determined remaining power is often inaccurate, and there is also a problem of low reliability.
In order to solve the problems in the prior art, the embodiment of the invention provides a method and a device for determining the residual electric quantity and an uninterruptible power supply. The remaining capacity determining method provided by the embodiment of the invention is described below.
Referring to fig. 1, a flowchart for implementing a method for determining a remaining power according to an embodiment of the present invention is shown, including the following steps:
step S110, first test data and second test data of a target power supply are obtained.
Specifically, the first test data is voltage and electricity quantity relation data obtained by performing a discharge test of a first preset current on the target power supply, and the second test data is voltage and electricity quantity relation data obtained by performing a discharge test of a second preset current on the target power supply.
In some embodiments, the target power source may be any type of power source device, such as a UPS power source device. The voltage and electric quantity relation data can be discharge data acquired when the battery of the target power supply is subjected to constant current discharge, namely, the data of battery voltage and battery residual capacity which change at moment in the discharge process can be expressed as a discharge curve, the abscissa of the curve can be the voltage value of the battery, the ordinate can be the residual electric quantity of the battery, and the unit of the residual electric quantity can be ampere hours or milliampere hours or converted into percentage.
Taking the first preset current as 200A, the second preset current as 20A, and the voltage-electricity-quantity relation data as discharge curves as examples, as shown in fig. 2, the first test data is a voltage-electricity-quantity relation curve 21 obtained by performing a 200A discharge test on the target power supply, and the second test data is a voltage-electricity-quantity relation curve 22 obtained by performing a 20A discharge test on the target power supply.
The following describes a technical concept of the remaining capacity determining method provided in the embodiment of the present invention.
The applicant finds out that the same battery with different aging degrees shows a linear relationship with error data of an actual voltage electric quantity relation curve obtained under the condition of different discharge currents and a standard voltage electric quantity relation curve of corresponding discharge currents through a large number of tests of the batteries with different aging degrees.
As shown in fig. 3, the curve 31 is an actual voltage-electricity relation curve obtained by testing an aged battery under 200A discharge current, the curve 32 is a standard voltage-electricity relation curve obtained by testing the battery under 200A discharge current when the battery leaves the factory, the curve 33 is an actual voltage-electricity relation curve obtained by testing the battery under 20A discharge current, the curve 34 is a standard voltage-electricity relation curve obtained by testing the battery under 20A discharge current when the battery leaves the factory, and it can be found that the difference between the curve 31 and the curve 32 and the difference between the curve 33 and the curve 34 are 2 times of linear relation.
Based on the above conception, the target power supply can be subjected to two discharge tests of different discharge currents, namely, a first preset current discharge test and a second preset current discharge test, so that two actual voltage and electric quantity relation curves can be obtained, and then based on the linear relation, error data of the two actual voltage and electric quantity relation curves and corresponding standard voltage and electric quantity relation curves can be utilized to reversely calculate error data of a known standard voltage and electric quantity relation curve of a certain discharge current and an unknown actual voltage and electric quantity relation curve of the certain discharge current. Therefore, under the condition that the standard voltage and electric quantity relation curve of the discharge current and corresponding error data are known, the actual voltage and electric quantity relation curve of the discharge current can be obtained in a back-thrust mode.
Thus, when the present discharge current of the target power supply is such a discharge current as described above, the remaining power can be determined using the actual voltage-power relationship curve of such a discharge current. The actual voltage-electricity relation curve of the discharge current obtained by the back-pushing accords with the data rule obtained by a large number of tests, so that the actual voltage-electricity relation curve of the discharge current obtained by the back-pushing can be considered to be the actual voltage-electricity relation curve of the discharge current, and the residual electricity obtained based on the actual voltage-electricity relation curve has extremely high reliability.
Step S120, obtaining first difference data of the first test data and the first standard voltage/power relation data of the target power supply, and second difference data of the second test data and the second standard voltage/power relation data of the target power supply.
Specifically, the first standard voltage and electric quantity relation data is standard voltage and electric quantity relation data of a target power supply corresponding to a first preset current, and the second standard voltage and electric quantity relation data is standard voltage and electric quantity relation data of the target power supply corresponding to a second preset current.
It should be noted that, before leaving the factory, the target power supply may store in advance a plurality of standard voltage and power relation data sets of preset batteries, for example, a standard voltage and power relation data set of a primary battery or a battery with a higher urban occupation rate configured in the factory, where the standard voltage and power relation data set includes standard voltage and power relations corresponding to a plurality of discharge currents.
Therefore, when the user replaces the battery of the target power supply in the using process of the target power supply, if the preset battery exists in the battery of the target power supply, the first standard voltage electric quantity relation data, the second standard voltage electric quantity relation data and the third standard voltage electric quantity relation data can be obtained from the standard voltage electric quantity relation data set of the corresponding preset battery stored in advance, and compared with the common standard voltage electric quantity relation data, errors in data can be reduced, and data with high reliability can be provided for subsequent processing.
In addition, if the battery of the target power supply does not have a preset battery, in order to avoid errors in the data processing logic, a standard voltage and electric quantity relation data set may be specified in advance, that is, the first standard voltage and electric quantity relation data, the second standard voltage and electric quantity relation data and the third standard voltage and electric quantity relation data are obtained from the default standard voltage and electric quantity relation data set of the preset battery.
In some embodiments, the difference data may be obtained in two ways, one is to calculate the difference in power at the same voltage value, and the other is to calculate the difference in voltage at the same power value.
The process of acquiring the first difference data and the second difference data by adopting the electric quantity difference acquiring mode under the same voltage value is described below.
For the first difference data, difference processing can be performed on the first test data and the electric quantity values corresponding to the same voltage value in the first standard voltage electric quantity relation data respectively to obtain a first electric quantity difference value under the corresponding voltage value, and then all the voltage values and the first electric quantity difference value under the corresponding voltage value are collected to obtain a set which is the first difference data.
And for the second difference data, respectively performing difference processing on the second test data and the electric quantity values corresponding to the same voltage value in the second standard voltage electric quantity relation data to obtain a second electric quantity difference value under the corresponding voltage value, and then collecting all the voltage values and the second electric quantity difference value under the corresponding voltage value, wherein the obtained set is the second difference data.
The process of acquiring the first difference data and the second difference data by adopting the acquisition mode of the voltage difference value under the same electric quantity value will be described below.
For the first difference data, difference processing can be performed on the voltage values corresponding to the same electric quantity value in the first test data and the first standard voltage electric quantity relation data respectively to obtain a first voltage difference value under the corresponding electric quantity value, and then all the electric quantity values and the first voltage difference value under the corresponding electric quantity value are gathered, and the obtained set is the first difference data.
And for the second difference data, respectively performing difference processing on the second test data and the voltage values corresponding to the same electric quantity value in the second standard voltage electric quantity relation data to obtain a second voltage difference value under the corresponding electric quantity value, and then collecting all the electric quantity values and the second voltage difference value under the corresponding electric quantity value, wherein the obtained set is the second difference data.
And step 130, performing linear fitting on the first difference data and the second difference data according to the first preset current, the second preset current and the current discharge current of the target power supply to obtain third difference data corresponding to the current discharge current.
Specifically, the current discharge current of the target power supply may be an actual discharge current during the operation of the target power supply.
For convenience of description, the process of obtaining the third difference data will be described below by taking the example that the first preset current is smaller than the current discharge current and the current discharge current is smaller than the second preset current.
Similarly to the first difference data and the second difference data, the third difference data may also be obtained in two ways, namely, in a way of calculating the difference of the electric quantities at the same electric voltage value and in a way of calculating the difference of the electric voltages at the same electric voltage value.
The process of obtaining the third difference data by using the method of obtaining the difference value of the electric quantity under the same voltage value will be described below.
First, a first current difference between the second preset current and the first preset current and a second current difference between the present discharge current and the first preset current may be obtained.
And then, respectively carrying out linear fitting on the first electric quantity difference value and the second electric quantity difference value under the same voltage value according to the proportional value of the second electric quantity difference value and the first electric quantity difference value to obtain a third electric quantity difference value under the corresponding voltage value.
Specifically, a fourth electric quantity difference value of the first electric quantity difference value and the second electric quantity difference value under the same voltage value can be obtained first, then a multiplication value of the proportional value and the fourth electric quantity difference value is calculated, and then the multiplication value and the first electric quantity difference value are summed to obtain a sum value which is the third electric quantity difference value under the corresponding voltage value of linear fitting.
And finally, collecting all the voltage values and the third electric quantity difference value under the corresponding voltage values, wherein the obtained set is third difference value data.
The process of obtaining the third difference data by using the current difference obtaining method under the same electric quantity value will be described below.
First, a first current difference between the second preset current and the first preset current and a second current difference between the present discharge current and the first preset current may be obtained.
And then, according to the proportional value of the second current difference value and the first current difference value, respectively carrying out linear fitting on the first voltage difference value and the second voltage difference value under the same electric quantity value to obtain a third voltage difference value under the corresponding electric quantity value.
Specifically, a fourth voltage difference value of the first voltage difference value and the second voltage difference value under the same electric quantity value can be obtained first, then a multiplication value of the proportional value and the fourth voltage difference value is calculated, and then the multiplication value and the first voltage difference value are summed to obtain a sum value which is a third electric quantity difference value under the corresponding voltage value of linear fitting.
And finally, collecting all the electric quantity values and third voltage difference values under the corresponding electric quantity values, wherein the obtained set is third difference value data.
It should be noted that the second preset current may be greater than the current discharge current or less than the current discharge current. In order to further improve the reliability of the remaining power determined later, a value greater than the current discharge current may be adopted as the second preset current.
And step 140, combining the third difference value data with the third standard voltage electric quantity relation data of the target power supply corresponding to the current discharge current to obtain the target voltage electric quantity relation data of the target power supply corresponding to the current discharge current.
In some embodiments, the target voltage power relationship data for the target power source may be considered to be the actual voltage power relationship data for the target power source at the present discharge current.
And step S150, determining the residual capacity of the target power supply according to the target voltage and capacity relation data.
In some embodiments, after obtaining the real voltage-electricity-quantity relation data of the target power supply under the current discharge current, the remaining electricity quantity of the target power supply can be directly determined in the real voltage-electricity-quantity relation data according to the current voltage value of the target power supply.
In the embodiment of the invention, the target power supply can be subjected to the discharge test of different discharge currents in advance, namely, the discharge test of the first preset current and the discharge test of the second preset current, so that the first test data and the second test data of the target power supply, namely, two corresponding actual voltage and electric quantity relation curves, can be obtained. And then, fitting error data of the known standard voltage electric quantity relation curve of the current discharge current and the unknown actual voltage electric quantity relation curve of the current discharge current by utilizing error data of the two actual voltage electric quantity relation curves and the corresponding standard voltage electric quantity relation curves. Therefore, under the condition that the standard voltage and electric quantity relation curve of the current discharge current and corresponding error data are known, the actual voltage and electric quantity relation curve of the current discharge current can be obtained by back-pushing. The actual voltage-electricity relation curve of the current discharge current obtained by the back-pushing accords with the data rule obtained by a large number of tests, so that the actual voltage-electricity relation curve of the current discharge current obtained by the back-pushing can be considered to be the actual voltage-electricity relation curve of the current discharge current, and the residual electricity obtained based on the actual voltage-electricity relation curve has extremely high reliability.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The following are device embodiments of the invention, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 4 is a schematic structural diagram of a remaining power determining apparatus according to an embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown, and the details are as follows:
As shown in fig. 4, the remaining power determining apparatus 400 includes:
A first obtaining module 410, configured to obtain first test data and second test data of a target power supply; the first test data are voltage and electric quantity relation data obtained by performing discharge test of a first preset current on the target power supply, and the second test data are voltage and electric quantity relation data obtained by performing discharge test of a second preset current on the target power supply;
The second obtaining module 420 is configured to obtain first difference data of the first test data and first standard voltage/power relation data of the target power supply, and second difference data of the second test data and second standard voltage/power relation data of the target power supply; the first standard voltage electric quantity relation data corresponds to a first preset current, and the second standard voltage electric quantity relation data corresponds to a second preset current;
The fitting module 430 is configured to perform linear fitting on the first difference data and the second difference data according to the first preset current, the second preset current, and the current discharge current of the target power supply, so as to obtain third difference data corresponding to the current discharge current;
The merging module 440 is configured to merge the third difference data and third standard voltage/power relation data of the target power supply corresponding to the current discharge current, so as to obtain target voltage/power relation data of the target power supply corresponding to the current discharge current;
and the determining module 450 is configured to determine the remaining power of the target power supply according to the target voltage power relation data.
In one possible implementation manner, the target power supply stores a plurality of standard voltage and electric quantity relation data sets of the preset batteries in advance;
correspondingly, the residual electric quantity determining device further comprises a third acquisition module, configured to:
Under the condition that a preset battery exists in a battery of a target power supply, acquiring first standard voltage electric quantity relation data, second standard voltage electric quantity relation data and third standard voltage electric quantity relation data from a standard voltage electric quantity relation data set of the corresponding preset battery;
Under the condition that a preset battery does not exist in the battery of the target power supply, acquiring first standard voltage electric quantity relation data, second standard voltage electric quantity relation data and third standard voltage electric quantity relation data from a standard voltage electric quantity relation data set of the default preset battery.
In one possible implementation, the second acquisition module is further configured to:
Respectively performing difference processing on the electric quantity values corresponding to the same voltage value in the first test data and the first standard voltage electric quantity relation data to obtain a first electric quantity difference value under the corresponding voltage value;
Determining all voltage values and a set of first electric quantity difference values under corresponding voltage values as first difference value data;
Respectively performing difference processing on the electric quantity values corresponding to the same voltage value in the second test data and the second standard voltage electric quantity relation data to obtain a second electric quantity difference value under the corresponding voltage value;
And determining a set of all the voltage values and the second electric quantity difference value under the corresponding voltage values as second difference value data.
In one possible implementation, the first preset current is less than the present discharge current, which is less than the second preset current;
correspondingly, the fitting module is further configured to:
acquiring a first current difference value between a second preset current and a first preset current and a second current difference value between the current discharge current and the first preset current;
According to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first electric quantity difference value and the second electric quantity difference value under the same voltage value to obtain a third electric quantity difference value under the corresponding voltage value;
and determining a set of all the voltage values and the third electric quantity difference value under the corresponding voltage values as third difference value data.
In one possible implementation, the fitting module is further configured to:
acquiring a fourth electric quantity difference value of the first electric quantity difference value and the second electric quantity difference value under the same voltage value;
calculating the multiplication value of the proportional value and the fourth electric quantity difference value;
and determining the sum of the multiplied value and the first electric quantity difference value as a third electric quantity difference value under the corresponding voltage value.
In one possible implementation, the second acquisition module is further configured to:
Respectively performing difference processing on the voltage values corresponding to the same electric quantity value in the first test data and the first standard voltage electric quantity relation data to obtain a first voltage difference value under the corresponding electric quantity value;
Determining a set of all electric quantity values and first voltage difference values under corresponding electric quantity values as first difference value data;
Respectively performing difference processing on the voltage values corresponding to the same electric quantity value in the second test data and the second standard voltage electric quantity relation data to obtain a second voltage difference value under the corresponding electric quantity value;
And determining a set of all the electric quantity values and second voltage difference values under the corresponding electric quantity values as second difference value data.
In one possible implementation, the first preset current is less than the present discharge current, which is less than the second preset current;
correspondingly, the fitting module is further configured to:
acquiring a first current difference value between a second preset current and a first preset current and a second current difference value between the current discharge current and the first preset current;
according to the proportional value of the second current difference value and the first current difference value, respectively performing linear fitting on the first voltage difference value and the second voltage difference value under the same electric quantity value to obtain a third voltage difference value under the corresponding electric quantity value;
and determining a set of all the electric quantity values and third voltage difference values under the corresponding electric quantity values as third difference value data.
In one possible implementation, the fitting module is further configured to:
Acquiring a fourth voltage difference value of the first voltage difference value and the second voltage difference value under the same electric quantity value;
calculating the multiplication value of the proportional value and the fourth voltage difference value;
And determining the sum of the multiplied value and the first voltage difference value as a third voltage difference value under the corresponding electric quantity value.
In the embodiment of the invention, the target power supply can be subjected to the discharge test of different discharge currents in advance, namely, the discharge test of the first preset current and the discharge test of the second preset current, so that the first test data and the second test data of the target power supply, namely, two corresponding actual voltage and electric quantity relation curves, can be obtained. And then, fitting error data of the known standard voltage electric quantity relation curve of the current discharge current and the unknown actual voltage electric quantity relation curve of the current discharge current by utilizing error data of the two actual voltage electric quantity relation curves and the corresponding standard voltage electric quantity relation curves. Therefore, under the condition that the standard voltage and electric quantity relation curve of the current discharge current and corresponding error data are known, the actual voltage and electric quantity relation curve of the current discharge current can be obtained by back-pushing. The actual voltage-electricity relation curve of the current discharge current obtained by the back-pushing accords with the data rule obtained by a large number of tests, so that the actual voltage-electricity relation curve of the current discharge current obtained by the back-pushing can be considered to be the actual voltage-electricity relation curve of the current discharge current, and the residual electricity obtained based on the actual voltage-electricity relation curve has extremely high reliability.
Fig. 5 is a schematic diagram of an uninterruptible power supply 5 according to an embodiment of the invention. As shown in fig. 5, the uninterruptible power supply 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The steps of the embodiments of the method for determining the remaining power described above, such as steps 110 through 150 shown in fig. 1, are implemented by the processor 50 when executing the computer program 52. Or the processor 50, when executing the computer program 52, performs the functions of the modules of the apparatus embodiments described above, such as the functions of the modules 410-450 shown in fig. 4.
By way of example, the computer program 52 may be partitioned into one or more modules that are stored in the memory 51 and executed by the processor 50 to perform the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions describing the execution of the computer program 52 in the ups 5. For example, the computer program 52 may be partitioned into modules 410 through 450 shown in FIG. 4.
The ups 5 may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 5 is merely an example of an uninterruptible power supply 5 and is not meant to be limiting as the uninterruptible power supply 5 may include more or fewer components than shown, or may combine certain components, or may include different components, such as a power module, an inverter module, a rectifier module, etc.
The Processor 50 may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 51 may be an internal storage unit of the ups 5, such as a hard disk or a memory of the ups 5. The memory 51 may also be an external storage device of the ups 5, such as a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the ups 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the ups 5. The memory 51 is used to store the computer program and other programs and data required by the uninterruptible power supply. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the procedures in the methods of the above embodiments, or may be implemented by instructing related hardware by a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the respective remaining power determining method embodiments when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.