Board calibration method, device and medium

By nonlinear fitting the analog output interval of the board card, a calibration strategy is obtained, which solves the problems of low calibration accuracy and low versatility in the prior art, and achieves more efficient board card output control.

CN119758209APending Publication Date: 2025-04-04SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411738798.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

When the existing nonlinear calibration methods calibrate the output of the board, the versatility is not high, the calibration accuracy is low, and it is difficult to adapt to boards of different production batches and characteristics.

Method used

By determining the analog output interval of the target board and mapping it to the internal target digital control interval, dividing it into multiple continuous digital quantum intervals, non-linear fitting is performed to obtain a calibration strategy to ensure calibration accuracy.

Benefits of technology

It improves the calibration accuracy of card output control, enhances the universality of the method and calibration efficiency, and is suitable for the precise control of various card cards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119758209A_ABST
    Figure CN119758209A_ABST
Patent Text Reader

Abstract

The present application relates to a board calibration method, device and medium, wherein the method includes: determining the analog output interval of the target board, and determining the target digital control interval of the analog output interval within the target board; dividing the target digital control interval into a plurality of continuous digital quantum intervals, performing nonlinear fitting on the data of each digital quantum interval, and obtaining the calibration strategy corresponding to each digital quantum interval; when each calibration strategy satisfies the output accuracy of the target board, calibrating the analog output of the target board according to the calibration strategy. The present application adopts the above method, and realizes the calibration of the target board by calibrating each sub-interval obtained by dividing the target digital control interval, which helps to improve the calibration accuracy of the board output control; and the method is suitable for precise control of the output of various boards, and has strong flexibility, which helps to improve the versatility and calibration efficiency of the board calibration method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field related to power supply equipment, and in particular to a board calibration method, device and medium. Background Art

[0002] The power board is referred to as the board, which is a hardware device that can convert the received digital signal into analog output. At present, the actual output of some boards is nonlinear with the internal signal quantity, which makes the output control of the board more complicated.

[0003] In the related art, in the case where the actual output of the board and the internal signal quantity are nonlinear, in order to ensure that the analog quantity such as the actual output voltage or current meets the expectations, some nonlinear calibration methods are usually used to calibrate the output of the board. However, since the characteristics of boards from different production batches or even the same production batch may be inconsistent, when the nonlinear calibration method is used to calibrate the output of a certain board, there is still a possibility of low calibration accuracy. In other words, the existing nonlinear calibration methods are not universal and have low calibration efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a board calibration method, device, computer equipment, computer-readable storage medium and computer program product to address the technical problems of the low versatility and low calibration efficiency of the above-mentioned existing nonlinear calibration methods.

[0005] In a first aspect, the present application provides a board calibration method, the method comprising:

[0006] Determine the analog output range of the target board, and determine the target digital control range of the analog output range within the target board;

[0007] The target digital quantity control interval is divided into a plurality of continuous digital quantum intervals, and the data of each digital quantum interval is subjected to nonlinear fitting to obtain the calibration strategy corresponding to each digital quantum interval;

[0008] When all calibration strategies meet the output accuracy of the target board, the analog quantity output by the target board is calibrated according to the calibration strategy.

[0009] In one embodiment, determining the analog output interval is within the target digital control interval within the target board includes:

[0010] Acquire the performance parameters of the target board, determine the initial digital quantity control interval inside the target board according to the performance parameters, and determine the digital quantity intermediate value of the initial digital quantity control interval;

[0011] Determine the analog output value corresponding to the digital intermediate value, compare the analog output value with the preset output threshold, obtain a comparison result, and update the initial digital control interval according to the comparison result;

[0012] The updated digital quantity intermediate value is determined according to the updated initial digital quantity control interval, and the initial digital quantity control interval is iteratively updated until the updated initial digital quantity control interval reaches the cutoff condition, thereby obtaining the target digital quantity control interval.

[0013] In one embodiment, the preset output threshold includes a preset lower limit and a preset upper limit; comparing the analog output value with the preset output threshold to obtain a comparison result, and updating the initial digital control interval according to the comparison result, including:

[0014] Compare the analog output value with the preset lower limit to obtain a first comparison result, and determine the lower limit of the target digital quantity control interval according to the first comparison result;

[0015] The analog output value is compared with the preset upper limit to obtain a second comparison result, and the upper limit of the target digital quantity control range is determined according to the second comparison result.

[0016] In one embodiment, determining the lower limit of the target digital quantity control interval according to the first comparison result includes:

[0017] If the first comparison result is that the analog output value is not less than the preset lower limit, the upper limit of the initial digital control interval is updated according to the digital intermediate value; if the first comparison result is that the analog output value is less than the preset lower limit, the lower limit of the initial digital control interval is updated according to the digital intermediate value;

[0018] Iteratively update the upper and lower limits of the initial digital quantity control interval until the lower limit of the updated initial digital quantity control interval is not less than the upper limit, and use the updated digital quantity intermediate value as the lower limit of the target digital quantity control interval.

[0019] In one embodiment, determining the upper limit of the target digital quantity control interval according to the second comparison result includes:

[0020] If the second comparison result is that the analog output value is not less than the preset upper limit, the upper limit of the initial digital control interval is updated according to the digital intermediate value; if the second comparison result is that the analog output value is less than the preset upper limit, the lower limit of the initial digital control interval is updated according to the digital intermediate value;

[0021] Iteratively update the upper and lower limits of the initial digital quantity control interval until the lower limit of the updated initial digital quantity control interval is not less than the upper limit, and use the updated digital quantity intermediate value as the upper limit of the target digital quantity control interval.

[0022] In one embodiment, the target digital quantity control interval is divided into a plurality of continuous digital quantum intervals, including:

[0023] Sampling is performed in a target digital quantity control interval according to a preset step length to obtain multiple groups of preliminary sampling data, wherein the preliminary sampling data includes preliminary sampling values ​​of digital quantities and corresponding actual values ​​of analog quantity outputs;

[0024] Perform nonlinear fitting on each preliminary sampling value of each digital quantity to obtain a plurality of analog quantity output fitting values ​​corresponding to each other;

[0025] Compare the corresponding analog output fitting value with the analog output actual value to obtain the output deviation corresponding to the preliminary sampling value of each digital quantity;

[0026] The target digital quantity control interval is divided according to each output deviation to obtain a plurality of continuous digital quantum intervals.

[0027] In one embodiment, the method further comprises:

[0028] In the case that the calibration strategy of the target digital quantum interval does not meet the output accuracy of the target board, the calibration strategy of the target digital quantum interval is calibrated to obtain an updated calibration strategy.

[0029] In one embodiment, calibrating the calibration strategy of the target digital quantum interval includes:

[0030] The target digital quantum interval is divided into two continuous digital quantity segmented intervals, and the data of each digital quantity segmented interval is nonlinearly fitted to obtain the correction strategy corresponding to each digital quantity segmented interval;

[0031] For each digital quantity segmentation interval, when the correction strategy satisfies the output accuracy of the target board, the analog quantity output by the target board is calibrated according to the correction strategy;

[0032] When the correction strategy corresponding to the target digital quantity segmentation interval does not meet the output accuracy of the target board, continue to divide the target digital quantity segmentation interval, and iteratively calibrate the correction strategy corresponding to the target digital quantity segmentation interval until the correction strategy corresponding to the target digital quantity segmentation interval meets the output accuracy of the target board.

[0033] In a second aspect, the present application further provides a board calibration device, the device comprising:

[0034] A target digital quantity control interval determination module is used to determine the analog quantity output interval of the target board and determine the target digital quantity control interval of the analog quantity output interval within the target board;

[0035] A digital quantity interval calibration strategy determination module is used to divide the target digital quantity control interval into a plurality of continuous digital quantum intervals, perform nonlinear fitting on the data of each digital quantum interval, and obtain a calibration strategy corresponding to each digital quantum interval;

[0036] The digital quantity data input setting calibration module is used to calibrate the analog quantity output by the target board card according to the calibration strategy when all calibration strategies meet the output accuracy of the target board card.

[0037] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0038] Determine the analog output range of the target board, and determine the target digital control range of the analog output range within the target board;

[0039] The target digital quantity control interval is divided into a plurality of continuous digital quantum intervals, and the data of each digital quantum interval is subjected to nonlinear fitting to obtain the calibration strategy corresponding to each digital quantum interval;

[0040] When all calibration strategies meet the output accuracy of the target board, the analog quantity output by the target board is calibrated according to the calibration strategy.

[0041] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0042] Determine the analog output range of the target board, and determine the target digital control range of the analog output range within the target board;

[0043] The target digital quantity control interval is divided into a plurality of continuous digital quantum intervals, and the data of each digital quantum interval is subjected to nonlinear fitting to obtain the calibration strategy corresponding to each digital quantum interval;

[0044] When all calibration strategies meet the output accuracy of the target board, the analog quantity output by the target board is calibrated according to the calibration strategy.

[0045] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0046] Determine the analog output range of the target board, and determine the target digital control range of the analog output range within the target board;

[0047] The target digital quantity control interval is divided into a plurality of continuous digital quantum intervals, and the data of each digital quantum interval is subjected to nonlinear fitting to obtain the calibration strategy corresponding to each digital quantum interval;

[0048] When all calibration strategies meet the output accuracy of the target board, the analog quantity output by the target board is calibrated according to the calibration strategy.

[0049] The above-mentioned board calibration method, device, computer equipment, storage medium and computer program product, when calibrating the target board, first determine the analog output interval of the target board, and determine the target digital control interval corresponding to the analog output interval inside the target board, so as to facilitate the interval division during subsequent calibration. The target digital control interval is divided into multiple continuous digital quantum intervals, and the data of each digital quantum interval is nonlinearly fitted to obtain the calibration strategy corresponding to each digital quantum interval. The accuracy of each calibration strategy is verified, and when each calibration strategy meets the output accuracy of the target board, the analog output of the target board is calibrated according to the calibration strategy to achieve the calibration of the target board.

[0050] The board calibration method of the present application maps the analog output interval to the digital control interval inside the target board before calibration, so as to facilitate the timely grouping of subsequent data. Furthermore, the present application divides the digital control interval into a plurality of continuous digital sub-intervals, so as to calibrate the target board by calibrating each sub-interval, thereby improving the calibration accuracy of the board output control; and the method is suitable for precise control of the output of various boards, has strong flexibility, and helps to improve the versatility and calibration efficiency of the board calibration method. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A diagram showing an application environment of a board calibration method in an embodiment;

[0052] Figure 2 A flow chart of a board calibration method in one embodiment;

[0053] Figure 3 A flowchart for determining a target digital quantity control interval in one embodiment;

[0054] Figure 4 A flowchart of determining an upper limit and a lower limit of a target digital quantity control interval in one embodiment;

[0055] Figure 5 A flowchart of determining a lower limit of a target digital quantity control interval in one embodiment;

[0056] Figure 6 A flowchart of determining an upper limit of a target digital quantity control interval in one embodiment;

[0057] Figure 7 A flowchart for determining a target digital quantity control interval in a detailed embodiment;

[0058] Figure 8 A flow chart of dividing a target digital quantity control interval to obtain a plurality of continuous digital quantum intervals in one embodiment;

[0059] Fig. 9 A flowchart for determining a calibration strategy in one embodiment;

[0060] Fig.10 A flowchart of calibrating a calibration strategy that does not meet the accuracy standard in one embodiment;

[0061] Fig.11 A flowchart of automatic group calibration for a target digital quantity control interval in a detailed embodiment;

[0062] Fig.12 is a structural block diagram of a board calibration device in one embodiment;

[0063] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0065] In current power supply equipment, there are generally specific requirements for output accuracy and response speed. In previous equipment, for output offset or the need to increase output gain, hardware engineers usually adjust the hardware to achieve an ideal linear output between the internal digital quantity and the external analog quantity. Specifically, in practical applications, when the power supply equipment is required to output a fixed analog quantity (for example, voltage or current), the internal digital quantity is generally adjusted by the power chip in a certain proportional relationship. However, with the optimization of power chip and cost optimization, the external actual output analog quantity of the power supply equipment and the internal digital quantity may have a nonlinear relationship. At this time, it is difficult to accurately calculate the internal digital quantity corresponding to the external analog quantity that needs to be output, resulting in low accuracy of the output control of the analog quantity by the power supply equipment. Therefore, it is necessary to accurately locate the mapping relationship between the internal digital quantity data and the external analog quantity output interval to ensure that the analog quantity such as the actual output voltage or current meets expectations.

[0066] In the related art, some nonlinear calibration methods are usually used to calibrate the output of the power supply device. The power supply card in the power supply device controls the output. The power supply card is referred to as the card, which is a hardware device that can convert the received digital signal into an analog output. However, since the characteristics of the cards in different production batches or even the same production batch may be inconsistent, when the nonlinear calibration method is used to calibrate the analog output of a certain card, there is still a possibility of low calibration accuracy. In other words, the existing nonlinear calibration method is not universal and has low calibration efficiency.

[0067] In view of the above technical problems, the present application provides a board calibration method, which can be applied to Figure 1 In the illustrated board calibration system, the board calibration system includes a power board 102, a multimeter 104, and a control device 106. The multimeter 104 can be connected to the output end of the power board 102 through a wire. The multimeter 104 is used to accurately measure electrical parameters such as voltage and current. The control device 106 is used to load the control program corresponding to the board calibration method in this embodiment. The control device 106 can be connected to the multimeter 104 in a wired or wireless manner to obtain the measurement data of the multimeter 104. At the same time, the control device 106 can also be connected to the power board 102 in a wired or wireless manner to send a control instruction carrying a digital quantity signal to the power board 102, so that the power board 102 converts the received digital quantity signal into a corresponding analog quantity for output under the action of the digital-to-analog converter used by itself. The actual value of the output analog quantity can be obtained through the measurement reading of the multimeter 104, and the output analog quantity can be an electrical parameter value such as current or voltage. The control device 106 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and other devices.

[0068] In some embodiments, Figure 2 As shown, this method is applied to Figure 1 The control device in is taken as an example to illustrate. In this embodiment, the method includes the following steps:

[0069] Step 202, determining the analog output range of the target board, and determining the target digital control range of the analog output range within the target board.

[0070] The target board, also known as the power board, is a hardware device used to convert the received digital signal into an analog output. The target board of this embodiment can be any power board in the same production batch or in different production batches. The analog output interval is used to characterize the range of analog quantities that the target board can actually convert and output according to the received digital signal. The target digital quantity control interval is used to characterize the value interval of the digital quantity setting value inside the target board. The digital quantity setting value inside the target board is determined according to the control instruction received by the target board, and the control instruction carries a digital quantity signal. During operation, any digital quantity setting value in the target digital quantity control interval can find the corresponding analog quantity output value in the analog quantity output interval of the target board.

[0071] For example, in this embodiment, the analog quantity is voltage, and the analog quantity output interval of a certain board is 5mV~12V, and the target digital quantity control interval corresponding to the analog quantity output interval is 1500~3000. That is, when the digital quantity setting value inside the board is 1500, the actual voltage value of the corresponding output is 5mV, and when the digital quantity setting value inside the board is 3000, the actual voltage value of the corresponding output is 12V.

[0072] Step 204 , dividing the target digital quantity control interval into a plurality of continuous digital quantum intervals, performing nonlinear fitting on the data of each digital quantum interval, and obtaining a calibration strategy corresponding to each digital quantum interval.

[0073] The digital quantum interval is a continuous small interval divided by the target digital quantity control interval. The sizes of each digital quantum interval can be the same or different. Generally speaking, for the convenience of calculation, the target digital quantity control interval is divided into multiple digital quantum intervals of the same size. Nonlinear fitting is used to represent the relationship between several discrete digital quantities in the digital quantum interval by fitting. For example, the nonlinear calibration relationship of the digital quantum interval can be determined by performing nonlinear fitting on the data of each digital quantum interval, so that the error between the analog output value calculated according to any digital quantity setting value in the digital quantum interval and the actual value of the analog output is small, and the nonlinear calibration relationship is the calibration strategy corresponding to the digital quantum interval.

[0074] Specifically, since the relationship between the internal digital quantity of the target board and the actual external output analog quantity is nonlinear, the target digital quantity control interval is divided into multiple continuous digital quantum intervals in order to more accurately capture the nonlinear characteristics of each digital quantum interval, and perform nonlinear fitting on the data of the digital quantum interval to obtain the calibration strategy corresponding to each digital quantum interval, which helps to improve the accuracy of the target board when controlling the actual output of the analog quantity.

[0075] Step 206: When all calibration strategies satisfy the output accuracy of the target board, calibrate the analog quantity output by the target board according to the calibration strategy.

[0076] The calibration strategy obtained in step 204 is tested for accuracy to ensure that the calibration of the target board meets the preset accuracy threshold. The output accuracy of the target board can be preset according to the use requirements of the target board, that is, the output accuracy of the target board is the preset accuracy threshold. The preset accuracy threshold in this embodiment is 1% as an example.

[0077] Specifically, the analog output value obtained according to the calibration strategy can be compared with the actual analog output value directly measured by the multimeter. If the difference between the two meets the preset accuracy threshold, it means that the calibration strategy meets the requirements; if the difference between the two does not meet the preset accuracy threshold, the calibration strategy needs to be optimized.

[0078] Exemplarily, taking the preset accuracy threshold of 1% as an example, when the deviation between the analog output value obtained according to a calibration strategy and any digital quantity setting value in its corresponding digital quantum interval and the actual analog output value measured by a multimeter accounts for no more than 1% of the actual analog output value, it is determined that the calibration strategy meets the output accuracy of the target board and that the analog quantity output by the target board can be calibrated according to the calibration strategy; when the deviation accounts for a proportion of the actual analog output value that is greater than 1%, it is determined that the calibration strategy does not meet the output accuracy of the target board, and the calibration strategy needs to be further optimized and adjusted.

[0079] In the above-mentioned board calibration method, the analog output interval is first mapped to the digital control interval inside the target board before calibration, so as to facilitate the timely grouping of subsequent data. Furthermore, the present application divides the digital control interval into a plurality of continuous digital sub-intervals, so as to calibrate the target board by calibrating each sub-interval, thereby improving the calibration accuracy of the board output control; and the method is suitable for precise control of the output of various boards, with strong flexibility, which helps to improve the versatility and calibration efficiency of the board calibration method.

[0080] In some embodiments, Figure 3 As shown, determining the analog output range within the target digital control range within the target board includes:

[0081] Step 302, obtaining performance parameters of the target board, determining an initial digital quantity control interval within the target board according to the performance parameters, and determining a digital quantity intermediate value within the initial digital quantity control interval.

[0082] Since the characteristics of each board are inconsistent, the corresponding initial digital quantity control interval may also be inconsistent. Among them, the performance parameters of the target board are used to characterize the characteristics of the target board. The performance parameters of the target board in this embodiment may include an upper limit protection value, a lower limit protection value, and a number of precision bits. The upper limit protection value may be the maximum allowable value of the analog quantity output by the target board. The lower limit protection value may be the minimum allowable value of the analog quantity output by the target board. Both the lower limit protection value and the upper limit protection value are determined according to the design specifications of the board. For example, the design specifications of a board may specify that the maximum allowable output voltage is 5V and the minimum allowable output voltage is 0V. The number of precision bits is used to characterize the number of bits of digital quantity control accuracy of the target board. The number of precision bits of the board is determined by the hardware design of the board. For example, if the number of precision bits of a board is 10, it means that the board can divide the analog output value into 2 10 Analog discrete value.

[0083] The initial digital quantity control interval is used to characterize the value interval of the internal digital quantity setting value initially determined according to the performance parameters of the target board. The digital quantity middle value of the initial digital quantity control interval is the average value of the two end points of the initial digital quantity control interval.

[0084] Exemplarily, according to the upper limit protection value, the lower limit protection value and the number of digits of precision of a certain board, its initial digital quantity control range is determined to be 500-5000.

[0085] Step 304, determine the analog output value corresponding to the digital intermediate value, compare the analog output value with the preset output threshold, obtain a comparison result, and update the initial digital control interval according to the comparison result.

[0086] In order to further narrow the range of the digital control interval and achieve calibration within a smaller interval, it is necessary to compare the analog output value with the preset output threshold, and update the initial digital control interval according to the comparison result. Among them, the preset output threshold is the analog output value pre-set according to the output accuracy requirements of the board, which is used to compare with the analog output value actually measured by the multimeter.

[0087] Specifically, by comparing the analog output value corresponding to the current digital intermediate value with the preset output threshold, it can be determined whether the current interval needs to be further refined. When it is determined that the interval needs to be refined, the initial digital control interval is updated until the desired requirements are met, thereby improving the precision and accuracy of the calibration.

[0088] Step 306, determining an updated digital quantity intermediate value according to the updated initial digital quantity control interval, and iteratively updating the initial digital quantity control interval until the updated initial digital quantity control interval reaches a cutoff condition, thereby obtaining a target digital quantity control interval.

[0089] When the updated initial digital quantity control interval meets the desired requirements, the above-mentioned iterative process needs to be stopped. The cutoff condition in this embodiment can be that the accuracy reaches a specific requirement, the number of iterations reaches a specific requirement, the error convergence reaches a specific requirement, or the interval length reaches a specific requirement. The cutoff condition in this embodiment can be taken as an example that the interval length reaches a specific requirement. For example, when the length of the digital quantity control interval has been reduced to a preset minimum value, it is determined that the iterative update process of the initial digital quantity control interval can be ended. The target digital quantity control interval is used to characterize the digital quantity control interval obtained by the final iterative update.

[0090] Specifically, according to the comparison result, the updated digital quantity intermediate value is used as the upper limit or lower limit of the updated initial digital quantity control interval until the updated initial digital quantity control interval reaches the cutoff condition. At this time, the updated initial digital quantity control interval obtained is the target digital quantity control interval.

[0091] In this embodiment, the digital quantity control interval is refined by iteratively updating the initial digital quantity control interval, so that calibration is performed within a smaller interval, which is beneficial to reducing errors in the calibration process, and thus making the analog output value closer to the expected target value; and the initial digital quantity control interval is continuously iteratively updated through the updated digital quantity intermediate value, which helps to quickly approach the optimal digital quantity control interval, that is, the target digital quantity control interval, thereby reducing calibration time and resource consumption and improving calibration efficiency.

[0092] In some embodiments, Figure 4 As shown, the preset output threshold includes a preset lower limit and a preset upper limit; the analog output value is compared with the preset output threshold to obtain a comparison result, and the initial digital control interval is updated according to the comparison result, including:

[0093] Step 402 , compare the analog output value with a preset lower limit to obtain a first comparison result, and determine the lower limit of the target digital control range according to the first comparison result.

[0094] In this embodiment, the lower limit of the target digital quantity control interval can be determined by comparing the analog output values ​​corresponding to the multiple updated digital quantity intermediate values ​​in the above step 306 with the preset lower limit. The preset lower limit is used to characterize the actual output lower limit preset by the target board, indicating the minimum analog value that the target board can stably output under specific load conditions, such as the minimum voltage value or the minimum current value.

[0095] Specifically, based on the specific size relationship between the analog output value corresponding to each updated digital intermediate value and the preset lower limit, it is determined whether the lower limit of the digital control interval is set higher or lower, so that the lower limit of the digital control interval can be adjusted accordingly during the iteration process, thereby continuously and accurately narrowing the digital control interval to obtain the lower limit of the target digital control interval.

[0096] Step 404 , compare the analog output value with the preset upper limit to obtain a second comparison result, and determine the upper limit of the target digital control range according to the second comparison result.

[0097] In this embodiment, the upper limit of the target digital quantity control interval can be determined by comparing the analog output values ​​corresponding to the multiple updated digital quantity intermediate values ​​in the above step 306 with the preset upper limit. The preset upper limit is used to represent the actual output upper limit preset by the target board, indicating the maximum analog value that the target board can stably output under specific load conditions, such as the maximum voltage value or the maximum current value.

[0098] Specifically, based on the specific size relationship between the analog output value corresponding to each updated digital intermediate value and the preset upper limit, it is determined whether the upper limit of the digital control interval is set higher or lower, so that the upper limit of the digital control interval can be adjusted accordingly during the iteration process, thereby continuously and accurately narrowing the digital control interval to obtain the upper limit of the target digital control interval.

[0099] In this embodiment, the initial digital quantity control interval is limited by the first comparison result to obtain the lower limit of the target digital quantity control interval, and the initial digital quantity control interval is limited by the second comparison result to obtain the upper limit of the target digital quantity control interval, which helps to improve the reliability and accuracy of the target digital quantity control interval finally determined.

[0100] In some embodiments, Figure 5 As shown, determining the lower limit of the target digital quantity control interval according to the first comparison result includes:

[0101] Step 502, if the first comparison result is that the analog output value is not less than the preset lower limit, then the upper limit of the initial digital control interval is updated according to the digital intermediate value; if the first comparison result is that the analog output value is less than the preset lower limit, then the lower limit of the initial digital control interval is updated according to the digital intermediate value.

[0102] For example, assuming that the initial digital control interval is [0, 1023] and the middle value is 512, if the analog output value corresponding to the measured middle value is less than the preset lower limit, it means that the lower limit of the current digital control interval is too low and the lower limit needs to be increased. At this time, the lower limit of the initial digital control interval is updated to the middle value 512; if the analog output value corresponding to the measured middle value is not less than the preset lower limit, it means that the upper limit of the current digital control interval is too high and the upper limit needs to be lowered. At this time, the upper limit of the initial digital control interval is updated to the middle value 512.

[0103] Step 504, iteratively update the upper and lower limits of the initial digital quantity control interval until the updated lower limit of the initial digital quantity control interval is not less than the upper limit, and use the updated digital quantity intermediate value as the lower limit of the target digital quantity control interval.

[0104] Specifically, when the lower limit of the digital quantity control interval is iteratively updated to be not less than the upper limit of the interval, it means that the digital quantity control interval has converged to an accurate range. At this time, the updated digital quantity intermediate value can be used as the lower limit of the target digital quantity control interval. In the iterative update process of the upper limit and the lower limit of the initial digital quantity control interval, the upper limit and the lower limit of the digital quantity control interval can be continuously adjusted, thereby gradually narrowing the range of the digital quantity control interval.

[0105] In this embodiment, the initial digital quantity control interval is iteratively updated according to the first comparison result, which can quickly approach and determine the lower limit of the target digital quantity control interval, thereby helping to reduce calibration time and resource consumption and improve the efficiency of the calibration process.

[0106] In some embodiments, Figure 6 As shown, determining the upper limit of the target digital quantity control interval according to the second comparison result includes:

[0107] Step 602, if the second comparison result is that the analog output value is not less than the preset upper limit, then the upper limit of the initial digital control interval is updated according to the digital intermediate value; if the second comparison result is that the analog output value is less than the preset upper limit, then the lower limit of the initial digital control interval is updated according to the digital intermediate value.

[0108] For example, assuming that the initial digital control interval is [0, 1023] and the middle value is 512, if the measured middle value corresponds to an analog output value that is less than the preset upper limit, it means that the lower limit of the current digital control interval is too low and the lower limit needs to be increased. At this time, the lower limit of the initial digital control interval is updated to the middle value 512; if the measured middle value corresponds to an analog output value that is not less than the preset lower limit, it means that the upper limit of the current digital control interval is too high and the upper limit needs to be lowered. At this time, the upper limit of the initial digital control interval is updated to the middle value 512.

[0109] Step 604, iteratively update the interval upper limit and interval lower limit of the initial digital quantity control interval until the interval lower limit of the updated initial digital quantity control interval is not less than the interval upper limit, and use the updated digital quantity intermediate value as the interval upper limit of the target digital quantity control interval.

[0110] Specifically, when the lower limit of the digital quantity control interval is iteratively updated to be not less than the upper limit of the interval, it means that the interval has converged to an accurate range. At this time, the updated digital quantity intermediate value can be used as the upper limit of the target digital quantity control interval. In the iterative update process of the upper limit and lower limit of the initial digital quantity control interval, the upper limit and lower limit of the digital quantity control interval can be continuously adjusted, thereby gradually narrowing the range of the interval, and then obtaining a more accurate target digital quantity control interval.

[0111] In this embodiment, the initial digital quantity control interval is iteratively updated according to the second comparison result, which can quickly approach and determine the upper limit of the target digital quantity control interval, thereby helping to reduce calibration time and resource consumption and improve the efficiency of the calibration process.

[0112] In a detailed embodiment, Figure 7 As shown, the specific positioning process of the above target digital quantity control interval is as follows:

[0113] Step 702, power on and set the target board to enter calibration mode.

[0114] Specifically, before setting the target board to enter the calibration mode, power on to connect the power board, the load card and the multimeter. The load card is used to simulate the actual load so as to test the output performance of the power board during the test and calibration process. The load card can simulate various load conditions to ensure the stability and accuracy of the power board under different loads. The multimeter can be a high-precision multimeter. After entering the calibration mode, set the load channel connection and preset the multimeter gear. Presetting the multimeter gear means setting the range (measurement range) of the multimeter in advance before using the high-precision multimeter for measurement. You can select a suitable range according to the expected voltage or current value to be measured. Generally, the range should be slightly larger than the expected measurement value to ensure the measurement accuracy. You can also select the range manually, or if the multimeter supports the automatic range function, automatically select the most suitable range according to the input signal.

[0115] Step 704: according to the number of digits of precision n of the target board and the upper limit protection value P max And the lower limit protection value P min , determine the lower limit value S of the initial digital control range of the target board min and upper limit S max .

[0116] Specifically, the lower limit value S of the initial digital quantity control range of the target board can be determined according to the following calculation formula: min and upper limit S max :

[0117] S min =max(0,P min );

[0118] S max =min(2 n ,P max ).

[0119] Step 706, let S l =S min , S r =S max , set the middle value of the board S = (S l + S r ) / 2, and read the multimeter reading OUT(S).

[0120] Step 708, determine whether the multimeter reading OUT (S) is not less than the preset lower limit O of the target board. min , when the multimeter reading OUT(S) is not less than O min In the case of, execute step 710; when the multimeter reading OUT (S) is less than O min In this case, execute step 712.

[0121] Step 710, S r =S.

[0122] Step 712, S l =S.

[0123] Step 714, determine S l Is it not less than S? r , in S l Not less than S r In the case of S l Less than S r In this case, return to step 708.

[0124] Step 716: Set S to the lower limit S' of the target digital quantity control range. min .

[0125] Step 718, determine whether the multimeter reading OUT (S) is not less than the preset upper limit O of the target board. max , when the multimeter reading OUT(S) is not less than O max In the case of, execute step 720; when the multimeter reading OUT (S) is less than O maxIn this case, execute step 722.

[0126] Step 720, S r =S.

[0127] Step 722, S l =S.

[0128] Step 724, determine S l Is it not less than S? r , in S l Not less than S r In the case of S l Less than S r In this case, return to step 718.

[0129] Step 726, set S to the upper limit S' of the target digital quantity control range max .

[0130] Specifically, the process of returning to step 718 and step 708 both belong to the binary search algorithm, which is used to accurately find the value that matches the preset lower limit O. min The corresponding target digital control interval lower limit S' min , and accurately find the upper limit O max The upper limit S' of the corresponding target digital control interval max The final target digital control range is [S' min , S' max ].

[0131] In some embodiments, Figure 8 As shown, the target digital quantity control interval is divided into a plurality of continuous digital quantum intervals, including:

[0132] Step 802 , sampling is performed in a target digital quantity control interval according to a preset step length to obtain multiple groups of preliminary sampling data, wherein the preliminary sampling data includes preliminary sampling values ​​of digital quantities and their corresponding actual values ​​of analog quantity outputs.

[0133] When performing preliminary sampling within the target digital quantity control interval, an equal step sampling method can usually be adopted. The preset step size in this embodiment is used to characterize the digital quantity difference between two adjacent sampling points when sampling is performed within the target digital quantity control interval. The specific setting of the preset step size can be determined according to the calibration accuracy requirements of the target board. Generally, the higher the calibration accuracy requirements of the target board, the smaller the corresponding preset step size should be. However, considering that a preset step size that is too small will increase the calculation cost, and a preset step size that is too large may not capture nonlinear characteristics, it is necessary to balance the accuracy requirements and the calculation cost when setting the preset step size. The preset step size in this embodiment can be taken as 1 / 50 of the interval length. The digital quantity preliminary sampling value is used to characterize the digital quantity value obtained by sampling according to the preset step size within the target digital quantity control interval. The analog output actual value is used to characterize the analog output value actually measured under each digital quantity preliminary sampling value.

[0134] Exemplarily, the target digital quantity control interval obtained in step 726 is [S' min , S' max ] as an example, equal-step sampling is performed within the target digital quantity control range to obtain multiple sets of sampling data, which are [S' 1 ,O 1 ], [S' 2 ,O 2 ],…, where S' i' (i∈N*) is used to represent the initial sampling value of the digital quantity, O i (i∈N*) is used to represent the actual value of the analog output.

[0135] Step 804 , performing nonlinear fitting on each preliminary sampling value of the digital quantity to obtain a plurality of analog quantity output fitting values ​​that correspond to each other.

[0136] In order to obtain an accurate fitting relationship between each digital quantity sampling value and the measured analog output actual value, it is necessary to perform nonlinear fitting on each digital quantity preliminary sampling value. Among them, the analog output fitting value is used to characterize the analog quantity fitting value corresponding to the digital quantity preliminary sampling value determined according to the relationship between the digital quantity and the analog output obtained by nonlinear fitting.

[0137] Specifically, in this embodiment, the method for performing nonlinear fitting on the preliminary sampling values ​​of each digital quantity can be a Lagrange interpolation method. Through the Lagrange interpolation method, a polynomial can be constructed according to the preliminary sampling values ​​of each digital quantity and its corresponding analog output actual value, so that the analog output fitting value is close to the corresponding measured analog output actual value.

[0138] Exemplarily, for each group of preliminary sampling data, nonlinear fitting is performed according to the following Lagrange interpolation fitting formula:

[0139] O=P(S')= ;

[0140] In the formula, O is the analog output fitting value; S' is the digital initial sampling value; is the Lagrangian basis function.

[0141] Step 806 , comparing the corresponding analog output fitting value with the analog output actual value, and obtaining the output deviation corresponding to each digital quantity preliminary sampling value.

[0142] When the internal digital quantity setting value and the external analog quantity output actual value are in a nonlinear relationship, the degree of deviation between the analog quantity output fitting value calculated according to each preliminary sampling value and the analog quantity output actual value will be inconsistent, that is, the deviation between the analog quantity output fitting value calculated according to some preliminary sampling values ​​and the analog quantity output actual value may be small, and the deviation between the analog quantity output fitting value calculated according to some preliminary sampling values ​​and the analog quantity output actual value may be large. The deviation between the analog quantity output fitting value calculated according to the preliminary sampling value and the analog quantity output actual value is the output deviation, that is, the output deviation is the difference between the analog quantity output fitting value corresponding to the preliminary sampling value of the digital quantity and the analog quantity output actual value.

[0143] Exemplarily, the output deviation corresponding to each preliminary sampling value of each digital quantity is calculated according to the following formula:

[0144] Output Deviation = |O - O i |;

[0145] Where, O is the simulated output fitting value; O i Outputs the actual value of the analog quantity.

[0146] Step 808 , dividing the target digital quantity control interval according to each output deviation to obtain a plurality of continuous digital quantum intervals.

[0147] Specifically, when there is a large output deviation corresponding to one or some preliminary sampling values ​​of digital quantities, it indicates that the fitting relationship between each digital quantity sampling value and the measured analog output actual value obtained in the above steps is not accurate and needs further adjustment. In order to speed up the adjustment speed, the target digital quantity control interval can be divided according to the specific size of the output deviation, so that in each small interval, it can be calibrated separately according to its own nonlinear characteristics. When dividing the interval according to the specific size of the output deviation, if the output deviation is large, the width of the divided interval can be set to be smaller; if the output deviation is small, the width of the divided interval can be set to be larger, and the number of intervals shall not exceed half of the maximum number of intervals.

[0148] For example, the target digital quantity control interval [S' 1 ,S'n ] corresponds to multiple groups of preliminary sampling data, namely [S' 1 ,O 1 ], [S' 2 ,O 2 ],…, [S' n ,O n ], n is taken as 10, then the number of intervals actually divided shall not exceed 5. After calculating the output deviation of each group of preliminary sampling data, it is assumed that the sampling point with the larger output deviation is S' 2 , S' 5 , S' 7 , the sampling point with smaller deviation is S' 1 , S' 3 , S' 4 , S' 6 , S' 8 , S' 9 , S' 10 , then the target digital quantity control interval is initially divided into [S' 1 , S' 2 ,],[ S' 2 , S' 5 ],[ S' 5 , S' 7 ],[ S' 7 , S' 10 ], these four intervals are continuous digital quantum intervals.

[0149] In this embodiment, the digital quantity setting value interval inside the board is dynamically divided according to the deviation size of the Lagrange interpolation fitting, so that the span of the area with larger deviation is smaller, and the span of the area with smaller deviation is larger. This can effectively and preliminarily divide the target digital quantity control interval and provide a basis for subsequent intensive sampling and precise calibration.

[0150] In some embodiments, reference Fig. 9 , perform nonlinear fitting on the data of each digital quantum interval to obtain the calibration strategy corresponding to each digital quantum interval, including:

[0151] Step 902: The nonlinear relationship between the internal digital quantity setting value and the analog quantity output actual value is expressed as a polynomial, and secondary sampling is performed in each digital quantum interval to obtain secondary sampling data.

[0152] After obtaining multiple continuous digital quantum intervals according to the above step 808, the nonlinear characteristics of the sampled data in each digital quantum interval need to be analyzed respectively. In order to ensure the accuracy of capturing the nonlinear characteristics and to subsequently confirm the accuracy of the calibration strategies corresponding to each digital quantum interval, the polynomial in this embodiment can be expressed in the form of Chebyshev polynomials. Sampling is performed in each digital quantum interval to obtain secondary sampling data. The secondary sampling data includes the digital quantity sampling value in the digital quantum interval and its corresponding analog quantity output actual value.

[0153] For example, the digital quantum intervals obtained above are [S' 1 , S' 2 ,],[ S' 2 , S' 5 ],[S' 5 , S' 7 ],[ S' 7 , S' 10 ] as an example, multiple sampling is performed in each digital quantum interval to obtain more secondary sampling data, for example, in the digital quantum interval [S' 1 , S' 2 ,] to obtain multiple groups of sub-sampling data, namely [S'' 1 ,O' 1 ], [S'' 2 ,O' 2 ],…, [S'' n ,O' n ], where S'' n is the digital quantity sampling value in the digital quantum interval, O' n For S'' n The corresponding analog output actual value, the expression of Chebyshev polynomial is:

[0154] Out = ;

[0155] In the formula, Out is the actual value of the analog output after calibration; is the coefficient; It is the i-th order Chebyshev polynomial. The order of the Chebyshev polynomial is determined according to the preset output accuracy of the target board. The higher the output accuracy requirement, the higher the order of the polynomial can be.

[0156] Step 904, determining polynomial coefficients according to the secondary sampling data and the least square method, and determining a calibration strategy according to the polynomial coefficients and the polynomial.

[0157] Since the least square method is more effective for data fitting, the least square method is used in this embodiment to determine the polynomial coefficients in the Chebyshev polynomial. When using the least square method, the polynomial coefficients are obtained mainly by minimizing the square error between the actual analog output value and the analog output fitting value.

[0158] For example, suppose there are m data points [S'' i ,O' i ], the target is an n-order polynomial:

[0159] Out' i ≈ ;

[0160] By minimizing the sum of squared errors: E = , solve for the coefficients .

[0161] In some embodiments, the method further includes: in the case where the calibration strategy of the target digital quantum interval does not meet the output accuracy of the target board, calibrating the calibration strategy of the target digital quantum interval to obtain an updated calibration strategy.

[0162] When the internal digital quantity setting value and the external analog quantity output actual value are in a nonlinear relationship, there may still be inconsistency in the degree of deviation between the actual value of the analog quantity output after calibration obtained according to each digital quantity sampling value and the Chebyshev polynomial and the actual value of the analog quantity output measured by the multimeter, that is, the deviation between the actual value of the analog quantity output after calibration calculated by some digital quantity sampling values ​​and the actual value of the analog quantity output may be small, and the deviation between the actual value of the analog quantity output after calibration calculated by some digital quantity sampling values ​​and the actual value of the analog quantity output may be large. A large deviation will cause the corresponding calibration strategy to fail to meet the output accuracy of the target board. Therefore, in order to ensure that the calibration accuracy of the output control of the target board can be improved in the end, the calibration strategy with a large deviation needs to be further optimized and adjusted.

[0163] In some embodiments, Fig.10 As shown, the calibration strategy of the target digital quantum interval is calibrated, including:

[0164] Step 1002: Divide the target digital quantum interval into two consecutive digital quantity segmented intervals, and perform nonlinear fitting on the data of each digital quantity segmented interval to obtain a correction strategy corresponding to each digital quantity segmented interval.

[0165] The target digital quantum interval is used to characterize the sub-interval where the calibration strategy does not meet the output accuracy of the target board. In the case of a target digital quantum interval, the target digital quantum interval is further divided according to the dichotomy method to obtain a digital quantity segmented interval, and dense sampling is performed in the digital quantity segmented interval to obtain multiple groups of sampling data, that is, the data of the digital quantity segmented interval, and the nonlinear fitting relationship between the digital quantity value in each digital quantity segmented interval and its corresponding analog quantity output value is determined according to the above method for determining the calibration strategy, which is the correction strategy.

[0166] Step 1004 , for each digital quantity segmented interval, when the correction strategy satisfies the output accuracy of the target board, calibrate the analog quantity output by the target board according to the correction strategy.

[0167] Specifically, according to the foregoing content, the output accuracy of the target board in this embodiment is a preset accuracy threshold, and the preset accuracy threshold is 1%. When a digital quantity is randomly selected within the digital quantity segmentation interval, and the deviation between the measured analog output actual value and the calibrated analog output value obtained according to the correction strategy accounts for no more than 1% of the analog output actual value, it is determined that the correction strategy meets the output accuracy of the target board, and the output of the analog quantity of the target board can be controlled according to the correction strategy.

[0168] Step 1006, when the correction strategy corresponding to the target digital quantity segmentation interval does not meet the output accuracy of the target board, continue to divide the target digital quantity segmentation interval, and iteratively calibrate the correction strategy corresponding to the target digital quantity segmentation interval until the correction strategy corresponding to the target digital quantity segmentation interval meets the output accuracy of the target board.

[0169] Specifically, when multiple digital quantities are randomly selected within the target digital quantity segmentation interval, and there is a deviation between the measured analog quantity output actual value and the calibrated analog quantity output value obtained according to the correction strategy, the ratio of the measured analog quantity output actual value to that of the correction strategy is greater than 1%, it is determined that the correction strategy does not meet the output accuracy of the target board, and the target digital quantity segmentation interval needs to be further split, and the correction strategy corresponding to the target digital quantity segmentation interval needs to be iteratively calibrated until the correction strategy corresponding to the target digital quantity segmentation interval meets the output accuracy of the target board.

[0170] In this embodiment, the target digital quantum interval is split, and the corresponding correction strategy is determined in each digital quantity segmented interval after the split according to the above-mentioned calibration strategy determination method, so as to achieve accurate positioning and optimization of the part with large output deviation of the target digital quantum interval, and when the accuracy of the correction strategy corresponding to the digital quantity segmented interval does not meet the output accuracy of the target board, the digital quantity segmented interval is continued to be divided until the correction strategies corresponding to the divided small intervals in the target digital quantity segmented interval meet the output accuracy of the target board, which helps to improve the accuracy and reliability of the calibration strategy finally determined, that is, it helps to improve the calibration accuracy and calibration efficiency of the board output control.

[0171] In a detailed embodiment, the above process of grouping and calibrating the target digital quantity control interval is performed immediately after the above step of locating the target digital quantity control interval, such as Fig.11 As shown, the specific steps of the automatic group calibration process for the target digital quantity control interval in this embodiment are as follows:

[0172] Step 1102, preliminary sparse sampling.

[0173] Specifically, when the above target digital quantity control interval is obtained as [S' min , S' max ], perform equal step sampling in the target digital quantity control interval to obtain multiple sets of sampling data, which are [S' 1 ,O 1 ], [S' 2 ,O 2 ],…, where S' i' (i∈N*) is the initial sampling value of the digital quantity, O i (i∈N*) is the actual value of the analog output.

[0174] Step 1104: interpolation fitting.

[0175] Specifically, LaGrange interpolation fitting is performed on each of the above-mentioned groups of sampling data to obtain analog output fitting values ​​corresponding to each group of sampling data.

[0176] Exemplarily, the specific fitting formula is as follows:

[0177] O=P(S')= ;

[0178] In the formula, O is the analog output fitting value; S' is the digital initial sampling value; is the Lagrangian basis function.

[0179] Step 1106, preliminarily divide the intervals.

[0180] Specifically, according to the output deviation = | O - O i | Calculate the output deviation corresponding to the initial sampling value of each digital quantity, and control the above target digital quantity according to the output deviation to [S' min , S' max ] is preliminarily divided to obtain multiple continuous digital quantum intervals.

[0181] For example, the target digital quantity control interval [S' 1 ,S' n ]There are multiple groups of preliminary sampling data, namely [S' 1 ,O 1 ], [S' 2 ,O 2 ],…, [S' n ,O n ], n is taken as 10, then the number of intervals actually divided shall not exceed 5. After calculating the output deviation of each group of preliminary sampling data, it is assumed that the sampling point with the larger deviation is S' 2 , S' 5 , S' 7 , the sampling point with smaller deviation is S' 1 , S' 3 , S' 4 , S' 6 , S' 8 , S' 9 , S' 10 , then the target digital quantity control interval is initially divided into [S' 1 ,S' 2 ,],[ S' 2 , S' 5 ],[ S' 5 , S' 7 ],[ S' 7 , S' 10 ], these four intervals are continuous digital quantum intervals.

[0182] Step 1108, dense sampling within the interval.

[0183] Specifically, dense sampling is performed in the four continuous digital quantum intervals obtained above to obtain multiple groups of secondary sampling data, and the secondary sampling data includes digital quantity sampling values ​​in the digital quantum intervals and their corresponding analog quantity output actual values.

[0184] For example, in the digital quantum interval [S' 1 , S' 2 ,] for example, multiple groups of sub-sampling data are obtained, namely [S'' 1 ,O' 1], [S'' 2 ,O' 2 ],…, [S'' n ,O' n ], where S'' n is the digital quantity sampling value in the digital quantum interval, O' n For S'' n The corresponding analog output actual value.

[0185] Step 1110, polynomial fitting.

[0186] Specifically, the nonlinear relationship between the internal digital quantity setting value and the analog quantity output actual value is represented by the Chebyshev polynomial, wherein the expression of the Chebyshev polynomial is:

[0187] Out = ;

[0188] In the formula, Out is the actual value of the analog output after calibration; is the coefficient; is the i-th order Chebyshev polynomial.

[0189] Then, the polynomial coefficients are determined according to the secondary sampling data and the least square method, so as to determine the calibration strategy corresponding to each digital quantum interval according to the polynomial coefficients and the polynomial.

[0190] Step 1112, write parameters.

[0191] Specifically, the parameters are polynomial coefficients in the above-mentioned Chebyshev polynomials, and the parameters can be recorded in the server so as to control the output of the analog quantity of the target board card according to the final calibration strategy.

[0192] Step 1114, accuracy test.

[0193] Step 1116, determine whether the accuracy meets the standard. If the accuracy meets the standard, execute step 1118; if the accuracy does not meet the standard, execute step 1120.

[0194] Specifically, when the deviation between the analog output value obtained according to the calibration strategy and any digital quantity setting value in its corresponding digital quantum interval and the actual analog output value measured by the multimeter accounts for no more than 1% of the actual analog output value, it is determined that the calibration strategy meets the output accuracy of the target board; when the deviation accounts for more than 1% of the actual analog output value, it is determined that the calibration strategy does not meet the output accuracy of the target board.

[0195] Step 1118, save the calibration data.

[0196] Specifically, calibration data related to the calibration strategy, such as polynomial coefficients, etc., are stored in the server.

[0197] Step 1120 , divide the interval into two parts, and return to step 1108 .

[0198] Specifically, when the accuracy of the target digital quantum interval does not meet the standard, the target digital quantum interval continues to be divided according to the above method, and dense sampling is performed in the divided intervals to continue fitting calibration until the accuracy of the target digital quantum interval meets the standard.

[0199] The present application adopts the above method, firstly, by retrieving the analog output interval of the hardware and its corresponding initial digital control interval, the corresponding target digital control interval is determined; then, according to the design requirements of the board accuracy, the target digital control interval is divided into multiple groups of continuous digital quantum intervals to reduce the error caused by nonlinearity and facilitate the grouping during subsequent data calibration; then, nonlinear fitting is performed on the preliminary sampled data in each digital quantum interval in units of intervals to obtain the calibration strategy corresponding to each digital quantum interval, that is, the mapping relationship between the actual output interval of the analog quantity and the digital control interval inside the board is obtained; further, the accuracy of each calibration strategy is calculated, and when the accuracy of the calibration strategy meets the preset output accuracy of the board, the output of the board is accurately controlled according to the calibration strategy, so as to achieve the improvement of the calibration accuracy of the board output control while making the board calibration method applicable to boards of various models or production batches, thereby improving the versatility and calibration efficiency of the board calibration method.

[0200] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0201] Based on the same inventive concept, the embodiment of the present application also provides a board calibration device for implementing the board calibration method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more embodiments of the board calibration device provided below can refer to the limitations of the board calibration method above, and will not be repeated here.

[0202] In some embodiments, Fig.12 As shown, a board calibration device is provided, including: a target digital quantity control interval determination module 1202, a digital quantity interval calibration strategy determination module 1204 and a digital quantity data input setting calibration module 1206, wherein:

[0203] The target digital quantity control interval determination module 1202 is used to determine the analog quantity output interval of the target board, and determine the target digital quantity control interval of the analog quantity output interval within the target board;

[0204] A digital quantity interval calibration strategy determination module 1204 is used to divide the target digital quantity control interval into a plurality of continuous digital quantum intervals, perform nonlinear fitting on the data of each digital quantum interval, and obtain a calibration strategy corresponding to each digital quantum interval;

[0205] The digital quantity data input setting calibration module 1206 is used to calibrate the analog quantity output by the target board card according to the calibration strategy when all calibration strategies meet the output accuracy of the target board card.

[0206] In some embodiments, the target digital quantity control interval determination module 1202 is also used to obtain performance parameters of the target board, determine the initial digital quantity control interval inside the target board according to the performance parameters, and determine the digital quantity intermediate value of the initial digital quantity control interval; determine the analog output value corresponding to the digital quantity intermediate value, compare the analog output value with the preset output threshold, obtain a comparison result, and update the initial digital quantity control interval according to the comparison result; determine the updated digital quantity intermediate value according to the updated initial digital quantity control interval, so as to iteratively update the initial digital quantity control interval until the updated initial digital quantity control interval reaches the cutoff condition, and obtain the target digital quantity control interval.

[0207] In some embodiments, the target digital quantity control interval determination module 1202 is also used to compare the analog quantity output value with the preset lower limit to obtain a first comparison result, and determine the lower limit of the target digital quantity control interval based on the first comparison result; compare the analog quantity output value with the preset upper limit to obtain a second comparison result, and determine the upper limit of the target digital quantity control interval based on the second comparison result.

[0208] In some embodiments, the target digital quantity control interval determination module 1202 is also used to update the interval upper limit of the initial digital quantity control interval according to the digital quantity intermediate value if the first comparison result is that the analog quantity output value is not less than the preset lower limit; if the first comparison result is that the analog quantity output value is less than the preset lower limit, then update the interval lower limit of the initial digital quantity control interval according to the digital quantity intermediate value; iteratively update the interval upper limit and interval lower limit of the initial digital quantity control interval until the interval lower limit of the updated initial digital quantity control interval is not less than the interval upper limit, and stop, and use the updated digital quantity intermediate value as the interval lower limit of the target digital quantity control interval.

[0209] In some embodiments, the target digital quantity control interval determination module 1202 is also used to update the interval upper limit of the initial digital quantity control interval according to the digital quantity intermediate value if the second comparison result is that the analog quantity output value is not less than the preset upper limit; if the second comparison result is that the analog quantity output value is less than the preset upper limit, then update the interval lower limit of the initial digital quantity control interval according to the digital quantity intermediate value; iteratively update the interval upper limit and interval lower limit of the initial digital quantity control interval until the updated interval lower limit of the initial digital quantity control interval is not less than the interval upper limit, and stop, and use the updated digital quantity intermediate value as the interval upper limit of the target digital quantity control interval.

[0210] In some embodiments, the digital quantity interval calibration strategy determination module 1204 is also used to perform sampling according to a preset step size within the target digital quantity control interval to obtain multiple sets of preliminary sampling data, the preliminary sampling data including digital quantity preliminary sampling values ​​and their corresponding analog quantity output actual values; perform nonlinear fitting on each digital quantity preliminary sampling value to obtain a plurality of analog quantity output fitting values ​​corresponding to each other; compare the corresponding analog quantity output fitting value with the analog quantity output actual value to obtain the output deviation corresponding to each digital quantity preliminary sampling value; divide the target digital quantity control interval according to each output deviation to obtain multiple continuous digital quantum intervals.

[0211] In some embodiments, the digital quantity data input setting calibration module 1206 is further used to calibrate the calibration strategy of the target digital quantum interval when the calibration strategy of the target digital quantum interval does not meet the output accuracy of the target board to obtain an updated calibration strategy.

[0212] In some embodiments, the digital quantity data input setting calibration module 1206 is also used to divide the target digital quantity quantum interval into two consecutive digital quantity segmented intervals, and perform nonlinear fitting on the data of each digital quantity segmented interval to obtain the correction strategy corresponding to each digital quantity segmented interval; for each digital quantity segmented interval, when the correction strategy meets the output accuracy of the target board and card, the analog quantity output by the target board and card is calibrated according to the correction strategy; when the correction strategy corresponding to the target digital quantity segmented interval does not meet the output accuracy of the target board and card, the target digital quantity segmented interval is continued to be divided, and the correction strategy corresponding to the target digital quantity segmented interval is iteratively calibrated until the correction strategy corresponding to the target digital quantity segmented interval meets the output accuracy of the target board and card.

[0213] Each module in the above-mentioned board calibration device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0214] In some embodiments, a computer device is provided, which may be a control device, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as performance parameters of the target board and the applicable calibration strategy. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a board calibration method is implemented.

[0215] In some embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0216] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0217] In some embodiments, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor.

[0218] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0219] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0220] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0221] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A board calibration method, characterized in that: The method comprises: Determine an analog output interval of a target board, and determine a target digital control interval within the target board; Dividing the target digital quantity control interval into a plurality of continuous digital quantum intervals, performing nonlinear fitting on the data of each digital quantum interval, and obtaining a calibration strategy corresponding to each digital quantum interval; In the case that each of the calibration strategies satisfies the output accuracy of the target board, the analog quantity output by the target board is calibrated according to the calibration strategy.

2. The method according to claim 1, characterized in that Determining that the analog output interval is within the target digital control interval within the target board includes: Acquire the performance parameters of the target board, determine the initial digital quantity control interval inside the target board according to the performance parameters, and determine the digital quantity intermediate value of the initial digital quantity control interval; Determine the analog output value corresponding to the digital intermediate value, compare the analog output value with a preset output threshold to obtain a comparison result, and update the initial digital control interval according to the comparison result; An updated digital quantity intermediate value is determined according to the updated initial digital quantity control interval, so as to iteratively update the initial digital quantity control interval until the updated initial digital quantity control interval reaches a cutoff condition, thereby obtaining the target digital quantity control interval.

3. The method according to claim 2, characterized in that The preset output threshold includes a preset lower limit and a preset upper limit; The comparing the analog output value with a preset output threshold to obtain a comparison result, and updating the initial digital control interval according to the comparison result, comprises: Comparing the analog output value with the preset lower limit to obtain a first comparison result, and determining the lower limit of the target digital quantity control interval according to the first comparison result; The analog output value is compared with the preset upper limit to obtain a second comparison result, and the upper limit of the target digital quantity control range is determined according to the second comparison result.

4. The method according to claim 3, characterized in that The determining the lower limit of the target digital quantity control interval according to the first comparison result includes: If the first comparison result is that the analog output value is not less than the preset lower limit, the upper limit of the initial digital control interval is updated according to the digital intermediate value; if the first comparison result is that the analog output value is less than the preset lower limit, the lower limit of the initial digital control interval is updated according to the digital intermediate value; Iteratively update the interval upper limit and interval lower limit of the initial digital quantity control interval until the interval lower limit of the updated initial digital quantity control interval is not less than the interval upper limit, and use the updated digital quantity intermediate value as the interval lower limit of the target digital quantity control interval.

5. The method according to claim 3, characterized in that: The determining the upper limit of the target digital quantity control interval according to the second comparison result includes: If the second comparison result is that the analog output value is not less than the preset upper limit, the upper limit of the initial digital control interval is updated according to the digital intermediate value; if the second comparison result is that the analog output value is less than the preset upper limit, the lower limit of the initial digital control interval is updated according to the digital intermediate value; Iteratively update the interval upper limit and interval lower limit of the initial digital quantity control interval until the interval lower limit of the updated initial digital quantity control interval is not less than the interval upper limit, and use the updated digital quantity intermediate value as the interval upper limit of the target digital quantity control interval.

6. The method according to claim 1, characterized in that The step of dividing the target digital quantity control interval into a plurality of continuous digital quantum intervals comprises: Sampling is performed in the target digital quantity control interval according to a preset step length to obtain multiple groups of preliminary sampling data, wherein the preliminary sampling data includes preliminary sampling values ​​of digital quantities and corresponding actual values ​​of analog quantity outputs; Performing nonlinear fitting on each of the digital quantity preliminary sampling values ​​to obtain a plurality of analog quantity output fitting values ​​corresponding to each other; Compare the corresponding analog output fitting value with the analog output actual value to obtain the output deviation corresponding to each digital quantity preliminary sampling value; The target digital quantity control interval is divided according to each of the output deviations to obtain a plurality of continuous digital quantum intervals.

7. The method according to claim 1, characterized in that The method further comprises: In the case that the calibration strategy of the target digital quantum interval does not meet the output accuracy of the target board, the calibration strategy of the target digital quantum interval is calibrated to obtain an updated calibration strategy.

8. The method according to claim 7, characterized in that The step of calibrating the calibration strategy of the target digital quantum interval includes: Dividing the target digital quantum interval into two continuous digital quantity segmented intervals, and performing nonlinear fitting on the data of each digital quantity segmented interval to obtain a correction strategy corresponding to each digital quantity segmented interval; For each of the digital quantity segmented intervals, when the correction strategy satisfies the output accuracy of the target board, calibrate the analog quantity output by the target board according to the correction strategy; When the correction strategy corresponding to the target digital quantity segmentation interval does not meet the output accuracy of the target board, continue to divide the target digital quantity segmentation interval, and iteratively calibrate the correction strategy corresponding to the target digital quantity segmentation interval until the correction strategy corresponding to the target digital quantity segmentation interval meets the output accuracy of the target board.

9. A board calibration device, characterized in that: The device comprises: A target digital quantity control interval determination module is used to determine the analog quantity output interval of the target board, and determine the analog quantity output interval as a target digital quantity control interval inside the target board; A digital quantity interval calibration strategy determination module is used to divide the target digital quantity control interval into a plurality of continuous digital quantum intervals, perform nonlinear fitting on the data of each digital quantum interval, and obtain a calibration strategy corresponding to each digital quantum interval; The digital quantity data input setting calibration module is used to calibrate the analog quantity output by the target board card according to the calibration strategy when each of the calibration strategies meets the output accuracy of the target board card.

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