Calibration methods, devices, electronic equipment, storage media, and computer program products for IQ imbalance.

By using an internal loop circuit and a three-way search algorithm to automatically generate and receive signals within the device, the optimal compensation parameters are quickly determined, solving the problem of IQ signal imbalance during device use, simplifying the calibration process and reducing costs.

CN118945030BActive Publication Date: 2025-10-28SHANGHAI WU QI MICROELECTRONICS CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410999134.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2025-10-28
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

During equipment use, due to chip aging and performance degradation, the compensation code that the equipment has calibrated is no longer the optimal value, causing the IQ signal imbalance problem to reappear. Existing technologies make it difficult to perform effective calibration without the aid of an external signal source.

Method used

By constructing an inner loop circuit in the transmitting and receiving channels, and using a three-way search algorithm to perform multiple rounds of searches in the compensation phase and amplitude ranges, the optimal compensation phase deviation and amplitude deviation are determined, thereby achieving self-transmission and self-reception calibration of the IQ signal.

Benefits of technology

Without the aid of ATE equipment and external boards, the optimal compensation parameters can be quickly determined, simplifying the calibration process, reducing testing costs, improving testing efficiency, and performing multiple calibrations as the chip ages to ensure that the calibration results match the chip performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945030B_ABST
    Figure CN118945030B_ABST
Patent Text Reader

Abstract

This application provides a calibration method, apparatus, electronic device, storage medium, and computer program product for IQ imbalance, comprising: controlling the simultaneous opening of a transmitting channel and a receiving channel, enabling the receiving channel to receive the radio frequency signal emitted by the transmitting channel; when the compensation amplitude deviation is fixed, performing multiple rounds of search within the compensation phase interval using a three-way search algorithm, selecting the optimal compensation phase deviation based on the relative energy parameter corresponding to each compensation phase deviation; when the optimal compensation phase deviation is found, performing multiple rounds of search within the compensation amplitude interval using a three-way search algorithm, selecting the optimal compensation amplitude deviation based on the relative energy parameter corresponding to each compensation amplitude deviation; and using the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result. This scheme achieves rapid calibration of IQ imbalance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a calibration method, apparatus, electronic device, computer-readable storage medium, and computer program product for IQ imbalance. Background Technology

[0002] IQ signals consist of in-phase and quadrature signals. Due to their simplicity, they are commonly used for radio frequency (RF) signal modulation. However, due to manufacturing processes, mixers may cause IQ signal imbalance during processing, meaning the amplitude and phase of the in-phase and quadrature signals within the IQ signal are inconsistent. This IQ signal imbalance generates a mirror tone, which interferes with the IQ signal. To resolve this issue, the received IQ signal needs to be calibrated to minimize the amplitude of the mirror tone and reduce interference. Typically, this can be done before the equipment leaves the factory using ATE (Automatic Test Equipment) equipment and external boards to calibrate the IQ signal imbalance and obtain amplitude and phase compensation codes.

[0003] However, during the use of the device, as the chip ages and its performance deteriorates, the compensation code that the device has calibrated is no longer the optimal value. At this time, the device will experience the problem of IQ signal imbalance again when receiving IQ signals. Summary of the Invention

[0004] The purpose of this application is to provide a calibration method, apparatus, electronic device, storage medium, and computer program product for IQ imbalance, which can quickly calibrate IQ imbalance without the aid of an external signal source, thus solving the problem of calibration failure caused by chip aging and performance degradation.

[0005] On the one hand, this application provides a calibration method for IQ imbalance, applied to a device under test (DUT), wherein the transmitting channel and receiving channel of the DUT constitute an inner loop circuit, including:

[0006] The transmitting channel and the receiving channel are simultaneously turned on, so that the receiving channel receives the radio frequency signal emitted by the transmitting channel; wherein, the transmitting channel emits a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through the mixer of the receiving channel to obtain a second IQ signal received by the receiving channel. The second IQ signal and the third IQ signal are used to determine the relative energy parameters of the current device state, and the third IQ signal is the associated IQ signal of the first IQ signal;

[0007] With a fixed compensation amplitude deviation, the three-way search algorithm is used to perform multiple rounds of search in the compensation phase interval to select the optimal compensation phase deviation based on the relative energy parameter corresponding to each compensation phase deviation.

[0008] Based on the optimal compensation phase deviation, multiple rounds of searching are performed in the compensation amplitude range using a three-way search algorithm to select the optimal compensation amplitude deviation based on the relative energy parameter corresponding to each compensation amplitude deviation.

[0009] The optimal compensated phase deviation and the optimal compensated amplitude deviation are used as the calibration results of the device under test.

[0010] In one embodiment, the step of obtaining the relative energy parameter includes:

[0011] The third IQ signal and the second IQ signal are subjected to a single-point Fourier transform by the hardware multiplier of the device under test to obtain the transform result;

[0012] The relative energy parameters are determined based on a specified number of transformation results corresponding to a specified number of third IQ signals.

[0013] In one embodiment, controlling the simultaneous opening of the transmitting channel and the receiving channel includes:

[0014] Write a target value into a preset state machine register so that the target value enables the transmitting channel and the receiving channel to be opened simultaneously.

[0015] In one embodiment, before using the optimal compensated phase deviation and the optimal compensated amplitude deviation as the calibration result of the device under test, the method further includes:

[0016] Based on the optimal compensation amplitude deviation, multiple rounds of searching are performed in the compensation phase interval using a three-way search algorithm to reselect the optimal compensation phase deviation with the relative energy parameter corresponding to each compensation phase deviation, thereby updating the optimal compensation phase deviation.

[0017] In one embodiment, the method further includes:

[0018] After obtaining the optimal compensation phase deviation and the optimal compensation amplitude deviation, it is determined whether the relative energy parameter is less than a preset energy threshold under the optimal compensation phase deviation and the optimal compensation amplitude deviation.

[0019] If so, determine that the optimal compensation phase deviation and the optimal compensation amplitude deviation are qualified, and take the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result.

[0020] In one embodiment, the method further includes:

[0021] If not, the optimal compensation phase deviation and the optimal compensation amplitude deviation are determined to be unqualified, and the calibration of the device under test fails.

[0022] On the other hand, this application provides an IQ imbalance calibration device applied to a device under test (DUT), wherein the transmitting channel and receiving channel of the DUT form an inner loop circuit, comprising:

[0023] A control module is used to control the simultaneous opening of the transmitting channel and the receiving channel, so that the receiving channel receives the radio frequency signal emitted by the transmitting channel; wherein, the transmitting channel emits a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through the mixer of the receiving channel to obtain a second IQ signal received by the receiving channel, the second IQ signal and the third IQ signal are used to determine the relative energy parameters of the current device state, and the third IQ signal is the associated IQ signal of the first IQ signal;

[0024] The first search module is used to perform multiple rounds of search in the compensation phase interval based on the three-way search algorithm when the compensation amplitude deviation is fixed, and select the optimal compensation phase deviation based on the relative energy parameter corresponding to each compensation phase deviation.

[0025] The second search module is used to perform multiple rounds of search in the compensation amplitude range based on the three-way search algorithm, on the basis of the optimal compensation phase deviation, and select the optimal compensation amplitude deviation by the relative energy parameter corresponding to each compensation amplitude deviation.

[0026] The determination module is used to take the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result of the device under test.

[0027] On the other hand, this application provides an electronic device, the electronic device comprising:

[0028] processor;

[0029] Memory used to store processor-executable instructions;

[0030] The processor is configured to perform the aforementioned IQ imbalance calibration method.

[0031] Furthermore, this application provides a computer-readable storage medium storing a computer program that can be executed by a processor to perform the above-described IQ imbalance calibration method.

[0032] In addition, this application provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the above-mentioned IQ imbalance calibration method.

[0033] This application's solution, without relying on ATE equipment and external boards, can quickly determine the optimal compensation phase deviation and the optimal compensation amplitude deviation through a three-way lookup algorithm when the device under test (DUT) is transmitting and receiving on its own. This process simplifies the calibration process of the receiving channel, reduces testing costs, and improves testing efficiency. Furthermore, during the use of the DUT, as the chip ages, multiple calibrations can be initiated to ensure that the calibration results match the chip's performance status, thus ensuring that the IQ imbalance problem is resolved. Attached Figure Description

[0034] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly described below.

[0035] Figure 1 A schematic diagram of the structure of the transmitting and receiving channels within the device under test provided in an embodiment of this application;

[0036] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0037] Figure 3 A schematic flowchart of a calibration method for IQ imbalance provided in an embodiment of this application;

[0038] Figure 4 A schematic diagram of a three-way search provided in an embodiment of this application;

[0039] Figure 5 A trend graph of relative energy parameters during a three-way search provided in an embodiment of this application;

[0040] Figure 6 A flowchart illustrating a method for obtaining relative energy parameters according to an embodiment of this application;

[0041] Figure 7 This is a schematic diagram of the processing of a hardware multiplier provided in an embodiment of this application;

[0042] Figure 8 This is a block diagram of a calibration device for IQ imbalance provided in an embodiment of this application. Detailed Implementation

[0043] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0044] Similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0045] See Figure 1 This is a schematic diagram of the structure of the transmitting and receiving channels within the device under test provided in an embodiment of this application, as shown below. Figure 1 As shown, in the transmitting channel: the digital modulated signal undergoes IQ mismatch compensation, DC (Direct Current to Direct Current) compensation, and DAC (Digital to Analog Conversion) conversion. It is then processed by a filter and up-converted to the 2.4GHz or 5GHz band by a mixer (Tx Mixer), amplified by a PA (Power Amplifier), and transmitted through an antenna. In the receiving channel: the RF signal is received by the antenna, enters a linear amplifier (LNA), and then down-converted to the baseband signal by a mixer (GM+Mixer). After passing through components such as a TIA (Trans-Impedance Amplifier) ​​and a BIQ (Bi-Quadratic Filter), it undergoes analog-to-digital conversion by an ADC (Analog-to-Digital Conversion), followed by Rx DC and IQM mismatch compensation, and finally demodulated by the digital system.

[0046] During down-conversion, the mixer in the receiving channel generates a mirrored single-tone signal, which raises the receiver noise floor and, given a fixed demodulation threshold, degrades receiver sensitivity. Transmitter IQ imbalance, besides affecting receiver demodulation, also degrades the air channel spectrum; this problem needs to be addressed at the transmitting end. Receiver IQ imbalance does not affect the air channel and can be compensated for in the digital baseband. The problem this solution aims to solve is determining the optimal compensation for phase offset (pha_code) and amplitude offset (amp_code) for the receiving channel.

[0047] In this solution, the pins of the transmitting channel (Tx PIN) and the receiving channel (Rx PIN) can be combined into one pin. With an external 50-ohm impedance matching condition for the device under test (DUT), both the transmitting and receiving channels can be simultaneously activated, forming an internal loop circuit. This enables the DUT to transmit and receive its IQ signals automatically. In this case, IQ imbalance calibration can be completed without the need for an ATE (Automatic Test Equipment) or external boards. See the detailed calibration procedure below.

[0048] like Figure 2 As shown, this embodiment provides an electronic device 1, including: at least one processor 11 and a memory 12. Figure 2 Taking a processor 11 as an example, the processor 11 and the memory 12 are connected via a bus 10. The memory 12 stores instructions that can be executed by the processor 11. The instructions are executed by the processor 11 to enable the electronic device 1 to perform all or part of the process of the method in the embodiments described below. In one embodiment, the electronic device 1 may be the aforementioned device under test, which may be a wireless headset or other device with wireless communication capabilities, used to perform the IQ imbalance calibration method.

[0049] The memory 12 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0050] This application also provides a computer-readable storage medium storing a computer program that can be executed by a processor 11 to perform the IQ imbalance calibration method provided in this application.

[0051] This application also provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the IQ imbalance calibration method provided in this application.

[0052] See Figure 3 The above is a schematic flowchart of a calibration method for IQ imbalance provided in an embodiment of this application. Figure 3 As shown, the method may include steps 310-340.

[0053] Step 310: Control the simultaneous opening of the transmitting channel and the receiving channel, so that the receiving channel receives the radio frequency signal emitted by the transmitting channel; wherein, the transmitting channel emits a radio frequency signal converted from the first IQ signal, and the radio frequency signal passes through the mixer of the receiving channel to obtain the second IQ signal received by the receiving channel. The second IQ signal and the third IQ signal are used to determine the relative energy parameters of the current device state, and the third IQ signal is the associated signal of the first IQ signal.

[0054] During the use of the device under test (DUT), IQ signal imbalance calibration can be initiated intermittently, periodically, or upon receiving a calibration command from the host computer. When performing IQ signal imbalance calibration, the DUT can control both the transmit and receive channels to be activated simultaneously. Since the transmit and receive channels form an inner loop circuit, in this case, after the transmit channel emits an RF signal, the receive channel can receive the RF signal.

[0055] During the calibration process for IQ imbalance, the single-tone signal generator in the transmission channel of the device under test (DUT) Figure 1 The tx-packet-top (TX-packet-top) can continuously generate a first IQ signal in the form of a single-tone signal. Here, the single-tone signals constituting the first IQ signal include single-tone signals corresponding to the I signal and single-tone signals corresponding to the Q signal. Further, the first IQ signal is up-converted by the mixer in the transmit channel to obtain an RF signal, which is then emitted from the transmit channel and externally coupled into the receive channel. The RF signal is received through the mixer path of the receive channel and down-converted to obtain a second IQ signal.

[0056] When the single-tone signal generator generates the first IQ signal in the form of a single-tone signal, it can simultaneously generate the third IQ signal in the form of a single-tone signal. The third IQ signal and the first IQ signal are associated IQ signals, generated at the same time point, and the frequency of the third IQ signal is the same as that of the first IQ signal, but the rotation direction is opposite.

[0057] The difference between the third IQ signal and the second IQ signal can be used to assess the degree of IQ imbalance. Therefore, the relative energy parameter can be determined by comparing the third IQ signal with the corresponding second IQ signal. This relative energy parameter characterizes the degree of difference between the third IQ signal and the second IQ signal. The larger the relative energy parameter, the greater the degree of difference and the greater the degree of IQ imbalance.

[0058] During the IQ imbalance calibration process, a corresponding second IQ signal can be determined based on the first IQ signal corresponding to the third IQ signal. Then, based on the third and second IQ signals, the relative energy parameters of the current device state can be determined. Here, the current device state is determined by the current compensation amplitude deviation and compensation phase deviation. The device state changes when one or both of these parameters change.

[0059] Step 320: With the compensation amplitude deviation fixed, perform multiple rounds of search in the compensation phase interval based on the three-way search algorithm, and select the optimal compensation phase deviation based on the relative energy parameter corresponding to each compensation phase deviation.

[0060] After calibration begins, the compensation amplitude deviation can be kept constant to find the optimal compensation phase deviation. Here, the initial value of the compensation amplitude deviation can be configured empirically; for example, the compensation amplitude deviation can be controlled to be 0.

[0061] The compensation phase range is a selectable range for compensating phase deviations and can be pre-configured according to the hardware and software of the device under test.

[0062] The three-way search algorithm first takes the midpoint of the compensated phase interval, which divides the interval into a left interval and a right interval. Then, it takes the midpoint of the right interval, which further divides the right interval into two intervals. Therefore, the midpoint of the compensated phase interval and the midpoint of the right interval divide the compensated phase interval into three smaller intervals.

[0063] During a search process, the mid value of the search interval (which is the entire compensation phase interval during the first search) and the mid value of the interval to the right of the search interval can be configured into the register, so that the device under test can operate in the corresponding device state.

[0064] Since the compensation amplitude deviation is fixed, the selected compensation phase deviation can determine the current device state of the device under test. Therefore, the relative energy parameter can be determined using several third IQ signals and corresponding second IQ signals under the current device state, serving as the relative energy parameter corresponding to the compensation phase deviation. During a search, the relative energy parameter corresponding to the midpoint of the search interval, `mid`, and the relative energy parameter corresponding to the midpoint of the right interval of the search interval, `midmid`, can be determined. Then, the magnitudes of the two relative energy parameters can be compared. Since a smaller relative energy parameter indicates a lower degree of IQ imbalance, if the relative energy parameter corresponding to `mid` is smaller, the right interval of the search interval can be discarded. If the relative energy parameter corresponding to `midmid` is smaller, the left interval of the search interval can be discarded.

[0065] See Figure 4 This is a schematic diagram of a three-way search provided in an embodiment of this application. Figure 4 The two curves on the right and left represent the relationship between two equipment states and relative energy parameters. The horizontal axis represents the parameters corresponding to the equipment state (e.g., compensation phase deviation and / or compensation amplitude deviation), and the vertical axis represents the relative energy parameters. The lowest point of the curve is the target of the three-way search.

[0066] Figure 4The left curve represents the left endpoint of the search interval, and the right curve represents the right endpoint. The midpoint of the search interval is `mid` = (left + right) / 2, and the midpoint of the right interval is `midmid` = (mid + right) / 2. As shown in the graph, the relative energy parameter of `mid` is greater than that of `midmid`. Therefore, the left interval of the search interval can be discarded. After discarding the left interval, the right interval can be used as the new search interval for a new round of trisection search.

[0067] Figure 4 The left endpoint of the right-hand curve is the left end of the search interval, and the right endpoint is the right end. The midpoint of the search interval is mid = (left + right) / 2, and the midpoint of the right interval is midmid = (mid + right) / 2. As can be seen from the graph, the relative energy parameter of mid is less than that of midmid; therefore, the right interval of the search interval can be discarded. After discarding the right interval, the left interval can be used as the new search interval for a new round of trisection search.

[0068] Through multiple rounds of searching, the range of the search interval within the compensation phase interval can be continuously narrowed, gradually approaching the optimal compensation phase deviation corresponding to the minimum relative energy parameter, and finally obtaining the optimal compensation phase deviation.

[0069] See Figure 5 This is a trend diagram of the relative energy parameters during a ternary search according to an embodiment of this application, such as... Figure 5 As shown, the horizontal axis represents the search rounds, the vertical axis represents the magnitude of the relative energy parameter, the dashed line represents the trend of the relative energy parameter corresponding to the midpoint of the search interval in each search round, and the solid line represents the trend of the relative energy parameter corresponding to the midpoint of the right interval of the search interval in each search round. Figure 5 After 14 rounds of searching, the optimal compensated phase deviation with the smallest relative energy parameter can be obtained.

[0070] Step 330: Based on the optimal compensation phase deviation, perform multiple rounds of searching in the compensation amplitude range using the three-way search algorithm, and select the optimal compensation amplitude deviation based on the relative energy parameter corresponding to each compensation amplitude deviation.

[0071] After obtaining the optimal compensation phase deviation, the optimal compensation phase deviation can be written into the register and kept constant to find the optimal compensation amplitude deviation.

[0072] The compensation range is the range of selectable compensation range deviations, which can be pre-configured according to the hardware and software of the device under test.

[0073] The execution process of the three-way search algorithm is described above. Since the optimal compensation phase deviation is fixed, the selected compensation amplitude deviation during the search process can determine the current device state of the device under test. Therefore, the relative energy parameter can be determined by several third IQ signals and the second IQ signal corresponding to the third IQ signal under the current device state, which can be used as the relative energy parameter corresponding to the compensation amplitude deviation.

[0074] Through multiple rounds of searching, the range of the search interval within the compensation range can be continuously narrowed, gradually approaching the optimal compensation range deviation corresponding to the minimum relative energy parameter, and finally obtaining the optimal compensation range deviation.

[0075] Step 340: Use the optimal compensated phase deviation and the optimal compensated amplitude deviation as the calibration results of the device under test.

[0076] After obtaining the optimal compensation phase deviation and the optimal compensation amplitude deviation, the optimal compensation amplitude deviation and the optimal compensation phase deviation can be written into the register, so that the device under test can receive the IQ signal under the optimal compensation amplitude deviation and the optimal compensation phase deviation. After calibration, the influence of IQ imbalance can be minimized.

[0077] Through the above measures, without the aid of ATE equipment and external boards, the optimal compensation phase deviation and the optimal compensation amplitude deviation can be quickly determined by the three-way retrieval algorithm when the device under test is transmitting and receiving on its own. This process can simplify the calibration process of the receiving channel, reduce testing costs, and improve testing efficiency. Furthermore, during the use of the device under test, as the chip ages, multiple calibrations can be initiated to ensure that the calibration results match the chip performance status, thus ensuring that the IQ imbalance problem is resolved.

[0078] In one embodiment, see Figure 6 This is a flowchart illustrating a method for obtaining relative energy parameters according to an embodiment of this application. Figure 6 As shown, under the current device state, the relative energy parameters can be calculated through the following steps 610 to 620.

[0079] Step 610: Perform correlation operations on the third IQ signal and the second IQ signal using the hardware multiplier of the device under test to obtain the transformation result.

[0080] Here, the principle of the hardware multiplier is explained. According to the product-to-sum formula: Acosα*Bcosβ=AB / 2*[cos(α+β)+cos(α-β)], assuming the two signals have the same frequency (i.e., α=β), Acosα*Bcosβ=AB / 2*[cos(α+β)+cos(α-β)]=AB / 2*[cos(2α)+1]. Here, cos(2α) ranges from -1 to 1, therefore, cos(2α)+1≥0. Here, Acosα can represent the I or Q signal of one IQ input signal, and Bcosβ can represent the I or Q signal of the other IQ input signal, where A and B are the signal amplitudes.

[0081] Since the second IQ signal is obtained by mixing the radio frequency signal corresponding to the first IQ signal, the second IQ signal includes the first IQ signal, the Rx DC signal, and the RX IQ unbalanced signal. Here, the frequency of the RX IQ unbalanced signal is the same as the frequency of the first IQ signal but in the opposite direction of rotation. Therefore, the frequency of the RX IQ unbalanced signal is equivalent to the frequency of the third IQ signal. Furthermore, the frequency of the Rx DC signal is different from the frequency of the third IQ signal.

[0082] When performing correlation operations between the third IQ signal and the second IQ signal, it can be viewed as performing correlation operations between the third IQ signal and the first IQ signal, the RX DC signal, and the RX IQ unbalanced signal, respectively. Since the third IQ signal has different frequencies from the first IQ signal and the RX DC signal, when the number of sampling points N is sufficiently large, the discrete sequence equivalent power of the correlation operation between the third IQ signal and the first IQ signal can be expressed as: Where cos(α+β) takes values ​​ranging from -1 to 1; and cos(α-β) takes values ​​ranging from -1 to 1. After accumulating through an integer number of cycles N... Approximately equal to 0; after accumulating an integer number of cycles N, The power is approximately equal to 0. Therefore, P is approximately 0. Similarly, when the number of sampling points N is sufficiently large, the equivalent power of the discrete sequence obtained by correlating the third IQ signal with the RX DC signal is also approximately 0.

[0083] Since the third IQ signal and the RX IQ unbalanced signal have the same frequency, when the number of sampling points N is sufficiently large, the discrete sequence equivalent power of the third IQ signal and the RX IQ unbalanced signal after correlation can be expressed as: Since cos(2α) takes values ​​in the range (-1 to 1), after accumulating an integer number of cycles N, If it is approximately equal to 0, then the power can be expressed as P = AB / 2 * (1 * N) / N = AB / 2, and this power P is stable and constant.

[0084] When the third IQ signal is correlated with the second IQ signal, it can be expressed as (A1cosα1+A2cosα2+A3cosα3)*Bcosβ=A1cosα1*Bcosβ+A2cosα2*Bcosβ+A3cosα3*Bcosβ, where A1cosα1 represents the RX IQ unbalanced signal in the second IQ signal, A1 is the amplitude of the RX IQ unbalanced signal, and α1 is the frequency of the RX IQ unbalanced signal; A2cosα2 represents the RX DC signal in the second IQ signal, A2 is the amplitude of the RX DC signal, and α2 is the frequency of the RX DC signal; A3cosα3 represents the first IQ signal in the second IQ signal, A3 is the amplitude of the first IQ signal, and α3 is the frequency of the first IQ signal; Bcosβ represents the third IQ signal; B is the amplitude of the third IQ signal, and β is the frequency of the third IQ signal. Here, α1=β, α2≠β, α3≠β.

[0085] During the calibration process, based on the aforementioned inference, it can be known that the equivalent power of the discrete sequence of the correlation operation between the third IQ signal and the RX DC signal is also approximately 0, and the equivalent power of the discrete sequence of the correlation operation between the third IQ signal and the first IQ signal is also approximately 0. By setting the compensation phase deviation and compensation amplitude deviation, the amplitude A1 of the RX IQ unbalanced signal can be adjusted. Based on this principle, it can be known that under the optimal compensation amplitude deviation and optimal compensation phase deviation, the sum of the products P is minimized.

[0086] The transformation result can be obtained by performing correlation operations on the third IQ signal and the second IQ signal using a hardware multiplier.

[0087] In the IQ signal, the in-phase and quadrature signals are orthogonal, and the actual hardware implementation represents them in complex form. The third IQ signal is represented as X(t) = (I - jQ), and the quadrature signal uses a negative frequency to keep in line with the frequency of the mirror signal (RX IQ unbalanced signal). The second IQ signal is represented as X'(t) = (I' + jQ'). Multiplying the third IQ signal and the second IQ signal by a hardware multiplier completes the single-point Fourier transform, represented as X(t)*X'(t) = (I - jQ)*(I' + jQ') = (II' + QQ') + j(IQ' - QI').

[0088] See Figure 7 This is a schematic diagram of the processing of a hardware multiplier provided in an embodiment of this application, as shown below. Figure 7As shown, the I and Q signals in the third IQ signal, and the I' and Q' signals in the second IQ signal, are input to a hardware multiplier to obtain the transformation results II', IQ', QI', and QQ'. The I" and Q" signals in the first IQ signal are then mixed by the transmitter and receiver channels to obtain the second signal. All these transformation results represent power.

[0089] Step 620: Determine the relative energy parameters based on the specified number of transformation results corresponding to the specified number of third IQ signals.

[0090] The specified quantity can be configured as needed; for example, the specified quantity can be 1000, 2000, 3000, etc.

[0091] For example, the relative energy parameter can be represented by the following formula (1):

[0092]

[0093] Here, N is the specified quantity; II', IQ', QI', and QQ' are the transformation results.

[0094] Since the power of the third IQ signal remains stable when N is large, the energy of the third IQ signal also remains stable. The greater the noise in the second IQ signal, the greater its energy. Therefore, a higher relative energy indicates a greater noise signal, meaning a more severe IQ imbalance problem.

[0095] This method allows for the determination of a specified number of transformation results using a specified number of third IQ signals and second IQ signals, under any given device state. Furthermore, the relative energy parameters under that device state can be determined using these specified number of transformation results. Since the hardware multiplier can quickly complete this calculation process, this scheme can efficiently obtain the relative energy parameters.

[0096] In one embodiment, when performing step 310, a target value can be written into a preset state machine register. This state machine register can serve as a state machine. In this case, the target value in the state machine register can enable both the transmitting and receiving channels to be opened simultaneously.

[0097] In one embodiment, the compensation phase deviation can be further adjusted before using the optimal compensation phase deviation and the optimal compensation amplitude deviation as calibration results.

[0098] Based on the optimal compensation amplitude deviation, a three-way search algorithm is used to perform multiple rounds of search in the compensation phase interval. The optimal compensation phase deviation is reselected based on the relative energy parameter corresponding to each compensation phase deviation, so as to update the optimal compensation phase deviation.

[0099] This process is similar to the execution process of step 320 mentioned above, except that the optimal compensation amplitude deviation is fixed and the three-way search process for the compensation phase deviation is performed.

[0100] This measure avoids the problem that the optimal compensation phase deviation obtained based on the initial value of the compensation amplitude deviation is a local optimal solution rather than a global optimal solution. It ensures that the updated optimal compensation phase deviation and optimal compensation amplitude deviation can minimize the impact of the IQ imbalance problem of the device under test.

[0101] In one embodiment, after obtaining the optimal compensated phase deviation and the optimal compensated amplitude deviation, it can be determined whether the relative energy parameter is less than a preset energy threshold under the optimal compensated phase deviation and the optimal compensated amplitude deviation. Here, for any type of device under test, an energy threshold can be configured as needed, which represents the relative energy parameter at the maximum tolerable IQ imbalance.

[0102] On the one hand, if so, it can be determined that the optimal compensation phase deviation and the optimal compensation amplitude deviation are qualified, and these can be used as the calibration results. In this case, the calibration results can be written into the memory of the device under test (DUT) to resolve the IQ imbalance problem during subsequent wireless communication of the DUT.

[0103] On the other hand, if the optimal compensation for phase deviation and the optimal compensation for amplitude deviation are not met, the calibration of the device under test (DUT) will fail. In this case, the DUT can send a calibration failure message to the user, allowing the user to be promptly informed that the DUT cannot resolve the IQ signal imbalance problem.

[0104] Figure 8 This is a block diagram of a calibration device for IQ imbalance according to an embodiment of the present invention, as shown below. Figure 8 As shown, the device may include:

[0105] The control module 810 is used to control the simultaneous opening of the transmitting channel and the receiving channel, so that the receiving channel receives the radio frequency signal emitted by the transmitting channel; wherein, the transmitting channel emits a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through the mixer of the receiving channel to obtain a second IQ signal received by the receiving channel, the second IQ signal and the third IQ signal are used to determine the relative energy parameters of the current device state, and the third IQ signal is the associated IQ signal of the first IQ signal;

[0106] The first search module 820 is used to perform multiple rounds of search in the compensation phase interval based on the three-way search algorithm when the compensation amplitude deviation is fixed, and select the optimal compensation phase deviation based on the relative energy parameter corresponding to each compensation phase deviation.

[0107] The second search module 830 is used to perform multiple rounds of search in the compensation amplitude range based on the three-way search algorithm on the basis of the optimal compensation phase deviation, and select the optimal compensation amplitude deviation with the relative energy parameter corresponding to each compensation amplitude deviation.

[0108] The determination module 840 is used to take the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result of the device under test.

[0109] The specific implementation process of the functions and roles of each module in the above-mentioned device can be found in the corresponding steps of the above-mentioned IQ imbalance calibration method, and will not be repeated here.

[0110] The apparatuses and methods disclosed in the several embodiments provided in this application can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatuses, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0111] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0112] If a function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Claims

1. A calibration method for IQ imbalance, applied to the device under test, characterized in that, The transmitting and receiving channels of the device under test constitute an inner loop circuit, including: The transmitting channel and the receiving channel are simultaneously turned on, so that the receiving channel receives the radio frequency signal emitted by the transmitting channel; wherein, the transmitting channel emits a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through the mixer of the receiving channel to obtain a second IQ signal received by the receiving channel. The second IQ signal and the third IQ signal are used to determine the relative energy parameters of the current device state, and the third IQ signal is the associated IQ signal of the first IQ signal; With a fixed compensation amplitude deviation, the three-way search algorithm is used to perform multiple rounds of search in the compensation phase interval to select the optimal compensation phase deviation based on the relative energy parameter corresponding to each compensation phase deviation. Based on the optimal compensation phase deviation, multiple rounds of searching are performed in the compensation amplitude range using a three-way search algorithm to select the optimal compensation amplitude deviation based on the relative energy parameter corresponding to each compensation amplitude deviation. The optimal compensated phase deviation and the optimal compensated amplitude deviation are used as the calibration results of the device under test.

2. The method according to claim 1, characterized in that, The steps for obtaining the relative energy parameters include: The hardware multiplier of the device under test performs correlation operations on the third IQ signal and the second IQ signal to obtain the transformation result. The relative energy parameters are determined based on a specified number of transformation results corresponding to a specified number of third IQ signals.

3. The method according to claim 1, characterized in that, The control of simultaneously opening the transmitting channel and the receiving channel includes: Write a target value into a preset state machine register so that the target value enables the transmitting channel and the receiving channel to be opened simultaneously.

4. The method according to claim 1, characterized in that, Before using the optimal compensated phase deviation and the optimal compensated amplitude deviation as the calibration results of the device under test, the method further includes: Based on the optimal compensation amplitude deviation, multiple rounds of searching are performed in the compensation phase interval using a three-way search algorithm to reselect the optimal compensation phase deviation with the relative energy parameter corresponding to each compensation phase deviation, thereby updating the optimal compensation phase deviation.

5. The method according to claim 1 or 4, characterized in that, The method further includes: After obtaining the optimal compensation phase deviation and the optimal compensation amplitude deviation, it is determined whether the relative energy parameter is less than a preset energy threshold under the optimal compensation phase deviation and the optimal compensation amplitude deviation. If so, determine that the optimal compensation phase deviation and the optimal compensation amplitude deviation are qualified, and take the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result.

6. The method according to claim 5, characterized in that, The method further includes: If not, the optimal compensation phase deviation and the optimal compensation amplitude deviation are determined to be unqualified, and the calibration of the device under test fails.

7. A calibration device for IQ imbalance, applied to the device under test, characterized in that, The transmitting and receiving channels of the device under test constitute an inner loop circuit, including: A control module is used to control the simultaneous opening of the transmitting channel and the receiving channel, so that the receiving channel receives the radio frequency signal emitted by the transmitting channel; wherein, the transmitting channel emits a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through the mixer of the receiving channel to obtain a second IQ signal received by the receiving channel, the second IQ signal and the third IQ signal are used to determine the relative energy parameters of the current device state, and the third IQ signal is the associated IQ signal of the first IQ signal; The first search module is used to perform multiple rounds of search in the compensation phase interval based on the three-way search algorithm when the compensation amplitude deviation is fixed, and select the optimal compensation phase deviation based on the relative energy parameter corresponding to each compensation phase deviation. The second search module is used to perform multiple rounds of search in the compensation amplitude range based on the three-way search algorithm, on the basis of the optimal compensation phase deviation, and select the optimal compensation amplitude deviation by the relative energy parameter corresponding to each compensation amplitude deviation. The determination module is used to take the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result of the device under test.

8. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; The processor is configured to perform the IQ imbalance calibration method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that can be executed by a processor to perform the IQ imbalance calibration method according to any one of claims 1-6.

10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the IQ imbalance calibration method according to any one of claims 1-6.

Citation Information

Patent Citations

  • IQ signal calibration method and apparatus

    CN105490973A

  • NPRACH timing synchronization estimation method and NPRACH timing synchronization estimation device

    CN110891036A