Charging system voltage correction method, device, equipment and medium

By dividing the voltage range of the charging system into multiple paragraphs and performing independent linear corrections within each paragraph, the problem of the nonlinear characteristics cannot be processed in the prior art using a single correction coefficient, and higher voltage sampling is achieved Accuracy and stability.

CN119496512APending Publication Date: 2025-02-21XIAN WANMA SMART NEW ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411538596.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In the prior art, the use of a single set of correction coefficients (k,b) cannot effectively handle the nonlinear characteristics of the AD sampling system in different voltage ranges, resulting in poor correction effect in certain voltage intervals.

Method used

By dividing the sampling range into multiple paragraphs and performing independent linear corrections within each paragraph, multiple corresponding correction formulas are constructed and used to adapt to the nonlinear characteristics of different voltage segments.

Benefits of technology

This segmented linearization method can more accurately reflect the relationship between the actual voltage and the sampled voltage, improve the sampling accuracy in the entire voltage range, and perform better in the nonlinear region.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496512A_ABST
    Figure CN119496512A_ABST
Patent Text Reader

Abstract

The invention discloses a charging system voltage correction method, device, equipment and medium, and relates to the field of electric power correction, and the method comprises the following steps: obtaining N standard voltages and N sampling voltages, N being an integer greater than 1; constructing N relation values between the standard voltage and the sampling voltage; forming N-1 voltage segments through the N relation values; establishing (N-1) corresponding correction formulas for the N relation values and the (N-1) voltage segments; and when any sampling value is input, a corresponding correction formula is matched to obtain a correction value. The main technical scheme has the advantages that the sampling range is divided into a plurality of paragraphs, independent linear correction is carried out in each paragraph, and possible nonlinear characteristics of a sampling system in different voltage sections can be effectively processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power correction, and in particular to a charging system voltage correction method, device, equipment and medium. Background Art

[0002] The main task of the charging system voltage correction is to correct the actual sampled voltage of the charging system with reference to the standard given voltage, so that the error between the sampled voltage of the charging system and the actual voltage is within the accuracy range required by the system.

[0003] Currently, when estimating the actual displayed value of the voltage, N standard voltages and N sampled voltages are usually input into a linear estimation algorithm to calculate the correction formula for the entire voltage segment. This method assumes that the relationship between the sampled voltage and the actual voltage is linear. However, in actual situations, the AD (analog-to-digital converter) sampling system may exhibit nonlinear characteristics in different voltage ranges, which means that the relationship between the actual sampled voltage and the standard voltage is not strictly linear. Using a single set of correction coefficients (k, b) in the entire voltage segment may result in poor correction effects in certain voltage intervals. This is because the nonlinear characteristics may mean that different voltage levels may require different correction coefficients in the entire voltage range to accurately reflect the actual voltage. Summary of the invention

[0004] Purpose of the invention: The purpose of the present invention is to solve the problem of using a single set of correction coefficients (k, b) in the prior art, so as to overcome the defect that different voltage levels may require different correction coefficients to accurately reflect the actual voltage. The purpose of the present invention is to provide a charging system voltage correction method, device, equipment and medium, in order to effectively deal with the nonlinear characteristics that may exist in the sampling system in different voltage segments by dividing the sampling range into multiple sections and performing independent linear correction in each section.

[0005] Technical solution: In the first aspect, the present application proposes a charging system voltage correction method, including the following method:

[0006] Obtain N standard voltages and N sample voltages, where N is an integer greater than 1;

[0007] Constructing relationship values ​​between N standard voltages and sampled voltages;

[0008] N-1 voltage segments are formed by N relationship values;

[0009] Establish N-1 corresponding correction formulas for N relationship values ​​and N-1 voltage segments;

[0010] When any sampling value is input, the corresponding correction formula is matched to obtain the correction value.

[0011] Beneficial effects: The segmented linearization method can more accurately reflect the relationship between the actual voltage and the sampled voltage, especially in nonlinear areas that are difficult to handle with a single linear correction, thereby improving the sampling accuracy within the entire voltage range. In addition, for each voltage segment, a linear estimation algorithm (such as the least squares method) is used to calculate the best linear fitting coefficient (k n ,b n ), this step ensures that each voltage segment can be corrected using the linear model that best fits it.

[0012] In some preferred embodiments, constructing the relationship between N standard voltages and sampled voltages includes:

[0013] A coordinate system is established through standard voltage and sampling voltage, and the vertical and horizontal coordinates are constructed in the coordinate system through standard voltage and sampling voltage. The beneficial effect is: the linear fitting relationship of different voltage segments will form a segmented line graph, and the fitting result of each segment can more accurately reflect the corresponding relationship between the sampling voltage and the actual voltage in the interval. The sampling results after segmentation show a significant improvement in the voltage correction accuracy, so that the entire system can achieve a high-precision correction effect.

[0014] In some preferred embodiments, forming N-1 voltage segments by using N relationship values ​​includes:

[0015] According to N relationship values ​​and N sampled voltages, voltage segments are constructed with areas between adjacent relationship values. The beneficial effect is that due to the use of independent correction formulas, the error within each voltage segment will not affect other voltage segments, thus avoiding the accumulation of errors between different intervals in the global linear correction method. In this way, the segmented correction method can control errors more effectively and make the voltage correction of the entire system more accurate and stable.

[0016] In some preferred embodiments, forming N-1 voltage segments by using N relationship values ​​includes:

[0017] According to the serial number {1,2,3...n}, linear relationships of different voltage segments are constructed, with the beneficial effects that each voltage segment independently calculates the correction formula, which can more accurately correct the sampled voltages in different voltage ranges and reduce the errors caused by nonlinear effects, so that each segment can perform linear correction independently, effectively improving the accuracy and reliability of the voltage sampling system, especially in processing application scenarios with strong nonlinear characteristics.

[0018] In some preferred embodiments, establishing N-1 corresponding correction formulas for N relationship values ​​and N-1 voltage segments includes:

[0019] The coefficients of the N-1 voltage segments are calculated using a linear evaluation algorithm and a correction formula.

[0020] In some preferred embodiments, the calculation formula is:

[0021] Y=Xk n +b n ;

[0022] Among them, Y is the corrected voltage value, X is the input sampling voltage, n is the serial number of any voltage segment, k is the n and b n For the correction coefficient, beneficial effects: each voltage segment has an independent correction formula, avoiding the limitations of the global linear assumption, ensuring accurate correction in different voltage ranges, especially in the nonlinear area, is more effective, and the errors are isolated in each voltage segment. The errors in each segment will not affect each other, thereby reducing the problem of global error accumulation and improving the reliability of the entire system.

[0023] In some preferred embodiments, when any sample value is input, matching the corresponding correction formula to obtain the correction number includes:

[0024] After obtaining the sampled voltage, determine the voltage segment to which the voltage corresponds, and use the correction formula for the voltage segment to obtain the true value of the voltage. Beneficial effects: The correction formula is selected by matching the voltage segment to ensure that each sampled value is corrected under the most appropriate linear model, avoiding inaccurate processing of nonlinear intervals in global linear correction, and significantly improving the correction accuracy. The system automatically selects the correction formula based on the sampled voltage, which can adapt to the nonlinear characteristics of different intervals to ensure that the correction effect in each segment is optimal and has strong adaptability. This method can quickly match the voltage segment and calculate the correction value after the sampled value is input, reducing calculation delays, meeting real-time application requirements, and making the system respond faster to voltage fluctuations. The independent correction formula for each segment isolates the errors in different intervals, and the system error will not accumulate in other voltage segments, improving the stability and overall reliability of the system.

[0025] In a second aspect, the present application further proposes a charging system voltage correction device, comprising:

[0026] An acquisition unit, used to acquire N standard voltages and N sampled voltages, where N is an integer greater than 1;

[0027] A construction unit, used to construct relationship values ​​of N standard voltages and sampled voltages, form N-1 voltage segments through the N relationship values, and establish N-1 corresponding correction formulas for the N relationship values ​​and the N-1 voltage segments;

[0028] The matching unit is used to match the corresponding correction formula to obtain the correction value when any sampling value is input.

[0029] In a third aspect, the present application further proposes an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the processor implements the method described in the above embodiment.

[0030] In a fourth aspect, the present application further proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the above embodiment is implemented.

[0031] In a fifth aspect, an embodiment of the present invention further provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute any possible design method of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of a charging system voltage correction method framework is provided for the present invention;

[0033] Figure 2 The present invention proposes a schematic diagram of a prior art correction line;

[0034] Figure 3 Provide a correction broken line schematic diagram for the present invention;

[0035] Figure 4 It is a structural schematic diagram of a charging system voltage correction device according to an embodiment of the present application;

[0036] Figure 5 This is a structural block diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the technical solution of the present invention clearer, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0038] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.

[0039] The existing calibration methods are:

[0040] (1) S101 gives N standard voltages (Y1, Y2...Y n );

[0041] (2) S102 obtains N sample values ​​of the standard voltage (X1, X2...X n );

[0042] (3) S103 obtains the relationship values ​​(X1, Y1), (X2, Y2)...( ... n , Y n ), substitute into the linear estimation algorithm and calculate the linear coefficient (k, b);

[0043] (4) S104 uses (k, b) as the sampling correction coefficient for the entire voltage segment;

[0044] (5) S105 uses the sampled value *k+b to calculate the actual displayed value of the voltage.

[0045] The main defect is that the correction parameters are obtained by linear correction method. When the AD sampling system shows nonlinear characteristics in certain voltage segments (such as Figure 2 As shown: L0 is the true sampling value, L1 is the sampling value after linear correction, the corrected value deviates greatly from the true value, especially in those voltage regions where nonlinear effects are significant), the sampling error is large, and the accuracy does not meet the standard.

[0046] In view of the problems existing in the existing technology, such as Figure 1 As shown, an embodiment of the present invention provides a charging system voltage correction method, which is characterized by comprising the following method:

[0047] S101, obtaining N standard voltages and N sampled voltages, where N is an integer greater than 1;

[0048] S102, constructing relationship values ​​between N standard voltages and sampled voltages;

[0049] S103, forming N-1 voltage segments through N relationship values;

[0050] S104, establishing N-1 corresponding correction formulas for the N relationship values ​​and the N-1 voltage segments;

[0051] S105, when any sampling value is input, the corresponding correction formula is matched to obtain the correction value.

[0052] Specifically, by dividing the voltage range into multiple segments, each voltage segment is independently linearly fitted, and the characteristics of each interval can be optimized and corrected. This method avoids the global error caused by using a single linear correction formula, significantly improves the correction accuracy of the system in the entire voltage range, and especially performs better in the nonlinear voltage interval. The traditional correction method assumes that there is a linear relationship between the voltage and the sampling value, but nonlinear effects often exist in practical applications. The segmented linear correction method of the present application can flexibly cope with the nonlinear characteristics of different voltage segments. Each segment is corrected separately according to the actual situation, ensuring that the correction accuracy can dynamically adapt to changes in the system. Since each voltage segment has an independent correction formula, the error will not accumulate in the global range, but will be limited to a single voltage segment. This error isolation strategy makes the system more stable in different voltage intervals, reduces the large errors that may occur during the correction process, thereby improving the overall The reliability and stability of the whole system. This correction method is not only applicable to charging systems, but also to various sampling voltage systems. Its flexible piecewise linear correction mechanism can adapt to the needs of different systems and applications, and improves the versatility of the correction method. This method can be widely used in various scenarios requiring high-precision voltage correction, such as sensor calibration and battery management systems. In actual use, through the piecewise linear correction method, the correction formula for each voltage segment has been predetermined. When the sampling voltage is input, the system only needs to determine the voltage segment it is in and apply the corresponding correction formula. This processing method reduces the complexity of calculation and improves the response speed of the correction system. It is particularly suitable for the application requirements of real-time correction systems. This solution realizes accurate correction of voltage through software algorithms, reduces dependence on high-precision hardware, and through piecewise linear correction, high-precision voltage sampling and correction can be achieved with relatively simple hardware configuration, reducing the hardware cost of the system.

[0053] In some preferred embodiments, Figure 3 As shown, constructing the relationship between N standard voltages and sampled voltages includes:

[0054] A coordinate system is established by using the standard voltage and the sampled voltage, and the ordinate and abscissa are constructed in the coordinate system by using the standard voltage and the sampled voltage.

[0055] Specifically, when constructing the relationship value, the standard voltage value (Y1, Y2, ..., Y n ) on the vertical axis, the sampled voltage values ​​(X1, X2, …, X n ) on the horizontal axis, forming (X i ,Y i ) coordinate point; thus, every point (X i ,Y i) represents the sampling voltage value (relational value) of the charging system under a certain standard voltage. In the coordinate system, the voltage segments are divided with adjacent sampling points as boundaries, and each segment is fitted with a straight line through the least squares method or other linear fitting algorithms.

[0056] In some preferred embodiments, Figure 3 As shown, N-1 voltage segments are formed by N relationship values, including:

[0057] According to the N sampled voltages, a voltage segment is constructed with a region between adjacent relationship values.

[0058] In some preferred embodiments, Figure 3 As shown, N-1 voltage segments are formed by N relationship values, including:

[0059] According to the serial numbers {1, 2, 3...n}, linear relationships of different voltage segments are constructed.

[0060] Specifically, N-1 voltage segments are formed by N relationship values:

[0061] According to the order of sampling voltage, every two adjacent relationship values ​​(X i ,Y i ) and (X i +1, Y i +1) is defined as a voltage segment;

[0062] This divides the N relationship values ​​into N-1 voltage segments, namely:

[0063] Segment 1 (L1): from (X1, Y1) to (X2, Y2)

[0064] Segment 2 (L2): from (X2, Y2) to (X3, Y3)

[0065] …

[0066] Section N-1 (L n-1 ): From (X n -1,Y n -1) to (X n ,Y n ).

[0067] In some preferred embodiments, Figure 3 As shown, N-1 corresponding correction formulas are established for N relationship values ​​and N-1 voltage segments, including:

[0068] The coefficients of N-1 voltage segments are obtained through linear evaluation algorithm and correction formula;

[0069] In some preferred embodiments, the calculation formula is:

[0070] Y=Xk n +b n ;

[0071] Among them, Y is the corrected voltage value, X is the input sampling voltage, n is the serial number of any voltage segment, k is the n and b n is the correction factor.

[0072] Specifically, establish N-1 corresponding correction formulas: In each voltage segment [X i ,X i +1], and use the linear fitting method to calculate the linear correction formula for this segment;

[0073] For the i-th segment, the correction formula is:

[0074] Y=k i ·X+b i ;

[0075] Where: k i is the slope of the segment, calculated as:

[0076]

[0077] b i is the intercept, calculated as:

[0078] b i =Y i -k i ·X i ;

[0079] Each voltage segment has an independent correction formula, which avoids the limitations of the global linear assumption and ensures accurate correction in different voltage ranges. It is especially effective in the nonlinear region, isolating the errors in each voltage segment. The errors in each segment will not affect each other, thereby reducing the problem of global error accumulation and improving the reliability of the entire system.

[0080] In some preferred embodiments, Figure 3 As shown, when any sampling value is input, the corresponding correction formula is matched to obtain the correction number including:

[0081] After obtaining the sampled voltage, determine the voltage segment to which the voltage corresponds, and use the correction formula for the voltage segment to obtain the true value of the voltage.

[0082] Specifically, the sampled values ​​are matched and corrected. When an arbitrary sampled value X is input, it is first necessary to determine in which voltage segment the sampled value is located;

[0083] If X i ≤X sampling <Xi +1 falls on the i-th segment;

[0084] Once the voltage segment to which the sampled value belongs is determined, the correction formula (k i ,b i )Calculate the corrected voltage value:

[0085] Y 校正 =k i ·X 采样 +b i ;

[0086] Through this method, any sampling value can be corrected to obtain the corresponding correction value. The correction formula is selected by matching the voltage segment to ensure that each sampling value is corrected under the most appropriate linear model, avoiding inaccurate processing of nonlinear intervals in global linear correction and significantly improving the correction accuracy. The system automatically selects the correction formula according to the sampling voltage, which can adapt to the nonlinear characteristics of different intervals to ensure that the correction effect in each segment is optimal and has strong adaptability. This method can quickly match the voltage segment and calculate the correction value after the sampling value is input, reduce calculation delays, meet real-time application needs, and make the system respond faster to voltage fluctuations. The independent correction formula for each segment isolates the errors in different intervals, and the system error will not accumulate in other voltage segments, improving the stability and overall reliability of the system.

[0087] In some preferred embodiments, a charging system voltage correction device is also provided, combined with Figure 4 ,include:

[0088] An acquisition unit 201 is used to acquire N standard voltages and N sampled voltages, where N is an integer greater than 1;

[0089] A construction unit 202 is used to construct relationship values ​​between N standard voltages and sampled voltages, form N-1 voltage segments through the N relationship values, and establish N-1 corresponding correction formulas for the N relationship values ​​and the N-1 voltage segments;

[0090] The matching unit 203 is used to match the corresponding correction formula to obtain a correction value when any sampling value is input.

[0091] All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

[0092] In some other embodiments of the present invention, an electronic device 400 is disclosed. Figure 5As shown, the electronic device may include: one or more processors 401; a memory 402; a display 403; one or more applications (not shown); and one or more computer programs 404. The above components may be connected via one or more communication buses 405. The one or more computer programs 404 are stored in the memory 402 and configured to be executed by the one or more processors 401. The one or more computer programs 404 include instructions, which may be used to execute the following: Figure 1 to Figure 2 And each step in the corresponding embodiment.

[0093] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0094] Each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program codes.

[0096] The above is only a specific implementation of the embodiment of the present invention, but the protection scope of the embodiment of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiment of the present invention should be included in the protection scope of the embodiment of the present invention. Therefore, the protection scope of the embodiment of the present invention should be based on the protection scope of the claims.

Claims

1. A charging system voltage correction method, characterized in that: The following methods are included: Obtain N standard voltages and N sample voltages, where N is an integer greater than 1; Constructing relationship values ​​between N standard voltages and sampled voltages; N-1 voltage segments are formed by N relationship values; Establish N-1 corresponding correction formulas for N relationship values ​​and N-1 voltage segments; When any sampling value is input, the corresponding correction formula is matched to obtain the correction value.

2. The method according to claim 1, characterized in that: Constructing the relationship between N standard voltages and sampled voltages includes: A coordinate system is established by using the standard voltage and the sampled voltage, and the ordinate and abscissa are constructed in the coordinate system by using the standard voltage and the sampled voltage.

3. The method according to claim 1, characterized in that The N-1 voltage segments formed by N relationship values ​​include: According to the N sampled voltages, a voltage segment is constructed with a region between adjacent relationship values.

4. The method according to claim 1, characterized in that The N-1 voltage segments formed by N relationship values ​​include: According to the serial numbers {1, 2, 3...n}, linear relationships of different voltage segments are constructed.

5. The method according to claim 1, characterized in that: The correction formulas for establishing N-1 corresponding relationship values ​​and N-1 voltage segments include: The coefficients of the N-1 voltage segments are calculated using a linear evaluation algorithm and a correction formula.

6. The method according to claim 5, characterized in that The calculation formula is: Y=Xkn+bnn Among them, Y is the corrected voltage value, X is the input sampling voltage, n is the serial number of any voltage segment, k is the n and b n is the correction factor.

7. The method according to claim 1, characterized in that When any sampling value is input, the corresponding correction formula is matched to obtain the correction number including: After obtaining the sampled voltage, determine the voltage segment to which the voltage corresponds, and use the correction formula for the voltage segment to obtain the true value of the voltage.

8. A charging system voltage correction device, characterized in that: include: An acquisition unit, used to acquire N standard voltages and N sampled voltages, where N is an integer greater than 1; A construction unit, used to construct relationship values ​​of N standard voltages and sampled voltages, form N-1 voltage segments through the N relationship values, and establish N-1 corresponding correction formulas for the N relationship values ​​and the N-1 voltage segments; The matching unit is used to match the corresponding correction formula to obtain the correction value when any sampling value is input.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.