CN113078964A - Parameter correction method, device, computer equipment and storage medium - Google Patents

Parameter correction method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113078964A
CN113078964A CN202110368171.XA CN202110368171A CN113078964A CN 113078964 A CN113078964 A CN 113078964A CN 202110368171 A CN202110368171 A CN 202110368171A CN 113078964 A CN113078964 A CN 113078964A
Authority
CN
China
Prior art keywords
parameter
correction
value
target
initial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110368171.XA
Other languages
Chinese (zh)
Other versions
CN113078964B (en
Inventor
董斌
倪佩佩
张磊
李向丁
潘翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kunshan Myzy Fixture Technology Co Ltd
Original Assignee
Kunshan Myzy Fixture Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kunshan Myzy Fixture Technology Co Ltd filed Critical Kunshan Myzy Fixture Technology Co Ltd
Priority to CN202110368171.XA priority Critical patent/CN113078964B/en
Publication of CN113078964A publication Critical patent/CN113078964A/en
Application granted granted Critical
Publication of CN113078964B publication Critical patent/CN113078964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/11Monitoring; Testing of transmitters for calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3822Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving specially adapted for use in vehicles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/21Monitoring; Testing of receivers for calibration; for correcting measurements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Feedback Control In General (AREA)

Abstract

The embodiment of the invention discloses a parameter correction method, a parameter correction device, parameter correction equipment and a storage medium. The method comprises the following steps: acquiring an initial deviation value between an initial parameter value and a standard parameter value of a target parameter; correcting the target parameter according to the initial deviation value to obtain an initial correction parameter value of the corrected target parameter; acquiring a correction deviation value between an initial correction parameter value and a standard parameter value; and correcting the target parameters according to the correction deviation value to obtain the target parameters with the target correction parameter values. The embodiment of the invention can realize the quick and accurate correction of the parameters and simultaneously ensure the production speed and the production yield of equipment.

Description

Parameter correction method, device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a parameter correction method, a parameter correction device, computer equipment and a storage medium.
Background
In the working process of the equipment, various parameters are needed to determine the functional characteristics of the equipment. However, the actual parameter value of the device parameter is liable to deviate from the preset standard value, thereby causing the performance of the device to be degraded, and even failing to realize the function designed in advance. For example, a crystal oscillator in a circuit of an automobile remote controller may determine a transmission frequency thereof, but due to problems such as a manufacturing process of the crystal oscillator, frequency deviation of the crystal oscillator is caused, and if the frequency deviation is not corrected, when the crystal oscillator controls a carrier circuit and an antenna to transmit a remote control signal outwards, the frequency deviation of the remote control signal causes that a receiving end of an on-board unit cannot detect the remote control signal in a preset frequency window, so that the automobile remote controller cannot be matched with the on-board unit, and the production yield of the automobile remote controller is reduced.
In the prior art, various parameters of the equipment are required to be accurately corrected in the production process of the equipment so as to avoid the problems caused by the parameter deviation. However, the parameter correction process is often complex and precise, the higher the correction precision is, the larger the time cost needs to be consumed, and the production speed and the parameter precision are difficult to be considered.
Disclosure of Invention
The embodiment of the invention provides a parameter correction method, a parameter correction device, computer equipment and a storage medium, which are used for realizing the quick and accurate correction of parameters and simultaneously ensuring the production speed and the production yield of the equipment.
In a first aspect, an embodiment of the present invention provides a parameter correction method, including:
acquiring an initial deviation value between an initial parameter value and a standard parameter value of a target parameter;
correcting the target parameter according to the initial deviation value to obtain an initial correction parameter value of the corrected target parameter;
acquiring a correction deviation value between the initial correction parameter value and the standard parameter value;
and correcting the target parameter according to the correction deviation value to obtain the target parameter with a target correction parameter value.
In a second aspect, an embodiment of the present invention further provides a parameter correction apparatus, including:
the initial value acquisition module is used for acquiring an initial deviation value between an initial parameter value and a standard parameter value of a target parameter;
the initial correction module is used for correcting the target parameter according to the initial deviation value to obtain an initial correction parameter value of the corrected target parameter;
a correction value obtaining module, configured to obtain a correction deviation value between the initial correction parameter value and the standard parameter value;
and the target correction module is used for correcting the target parameters according to the correction deviation value to obtain the target parameters with target correction parameter values.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the parameter correction method provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the parameter correction method provided in any embodiment of the present invention.
According to the embodiment of the invention, the initial parameter value of the target parameter is compared with the standard parameter value to obtain the initial deviation value, the target parameter is corrected according to the initial deviation value, after the initial correction parameter value of the corrected target parameter is obtained, the initial correction parameter value is compared with the standard parameter value again, after the correction deviation value is obtained, the target parameter is corrected for the second time according to the correction deviation value, so that the target parameter is corrected to be the target correction parameter value, the parameter is corrected rapidly and accurately by executing the correction process twice, and the production speed and the production yield of equipment are ensured.
Drawings
Fig. 1 is a flowchart of a parameter correction method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a parameter correction method according to a second embodiment of the present invention.
Fig. 3 is a schematic flow chart of a parameter correction method according to a second embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a parameter calibration apparatus according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a parameter correction method according to an embodiment of the present invention, where the present embodiment is applicable to a case where parameters are corrected quickly and accurately through two correction processes, and the method can be executed by a parameter correction apparatus according to an embodiment of the present invention, where the parameter correction apparatus can be implemented by software and/or hardware, and can be generally integrated in a computer device. Accordingly, as shown in fig. 1, the method comprises the following operations:
and S110, acquiring an initial deviation value between the initial parameter value of the target parameter and the standard parameter value.
The target parameter may be any parameter of the device that can be corrected, for example, the frequency of a crystal oscillator in a remote control of an automobile. The initial parameter value may be a parameter value of the target parameter at the initial time of the current correction, may be a parameter value of the target parameter measured at the initial time of the correction, and may be determined by related hardware in the device. The standard parameter value may be a parameter value of a target parameter for optimizing a corresponding performance of the device, and may be preset according to a functional characteristic of the device, for example, a crystal oscillator frequency for setting a transmission frequency of the car remote controller at a reception peak of a receiving end of the car device. The initial deviation value may be data indicative of a degree of numerical difference between the initial parameter value and the standard parameter value.
Correspondingly, after the target parameter of the device is corrected, the initial parameter value of the target parameter can be measured by any method which can be realized, and the obtained initial parameter value and the standard parameter value are compared and calculated to obtain the initial deviation value between the initial parameter value and the standard parameter value of the target parameter. The degree of difference between the initial parameter value and the standard parameter value, i.e., the degree of deviation of the target parameter at the initial time of correction, may be determined based on the initial deviation value. Alternatively, the initial deviation value may be the difference of the initial parameter value minus the standard parameter value.
And S120, correcting the target parameter according to the initial deviation value, and acquiring an initial correction parameter value of the corrected target parameter.
The initial correction parameter value may be a parameter value of the target parameter after the target parameter is corrected according to the initial deviation value, or may be a parameter value of the target parameter measured after the target parameter is corrected according to the initial deviation value.
Accordingly, since the degree of difference between the initial parameter value and the standard parameter value can be determined according to the initial deviation value, the intensity of correcting the target parameter can be determined according to the initial deviation value, and the target parameter is corrected with the intensity, so that the parameter value of the target parameter can be changed to a proper extent, thereby being close to the standard parameter value to a great extent. And measuring the parameter value of the corrected target parameter to obtain the initial correction parameter value of the target parameter.
Illustratively, the standard parameter value of the crystal oscillator frequency in the automobile remote controller may be 18.0MHz of the frequency of the receiving peak of the receiving end of the in-vehicle device, and the initial parameter value may be 22.375MHz, so that the initial offset value may be obtained as the difference between the initial parameter value and the standard parameter value, which is 4.375MHz, and further the target parameter value may be reduced by 4MHz according to the initial offset value, so that the target parameter is corrected to 18.375MHz to a large extent and is close to 18.0MHz to a large extent.
And S130, acquiring a correction deviation value between the initial correction parameter value and the standard parameter value.
Wherein the correction deviation value may be data indicative of a degree of numerical difference between the initial correction parameter value and the standard parameter value.
Correspondingly, the initial correction parameter value and the standard parameter value are compared and calculated to obtain the correction deviation value between the initial correction parameter value and the standard parameter value of the target parameter. The degree of difference between the initial correction parameter value and the standard parameter value, i.e. the degree of deviation that the target parameter after correction according to the initial deviation value still has, can be determined from the correction deviation value. Alternatively, the correction deviation value may be the difference of the initial correction parameter value minus the standard parameter value.
Illustratively, in the above example of the automobile remote controller, the correction deviation value is obtained as the difference between the initial correction parameter value 18.375MHz minus the standard parameter value 18.0MHz, which is 0.375 MHz.
S140, correcting the target parameter according to the correction deviation value to obtain the target parameter with a target correction parameter value.
The target correction parameter value may be a parameter value of a target parameter that enables the corresponding performance of the device to reach a normal operating state, may be preset according to a functional characteristic of the device and/or a standard parameter value, and may have a difference value within a reasonable range with the standard parameter value, for example, may be a crystal oscillator frequency that enables the transmission frequency of the car remote controller to be within a receiving frequency range of the receiving end of the car device.
Correspondingly, because the difference degree between the initial correction parameter value and the standard parameter value can be determined according to the correction deviation value, the intensity for further correcting the target parameter can be determined according to the correction deviation value, the target parameter is corrected by the intensity, the parameter value of the target parameter can be further changed to reach the target correction parameter value, so that the target correction parameter value is more accurately close to the standard parameter value, and the parameter value deviation of the target parameter is in a reasonable range. Specifically, since the initial correction parameter value is already close to the standard parameter value to a great extent, in the process of correcting the target parameter according to the correction deviation value, correction with smaller amplitude step by step can be performed, so that the parameter value of the target parameter changes with small amplitude for many times until the target correction parameter value is reached, and accurate parameter correction is realized.
Illustratively, in the above example of the automobile remote controller, the correction deviation value is 0.375MHz, and the target correction parameter value 18.025MHz can be obtained after five times of fine correction in a manner that the amplitude of 0.07MHz is gradually reduced, and 18.025MHz is in the receiving frequency range of the receiving end with the receiving peak value of 18 MHz.
The embodiment of the invention provides a parameter correction method, which comprises the steps of comparing an initial parameter value of a target parameter with a standard parameter value to obtain an initial deviation value, correcting the target parameter according to the initial deviation value, comparing the initial correction parameter value with the standard parameter value again after obtaining an initial correction parameter value of the corrected target parameter, and performing secondary correction on the target parameter according to the correction deviation value after obtaining a correction deviation value so as to correct the target parameter into a target correction parameter value, thereby realizing quick and accurate correction of the parameter by executing two correction processes and simultaneously ensuring the production speed and the production yield of equipment.
Example two
Fig. 2 is a flowchart of a parameter correction method according to a second embodiment of the present invention. The embodiment of the present invention is embodied on the basis of the above-described embodiment, and in the embodiment of the present invention, a specific optional implementation manner is provided for correcting the target parameter according to the initial deviation value and obtaining an initial correction parameter value of the corrected target parameter.
As shown in fig. 2, the method of the embodiment of the present invention specifically includes:
s210, acquiring an initial deviation value between an initial parameter value and a standard parameter value of the target parameter.
S220, correcting the target parameter according to the initial deviation value, and acquiring an initial correction parameter value of the corrected target parameter.
In an optional embodiment of the present invention, S220 may specifically include:
and S221, inquiring a preset inquiry table according to the initial deviation value, and determining a basic correction coefficient according to an inquiry result.
The preset lookup table may be a data table for determining the intensity of correction of the target parameter according to the initial deviation value. The base correction factor may be data characterizing the strength of correction to the target parameter.
Accordingly, the preset lookup table may be preset and stored according to a history of correcting the target parameter, for example, when the initial parameter values corresponding to different initial deviation values are corrected to be standard parameter values, and the correction intensities of the target parameter may be stored in the preset lookup table corresponding to the correction coefficients representing the correction intensities and the initial deviation values, respectively. Further, when the preset lookup table is queried according to the initial deviation value, the basic correction coefficient corresponding to the initial deviation value can be obtained according to the query result.
In an optional embodiment of the present invention, the querying the preset lookup table includes a set number of parameter deviation intervals, and a one-to-one mapping relationship exists between each of the parameter deviation intervals and the set number of preset correction coefficients; the obtaining a basic correction coefficient according to the initial deviation value may include: determining a target parameter deviation interval matched with the initial deviation value in a preset lookup table; and inquiring a preset correction coefficient which has a one-to-one mapping relation with the target parameter deviation interval in the preset inquiry table, and determining the preset correction coefficient as a basic correction coefficient.
The parameter deviation intervals can be any interval in a possible value range of the initial deviation value, the sum of the parameter deviation intervals with the set number can cover all the value ranges of the initial deviation value, and the parameter deviation intervals are not overlapped. The preset correction coefficient having a one-to-one mapping relationship with an arbitrary parameter deviation section may be a correction coefficient for correcting a target parameter having an initial parameter value corresponding to an initial deviation value in the parameter deviation section.
Correspondingly, the parameter deviation intervals can be preset as required, the more the number of the set parameter deviation intervals is, namely the smaller the range of each parameter deviation interval is, the higher the accuracy of correcting the target parameter according to the inquired basic correction coefficient is. The preset correction coefficient having a one-to-one mapping relationship with each parameter deviation interval may be determined according to a history of correction of the target parameter, for example, for any one parameter deviation interval, when an initial deviation value between an initial parameter value of the target parameter and a standard parameter value belongs to the interval, a correction coefficient corresponding to a total correction intensity in a process of correcting the target parameter from the initial parameter value to the target correction parameter value is recorded, and after a plurality of correction coefficients corresponding to the initial deviation values in the interval are obtained, an average value of the plurality of correction coefficients may be calculated as the preset correction coefficient having a one-to-one mapping relationship with the parameter deviation interval. Therefore, the preset correction coefficients having a one-to-one mapping relationship with the parameter deviation intervals can respectively correct the initial parameter values corresponding to the initial deviation values in the parameter deviation intervals, so that the target parameter can be corrected from the initial parameter values to values very close to the target correction parameter values, for example, the integral digits can be corrected to be consistent with the target correction parameter values, and only the deviation of the decimal digits is reserved.
Illustratively, table 1 is a schematic diagram of a specific preset lookup table according to an embodiment of the present invention. In the above example of the automobile remote controller, when the initial deviation value is 4.375MHz, as shown in table 1, it may be determined that the matched parameter deviation interval is 4-6 MHz in the preset lookup table, then the preset correction coefficient may be queried to be-2, and the basic correction coefficient is determined to be-2, then the parameter may be transmitted to a frequency correction circuit deployed in the automobile remote controller, and the frequency correction circuit may correct the crystal oscillator frequency from the initial parameter value of 22.375MHz to the initial correction parameter value of 18.375MHz according to the basic correction coefficient-2, which is largely close to the standard parameter value of 18.0 MHz.
TABLE 1
Interval of parameter deviation (MHz) Presetting a correction factor
4~6 -2
2~4 -1
-2~2 0
-2~-4 1
-4~-6 2
S222, correcting the target parameter according to the basic correction coefficient, and acquiring an initial correction parameter value of the corrected target parameter.
Accordingly, the specific method for correcting the target parameter according to the basic correction coefficient may be determined according to the correction mode of the target parameter, which is not limited in this embodiment. For example, in the case of the above-mentioned car remote controller, the frequency correction of the crystal oscillator can be realized by introducing the basic correction coefficient into the deployed frequency correction circuit.
And S230, acquiring a correction deviation value between the initial correction parameter value and the standard parameter value.
S240, correcting the target parameter according to the correction deviation value to obtain the target parameter with a target correction parameter value.
In an optional embodiment of the present invention, correcting the target parameter according to the correction deviation value to obtain a target parameter with a target correction parameter value may include: and under the condition that the correction deviation value is determined not to be within the deviation allowable range, gradually correcting the target parameter according to preset correction precision to obtain the target parameter with the target correction parameter value.
The allowable deviation range may be a numerical range formed by deviation values between all target parameter values and standard parameter values, which enable the device to normally implement corresponding functions, and may be preset. The preset correction accuracy may be a preset correction strength for the target parameter at each correction in the stepwise correction process. Accordingly, the target correction parameter value may be any value having a deviation value from the standard parameter value within a deviation allowable range.
Correspondingly, if the correction deviation value is not within the deviation allowable range, it can be shown that the current target parameter with the preliminary correction parameter value still cannot enable the device to function as expected, and further correction needs to be performed on the target parameter. Furthermore, because the initial correction parameter value obtained after correction according to the initial deviation value is close to the standard parameter value to a certain extent, a gradual correction method can be adopted, the target parameter is corrected with preset correction precision in each correction, and the correction is repeated for a plurality of times until the target parameter is corrected to the target correction parameter value, namely the deviation value between the target parameter value and the standard parameter value is within the allowable deviation range, so that the equipment can realize functions as expected.
Alternatively, in the case where it is determined that the test deviation value is within the deviation allowable range, the target parameter correction may be completed.
In an optional embodiment of the present invention, correcting the target parameter according to the correction deviation value to obtain a target parameter with a target correction parameter value may include: under the condition that the correction deviation value is determined not to be within the deviation allowable range, gradually adjusting the basic correction coefficient according to preset adjustment precision until the target correction coefficient is obtained; and correcting the target parameters according to the target correction coefficient to obtain the target parameters with target correction parameter values.
The preset adjusting precision may be a preset adjusting amount of the basic correction coefficient adjusted each time in the step-by-step adjusting process. The target correction coefficient may be data characterizing a correction strength with which the target parameter is corrected from the initial parameter value to the target correction parameter value.
Correspondingly, when the target parameter is corrected according to the initial deviation value, a basic correction coefficient is determined according to the initial deviation value, if the target parameter is corrected from the initial parameter value to the initial correction parameter value according to the basic correction coefficient, and the correction deviation value between the basic correction coefficient and the standard parameter value is not in the deviation allowable range, the correction strength represented by the basic correction coefficient is larger or smaller, so that the target parameter cannot be corrected to be the target correction parameter value, and therefore the basic correction coefficient can be adjusted to change the correction strength of the target parameter represented by the basic correction coefficient by adjusting the size of the basic correction coefficient. Further, since the target parameter correction strength represented by the basic correction coefficient can enable the preliminary correction parameter value of the corrected target parameter to approach the standard parameter value to a certain extent, that is, the basic correction coefficient approaches the target correction coefficient to a certain extent, a gradual adjustment method can be adopted, the basic correction coefficient is adjusted with preset adjustment accuracy each time, and the adjustment is repeated for multiple times until the basic correction coefficient is corrected to the target correction coefficient, that is, the target parameter is adjusted according to the target correction coefficient, so that the target parameter can be corrected from the preliminary parameter value to the target correction parameter value, that is, the deviation value between the target parameter value and the standard parameter value is within the deviation allowable range, and the device can realize the function as expected.
In an optional embodiment of the present invention, the gradually adjusting the basic correction coefficient according to a preset adjustment precision until a target correction coefficient is obtained may include: determining preset adjustment accuracy as the numerical variation of single adjustment of the basic correction coefficient; and repeatedly executing the single adjustment on the basic correction coefficient, correcting the target parameter according to the test correction coefficient obtained after the single adjustment, and acquiring a test deviation value between the corrected test parameter value of the target parameter and the standard parameter value until the test correction coefficient is determined to be the target correction coefficient under the condition that the test deviation value is determined to be within the deviation allowable range.
Wherein, the value change amount can be a value which is increased or decreased after a single adjustment of the basic correction coefficient. The test correction factor may be a value of the base correction factor after each single adjustment. The test parameter value may be a parameter value of the target parameter after the target parameter is corrected according to the test correction coefficient. The test deviation value may be data indicative of a degree of numerical difference between the test parameter value and the standard parameter value.
Correspondingly, the preset adjustment precision is determined as the variation of the basic correction coefficient in single adjustment, the test correction coefficient is obtained after each single adjustment, the target parameter is corrected according to the test correction coefficient, the target parameter can be corrected to the test parameter value, the test deviation value between the test parameter value and the standard parameter value is obtained, and whether the current test deviation value can enable the equipment to realize the function as expected or not can be determined according to whether the test deviation value is within the deviation allowable range or not. Specifically, if the test deviation value is not within the deviation allowable range, the basic correction coefficient needs to be further adjusted, and the above steps may be repeated until the obtained test deviation value enters the deviation allowable range, and the test correction coefficient at this time is determined as the target correction coefficient.
In an optional embodiment of the invention, the test parameter value is positively correlated with the base correction factor; the single adjustment of the base correction factor may include: under the condition that the test parameter value is determined to be larger than the standard parameter value according to the test deviation value, subtracting the numerical value variation from the basic correction coefficient to obtain a test correction coefficient obtained after the single adjustment; and under the condition that the test parameter value is smaller than the standard parameter value according to the test deviation value, increasing the numerical variation of the basic correction coefficient to obtain the test correction coefficient obtained after the single adjustment.
Correspondingly, if the test parameter value is positively correlated with the basic correction coefficient, the basic correction coefficient is increased, and the test parameter value is increased, otherwise, the basic correction coefficient is decreased, and the test parameter value is decreased. Therefore, when the test parameter value is determined to be in positive correlation with the basic correction coefficient, the magnitude relationship between the test parameter value and the standard parameter value can be determined according to the test deviation value, so that the test parameter value is determined to be increased or decreased, and the corresponding basic correction coefficient is correspondingly increased or decreased.
For example, in the above example of the automobile remote controller, it can be known from table 1 that the basic correction coefficient is positively correlated with the parameter value of the target parameter. The crystal oscillator frequency is corrected from the initial parameter value of 22.375MHz to the initial correction parameter value of 18.375MHz according to the basic correction coefficient-2, and the correction deviation value is 0.375 MHz. If the deviation allowable range is-0.2 MHz, the correction deviation value is determined not to be within the deviation allowable range. Further, the preset adjustment accuracy of the basic correction coefficient can be set to 0.1, when the current parameter value is determined to be greater than the standard parameter value according to the correction deviation value, the basic correction coefficient is reduced by 0.1 to obtain a test correction coefficient-2.1, the test correction coefficient-2.1 is transmitted into the frequency correction circuit, the frequency of the crystal oscillator can be adjusted downwards by 0.5 to obtain a test parameter value 17.875MHz, the test deviation value is-0.125 MHz compared with the standard parameter value, and the frequency correction of the crystal oscillator is completed within a deviation allowable range.
In an optional embodiment of the present invention, in a case where it is determined that the test deviation value is within the deviation allowable range, the base correction coefficient is determined as the target correction coefficient.
Fig. 3 is a schematic flow chart of a parameter correction method according to a second embodiment of the present invention. In a specific example, as shown in fig. 3, the frequency of the crystal oscillator in the remote controller of the vehicle is corrected, and the current frequency of the crystal oscillator is read first, and a deviation value between the actual value of the current frequency and the target is calculated, so as to determine the correction coefficient according to the deviation value. After frequency correction is carried out according to the correction coefficient, reading the current frequency again, calculating a deviation value, judging whether the deviation value is within an allowable range, if so, finishing correction, and storing a result; otherwise, entering a cyclic fine adjustment process of the correction coefficient until the deviation value enters an allowable range, finishing correction, and storing a result.
The embodiment of the invention provides a parameter correction method, which comprises the steps of comparing an initial parameter value of a target parameter with a standard parameter value to obtain an initial deviation value, correcting the target parameter according to the initial deviation value, comparing the initial correction parameter value with the standard parameter value again after obtaining an initial correction parameter value of the corrected target parameter, and performing secondary correction on the target parameter according to the correction deviation value after obtaining a correction deviation value so as to correct the target parameter into a target correction parameter value, thereby realizing quick and accurate correction of the parameter by executing two correction processes and simultaneously ensuring the production speed and the production yield of equipment; furthermore, the intensity of correcting the initial parameter value is determined based on the preset lookup table, large-range quick adjustment of the target parameter value can be realized by preliminarily correcting the target parameter, and the parameter correction efficiency is greatly improved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a parameter calibration apparatus according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes: an initial value acquisition module 310, an initial correction module 320, a correction value acquisition module 330, and a target correction module 340.
The initial value obtaining module 310 is configured to obtain an initial deviation value between an initial parameter value of the target parameter and a standard parameter value.
The initial correction module 320 is configured to correct the target parameter according to the initial deviation value, and obtain an initial correction parameter value of the corrected target parameter.
A correction value obtaining module 330, configured to obtain a correction deviation value between the initial correction parameter value and the standard parameter value.
And the target correction module 340 is configured to correct the target parameter according to the correction deviation value, so as to obtain a target parameter with a target correction parameter value.
In an optional implementation manner of the embodiment of the present invention, the target correction module 340 may be specifically configured to: and under the condition that the correction deviation value is determined not to be within the deviation allowable range, gradually correcting the target parameter according to preset correction precision to obtain the target parameter with the target correction parameter value.
In an optional implementation manner of the embodiment of the present invention, the initial calibration module 320 may include: the basic correction coefficient query submodule is used for querying a preset query table according to the initial deviation value and determining a basic correction coefficient according to a query result; and the initial corrector submodule is used for correcting the target parameter according to the basic correction coefficient and acquiring an initial correction parameter value of the corrected target parameter.
In an optional implementation manner of the embodiment of the present invention, the querying of the preset lookup table includes a set number of parameter deviation intervals, and a one-to-one mapping relationship exists between each of the parameter deviation intervals and the preset correction coefficients of the set number; the basic correction coefficient query sub-module may be specifically configured to: determining a target parameter deviation interval matched with the initial deviation value in a preset lookup table; and inquiring a preset correction coefficient which has a one-to-one mapping relation with the target parameter deviation interval in the preset inquiry table, and determining the preset correction coefficient as a basic correction coefficient.
In an optional implementation manner of the embodiment of the present invention, the target correcting module 340 may include: the coefficient gradual adjustment submodule is used for gradually adjusting the basic correction coefficient according to preset adjustment precision under the condition that the correction deviation value is determined not to be within the deviation allowable range until the target correction coefficient is obtained; and the target correction submodule is used for correcting the target parameters according to the target correction coefficient to obtain the target parameters with target correction parameter values.
In an optional implementation manner of the embodiment of the present invention, the coefficient gradual adjustment sub-module may include: a variation determining unit configured to determine a preset adjustment accuracy as a numerical variation for performing a single adjustment on the basic correction coefficient; and the single-adjustment repeated execution unit is used for repeatedly executing the single adjustment of the basic correction coefficient, correcting the target parameter according to the test correction coefficient obtained after the single adjustment, and acquiring the test deviation value between the corrected test parameter value of the target parameter and the standard parameter value until the test deviation value is determined to be within the deviation allowable range, and determining the test correction coefficient as the target correction coefficient.
In an optional implementation manner of the embodiment of the present invention, the test parameter value is positively correlated with the basic correction coefficient; the single-adjustment repetitive execution unit can be specifically used for: under the condition that the test parameter value is determined to be larger than the standard parameter value according to the test deviation value, subtracting the numerical value variation from the basic correction coefficient to obtain a test correction coefficient obtained after the single adjustment; and under the condition that the test parameter value is smaller than the standard parameter value according to the test deviation value, increasing the numerical variation of the basic correction coefficient to obtain the test correction coefficient obtained after the single adjustment.
The device can execute the parameter correction method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the parameter correction method.
The embodiment of the invention provides a parameter correcting device, which is characterized in that an initial deviation value is obtained by comparing an initial parameter value of a target parameter with a standard parameter value, the target parameter is corrected according to the initial deviation value, after an initial correction parameter value of the corrected target parameter is obtained, the initial correction parameter value is compared with the standard parameter value again, after a correction deviation value is obtained, the target parameter is corrected for a second time according to the correction deviation value, so that the target parameter is corrected to be the target correction parameter value, the parameter is corrected rapidly and accurately by executing the correction process twice, and the production speed and the production yield of equipment are ensured.
Example four
Fig. 5 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 that connects the various system components (including the memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing by running a program stored in the memory 28, thereby implementing the parameter correction method provided by the embodiment of the present invention: acquiring an initial deviation value between an initial parameter value and a standard parameter value of a target parameter; correcting the target parameter according to the initial deviation value to obtain an initial correction parameter value of the corrected target parameter; acquiring a correction deviation value between the initial correction parameter value and the standard parameter value; and correcting the target parameter according to the correction deviation value to obtain the target parameter with a target correction parameter value.
EXAMPLE five
Fifth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where when the computer program is executed by a processor, the method for correcting a parameter provided in the fifth embodiment of the present invention is implemented: acquiring an initial deviation value between an initial parameter value and a standard parameter value of a target parameter; correcting the target parameter according to the initial deviation value to obtain an initial correction parameter value of the corrected target parameter; acquiring a correction deviation value between the initial correction parameter value and the standard parameter value; and correcting the target parameter according to the correction deviation value to obtain the target parameter with a target correction parameter value.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or computer device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of parameter correction, comprising:
acquiring an initial deviation value between an initial parameter value and a standard parameter value of a target parameter;
correcting the target parameter according to the initial deviation value to obtain an initial correction parameter value of the corrected target parameter;
acquiring a correction deviation value between the initial correction parameter value and the standard parameter value;
and correcting the target parameter according to the correction deviation value to obtain the target parameter with a target correction parameter value.
2. The method of claim 1, wherein correcting the target parameter according to the correction bias value to obtain a target parameter with a target correction parameter value comprises:
and under the condition that the test deviation value is determined not to be within the deviation allowable range, gradually correcting the target parameter according to preset correction precision to obtain the target parameter with a target correction parameter value.
3. The method according to claim 1, wherein correcting the target parameter according to the initial deviation value, and obtaining an initial correction parameter value of the corrected target parameter, comprises:
inquiring a preset inquiry table according to the initial deviation value, and determining a basic correction coefficient according to an inquiry result;
and correcting the target parameter according to the basic correction coefficient to obtain an initial correction parameter value of the corrected target parameter.
4. The method of claim 3, wherein the query of the predetermined lookup table includes a set number of parameter deviation intervals, and a one-to-one mapping relationship exists between each of the parameter deviation intervals and the predetermined correction coefficients of the set number;
the querying a preset query table according to the initial deviation value and determining a basic correction coefficient according to a query result comprise:
determining a target parameter deviation interval matched with the initial deviation value in a preset lookup table;
and inquiring a preset correction coefficient which has a one-to-one mapping relation with the target parameter deviation interval in the preset inquiry table, and determining the preset correction coefficient as a basic correction coefficient.
5. The method of claim 3, wherein correcting the target parameter according to the correction bias value to obtain a target parameter with a target correction parameter value comprises:
under the condition that the test deviation value is determined not to be within the deviation allowable range, gradually adjusting the basic correction coefficient according to preset adjustment precision until the target correction coefficient is obtained;
and correcting the target parameters according to the target correction coefficient to obtain the target parameters with target correction parameter values.
6. The method according to claim 5, wherein the step-by-step adjusting the basic correction coefficient according to a preset adjustment accuracy until a target correction coefficient is obtained comprises:
determining preset adjustment accuracy as the numerical variation of single adjustment of the basic correction coefficient;
and repeatedly executing the single adjustment on the basic correction coefficient, correcting the target parameter according to the test correction coefficient obtained after the single adjustment, and acquiring a test deviation value between the corrected test parameter value of the target parameter and the standard parameter value until the test correction coefficient is determined to be the target correction coefficient under the condition that the test deviation value is determined to be within the deviation allowable range.
7. The method of claim 6, wherein the test parameter value is positively correlated with the base correction factor;
the single adjustment to the base correction factor comprises:
under the condition that the test parameter value is determined to be larger than the standard parameter value according to the test deviation value, subtracting the numerical value variation from the basic correction coefficient to obtain a test correction coefficient obtained after the single adjustment;
and under the condition that the test parameter value is smaller than the standard parameter value according to the test deviation value, increasing the numerical variation of the basic correction coefficient to obtain the test correction coefficient obtained after the single adjustment.
8. A parameter correction apparatus, comprising:
the initial value acquisition module is used for acquiring an initial deviation value between an initial parameter value and a standard parameter value of a target parameter;
the initial correction module is used for correcting the target parameter according to the initial deviation value to obtain an initial correction parameter value of the corrected target parameter;
a correction value obtaining module, configured to obtain a correction deviation value between the initial correction parameter value and the standard parameter value;
and the target correction module is used for correcting the target parameters according to the correction deviation value to obtain the target parameters with target correction parameter values.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the parameter correction method of any of claims 1-7.
10. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the parameter correction method according to any one of claims 1 to 7.
CN202110368171.XA 2021-04-06 2021-04-06 Parameter correction method, device, computer equipment and storage medium Active CN113078964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110368171.XA CN113078964B (en) 2021-04-06 2021-04-06 Parameter correction method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110368171.XA CN113078964B (en) 2021-04-06 2021-04-06 Parameter correction method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113078964A true CN113078964A (en) 2021-07-06
CN113078964B CN113078964B (en) 2023-01-17

Family

ID=76615113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110368171.XA Active CN113078964B (en) 2021-04-06 2021-04-06 Parameter correction method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113078964B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114974076A (en) * 2022-06-24 2022-08-30 东莞市中麒光电技术有限公司 Lamp panel correction method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399577A (en) * 2007-09-28 2009-04-01 大唐移动通信设备有限公司 Mobile communication terminal and crystal oscillator parameter calibrating method thereof
CN103487782A (en) * 2013-07-16 2014-01-01 深圳市航天泰瑞捷电子有限公司 Electric meter calibrating method and automatic calibrating system
CN104683044A (en) * 2013-11-29 2015-06-03 展讯通信(上海)有限公司 Calibration method, calibration device and calibration system for frequency synthesizer in communication terminal
CN108924426A (en) * 2018-08-01 2018-11-30 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN110579753A (en) * 2019-09-21 2019-12-17 北醒(北京)光子科技有限公司 depth sensor calibration system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399577A (en) * 2007-09-28 2009-04-01 大唐移动通信设备有限公司 Mobile communication terminal and crystal oscillator parameter calibrating method thereof
CN103487782A (en) * 2013-07-16 2014-01-01 深圳市航天泰瑞捷电子有限公司 Electric meter calibrating method and automatic calibrating system
CN104683044A (en) * 2013-11-29 2015-06-03 展讯通信(上海)有限公司 Calibration method, calibration device and calibration system for frequency synthesizer in communication terminal
CN108924426A (en) * 2018-08-01 2018-11-30 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN110579753A (en) * 2019-09-21 2019-12-17 北醒(北京)光子科技有限公司 depth sensor calibration system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114974076A (en) * 2022-06-24 2022-08-30 东莞市中麒光电技术有限公司 Lamp panel correction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113078964B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN113078964B (en) Parameter correction method, device, computer equipment and storage medium
US11696159B2 (en) Method, apparatus, and non-transitory computer readable medium for testing terminals
CN113225232B (en) Hardware testing method and device, computer equipment and storage medium
CN110855590A (en) Frequency offset compensation method, system, electronic device and computer readable storage medium
CN109444786B (en) Method and system for improving on-chip load traction measurement accuracy and terminal equipment
CN110717315B (en) System data batch modification method and device, storage medium and electronic equipment
CN110895645B (en) Target correction code determining method and device, electronic equipment and storage medium
CN109634455B (en) Calibration method and calibration system based on touch screen
CN109842619A (en) User account hold-up interception method and device
CN115455644A (en) SGEMP damage probability evaluation method and system under small sample constraint
CN112465917B (en) Distortion calibration method, system, equipment and storage medium of lens module
CN111002348B (en) Robot performance testing method, robot and computer readable storage medium
CN110207699B (en) Positioning method and device
CN108092681B (en) terminal guidance system receiver channel amplitude-phase calibration method
CN112464395B (en) Method and device for calibrating physical model parameters of engine
US20230399128A1 (en) Affine-invariant similarity constellation intercalibration
CN117309299B (en) Servo driver vibration test method, device, equipment and medium
CN113961168B (en) Data processing method, device, electronic equipment and storage medium
CN113590952B (en) Data center construction method and system
CN113589700B (en) Method and system for checking intelligent household zigbee request
CN110852684B (en) Method, device, equipment and storage medium for determining goods source preference
CN118194797A (en) Schottky diode model construction method and device and electronic equipment
CN111160532A (en) Method and device for correcting sigmoid function
CN117350246A (en) Verification method and related device of millimeter wave radar chip
CN115118296A (en) Real-time error compensation method, system, terminal and medium for multi-channel receiver

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant