A circuit board calibration method, apparatus and storage medium
By using the frequency offset compensation value of the previously calibrated circuit board as the initial value, and combining it with the measurement and adjustment of frequency offset and power spectral density, the circuit board calibration process is optimized, solving the problem of long calibration time for circuit board frequency offset, and improving calibration efficiency and effectiveness.
Patent Information
- Application Number
- CN202410012925.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2044-01-02
AI Technical Summary
In existing technologies, frequency offset calibration of circuit boards takes too long and requires multiple calibrations to meet the requirements, resulting in low efficiency.
The frequency offset compensation value of the previously calibrated circuit board is used as the initial value of the current circuit board. By adjusting the relationship between the frequency offset value and the threshold range, the frequency offset compensation value is gradually adjusted until it meets the requirements. Combined with the measurement and calibration of power spectral density, the calibration process is optimized.
It effectively reduces circuit board calibration time, improves work efficiency, ensures that frequency deviation and power calibration results meet production requirements, and avoids waste of unqualified products.
Smart Images

Figure CN117761389B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic product calibration, specifically to a circuit board calibration method and storage medium. Background Technology
[0002] During the production of electronic products, the performance of various electronic components will vary. Therefore, it is necessary to calibrate the circuit boards and the complete machine composed of circuit boards so that the electronic products can meet the specifications and standards after leaving the factory, thus having good product performance.
[0003] During calibration, it is usually necessary to calibrate the power and frequency offset of the circuit board to ensure that the corresponding indicators of the circuit board meet the requirements. At the same time, after the circuit board and other components are assembled into a complete machine, the indicators of the entire machine also need to be calibrated to ensure that the machine can operate stably.
[0004] In existing technologies, when calibrating the frequency offset of a circuit board, the frequency offset compensation is usually performed within a preset fixed range to calibrate the circuit board. This often requires multiple calibrations to obtain a frequency offset compensation value that meets the calibration requirements, which results in a relatively long calibration time. Summary of the Invention
[0005] In view of this, the present invention provides a circuit board calibration method and storage medium to solve the problem of excessive time consumption when calibrating circuit boards.
[0006] In a first aspect, the present invention provides a circuit board calibration method, the method comprising:
[0007] Obtain the historical frequency offset compensation value corresponding to the circuit board after the previous calibration;
[0008] Set the historical frequency offset compensation value as the frequency offset compensation value of the current circuit board, and measure the frequency offset value corresponding to the current circuit board;
[0009] Determine whether the frequency offset value is within the first threshold range;
[0010] If the frequency offset value is within the first threshold range, then the frequency offset calibration of the current circuit board is determined to be complete.
[0011] The initial frequency offset compensation value of the current circuit board is determined based on the frequency offset compensation value of the previously calibrated circuit board, so that the current circuit board can be calibrated. Since the differences between circuit boards in the same batch are small, using the previously calibrated circuit board as the initial frequency offset compensation value can effectively reduce calibration time and improve work efficiency.
[0012] In an optional implementation, the method further includes:
[0013] If the frequency offset value is not within the first threshold range, the frequency offset compensation value is modified according to the relationship between the frequency offset value and the first threshold range, and the frequency offset value corresponding to the current circuit board is remeasured until the frequency offset value is within the first threshold range or the frequency offset compensation value exceeds the preset frequency offset compensation range.
[0014] If the frequency offset compensation value exceeds the preset frequency offset compensation range, then the frequency offset calibration of the current circuit board is determined to have failed.
[0015] By analyzing the relationship between the frequency offset value and the threshold range of the circuit board after calibration, the frequency offset compensation value can be further modified to achieve the calibration purpose. This allows the frequency offset value of the finally calibrated circuit board to better meet production requirements and achieve better calibration results.
[0016] In one optional implementation, modifying the frequency offset compensation value based on the relationship between the frequency offset value and the first threshold range includes:
[0017] When the frequency offset value is lower than the median of the first threshold range, the frequency offset compensation value is reduced;
[0018] When the frequency offset value is higher than the median of the first threshold range, the frequency offset compensation value is increased.
[0019] By adjusting the frequency offset compensation value according to the relationship between the frequency offset value and the median of the target range, the adjusted frequency offset value can be made closer to the median of the threshold range, resulting in better frequency offset calibration of the circuit board.
[0020] In an optional implementation, the method further includes:
[0021] Determine the target channel of the current circuit board and obtain the power index range corresponding to the target channel;
[0022] Measure the first power spectral density corresponding to the minimum value of the power index range and the second power spectral density corresponding to the maximum value of the power index range;
[0023] The power compensation value is calculated based on the first power spectral density and the second power spectral density;
[0024] The power compensation is performed on the current circuit board according to the power compensation value to obtain the updated power index range, and the updated first power spectral density and second power spectral density are obtained.
[0025] If the difference between the current first power spectral density and the current second power spectral density is within a preset difference range, then the current circuit board power calibration is determined to be complete.
[0026] By obtaining the power spectral density corresponding to the maximum and minimum values within the power index range, the power compensation value is determined to compensate the power of the circuit board. The calibration is completed based on the difference in the compensated power spectral density within a preset range, thus achieving a better power calibration effect on the circuit board.
[0027] In an optional implementation, the method further includes:
[0028] If the difference between the current first power spectral density and the current second power spectral density is outside a preset difference range, the power compensation value is recalculated based on the current first power spectral density and the current second power spectral density, and the power compensation is performed on the current circuit board based on the power compensation value to obtain the updated power index range, and the updated first power spectral density and second power spectral density are obtained, until the difference between the current first power spectral density and the current second power spectral density is within a preset difference range, or the number of times the power compensation value is recalculated exceeds a preset number;
[0029] If the number of times the power compensation value is recalculated exceeds a preset number, the current circuit board is determined to be unqualified and calibration will no longer be performed.
[0030] By performing multiple repetitive calibrations, the final calibration objective is achieved, resulting in better calibration outcomes for the circuit board. Simultaneously, setting the number of calibration attempts avoids wasting time on defective circuit boards during the calibration process, thus improving work efficiency.
[0031] Secondly, the present invention provides a whole-machine calibration method, wherein the whole machine includes a circuit board, and the method includes:
[0032] The circuit board is calibrated using the circuit board calibration method described in the above embodiments. After calibration, the target channel of the whole machine is determined, and the power index cycle range corresponding to the target channel is determined.
[0033] Based on the power index cycle range, the power index of the whole machine is set, and the first power spectral density of the whole machine at the first frequency is measured;
[0034] If the first power spectral density is within a preset range, measure the second power spectral density of the whole machine at a second frequency, where the second frequency is greater than the first frequency;
[0035] If the second power spectral density is negative, a calibration value is determined based on the second power spectral density, and the entire machine is calibrated.
[0036] By measuring the power spectral density of the entire device at two frequencies, the second power spectral density and calibration value are determined only when the power spectral density of the entire device at the first frequency meets the conditions, thus avoiding repeated calibration and improving work efficiency.
[0037] In one optional implementation, if the first power spectral density is not within a preset range, the power index of the whole machine is reset according to the power index cycle range, and the step of measuring the first power spectral density of the whole machine at the first frequency is returned until the first power spectral density is within the preset range or the power index exceeds the power index cycle range.
[0038] If the power index exceeds the power index cycle range, the entire machine is determined to be unqualified and will not be calibrated further.
[0039] By obtaining the power spectral density at the first frequency, a preliminary power index adjustment is performed. Units that can be calibrated are then subjected to subsequent calibration, while unqualified units are eliminated, thus raising the standard of units leaving the factory.
[0040] Thirdly, the present invention provides a circuit board calibration device, the device comprising:
[0041] The historical data acquisition module is used to acquire the historical frequency offset compensation value of the circuit board after the previous calibration;
[0042] The frequency offset compensation setting module is used to set the historical frequency offset compensation value as the frequency offset compensation value of the current circuit board, and to measure the frequency offset value corresponding to the current circuit board.
[0043] The frequency offset calibration judgment module is used to determine whether the frequency offset value is within a first threshold range; if the frequency offset value is within the first threshold range, it is determined that the frequency offset calibration of the current circuit board is completed.
[0044] Fourthly, the present invention provides a whole-machine calibration device, the whole machine including a circuit board, the device comprising:
[0045] The cycle range determination module is used to determine the target channel of the whole machine and the power index cycle range corresponding to the target channel after calibrating the circuit board using the circuit board calibration device described in the third aspect above.
[0046] The first power spectral density measurement module is used to set the power index of the whole machine according to the power index cycle range, and measure the first power spectral density of the whole machine at the first frequency;
[0047] The second power spectral density measurement module measures the second power spectral density of the whole machine at the second frequency if the first power spectral density is within a preset range.
[0048] The whole machine calibration module determines a calibration value based on the second power spectral density if the second power spectral density is negative, and then calibrates the whole machine.
[0049] Fifthly, the present invention provides a whole-machine calibration device, the device including a measuring instrument and a controller, the measuring instrument being connected to a circuit board or the whole machine, for measuring parameter data of the circuit board or the whole machine;
[0050] The controller includes a memory and a processor. The memory stores computer instructions. The processor executes the computer instructions to perform the circuit board calibration method of the first aspect or any corresponding embodiment described above, or to perform the whole machine calibration method of the second aspect or any corresponding embodiment described above.
[0051] In a sixth aspect, the present invention provides a computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a computer to perform the circuit board calibration method of the first aspect or any corresponding embodiment thereof, or to perform the whole machine calibration method of the second aspect or any corresponding embodiment thereof. Attached Figure Description
[0052] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0053] Figure 1 This is a flowchart of a circuit board calibration method according to an embodiment of the present invention;
[0054] Figure 2 This is a flowchart of another circuit board calibration method according to an embodiment of the present invention;
[0055] Figure 3 This is an example flowchart of steps S201-S204 in another circuit board calibration method according to an embodiment of the present invention;
[0056] Figure 4 This is an example flowchart of steps S204-S208 in another circuit board calibration method according to an embodiment of the present invention;
[0057] Figure 5 This is a schematic diagram of a circuit board connection method provided according to an embodiment of the present invention;
[0058] Figure 6 This is a flowchart of a whole-machine calibration method according to an embodiment of the present invention;
[0059] Figure 7 This is a flowchart of another whole-machine calibration method according to an embodiment of the present invention;
[0060] Figure 8 This is an example flowchart of steps S401-S405 in a whole-machine calibration method according to the present invention;
[0061] Figure 9 This is a structural block diagram of a circuit board calibration device according to an embodiment of the present invention;
[0062] Figure 10 This is a structural block diagram of a whole-machine calibration device according to an embodiment of the present invention;
[0063] Figure 11 This is a schematic diagram of the controller structure of a whole-machine calibration device provided in an embodiment of the present invention. Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0065] During the manufacturing process of electronic products, the performance of various electronic components can vary. Therefore, circuit boards and the complete devices composed of circuit boards need to be calibrated to ensure that the manufactured products meet production standards. Calibration often requires checking multiple parameters of the circuit board. When calibrating the frequency offset of the circuit board, it is often done by compensating for the frequency offset within a preset fixed range. This often requires multiple calibrations to obtain the required compensation value, resulting in a relatively long calibration time and relatively low calibration efficiency.
[0066] Therefore, this invention provides a circuit board calibration method. By determining the frequency offset compensation value for the current circuit board based on the frequency offset compensation value of the previously calibrated circuit board, the current circuit board can be calibrated. Since the differences between circuit boards in the same batch are small, using the previously calibrated circuit board as the initial frequency offset compensation value can effectively reduce calibration time and improve work efficiency.
[0067] According to an embodiment of the present invention, a circuit board calibration method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0068] This embodiment provides a circuit board calibration method, which can be used for the above-mentioned electronic product calibration. Figure 1 This is a flowchart of a circuit board calibration method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0069] Step S101: Obtain the historical frequency offset compensation value corresponding to the circuit board after the previous calibration.
[0070] During the production of circuit boards, the differences between circuit boards in the same batch are relatively small. The frequency offset compensation value corresponding to the calibration of the previous circuit board, i.e. the historical frequency offset compensation value, is obtained to set the frequency offset compensation value of the current circuit board. It should be noted that when the circuit board being calibrated is the first circuit board to be calibrated, i.e. there is no historical frequency offset compensation value of the previous circuit board, the frequency offset compensation value of the circuit board being calibrated can be set to the default value of 0, or set according to experience.
[0071] Step S102: Set the historical frequency offset compensation value as the frequency offset compensation value of the current circuit board, and measure the corresponding frequency offset value of the current circuit board.
[0072] After obtaining the historical frequency offset compensation value corresponding to the last circuit board calibration, the circuit board can be calibrated for frequency offset based on this historical frequency offset compensation value. That is, the current frequency offset compensation value of the circuit board is set, and the frequency offset value of the current circuit board is measured after the frequency offset compensation is completed.
[0073] Step S103: Determine whether the frequency offset value is within the first threshold range; if the frequency offset value is within the first threshold range, then determine that the frequency offset calibration of the current circuit board is complete.
[0074] If the frequency offset value of the circuit board is within the preset range after setting the frequency offset compensation, it means that the circuit board has met the requirements and the calibration of the circuit board is complete. The frequency offset compensation value corresponding to this circuit board can be used to determine the frequency offset compensation value for calibrating the next circuit board.
[0075] The initial frequency offset compensation value of the current circuit board is determined based on the frequency offset compensation value of the previously calibrated circuit board, so that the current circuit board can be calibrated. Since the differences between circuit boards in the same batch are small, using the previously calibrated circuit board as the initial frequency offset compensation value can effectively reduce calibration time and improve work efficiency.
[0076] According to an embodiment of the present invention, another circuit board calibration method is provided, which can be used for circuit board calibration. Figure 2 This is a flowchart of another circuit board calibration method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0077] Step S201: Obtain the historical frequency offset compensation value corresponding to the circuit board after the previous calibration. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0078] Step S202: Set the historical frequency offset compensation value as the frequency offset compensation value of the current circuit board, and measure the corresponding frequency offset value of the current circuit board. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0079] Step S203: Determine if the frequency offset value is within the first threshold range; if the frequency offset value is within the first threshold range, then the frequency offset calibration of the current circuit board is considered complete. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0080] Step S204: If the frequency offset value is not within the first threshold range, modify the frequency offset compensation value according to the relationship between the frequency offset value and the first threshold range, and remeasure the frequency offset value corresponding to the current circuit board until the frequency offset value is within the first threshold range or the frequency offset compensation value exceeds the preset frequency offset compensation range; if the frequency offset compensation value exceeds the preset frequency offset compensation range, it is determined that the frequency offset calibration of the current circuit board has failed.
[0081] If, after setting the frequency offset compensation value, the measured frequency offset value of the circuit board is not within the preset first threshold range, the relationship between the frequency offset value and the preset first threshold range can be used to determine how to modify the frequency offset compensation value for the next calibration. If, after calibration, the measured frequency offset value is still not within the preset first threshold range, this step is repeated until the frequency offset value meets the requirements or the modified frequency offset compensation value exceeds the preset frequency offset compensation range. For example, the preset frequency offset compensation range could be [0X00, 0X7E]. If the frequency offset compensation value exceeds the frequency offset compensation range, it indicates that the current circuit board does not meet production requirements, and the frequency offset calibration for the current circuit board fails; further frequency offset calibration will not be performed.
[0082] By analyzing the relationship between the frequency offset value and the threshold range of the circuit board after calibration, the frequency offset compensation value can be further modified to achieve the calibration purpose. This allows the frequency offset value of the finally calibrated circuit board to better meet production requirements and achieve better calibration results.
[0083] Specifically, in step S204 above, modifying the frequency offset compensation value according to the relationship between the frequency offset value and the first threshold range includes: decreasing the frequency offset compensation value when the frequency offset value is lower than the median of the first threshold range; and increasing the frequency offset compensation value when the frequency offset value is higher than the median of the first threshold range.
[0084] This can be understood as follows: the frequency offset compensation value and the frequency offset value are inversely proportional; the larger the frequency offset compensation value, the smaller the frequency offset value. Therefore, when the measured frequency offset value of the circuit board is lower than the median of the first threshold range, the frequency offset compensation value of the circuit board can be reduced. A specific reduction method can be illustrated by the following formula: dTrim2=dTrim-ABS((dFreqErrorPPM–(dFreqLlimt+dFreqHlimit) / 2) / ideg+0.9)
[0085] Wherein, dTrim2 refers to the modified frequency offset compensation value, dTrim refers to the previously set frequency offset compensation value, dFreqErrorPPM refers to the frequency offset value obtained from the measurement corresponding to dTrim, dFreqLlimt and dFreqHlimit are the maximum and minimum values of the first threshold range, respectively, ideg refers to the change in the frequency offset value when the frequency offset compensation value increases by 1, and ABS is the absolute value operation.
[0086] The threshold median of the first threshold range is calculated using (dFreqLlimt + dFreqHlimit) / 2. Then, the difference between the current frequency offset value and the threshold median is calculated using (dFreqErrorPPM – (dFreqLlimt + dFreqHlimit) / 2). This difference is divided by ideg to determine how much the frequency offset compensation value should be reduced from the previous value. In the above formula, ((dFreqErrorPPM – (dFreqLlimt + dFreqHlimit) / 2) / ideg + 0.9) The reason for adding 0.9 at the end is that when a computer performs calculations, it automatically rounds the calculated value. Adding 0.9 to the value calculated by (dFreqErrorPPM – (dFreqLlimt + dFreqHlimit) / 2) / ideg ensures that the value is rounded up. For example, if the calculated value of (dFreqErrorPPM – (dFreqLlimt + dFreqHlimit) / 2) / ideg is 1.6, adding 0.9 gives it 2.5. According to the computer's automatic rounding rules, the final value is 2, which is equivalent to rounding 1.6 up. If the calculated value of (dFreqErrorPPM – (dFreqLlimt + dFreqHlimit) / 2) / ideg is 2.1, adding 0.9 gives it 3.0. According to the computer's automatic rounding rules, the final value is 3, which is also equivalent to rounding 2.1 up.
[0087] When the measured frequency offset value of the circuit board is higher than the median of the first threshold range, the frequency offset compensation value of the circuit board can be increased. The specific increase method can be illustrated by the following formula:
[0088] dTrim2=dTrim+ABS((dFreqErrorPPM–(dFreqLlimt+dFreqHlimit) / 2) / ideg+0.9)
[0089] This formula increases the compensation value based on the previous compensation value to reduce the frequency offset of the circuit board. The specific calculation principle is the same as the above, so it will not be elaborated here.
[0090] By adjusting the frequency offset compensation value according to the relationship between the frequency offset value and the median of the target range, the adjusted frequency offset value can be made closer to the median of the threshold range, resulting in better frequency offset performance of the circuit board.
[0091] Step S205: Determine the target channel of the current circuit board and obtain the power index range corresponding to the target channel.
[0092] After frequency offset calibration of the circuit board, power calibration can be performed. At this time, it is necessary to first determine the target channel to be calibrated, and then determine the corresponding power index range based on the different target channels.
[0093] For example, if the target channel is determined to be channel 5 on the circuit board, its corresponding power index range could be [0x35353535, 0x36363636]. If the target channel is determined to be channel 9 on the circuit board, the corresponding power index range could be [0x3E3E3E3E, 0x3F3F3F3F]. For ease of understanding, channel 5 will be used as an example in the following explanations. However, in actual production processes, it is usually necessary to perform power calibration on each channel. Furthermore, before performing power calibration, it is necessary to connect the equipment according to the port connections of the circuit board under test and set the line loss table of the circuit board to perform subsequent power spectral density measurements.
[0094] Step S206: Measure the first power spectral density corresponding to the minimum value of the power index range and the second power spectral density corresponding to the maximum value of the power index range, and calculate the power compensation value based on the first power spectral density and the second power spectral density.
[0095] Taking channel 5 in the above example, the power index is set to 0x35353535, and the power spectral density of the circuit board is measured as dP1. The power index is set to 0x36363636, and the power spectral density of the circuit board is measured as dP2. The power compensation value of the circuit board is calculated based on dP1 and dP2, and the specific calculation method is as follows:
[0096] PowerOffset=abs(dP1-dP2) / 0.25 -1+0.5
[0097] PowerOffset refers to the calculated power compensation value, and abs(dP1-dP2) refers to the absolute value of the difference between dP1 and dP2.
[0098] Step S207: Perform power compensation on the current circuit board according to the power compensation value to obtain the updated power index range, and obtain the updated first power spectral density and second power spectral density; if the difference between the current first power spectral density and the current second power spectral density is within the preset difference range, then determine that the power calibration of the current circuit board is complete.
[0099] After calculating the power compensation value, this value can be set on the circuit board using computer tools, such as a Python script. At this time, the power index range corresponding to the circuit board will be updated. Again, taking channel 5 as an example, after setting the power index range of the circuit board, the corresponding power index range will be updated from [0x35353535, 0x36363636] to [0x35353535+PowerOffset, 0x36363636+PowerOffset]. Then, the updated first power spectral density dP1 and second power spectral density dP2 are recalculated according to step S206. It is then determined whether the difference between the first power spectral density dP1 and the second power spectral density dP2 is within a preset range. If it is within the preset range, the power calibration is complete. For example, the updated power index range corresponds to a power spectral density dP1 of 0.6 and dP2 of 0.75, with a preset range of [-0.375, 0.375]. At this time, the difference between dP1 and dP2 is -0.15, which is within the preset range, and the calibration is qualified.
[0100] By obtaining the power spectral density corresponding to the maximum and minimum values within the power index range, the power compensation value is determined to compensate the power of the circuit board. The calibration is completed based on the difference in the compensated power spectral density within a preset range, thus achieving a better power calibration effect on the circuit board.
[0101] Step S208: If the difference between the current first power spectral density and the current second power spectral density is outside the preset difference range, recalculate the power compensation value based on the current first power spectral density and the current second power spectral density, and return to the step of performing power compensation on the current circuit board based on the power compensation value to obtain the updated power index range, and obtain the updated first power spectral density and the second power spectral density, until the difference between the current first power spectral density and the current second power spectral density is within the preset difference range, or the number of times the power compensation value is recalculated exceeds the preset number; if the number of times the power compensation value is recalculated exceeds the preset number, the current circuit board is determined to be unqualified, and calibration is no longer performed.
[0102] This can be understood as follows: if the difference between the current first power spectral density dP1 and the current second power spectral density dP2 calculated in step S207 is outside the preset difference range, then a new power compensation value is obtained by recalculating the compensation value according to the compensation value method shown in step S206 based on dP1 and dP2 at this time, and step S207 is executed based on the new power compensation value. This will not be elaborated here.
[0103] In step S207, the corresponding new power spectral density difference is obtained, and it is determined again whether the difference is within the preset difference range. If not, the above steps are repeated until the power spectral density difference is within the preset difference range, that is, the power calibration of the circuit board is completed. Or, if the number of cycles is too many, for example, more than 3 cycles, and the power spectral density difference still does not meet the requirements, it is determined that the circuit board does not meet the requirements and calibration is no longer performed.
[0104] By performing multiple repetitive calibrations, the final calibration objective is achieved, resulting in better calibration outcomes for the circuit board. Simultaneously, setting the number of calibration attempts avoids wasting time on defective circuit boards during the calibration process, thus improving work efficiency.
[0105] For steps S201-S204 in the above embodiment of the circuit board calibration method, an example flowchart is provided to aid understanding, such as... Figure 3 As shown, Figure 3 This is an example flowchart of steps S201-S204 in another circuit board calibration method according to an embodiment of the present invention.
[0106] like Figure 3 As shown, after starting the frequency offset calibration of the circuit board, the frequency offset compensation value of the previous product (i.e., when the circuit board calibration passed) is obtained. It is then determined whether this frequency offset compensation value is within the preset range. Since this is the first time in the loop, it must be within the preset range. This frequency offset compensation value is set within the current circuit board, and the frequency offset value of the circuit board is measured to determine whether the frequency offset is within the threshold range. If it is, the calibration is qualified, and the process ends. If not, the next frequency offset compensation value is calculated according to the corresponding formula in the above embodiment, and it is determined whether it is within the preset range. If it is within the preset range, the loop continues. If it is not within the preset range, the circuit board is unqualified, calibration is no longer performed, and the process ends.
[0107] For steps S204-S208 in the above embodiment of the circuit board calibration method, an example flowchart is provided for auxiliary understanding, such as... Figure 4 As shown, Figure 4 This is an example flowchart of steps S204-S208 in another circuit board calibration method according to an embodiment of the present invention.
[0108] First, after starting the calibration of the circuit board, connect the circuit board and the instrument according to the port connection method of the circuit board, and set the line loss meter corresponding to the circuit board. The line loss meter is used in conjunction with the instrument to obtain an accurate power spectral density value.
[0109] Then, determine the corresponding power index range based on the channel number. For example, if the channel number is 5, the corresponding power index range is [0x35353535, 0x36363636]. Measure the power spectral density dp1 corresponding to the minimum value and the power spectral density dp2 corresponding to the maximum value of this power index within this range.
[0110] Next, the power compensation value is calculated according to the formula in the above embodiment, and written into the device under test (DUT) via Python commands. Then, the power index range of the DUT is updated, and the new dp1 and dp2 of the power spectral density corresponding to the maximum and minimum power index values are measured. The difference between the two values is determined to be within a preset range. If yes, it corresponds to pass, and the calibration is successful, ending the process. If no, it corresponds to fail, and it is determined whether the number of fail attempts exceeds three. If it does not exceed three, the calibration is repeated. If it exceeds three, the circuit board is considered unqualified, and the process ends.
[0111] When measuring and calibrating circuit board specifications, this invention also provides a circuit board connection method, such as... Figure 5 As shown, Figure 5 This is a schematic diagram of a circuit board connection method provided according to an embodiment of the present invention.
[0112] exist Figure 5 In this system, the CMP200 measuring instrument can be used to simultaneously measure two circuit boards via a power divider; specifically, a 1-to-2 power divider can be used. During measurement, the CMP instrument is set to intelligent channel mode, with each power divider connected to one sub-instrument within the CMP200. Sub-instruments are distinguished by their inst numbers. This allows for the deletion of only the line loss tables of the corresponding sub-instrument when connecting circuit boards and configuring their line loss tables, without deleting those tables in other sub-instruments, achieving a 1-to-2 function and improving instrument utilization. Specifically, when configuring the instrument, an anonymous pipe connection to cmd.exe can be initiated, and a Python script can be executed by setting environment variables, with the function executed based on the deviceid.
[0113] Before measuring the parameters of a circuit board or the entire device, it is necessary to first measure the line loss table of the circuit board or the entire device. Only based on the line loss table can accurate parameters be obtained. This invention also provides a method for measuring the line loss table. A specific example is used to illustrate this. When measuring the line loss of a circuit board, after determining the target frequency corresponding to the line loss value, first measure the line loss dSelfLoss of the instrument's self-calibration line, then measure the receiving line loss dRxLoss and the transmitting line loss dTxLoss of the circuit board, and the additional configurable gain dATE of the instrument itself when measuring the line loss. The calculated line loss value is dLoss = dTxLoss / dRxLoss – dSelfLoss – dAte.
[0114] When measuring the line loss of the entire machine, the real-time display of the measured line loss value can assist the measurement personnel in adjusting the antenna position to the most accurate location. The specific implementation is as follows: During line loss measurement, on the computer, locate DiagShowData.exe in the Task Manager; if it is not running, start it. The line loss measurement process sends a WM_COPYDATA message to DiagShowData.exe after each line loss measurement via SendMessage. For example: Freq: 6489MHz Value: -64.7, and sends its own dialog box resource handle to DiagShowData.exe, for example: pHwndMain. Then, the debugging personnel can flexibly adjust the antenna board position, and the line loss value at different positions will be displayed. Once the production line debugging personnel determine that the antenna board position is accurate, they click the confirmation button. DiagShowData.exe then sends a WM_COPYDATA message to the line loss measurement process based on pHwndMain, for example: Freq: 6489MHz Value: 36. At this point, the line loss measurement process captures the message and records the final value as dTxLoss / dRxLoss. Regarding the DiagShowData.exe self-destruct module: it checks the process manager every 5 seconds to see if the main line loss measurement process exists. If not, it immediately terminates the process by sending a WM_CLOSE message.
[0115] According to an embodiment of the present invention, a whole-machine calibration method is provided, which can be used for the calibration of a whole device including the above-described circuit board. Figure 6 This is a flowchart of a whole-machine calibration method according to an embodiment of the present invention, such as... Figure 6 As shown, the process includes the following steps:
[0116] Step S301: Determine the target channel of the whole machine and determine the power index cycle range corresponding to the target channel.
[0117] In any embodiment of the circuit board calibration method of the present invention, the circuit board is calibrated. After calibration, the target channel of the whole machine is determined. The whole machine includes the circuit board after calibration. The power index cycle range corresponding to the target channel is determined. It can be understood that the whole machine also has multiple channels. First, the channels of the whole machine are calibrated. The power index range corresponding to different channels is also different. For example, the power index range corresponding to channel 5 of the whole machine is [0, 129], and the power index range corresponding to channel 9 of the whole machine is [0, 140].
[0118] Step S302: Set the power index of the whole machine according to the power index cycle range, and measure the first power spectral density of the whole machine at the first frequency.
[0119] Taking channel 5 as an example, the power index range is [0, 129]. First, the overall power index is set to 0. For example, this can be done using Python commands, such as `set_cal ant0.ch5.ref_frame0.tx_power_index 0x00000000`. Then, the power spectral density of the entire device is measured at the first frequency when the power index is 0. The first frequency is a pre-set frequency, for example, 1MHz. The measured power spectral density at this time is DP1.
[0120] Step S303: If the first power spectral density is within a preset range, measure the second power spectral density of the whole machine at the second frequency, where the second frequency is greater than the first frequency.
[0121] For the first power spectral density corresponding to the first frequency, if the first power spectral density, i.e., DP1, is within a preset range, then measure the second power spectral density DP2 of the entire device at the second frequency. It should be noted that the second frequency is greater than the first frequency. For example, if the value of the first power spectral density DP1 at 1MHz is 10, and the preset range is [5, 20], then measure the second power spectral density DP2 at 50MHz.
[0122] It should be noted that in actual measurements, the power spectral density at different frequencies can be obtained directly. The above steps are only to determine whether the first power spectral density is within the preset range before proceeding with the determination of the second power spectral density.
[0123] Step S304: If the second power spectral density is negative, determine the calibration value based on the second power spectral density and calibrate the whole machine.
[0124] If the measured second power spectral density DP2 is negative, the entire system needs to be calibrated based on the second power spectral density. The specific calibration method can be understood through the following example: for instance, if DP2 is less than 0, calculate the maximum gate gain iMaxGating of the entire system. The specific calculation formula is as follows:
[0125] iMaxGating=abs(DP2 -0) / 0.25+1
[0126] The calculated maximum gating gain value is written into the whole machine via Python commands, such as using the command `set_cal-pCOM%d ant0.ch5.ref_frame0.max_gating_gain iMaxGating` to calibrate the whole machine.
[0127] By measuring the power spectral density of the entire device at two frequencies, the second power spectral density is judged and the calibration value is determined only when the power spectral density of the entire device at the first frequency meets the conditions, thus avoiding repeated calibration and improving work efficiency.
[0128] According to an embodiment of the present invention, another embodiment of the whole-machine calibration method is provided, which can be used to calibrate a whole machine including the above-described calibrated circuit board. Figure 7 This is a flowchart of another whole-machine calibration method according to an embodiment of the present invention, such as... Figure 7 As shown, the process includes the following steps:
[0129] Step S401: Determine the target channel for the entire device and determine the power index cyclic range corresponding to the target channel. For details, please refer to [link to relevant documentation]. Figure 6 Step S301 of the illustrated embodiment will not be described again here.
[0130] Step S402: Based on the power index cycle range, set the power index of the entire unit and measure the first power spectral density of the entire unit at the first frequency. For details, please refer to [link to relevant documentation]. Figure 6 Step S302 of the illustrated embodiment will not be described again here.
[0131] Step S403: If the first power spectral density is within a preset range, measure the second power spectral density of the entire device at a second frequency. The second frequency is greater than the first frequency. For details, please refer to [link to relevant documentation]. Figure 6 Step S303 of the illustrated embodiment will not be described again here.
[0132] Step S404: If the first power spectral density is not within the preset range, the power index of the whole machine is reset according to the power index cycle range, and the process returns to the step of measuring the first power spectral density of the whole machine at the first frequency until the first power spectral density is within the preset range or the power index exceeds the power index cycle range; if the power index exceeds the power index cycle range, the whole machine is determined to be unqualified and no further calibration is performed.
[0133] This can be understood as follows: if the first power spectral density obtained in step S403 is not within the preset range, in step S404, the power index of the entire machine needs to be reset according to the power index range. For example, if the power index was previously set to 0 and the power index range is [0, 129], then the power index of the entire machine is set to 2, i.e., the power index is increased gradually until it exceeds the range. The new power spectral density is then measured again. If the new power spectral density is still not within the preset range, the power index is increased again within the power index range until the measured power spectral density is within the preset range. At this point, the second power spectral density at the second frequency in step S403 is measured, or the power index exceeds the range, for example, the power index is greater than 129. This indicates that the entire machine is unqualified and no further calibration is performed.
[0134] Step S405: If the second power spectral density is negative, determine the calibration value based on the second power spectral density and calibrate the entire instrument. For details, please refer to [link to relevant documentation]. Figure 6 Step S304 of the illustrated embodiment will not be described again here.
[0135] By obtaining the power spectral density at the first frequency, preliminary power index adjustment can be performed. This allows for the elimination of substandard units before subsequent calibration based on the second power spectral density, thereby raising the standard of finished units and improving efficiency.
[0136] The whole machine calibration method provided in this embodiment of the invention determines the power index range of the whole machine and obtains the corresponding power spectral density at a first frequency and a second frequency in sequence. The whole machine is then calibrated based on the power spectral density to ensure that the factory performance of the whole machine meets the expectations. By measuring the power spectral density of the whole machine at two frequencies, the second power spectral density and calibration value are determined only when the power spectral density of the whole machine at the first frequency meets the conditions, thus avoiding repeated calibration and improving work efficiency.
[0137] For steps S401-S405 of the other embodiment of the whole-machine calibration method described above, an example flowchart is provided to aid understanding, such as... Figure 8 As shown, Figure 8 This is an example flowchart of steps S401-S405 in a whole-machine calibration method according to the present invention.
[0138] like Figure 8As shown, during the overall calibration, the power index range is first determined based on the channel number. Taking channel 5 as an example, the power index range is 0 to 129. During the first calibration, the power index is set to 0. Python is used to set the power index to the power compensation value of the device under test, i.e., the compensation value is 0. Next, the power spectral density of the device is measured at 1MHz and 50MHz. In the above embodiment of the overall calibration method, the power spectral density at different frequencies is measured in stages. However, in actual measurements, the power spectral density of the device at different frequencies can be measured simultaneously. First, it is determined whether the power spectral density at 1MHz is within the threshold range. If it is, then it is determined whether the power spectral density at 50MHz is within the threshold range. The threshold range here is actually determined by whether the power spectral density at 50MHz is greater than 0. If it is, it indicates that the device is qualified, and the calibration ends. If the power spectral density at 0MHz is less than 0, the maximum gate gain Imaxgating value is calculated using an algorithm and written to the device, completing the calibration. If the power spectral density at 1MHz is not within the threshold range, increase the power index value, for example, change the power index from 0 to 1, and repeat the subsequent process to measure the new power spectral density until the power spectral density at 1MHz meets the requirements, then proceed to the next step; or if the power index exceeds the range, the entire instrument is unqualified, and the calibration ends.
[0139] This embodiment also provides a circuit board calibration device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0140] This embodiment provides a circuit board calibration device, the structural block diagram of which is shown below. Figure 9 As shown, it includes:
[0141] Historical data acquisition module 501 acquires the historical frequency offset compensation value corresponding to the circuit board after the previous calibration.
[0142] The frequency offset compensation setting module 502 is used to set the historical frequency offset compensation value as the frequency offset compensation value of the current circuit board, and to measure the corresponding frequency offset value of the current circuit board.
[0143] The frequency offset calibration judgment module 503 is used to determine whether the frequency offset value is within the first threshold range; if the frequency offset value is within the first threshold range, it is determined that the frequency offset calibration of the current circuit board is completed.
[0144] In some optional implementations, the frequency offset calibration judgment module 503 is further configured to, if the frequency offset value is not within the first threshold range, modify the frequency offset compensation value according to the relationship between the frequency offset value and the first threshold range, and remeasure the frequency offset value corresponding to the current circuit board until the frequency offset value is within the first threshold range or the frequency offset compensation value exceeds the preset frequency offset compensation range; if the frequency offset compensation value exceeds the preset frequency offset compensation range, it is determined that the frequency offset calibration of the current circuit board has failed.
[0145] In some optional implementations, modifying the frequency offset compensation value based on the relationship between the frequency offset value and the first threshold range includes: decreasing the frequency offset compensation value when the frequency offset value is lower than the median of the first threshold range; and increasing the frequency offset compensation value when the frequency offset value is higher than the median of the first threshold range.
[0146] In some optional embodiments, the circuit board calibration device further includes a power calibration module 504, used to determine the target channel of the current circuit board and obtain the power index range corresponding to the target channel; measure the first power spectral density corresponding to the minimum value of the power index range and the second power spectral density corresponding to the maximum value of the power index range; calculate a power compensation value based on the first power spectral density and the second power spectral density; perform power compensation on the current circuit board according to the power compensation value to obtain the updated power index range, and obtain the updated first power spectral density and the second power spectral density; if the difference between the current first power spectral density and the current second power spectral density is within a preset difference range, then the power calibration of the current circuit board is determined to be complete.
[0147] In some optional implementations, in the power calibration module 504, if the difference between the current first power spectral density and the current second power spectral density is outside a preset difference range, the power compensation value is recalculated based on the current first power spectral density and the current second power spectral density, and the power compensation of the current circuit board is performed based on the power compensation value to obtain the updated power index range, and the updated first power spectral density and second power spectral density are obtained, until the difference between the current first power spectral density and the current second power spectral density is within the preset difference range, or the number of times the power compensation value is recalculated exceeds a preset number; if the number of times the power compensation value is recalculated exceeds the preset number, the current circuit board is determined to be unqualified, and calibration is no longer performed.
[0148] This embodiment also provides a whole-machine calibration device, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0149] This embodiment provides a whole-machine calibration device, the structural block diagram of which is shown below. Figure 10 As shown, it includes:
[0150] The cycle range determination module 601 is used to determine the target channel of the whole machine and the power index cycle range corresponding to the target channel after the circuit board is calibrated using the circuit board calibration device of the present invention.
[0151] The first power spectral density measurement module 602 is used to set the power index of the whole machine according to the power index cycle range and measure the first power spectral density of the whole machine at the first frequency.
[0152] The second power spectral density measurement module 603 measures the second power spectral density of the whole machine at the second frequency if the first power spectral density is within the preset range.
[0153] The whole machine calibration module 604 determines the calibration value based on the second power spectral density if the second power spectral density is negative, and calibrates the whole machine.
[0154] In some optional implementations, the second power spectral density measurement module 603 is further configured to, if the first power spectral density is not within the preset range, reset the power index of the whole machine according to the power index cycle range, and return to the step of measuring the first power spectral density of the whole machine at the first frequency, until the first power spectral density is within the preset range or the power index exceeds the power index cycle range; if the power index exceeds the power index cycle range, the whole machine is determined to be unqualified and no further calibration is performed.
[0155] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0156] In this embodiment, both the circuit board calibration device and the whole machine calibration device are presented in the form of functional units. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0157] This invention also provides a whole-machine calibration device, including a measuring instrument and a controller. The measuring instrument is connected to a circuit board or the whole machine and is used to measure parameter data of the circuit board or the whole machine. The controller includes a memory and a processor. The memory stores computer instructions, and the processor executes the computer instructions to perform the circuit board calibration method or the whole-machine calibration method of any embodiment of this invention.
[0158] Please see Figure 11 , Figure 11 This is a schematic diagram of the controller structure of a whole-machine calibration device provided in an embodiment of the present invention, as shown below. Figure 11 As shown, the controller includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the controller, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple controllers can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 11 Take a processor 10 as an example.
[0159] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0160] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.
[0161] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the controller. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the controller via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0162] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0163] The controller also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.
[0164] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.
[0165] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0166] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method of calibrating a circuit board, characterized by, The method includes: Obtain the historical frequency offset compensation value corresponding to the circuit board after the previous calibration; Set the historical frequency offset compensation value as the frequency offset compensation value of the current circuit board, and measure the frequency offset value corresponding to the current circuit board; Determine whether the frequency offset value is within the first threshold range; If the frequency offset value is within the first threshold range, then the frequency offset calibration of the current circuit board is determined to be complete; Determine the target channel of the current circuit board and obtain the power index range corresponding to the target channel; Measure the first power spectral density corresponding to the minimum value of the power index range and the second power spectral density corresponding to the maximum value of the power index range; The power compensation value is calculated based on the first power spectral density and the second power spectral density; PowerOffset = abs(dP1 - dP2) / 0.25 -1 + 0.5, where PowerOffset is the power compensation value, dP1 is the first power spectral density, and dP2 is the second power spectral density; The power compensation is performed on the current circuit board according to the power compensation value to obtain the updated power index range, and the updated first power spectral density and second power spectral density are obtained. If the difference between the current first power spectral density and the current second power spectral density is within a preset difference range, then the current circuit board power calibration is determined to be complete.
2. The method according to claim 1, characterized in that, The method further includes: If the frequency offset value is not within the first threshold range, the frequency offset compensation value is modified according to the relationship between the frequency offset value and the first threshold range, and the frequency offset value corresponding to the current circuit board is remeasured until the frequency offset value is within the first threshold range or the frequency offset compensation value exceeds the preset frequency offset compensation range. If the frequency offset compensation value exceeds the preset frequency offset compensation range, then the frequency offset calibration of the current circuit board is determined to have failed.
3. The method according to claim 2, characterized in that, Modifying the frequency offset compensation value based on the relationship between the frequency offset value and the first threshold range includes: When the frequency offset value is lower than the median of the first threshold range, the frequency offset compensation value is reduced; When the frequency offset value is higher than the median of the first threshold range, the frequency offset compensation value is increased.
4. The method according to claim 1, characterized in that, The method further includes: If the difference between the current first power spectral density and the current second power spectral density is outside a preset difference range, the power compensation value is recalculated based on the current first power spectral density and the current second power spectral density, and the power compensation is performed on the current circuit board based on the power compensation value to obtain the updated power index range, and the updated first power spectral density and second power spectral density are obtained, until the difference between the current first power spectral density and the current second power spectral density is within a preset difference range, or the number of times the power compensation value is recalculated exceeds a preset number; If the number of times the power compensation value is recalculated exceeds a preset number, the current circuit board is determined to be unqualified and calibration will no longer be performed.
5. A method for calibrating a complete machine, wherein the complete machine includes a circuit board, characterized in that, The method includes: The circuit board is calibrated using the circuit board calibration method described in any one of claims 1-4. After calibration, the target channel of the whole machine is determined, and the power index cycle range corresponding to the target channel is determined. Based on the power index cycle range, the power index of the whole machine is set, and the first power spectral density of the whole machine at the first frequency is measured. If the first power spectral density of the whole machine is within a preset range, the second power spectral density of the whole machine at a second frequency is measured, and the second frequency is greater than the first frequency; If the second power spectral density of the whole machine is negative, the maximum gate gain is calculated based on the second power spectral density of the whole machine, and the maximum gate gain is written as a calibration value into the whole machine to calibrate the whole machine; the maximum gate gain satisfies: iMaxGating=abs(DP2) / 0.25 + 1, where iMaxGating is the maximum gate gain and DP2 is the second power spectral density of the whole machine.
6. The method according to claim 5, characterized in that, The method further includes: If the first power spectral density of the whole machine is not within the preset range, the power index of the whole machine is reset according to the power index cycle range, and the step of measuring the first power spectral density of the whole machine at the first frequency is returned until the first power spectral density of the whole machine is within the preset range or the power index exceeds the power index cycle range. If the power index exceeds the power index cycle range, the entire machine is determined to be unqualified and will not be calibrated further.
7. A circuit board calibration device, characterized in that, The device includes: The historical data acquisition module is used to acquire the historical frequency offset compensation value of the circuit board after the previous calibration; The frequency offset compensation setting module is used to set the historical frequency offset compensation value as the frequency offset compensation value of the current circuit board, and to measure the frequency offset value corresponding to the current circuit board. The frequency offset calibration judgment module is used to determine whether the frequency offset value is within a first threshold range; if the frequency offset value is within the first threshold range, it is determined that the frequency offset calibration of the current circuit board is completed. Determine the target channel of the current circuit board and obtain the power index range corresponding to the target channel; Measure the first power spectral density corresponding to the minimum value of the power index range and the second power spectral density corresponding to the maximum value of the power index range; The power compensation value is calculated based on the first power spectral density and the second power spectral density; PowerOffset = abs(dP1 - dP2) / 0.25 -1 + 0.5, where PowerOffset is the power compensation value, dP1 is the first power spectral density, and dP2 is the second power spectral density; The power compensation is performed on the current circuit board according to the power compensation value to obtain the updated power index range, and the updated first power spectral density and second power spectral density are obtained. If the difference between the current first power spectral density and the current second power spectral density is within a preset difference range, then the current circuit board power calibration is determined to be complete.
8. A whole-machine calibration device, the whole machine including a circuit board, characterized in that, The device includes: The cycle range determination module is used to determine the target channel of the whole machine and the power index cycle range corresponding to the target channel after calibrating the circuit board using the circuit board calibration device as described in claim 7. The first power spectral density measurement module is used to set the power index of the whole machine according to the power index cycle range, and measure the first power spectral density of the whole machine at the first frequency. The second power spectral density measurement module is used to measure the second power spectral density of the whole machine at a second frequency when the first power spectral density of the whole machine is within a preset range. The whole machine calibration module is used to calculate the maximum gate gain based on the second power spectral density of the whole machine when the second power spectral density of the whole machine is negative, and write the maximum gate gain as a calibration value into the whole machine to calibrate the whole machine; the maximum gate gain satisfies: iMaxGating=abs(DP2) / 0.25 + 1, where iMaxGating is the maximum gate gain and DP2 is the second power spectral density of the whole machine.
9. A whole-machine calibration device, characterized in that, The device includes a measuring instrument and a controller. The measuring instrument is connected to a circuit board or the entire machine and is used to measure the parameter data of the circuit board or the entire machine. The controller includes a memory and a processor, wherein the memory stores computer instructions, and the processor executes the computer instructions to perform the circuit board calibration method of any one of claims 1 to 4, or the whole machine calibration method of any one of claims 5 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the circuit board calibration method of any one of claims 1 to 4, or the whole machine calibration method of any one of claims 5 to 6.
Citation Information
Patent Citations
Fast frequency offset calibration method and device for radio frequency module, equipment and medium
CN110401499A
