Wireless radio frequency frequency offset calibration device, method and electronic device
By using a non-invasive acquisition circuit combining capacitive coupling and elastic probes, and configuring an independent serial port programming branch and a temperature-compensated crystal oscillator timing circuit, the high cost and low accuracy problems of frequency offset calibration equipment for wireless radio frequency products are solved, achieving low-cost, high-precision frequency offset calibration to meet mass production requirements.
Patent Information
- Application Number
- CN202611138577.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-11-27
AI Technical Summary
Existing frequency offset calibration equipment for wireless radio frequency products struggles to balance low cost and high precision, and suffers from issues such as signal crosstalk, DC load interference, and easy damage to the product under test, thus failing to meet mass production requirements.
It adopts a non-invasive isolation acquisition circuit that combines capacitive coupling and elastic probes, is configured with an independent serial port programming branch, and has an independent temperature-compensated crystal oscillator timing circuit. It achieves one-to-many parallel processing through a time-division multiplexing switch, and adopts a dual-clock separation design and hardware-level partitioned storage unit to ensure hardware isolation between signal acquisition and communication links.
It achieves non-destructive acquisition, reduces consumables and maintenance costs, improves frequency measurement accuracy and anti-interference capability, simplifies circuit structure, and enhances the stability and efficiency of multi-channel parallel calibration.
Smart Images

Figure CN123185030A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of wireless radio frequency testing and calibration technology, specifically relating to a wireless radio frequency frequency offset calibration device, method, and electronic device. Background Technology
[0002] The performance of wireless radio frequency (RF) communication equipment directly depends on the accuracy of its carrier frequency. Therefore, frequency offset calibration is an essential core process in the manufacturing of RF products. Existing RF product frequency offset calibration equipment mainly falls into two categories: one relies on large professional instruments such as spectrum analyzers and RF test suites to perform frequency detection. These devices are bulky, have high procurement and maintenance costs, and only support single-unit sequential testing, failing to meet mass production requirements. The other category consists of simple test fixtures, which often use RF air coupling or direct pin contact to acquire signals, resulting in issues such as signal crosstalk, DC load interference, and potential damage to the pins of the product under test.
[0003] Therefore, current frequency offset calibration equipment for wireless radio frequency products generally cannot achieve both low cost and high accuracy. Summary of the Invention
[0004] The purpose of this application is to provide a wireless radio frequency offset calibration device, method, and electronic device that can solve the problem that existing wireless radio frequency product frequency offset calibration devices cannot simultaneously achieve non-intrusive monitoring and high precision.
[0005] The technical solution adopted by this application to solve its technical problem is: In a first aspect, embodiments of this application provide a frequency offset calibration device for wireless radio frequency, which includes a test control module and a test fixture board. The test control module includes a microcontroller unit (MCU), a temperature-compensated crystal oscillator timing circuit, a partitioned storage unit, and an input capture module. The test fixture board includes multiple independent signal acquisition channels. Each signal acquisition channel is equipped with a set of elastic probes, a capacitor, and a time-division multiplexing switch. Each signal acquisition channel is also equipped with an independent serial port programming branch. One end of the elastic probe is used to contact the high-frequency crystal oscillator pin of the DUT sample under test, and the other end is connected in series with the capacitor to form a signal output terminal. The signal output terminals of each of the signal acquisition channels are connected one-to-one to the input / output (IO) interface of the input capture module; the IO control terminal of the MCU is connected to the control terminal of the time-division multiplexing switch, and the serial communication terminal of the MCU is correspondingly connected to each of the serial programming branches.
[0006] Secondly, embodiments of this application provide a frequency offset calibration method for wireless radio frequency, applied to the frequency offset calibration device for wireless radio frequency described in the first aspect, the method comprising: Receive the basic parameters of the DUT sent by the host computer and write the basic parameters into the fixed parameter storage area of the MCU; The time-division multiplexing switch sequentially selects each signal acquisition channel to obtain the DUT crystal oscillator signal; Based on the timing clock output by the temperature-compensated crystal oscillator timing circuit, pulse data is collected and phase-locked loop compensation parameters are calculated; The validity of the phase-locked loop compensation parameters is verified. If the validity check passes, the phase-locked loop compensation parameters are sent to the corresponding DUT.
[0007] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the frequency offset calibration method for wireless radio frequency as described in the second aspect.
[0008] The beneficial effects of this application are: In this embodiment, a non-invasive isolation acquisition circuit combining capacitive coupling and elastic probes is employed. Compared to expensive RF probes and high-impedance probes in spectrum analyzers, this not only eliminates the need for soldering, reducing consumable and maintenance costs, but also achieves non-destructive acquisition. Secondly, each channel not only has a signal acquisition channel but also a dedicated independent serial port programming branch, hardware-isolating the signal acquisition channel from the communication link. This improves physical isolation and enhances anti-interference capabilities, reducing interference from level transitions during serial communication on high-precision crystal oscillator sampling. Thirdly, an independent temperature-compensated crystal oscillator timing circuit is set up, significantly improving frequency measurement accuracy through a high-precision timing reference signal. Finally, the MCU's I / O control terminal is connected to the control terminal of a time-division multiplexing switch, enabling one-to-many parallel operation. This eliminates complex logic control, simplifies the circuit structure of the wireless RF frequency offset calibration equipment, and reduces its cost. Attached Figure Description
[0009] Figure 1 This is a schematic diagram of the structure of a wireless radio frequency offset calibration device provided in an embodiment of this application.
[0010] Figure 2 This is a schematic diagram of the specific structure of a wireless radio frequency offset calibration device provided in an embodiment of this application.
[0011] Figure 3 This is a flowchart of a semiconductor optical amplifier polarization gain testing method provided in an embodiment of this application.
[0012] Figure 4 This is a block diagram of an electronic device provided in an embodiment of this application.
[0013] Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0014] The present application will be further described below with reference to the accompanying drawings and embodiments.
[0015] The following will clearly and completely describe the concept, specific structure, and resulting technical effects of this application in conjunction with embodiments and accompanying drawings, so as to fully understand the purpose, features, and effects of this application. Obviously, the described embodiments are only a part of the embodiments of this application, not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are all within the scope of protection of this application. Furthermore, all connections / linkages involved in the patent do not simply refer to direct contact between components, but rather to the ability to form a better connection structure by adding or reducing connecting accessories according to specific implementation conditions. The various technical features in this application can be combined interactively without contradicting each other.
[0016] The performance of wireless radio frequency communication equipment directly depends on the accuracy of the carrier frequency. Factors such as crystal oscillator process deviation, voltage fluctuation, temperature drift, and long-term aging can all cause frequency offsets in the transmitted and received carrier frequencies. If the frequency offset exceeds the specified threshold, it will cause problems such as packet loss, shortened connection distance, and interference from adjacent channels. At the same time, it will fail to meet the domestic and international radio certification standards such as the Federal Communications Commission (FCC), the European Union Conformité Européenne (CE), and the State Radio Regulatory Commission of the People's Republic of China (SRRC). Therefore, frequency offset calibration is an essential core process in the manufacturing of wireless radio frequency products.
[0017] Currently, frequency offset calibration equipment for wireless radio frequency products in the industry is mainly divided into two categories. One type is a professional calibration system built on spectrum analyzers and RF test instruments. This type of equipment has high measurement accuracy, but the overall size of the equipment is large, the purchase cost and subsequent maintenance cost are extremely high, and it can only support serial testing and calibration of a single device under test, which cannot realize parallel operation of multiple devices. The test cycle is long and the mass production efficiency is extremely low, making it difficult to adapt to the needs of large-scale mass production of radio frequency products. The equipment has poor popularity and practicality.
[0018] Another type is the traditional simple calibration fixture, which mainly acquires radio frequency signals through radio frequency air coupling or direct pin contact to complete frequency offset detection and calibration. However, this acquisition method has many inherent defects: air coupling acquisition has weak signal strength and low signal-to-noise ratio, and is susceptible to environmental electromagnetic interference; direct pin contact acquisition is not only prone to squeezing and damaging the chip pins and crystal oscillator pins of the device under test (DUT), causing physical damage to the product and increasing the production defect rate, but also introduces DC load interference and multi-channel signal crosstalk problems, resulting in large fluctuations in frequency offset measurement data and poor calibration consistency, which seriously affects calibration accuracy and product quality.
[0019] Meanwhile, existing conventional wireless RF frequency offset calibration equipment still suffers from technical shortcomings in its underlying hardware architecture and benchmark design. Traditional frequency offset calibration equipment generally uses a microcontroller unit (MCU) as the system clock and also as the timing benchmark for frequency detection. System program scheduling, interrupt preemption, and instruction timing fluctuations during equipment operation introduce severe timing jitter, resulting in frequency detection accuracy failing to reach the parts per million (ppm) level accuracy required for RF calibration, making it difficult to meet the calibration requirements of high-precision RF products. In addition, most existing one-to-many parallel test equipment adopts a single-bus shared signal link architecture, where multiple devices under test share the same transmission link. Poor isolation between channels easily leads to signal crosstalk. Furthermore, the RF signal acquisition link and parameter programming communication link of the equipment are not hardware isolated, and the signals of the two links couple and interfere with each other, further significantly reducing the stability, accuracy, and reliability of multi-channel parallel calibration. This results in high retest rates and difficulty in guaranteeing production yield, greatly limiting the efficiency and quality of mass production calibration of RF products.
[0020] In summary, current wireless radio frequency (RF) product frequency offset calibration equipment generally suffers from numerous technical defects, such as high cost, low mass production efficiency, easy damage to the product under test, insufficient measurement accuracy, severe multi-channel calibration interference, and poor stability. The industry urgently needs a high-precision, low-interference, parallel mass-producible, low-cost, and non-destructive RF frequency offset calibration device for the product under test.
[0021] To address the aforementioned problems, this application provides a wireless radio frequency offset calibration device, method, and electronic device. The following description, in conjunction with the accompanying drawings, details the wireless radio frequency offset calibration device and method provided in the embodiments of this application.
[0022] Figure 1 This is a schematic diagram of the structure of a wireless radio frequency offset calibration device provided in an embodiment of this application. See also... Figure 1The test system includes a test control module 100 and a test fixture board 200. The test control module 100 includes a microcontroller unit (MCU) 110, a temperature-compensated crystal oscillator timing circuit 120, a partitioned storage unit 130, and an input capture module 140. The test fixture board 200 includes multiple independent signal acquisition channels 210. Each signal acquisition channel 210 is configured with a set of elastic probes, a capacitor, and a time-division multiplexing switch. Each signal acquisition channel 210 is also configured with an independent serial port programming branch 211. One end of the elastic probe is used to contact the high-frequency crystal oscillator pin of the DUT sample under test, and the other end is connected in series with a capacitor to form a signal output terminal. The signal output terminals of each signal acquisition channel 210 are connected one-to-one to the input / output IO interface of the input capture module 140. The IO control terminal of the MCU 110 is connected to the control terminal of the time-division multiplexing switch, and the serial communication terminal of the MCU 110 is connected to each serial port programming branch 211.
[0023] In some embodiments, the test control module 100 and the test fixture board 200 communicate via ribbon cables or board-to-board connectors.
[0024] In some embodiments, the test fixture board 200 is the motherboard of the printed circuit board (PCB) of the frequency offset calibration device. For example, the test fixture board 200 is a multi-stage fixture board containing multiple slots.
[0025] In some embodiments, MCU110 is a 32-bit high-performance microcontroller.
[0026] In some embodiments, the temperature-compensated crystal oscillator timing circuit 120 is an independent clock hardware circuit including a temperature-compensated crystal oscillator (TCXO) with a frequency stability of ≤ ±0.2ppm, used to provide a high-precision timing reference for the input capture module 140.
[0027] In some embodiments, the temperature-compensated crystal oscillator timing circuit 120 is independent of the MCU's main clock circuit and does not share the same main clock as the MCU 110, in order to realize the core high-precision clock hardware for ppm-level frequency offset measurement.
[0028] In one possible implementation, the capacitor is selected as a 100 picofarad (pF) Class I ceramic capacitor (e.g., NPO / COG) with a low temperature drift.
[0029] In this way, by utilizing the DC blocking and AC passing characteristics of the NP0 / C0G capacitor, the DC potential between the DUT crystal oscillator pin and the MCU main control IO port is effectively isolated, blocking the reverse current path from the MCU side to the DUT crystal oscillator circuit, avoiding the deviation of the crystal oscillator's inherent oscillation frequency due to the introduction of additional DC load, and ensuring the accuracy of frequency detection from the source.
[0030] In some embodiments, the elastic probe adopts a gold-plated spring pin structure, which has good contact reliability and wear resistance, and can achieve contact without welding, thus avoiding physical damage to the DUT.
[0031] For example, the high-frequency crystal oscillator pin of the DUT is the external crystal oscillator (XTAL) pin of the passive crystal oscillator.
[0032] In this way, by using a circuit topology that combines elastic probes and capacitive coupling, the test only requires lightly touching the exposed crystal pins of the DUT with the elastic probes. There is no need to solder flying wires or disassemble or modify the DUT casing. This will not cause permanent mechanical damage to the DUT's PCB board and components, nor will it change the original RF and crystal circuit parameters of the DUT, thus significantly improving the yield rate of mass production testing.
[0033] It should be noted that for RF crystal oscillators ranging from 20 MHz to 50 MHz, a 100pF capacitance value achieves the optimal balance between AC signal coupling efficiency and DC isolation impedance. This is because an excessively small capacitance value leads to excessive capacitive reactance, causing severe attenuation of high-frequency signals and reducing the signal-to-noise ratio; conversely, an excessively large capacitance value results in excessively low capacitive reactance, equivalent to DC conduction, which introduces an additional load and alters the crystal oscillation frequency. Simultaneously, the NPO / COG material possesses an extremely low temperature drift coefficient, ensuring stable coupling characteristics under production environment temperature fluctuations ranging from -20°C to +60°C, thereby ensuring stable control of crystal oscillator frequency detection accuracy within ≤±1ppm. For example, the temperature drift coefficient is less than or equal to ±30ppm / °C.
[0034] In some embodiments, the partitioned storage unit 130 is a hardware partitioned Flash memory built into the MCU 110. Unlike traditional single-storage structures, the partitioned storage unit 130 is physically divided into three regions with mutually isolated read / write permissions.
[0035] In some embodiments, the input capture module 140 is a hardware timer peripheral integrated within the MCU 110. The input capture module 140 has hardware edge detection capability and automatically captures level changes on external pins.
[0036] It is understandable that the input capture module 140 is an independent timer hardware peripheral inside the MCU110. It is a pure hardware circuit and does not rely on the (Central Processing Unit, CPU) to read the level in a loop. The input capture module 140 monitors the rising and falling edges of the external input square wave signal in real time, and automatically latches the high-precision timing count value at the moment of level transition, which is used to accurately measure the crystal oscillator period and calculate the RF frequency deviation.
[0037] In some embodiments, the test fixture board 200 serves as a multi-channel expansion and signal conversion unit, integrating multiple independent signal acquisition channels 210, each of which has an identical structure and is electrically isolated. For example, the signal acquisition channels 210 may include 4, 8, 16, or more channels.
[0038] It should be noted that there is no common signal bus between the various signal acquisition channels 210, and each signal output path is an independent loop, which physically eliminates the problem of crosstalk between multiple signals.
[0039] It has good abrasion resistance and can achieve contact without welding, thus avoiding physical damage to the DUT.
[0040] In some embodiments, the time-division gating switch may be an analog switch chip, which is used to select the signal channel that needs to be tested.
[0041] In one possible implementation, the time-division multiplexing switch is directly driven by the GPIO level of the MCU110 hardware. The channel switching is completed by pure hardware circuitry. Each DUT acquisition channel is turned on in turn according to time slices. At any one time, only one channel is turned on and the others are turned off, realizing multi-channel time-division multiplexing acquisition.
[0042] For example, the time-division multiplexing switch can be a CD4051, CD4052, RF PIN switch, CMOS multiplexer analog switch, etc. The MCU110 outputs hardware level timing sequence, sequentially turning on the first channel and turning off the others; after the acquisition is completed, the first channel is turned off and the second channel is turned on, and so on; only one DUT crystal oscillator signal is acquired at the same time, and multiple channels are tested in turn to achieve one-to-many parallel mass production.
[0043] In this way, the traditional one-to-many method uses a single signal bus, and multiple DUT crystal oscillator signals are superimposed at the same time, causing frequency offset measurement jumps; while the time-division multiplexing switch only conducts one channel at a time, and the other channels are physically disconnected by hardware, resulting in high channel isolation, completely eliminating crosstalk between multiple signals, and improving the stability of frequency offset measurement.
[0044] In some embodiments, the independent serial port programming branch 211 may include a set of UART serial communication lines configured for each channel to communicate with the DUT and realize the writing and reading of compensation parameters.
[0045] For example, see Figure 2 Area A represents the host computer communication interface unit, Area B represents the external temperature-compensated crystal oscillator timing circuit unit, Area C represents the core unit of the main control test calibration board, Area D represents the DUT interface and signal acquisition unit, and Area E represents the running clock unit. Figure 4The medium power input (+3V3) and ground (GND) ensure stable system operation.
[0046] In some embodiments, CON4-2.54 in region A represents a device used to establish a physical connection with a host computer and transmit initial parameter configuration, calibration control commands, and final result feedback data.
[0047] In some embodiments, region B includes a 24MHz temperature-compensated crystal oscillator (Y1), load capacitors (CR1=1nF, CR2=0.1μF) and a ground filter network, and its output is connected to the XTAL2_IN / XTAL2_OUT pins of the MCU to provide a unique high-precision timing reference for the input capture module.
[0048] In some embodiments, region C includes a USART2 serial port (RXD-1 / TXD-1), GPIO (IO-1), an input capture module, a Flash memory area, and a power management circuit.
[0049] In some embodiments, region D includes the CON test head of DUT1, which has a 4-pin structure, such as 1-GND, 2-signal input, and 3 / 4-spare or serial port. Region D also includes an AC coupling capacitor (C1 100pF) for isolating DC bias, allowing only the AC square wave signal from the DUT crystal oscillator to enter the MCU input capture pin (IO-1), protecting the MCU and improving the signal-to-noise ratio; region D also includes an independent serial communication line between the MCU and the DUT for compensating parameter programming and programming response feedback, supporting single-channel independent communication in one-to-many parallel calibration.
[0050] In some embodiments, region E includes a crystal resonator (Y2) and a matching capacitor, which provide the basic operating clock for the main control MCU core and bus, and work in conjunction with Y1 in part B.
[0051] In summary, the non-invasive isolation acquisition circuit combining capacitive coupling and elastic probes in this embodiment not only eliminates the need for soldering, reducing consumable and maintenance costs, but also achieves non-destructive acquisition compared to expensive RF probes and high-impedance probes in spectrum analyzers. Secondly, each channel not only has a signal acquisition channel but also a dedicated independent serial port programming branch, hardware-isolating the signal acquisition channel from the communication link. This improves physical isolation and anti-interference capabilities, reducing interference from level transitions during serial communication on high-precision crystal oscillator sampling. Thirdly, an independent temperature-compensated crystal oscillator timing circuit is set up, significantly improving frequency measurement accuracy through a high-precision timing reference signal. Finally, the MCU's I / O control terminal is connected to the control terminal of a time-division multiplexing switch, enabling one-to-many parallel operation. This eliminates complex logic control, simplifies the circuit structure of the wireless RF frequency offset calibration equipment, and reduces its cost.
[0052] In some embodiments, the MCU110 is configured with two independent clock inputs: a running clock and a timing clock. The running clock connects the MCU110 core and peripherals and is used for main control program execution, instruction scheduling, and data interaction. The timing clock is generated by a temperature-compensated crystal oscillator timing circuit 120, and the output of the temperature-compensated crystal oscillator timing circuit 120 is connected to the clock input of the input capture module 140. The timing clock is the sole timing reference for the input capture module 140.
[0053] In one possible implementation, the general-purpose peripheral can be Direct Memory Access (DMA), General Purpose Input Output (GPIO), etc.
[0054] In one possible implementation, the operating clock is generated using a standard external crystal oscillator. For example, the external crystal oscillator could be an 8MHz crystal.
[0055] In another possible implementation, the operating clock is provided by an RC oscillator inside the MCU.
[0056] In one possible implementation, the timing clock is generated by a separate temperature-compensated crystal timing circuit 120.
[0057] In one possible implementation, the output of the temperature-compensated crystal oscillator is directly connected to the clock input of the input capture module 140 inside the MCU110, without being connected to the running clock.
[0058] It should be noted that when the MCU executes complex programs, factors such as interrupt preemption, bus arbitration, and code branch jumps can cause clock jitter. If the running clock is used as the reference for frequency measurement, it will directly lead to increased measurement errors, making it difficult to meet the requirements of high-precision calibration. The timing clock is the sole timing reference for the input capture module 140, ensuring that the counting rhythm of the input capture module 140 remains constant during edge capture and pulse counting, regardless of whether the MCU is performing complex floating-point operations or is in a paused state during code debugging.
[0059] The above technical solution adopts a dual-clock physical separation design, which completely avoids the interference of software operation on the timing reference in traditional single-clock systems, and is conducive to achieving frequency deviation detection accuracy at the ±1ppm level.
[0060] In some embodiments, the input capture module 140 is used to alternately capture the rising edge and falling edge of the DUT crystal oscillator signal according to the timing clock; the input capture module 140 continuously acquires multiple sets of pulse cycle data in a single transaction and sends the multiple sets of pulse cycle data into the hardware buffer 141 of the MCU 110.
[0061] In one possible implementation, the input capture module 140 is configured in a dual-edge triggered mode.
[0062] It should be noted that in traditional single-edge capture schemes, only the rising edge or falling edge is typically captured to calculate the period. However, if the signal duty cycle drifts slightly, it will affect the accuracy of the period calculation. In this embodiment, the input capture module 140, based on the aforementioned timing clock, alternately captures the rising and falling edges of the DUT crystal oscillator square wave signal on the input pin.
[0063] In one possible implementation, when the first rising edge is detected, the hardware automatically latches the current counter value; then it waits for the falling edge to latch the half-cycle count value; and then waits for the next rising edge to latch the full-cycle count value.
[0064] In one possible implementation, the input capture module 140 continuously acquires no less than 1,000 sets of pulse cycle data after a single trigger, that is, it continuously records the time interval between 1,000 rising edges.
[0065] In one possible implementation, multiple sets of pulse cycle data are not processed by the CPU during the acquisition process. The input capture module 140 integrates a dedicated hardware buffer 141. Each set of acquired pulse cycle data is directly written into this hardware buffer 141. Only after all 1000 sets of data have been acquired does the hardware send a sampling completion interrupt signal to the CPU.
[0066] For example, hardware cache 141 can be random access memory (RAM).
[0067] In one possible implementation, the CPU responds to the sampling completion interrupt signal and moves multiple sets of pulse cycle data to the MCU's hardware buffer 141 at once for subsequent low-level driver programs to perform filtering preprocessing.
[0068] In another possible implementation, when the hardware buffer 141 is full, the input capture module 140 passes through the hardware DMA controller.
[0069] In one possible implementation, the underlying hardware driver logic performs an extreme value removal algorithm on multiple sets of pulse period data, calculates the arithmetic mean of the remaining data, and obtains the filtered period data. This effectively filters out transient interference, ensuring that the final period value used in frequency conversion has extremely high statistical confidence.
[0070] The above technical solution, through alternating capture, not only can the complete signal period be calculated, but the duty cycle stability of the signal can also be monitored, further improving the ability to identify signal distortion. Furthermore, the entire pulse acquisition process is completed independently by the hardware peripherals, with the internal execution mechanism reading batch data only after a set of samples is completed, significantly reducing CPU usage while ensuring the accuracy of the sampling timing.
[0071] In some embodiments, the partitioned storage unit 130 is a hardware partitioned flash memory built into the MCU 110. The hardware partitioned flash memory includes a fixed parameter storage area, a real-time data buffer area, and a calibration record storage area that are isolated from each other. The fixed parameter storage area is used to store the crystal oscillator nominal frequency, radio frequency nominal frequency point, frequency multiplication factor, frequency offset-phase-locked loop adjustment factor mapping table, and register conversion rules corresponding to different models of DUTs. The real-time data buffer area is used to store the pulse duration, period, and frequency offset calculation values of a single acquisition. The calibration record storage area is used to store the raw data, compensation parameters, and calibration results of each DUT.
[0072] In one possible implementation, the fixed parameter storage area is configured as read-only or locked by a hardware write protection mechanism to store the fixed configuration database for different DUT models.
[0073] For example, the nominal crystal oscillator frequency and the nominal RF frequency point include the theoretical operating reference of the DUT; the frequency multiplication factor, which is used to convert the active crystal oscillator frequency into the RF output frequency; the frequency offset-phase-locked loop (PLL) adjustment factor mapping table, which records the nonlinear correspondence between the frequency offset value and the PLL register adjustment step size, wherein the nonlinear correspondence is obtained through laboratory calibration; and the register conversion rules, which include how to convert the calculated compensation parameters into hexadecimal codes that can be recognized by the PLL register inside the DUT chip.
[0074] Understandably, the data stored in the fixed parameter storage area has the characteristics of being written once and remaining unchanged for a long time. It is solidified in the local Flash, so that the test system does not need to rely on the host computer to send parameters in real time. Even if the computer (personal computer, PC) communication is interrupted or offline, the main control board can still independently complete the calibration calculation, which greatly improves the system's environmental adaptability and batch testing efficiency.
[0075] In one possible implementation, a real-time data buffer is used to store dynamic data during a single acquisition process. For example, the real-time data buffer may be located in a specific sector of Flash memory or mapped to the RAM space of the MCU.
[0076] For example, after the input capture module 140 completes the acquisition of a set of pulse signals, the generated original count value, the effective data after extreme value removal, the calculated pulse duration, period, and the preliminary frequency offset calculation value are all temporarily stored in the real-time data buffer.
[0077] Understandably, data in the real-time data buffer is time-sensitive, valid only within the calibration cycle of the current channel, and overwritten during the next sampling or channel switching. By establishing an independent real-time data buffer, frequent erasure and rewriting of the sectors storing calibration records is avoided, effectively extending the lifespan of the Flash memory and improving data throughput.
[0078] In one possible implementation, the calibration record storage area is configured in a circular write mode to persistently store the complete lifecycle data of each DUT.
[0079] For example, the raw data includes the raw statistical values of 1000 pulse cycles collected, the compensation parameters include the PLL adjustment values that are finally generated and successfully written to the DUT, and the calibration results include metadata such as success or failure status (PASS / FAIL), number of retests, and ambient temperature.
[0080] Understandably, when a DUT subsequently experiences a frequency deviation exceeding the standard, the unique serial number in the calibration record storage area can be read to retrieve the historical calibration data stored in this area, allowing analysis to determine whether the problem lies with the crystal oscillator itself or with an abnormal calibration process, thus providing detailed data support for quality control.
[0081] Through the above technical solution, the partitioned storage unit 130 is physically partitioned at the hardware level, and the three areas do not interfere with each other, fundamentally eliminating the risk of data loss or system crash due to software errors, and ensuring the reliability and security of mass production testing.
[0082] In some embodiments, the test control module 100 integrates multiple independent serial port peripherals, each serial port peripheral being connected to a corresponding serial port programming branch 211, thus isolating the signal acquisition channel 210 from the programming communication link; the MCU 110 is used to: control the time-division multiplexing switch to switch each signal acquisition channel 210 in a time-division multiplexing manner; when signal acquisition is completed, calculate the frequency offset based on the filtered periodic data, and generate compensation parameters based on the frequency offset-phase-locked loop adjustment factor mapping table in the fixed parameter storage area; when the legality verification is passed, write the compensation parameters to the DUT through the serial port programming branch 211 corresponding to the current signal acquisition channel 210.
[0083] In one possible implementation, each serial port peripheral is connected point-to-point to the serial port programming branch 211 of the corresponding channel on the test fixture board 200 via PCB traces.
[0084] In one possible implementation, the signal output terminals (capacitor output terminals) of each signal acquisition channel 210 are connected one-to-one to the IO interface (timer input capture pin of the MCU) of the input capture module 140.
[0085] In one possible implementation, the IO control pins (GPIO pins) of the MCU110 are connected to the control pins of the time-division multiplexing switches in each signal acquisition channel 210. The MCU controls the analog switches to turn on and off by outputting high and low levels, thus achieving hardware-level time-division multiplexing.
[0086] In one possible implementation, the serial communication terminal of MCU110 is connected to the serial programming branch 211 in each signal acquisition channel 210.
[0087] In one possible implementation, after acquiring the filtered periodic data, the MCU110 calls the algorithm model stored in the fixed parameter storage area to calculate the actual frequency of the DUT crystal oscillator; based on the difference between the actual frequency and the nominal frequency, it looks up the frequency offset-phase-locked loop adjustment factor mapping table to calculate the adjustment step size required by the DUT's internal PLL register; according to the register conversion rules, the adjustment step size is encapsulated into a standardized compensation value that conforms to the DUT communication protocol.
[0088] In one possible implementation, validity checks include parity checks and range checks. Parity checks are used to verify the integrity of the data bits; range checks are used to verify whether the compensation value falls within a preset valid register value range, for example, to prevent overflow or writing to reserved bits.
[0089] In one possible implementation, if the verification fails, the hardware verification unit will directly block data transmission, immediately trigger a hardware interrupt to notify the host computer, and terminate the current channel process to prevent erroneous parameters from being written to the DUT and causing the device to lock up. Only valid compensation values that pass the hardware verification are allowed to enter the transmission buffer.
[0090] In one possible implementation, after receiving the compensation parameters, the DUT writes the compensation parameters into an internal non-volatile register and returns a write success acknowledgment signal via a serial port.
[0091] Through the above technical solution, the signal acquisition link and the programming communication link are completely independent at the physical layer, with no common return path. This design effectively prevents digital noise generated during serial communication from coupling to the high-impedance crystal oscillator acquisition pins, thereby avoiding signal distortion during the measurement process. Furthermore, since each channel's serial port is independent, even if one channel is being programmed, the acquisition and calculation processes of other channels can be performed in parallel, significantly improving the efficiency of multi-channel collaborative operation.
[0092] In some embodiments, the test control module 100 is configured with a communication interface with the host computer; CU110 is used to: trigger the input capture module 140 to restart the acquisition process to perform closed-loop retest when the compensation parameters are successfully written to the DUT; store the retest results in the calibration record storage area and synchronize them to the host computer through the communication interface.
[0093] In one possible implementation, after the DUT successfully writes the compensation parameters into the internal register, it sends a hardware response signal to the MCU110 via the serial port. After receiving the hardware response signal, the serial port peripheral of the MCU110 uses the hardware response signal as a hardware trigger source to activate the input capture module 140.
[0094] For example, the hardware acknowledge signal is the ACK (Acknowledge) signal. When the ACK signal is valid, the input capture module 140 automatically restarts the acquisition process: clears the original buffer, re-selects the current channel, and once again acquires the crystal oscillator signal adjusted by the DUT based on the temperature compensated crystal oscillator timing circuit 120.
[0095] In one possible implementation, if the retested frequency offset falls within a preset acceptable threshold range, the calibration is considered passed (PASS); if the retested frequency offset still exceeds the acceptable threshold range, the calibration is considered failed (FAIL), and the reason for the failure is recorded.
[0096] For example, the preset pass threshold is ±50 Hz, and the reasons for failure include crystal oscillator aging, poor soldering, etc.
[0097] In one possible implementation, retesting is not triggered unless there are hardware anomalies such as power supply or communication issues. Under normal conditions, a hardware retest is automatically executed after each compensation parameter is written; the retesting process is directly driven by hardware signals, without the need for a secondary start command from software, forming a pure hardware-level closed-loop verification mechanism.
[0098] In one possible implementation, the retest results include the original sampling data, compensation parameters, and final results of this test; the MCU110 writes the retest results into the calibration record storage area.
[0099] In one possible implementation, the MCU110 synchronously uploads the calibration results to the PC via a configured host computer communication interface.
[0100] Through the above technical solution, the retesting process is automatically completed using the hardware and underlying firmware of MCU110. The PC host computer is only responsible for receiving and storing the results and does not participate in real-time control, thus ensuring the system's autonomous operation capability in offline mode.
[0101] In some embodiments, the host computer establishes a communication connection with the test control module 100 through a standard serial port or a USB-to-serial port.
[0102] For example, 1) When the system powers on, the MCU initializes the channel number register to 1, outputs the first analog switch, and enters the T1 stabilization delay; 2) When T1 ends, it automatically enters the T2 hardware sampling, and the sampling interrupt is triggered upon completion; 3) The MCU responds to the interrupt and completes the T3 local frequency offset and compensation parameter calculation; 4) It enters the T4 phase to write the compensation parameters and performs automatic hardware closed-loop retest; 5) If the retested frequency offset meets the ±50Hz qualified threshold, the hardware issues a channel completion interrupt; 6) The MCU responds to the interrupt, turns off the current channel switch, increments the channel number register by 1, turns on the next channel, and restarts the T1 timing sequence; 7) If the number of channels reaches the maximum number of channels, the register is cleared, and the next switch returns to channel 1, repeating the cycle; 8) If any channel fails to acquire data, write response is lost, or power supply is abnormal, a hardware fault interrupt is triggered, the channel switching timing is stopped, and the fault information is reported to the PC host computer.
[0103] In summary, this embodiment employs a dual-clock separation architecture for timing, resulting in jitter-free hardware timing and crystal oscillator frequency detection accuracy ≤ ±1ppm. Secondly, multi-channel electrical isolation and link hardware separation completely resolve multi-channel crosstalk and link interference issues. Thirdly, it eliminates the need for large-scale radio frequency instruments, with all core functions implemented locally, minimizing reliance on external host computers. Finally, mechanisms such as hardware partitioned storage, automatic hardware sampling, and hardware parameter verification reduce the risk of software failures, ensuring strong equipment operational stability.
[0104] Figure 3 This is a flowchart of a wireless radio frequency offset calibration method provided in an embodiment of this application. See also... Figure 3 This method is applied to Figure 1 or Figure 2 The wireless radio frequency offset calibration device shown includes the following steps.
[0105] Step 101: Receive the basic parameters of the DUT sent by the host computer and write the basic parameters into the fixed parameter storage area of the microcontroller unit (MCU).
[0106] In some embodiments, after the system powers on and initializes, the PC host computer sends the basic parameters of the DUTs in the current batch to the test control module via a serial communication link. These basic parameters include the DUT model, target RF frequency, crystal oscillator nominal frequency, and frequency multiplication factor. Upon receiving these parameters, the MCU does not immediately use them for calculations; instead, it writes the basic parameters into the fixed parameter storage area of the partitioned memory unit via the on-chip Flash controller.
[0107] Step 102: Control the time-division multiplexing switch to sequentially select each signal acquisition channel to obtain the DUT crystal oscillator signal.
[0108] In some embodiments, the scheduling algorithm built into the MCU controls the hardware I / O level, drives the time-division multiplexing switch on the test fixture board, and sequentially selects each signal acquisition channel.
[0109] For example, taking the selection of the Nth channel as an example, the MCU outputs a specific address code to the control terminal of the analog switch, causing the switch to connect the physical link between the Nth channel and the input capture module of the main control board. At this time, the high-frequency crystal oscillator pin of the Nth DUT is contacted through an elastic probe, and its output AC square wave signal is coupled to the MCU's input capture module through a series capacitor (100pF NPO / COG).
[0110] In some embodiments, before step 101, the above method further includes: placing multiple DUTs in the slots of each channel of the multi-channel fixture board, powering on the DUTs, starting the corresponding circuits, and having their high-frequency crystal oscillator enter the working state.
[0111] Step 103: Based on the timing clock output by the temperature-compensated crystal oscillator timing circuit, acquire pulse data and calculate the phase-locked loop compensation parameters.
[0112] In some embodiments, step 103 includes: Based on the timing clock, multiple sets of pulse data are continuously collected in a dual-edge triggering mode; The filtered period is obtained by calculating the average period based on multiple sets of pulse data. The actual frequency of the DUT crystal oscillator is calculated based on the filtered period, and the actual frequency deviation is calculated based on the nominal frequency of the crystal oscillator in the fixed parameter storage area. The phase-locked loop (PLL) compensation parameters are obtained based on the frequency offset-PLL adjustment factor mapping table.
[0113] For example, the hardware timer measures the period of 1000 consecutive pulses based on the temperature-compensated crystal oscillator period, removes extreme values, and takes the average value to obtain the filtered period. The derivative of the filtered period is calculated to obtain the actual frequency of the DUT crystal oscillator; the difference between the actual frequency and the nominal frequency of the crystal oscillator in the fixed parameter storage area is calculated to obtain the actual frequency offset; the frequency offset-phase-locked loop (PLL) adjustment factor mapping table in the storage area is retrieved, the corresponding register adjustment step size is obtained from the table, and standardized PLL compensation parameters are generated in combination with the register conversion rules.
[0114] Step 104: Verify the validity of the phase-locked loop compensation parameters.
[0115] In some embodiments, validity checks include parity checks and range checks. Parity checks are used to check the integrity of data bits; range checks are used to verify whether the compensation value falls within a preset valid register value range, for example, to prevent overflow or writing to reserved bits.
[0116] Step 105: If the validity check passes, send the phase-locked loop compensation parameters to the corresponding DUT.
[0117] In some embodiments, step 105 includes: If the validity verification is successful, the phase-locked loop compensation parameters are sent to the DUT through the independent serial communication link corresponding to the current signal acquisition channel, so that the DUT can write the compensation parameters into the internal register. Reacquire the DUT crystal oscillator signal and determine whether the calibration is qualified based on the retest results; If the calibration is successful, the original sampling data, compensation parameters, and calibration results are stored in a partitioned storage unit and then uploaded to the host computer.
[0118] For example, the MCU sends the verified PLL compensation parameters to the DUT through the independent serial port programming branch corresponding to the currently selected channel. After receiving the compensation parameters, the DUT's communication interface writes the compensation parameters into its internal non-volatile register and returns a write success acknowledgment signal through the same serial port link.
[0119] In summary, in this embodiment, the MCU achieves hardware-level channel time-division multiplexing and scheduling by driving the IO level of the hardware-simulated gating switch; the PC host computer is only responsible for parameter configuration and result storage, enabling parallel calibration of multiple DUTs while ensuring single-channel accuracy, significantly reducing the test time per unit and adapting to large-scale mass production scenarios. Furthermore, hardware partitioned storage is used to prevent data out-of-bounds errors and overwriting. After compensation parameters are generated, abnormal values are intercepted through verification and automatically triggered to trigger hardware-level closed-loop retesting, reducing the risk of software failures and contributing to the long-term stable and reliable operation of the equipment.
[0120] Optionally, such as Figure 4 As shown, this application embodiment also provides an electronic device 600, including a processor 601 and a memory 602. The memory 602 stores a program or instructions that can run on the processor 601. When the program or instructions are executed by the processor 601, they implement the various steps of the above method embodiments and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0121] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0122] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0123] The electronic device 700 includes, but is not limited to, components such as: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
[0124] Those skilled in the art will understand that the electronic device 700 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0125] The processor 710 is used to execute the various steps of the above method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0126] It should be understood that, in this embodiment, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The GPU 7041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0127] The memory 709 can be used to store software programs and various data. The memory 709 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store the operating system, application programs, or instructions required for functions (such as sound playback functions, image playback functions, etc.). Furthermore, the memory 709 can include volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (Synchlink DRAM, SLDRAM), and direct memory bus RAM (DRRAM). The memory 709 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0128] Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 710.
[0129] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0130] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0131] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0132] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0133] This application provides a computer program product, which is stored in a storage medium and executed by a processor to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0134] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar parts between the various embodiments can be referred to each other.
[0135] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0136] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.
[0137] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a predictive manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0139] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0140] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0141] The above is a detailed description of the preferred embodiments of this application. However, the invention of this application is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A frequency offset calibration device for wireless radio frequency, characterized in that, It includes a test control module and a test fixture board. The test control module includes a microcontroller unit (MCU), a temperature-compensated crystal oscillator timing circuit, a partitioned storage unit, and an input capture module. The test fixture board includes multiple independent signal acquisition channels. Each signal acquisition channel is equipped with a set of elastic probes, a capacitor, and a time-division multiplexing switch. Each signal acquisition channel is also equipped with an independent serial port programming branch. One end of the elastic probe is used to contact the high-frequency crystal oscillator pin of the DUT sample under test, and the other end is connected in series with the capacitor to form a signal output terminal. The signal output terminals of each of the signal acquisition channels are connected one-to-one to the input / output (IO) interface of the input capture module; the IO control terminal of the MCU is connected to the control terminal of the time-division multiplexing switch, and the serial communication terminal of the MCU is correspondingly connected to each of the serial programming branches.
2. The device according to claim 1, characterized in that, The MCU is configured with two independent clock inputs: a running clock and a timing clock. The running clock connects the MCU core and peripherals and is used for main control program execution, instruction scheduling, and data interaction. The timing clock is generated by the temperature-compensated crystal oscillator timing circuit, and the output terminal of the temperature-compensated crystal oscillator timing circuit is connected to the clock input terminal of the input capture module; the timing clock is the sole timing reference of the input capture module.
3. The device according to claim 1, characterized in that, The input capture module is used to alternately capture the rising and falling edges of the DUT crystal oscillator signal according to the timing clock; The input capture module continuously acquires multiple sets of pulse cycle data in a single operation and sends the multiple sets of pulse cycle data into the hardware buffer of the MCU.
4. The device according to claim 1, characterized in that, The partitioned storage unit is the hardware partitioned flash memory built into the MCU. The hardware partitioned flash memory includes a fixed parameter storage area, a real-time data cache area, and a calibration record storage area that are isolated from each other. The fixed parameter storage area is used to store the crystal oscillator nominal frequency, radio frequency nominal frequency point, frequency multiplication factor, frequency offset-phase-locked loop adjustment factor mapping table and register conversion rules corresponding to different models of DUT; The real-time data buffer is used to store the pulse duration, period, and frequency offset calculation values of a single acquisition. The calibration record storage area is used to store the raw data, compensation parameters, and calibration results of each DUT.
5. The device according to claim 1, characterized in that, The test control module integrates multiple independent serial port peripherals, each of which is connected to a corresponding serial port programming branch, thus isolating the signal acquisition channel from the programming communication link; the MCU is used for: The time-division strobe switch is controlled to switch each signal acquisition channel in a time-division manner; Once signal acquisition is complete, the frequency offset is calculated based on the filtered periodic data, and compensation parameters are generated based on the frequency offset-phase-locked loop adjustment factor mapping table in the fixed parameter storage area of the MCU. If the validity verification passes, the compensation parameters are written to the DUT through the serial port programming branch corresponding to the current signal acquisition channel.
6. The device according to claim 1, characterized in that, The test control module is equipped with a communication interface with the host computer; the MCU is used for: If the compensation parameters are successfully written to the DUT, the input capture module is triggered to restart the acquisition process to perform closed-loop retest. The retest results are stored in the calibration record storage area and synchronized to the host computer through the communication interface.
7. A method for frequency offset calibration of wireless radio frequency, characterized in that, The method, applied to the frequency offset calibration device for wireless radio frequency according to any one of claims 1 to 6, comprises: Receive the basic parameters of the DUT sent by the host computer and write the basic parameters into the fixed parameter storage area of the MCU; The time-division multiplexing switch sequentially selects each signal acquisition channel to obtain the DUT crystal oscillator signal; Based on the timing clock output by the temperature-compensated crystal oscillator timing circuit, pulse data is collected and phase-locked loop compensation parameters are calculated; The validity of the phase-locked loop compensation parameters is verified. If the validity check passes, the phase-locked loop compensation parameters are sent to the corresponding DUT.
8. The method according to claim 7, characterized in that, The process of acquiring pulse data and calculating phase-locked loop compensation parameters based on the timing clock output from the temperature-compensated crystal oscillator timing circuit includes: According to the timing clock, multiple sets of pulse data are continuously acquired in a double-edge triggering mode; Based on the multiple sets of pulse data, the average period is calculated to obtain the filtered period; The actual frequency of the DUT crystal oscillator is calculated based on the filtered period, and the actual frequency deviation is calculated based on the nominal frequency of the crystal oscillator in the fixed parameter storage area. The phase-locked loop compensation parameters are obtained based on the frequency offset-phase-locked loop adjustment factor mapping table.
9. The method according to claim 7, characterized in that, If the validity check passes, sending the phase-locked loop compensation parameters to the corresponding DUT includes: If the legality verification passes, the phase-locked loop compensation parameters are sent to the DUT via the independent serial communication link corresponding to the current signal acquisition channel, so that the DUT writes the compensation parameters into its internal register. Reacquire the DUT crystal oscillator signal and determine whether the calibration is qualified based on the retest results; If the calibration is successful, the original sampling data, compensation parameters, and calibration results are stored in a partitioned storage unit and then uploaded to the host computer.
10. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the frequency offset calibration method for wireless radio frequency as described in any one of claims 7-9.
