IQ imbalance calibration method and device, electronic equipment, storage medium and computer program product
By using the three-point search algorithm in the intra-loop loop circuit, the optimal compensation parameters are quickly determined, which solves the problem of IQ signal imbalance caused by equipment aging, and realizes self-receiving calibration, improving testing efficiency and accuracy.
Patent Information
- Application Number
- CN202410999134.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-07-24
AI Technical Summary
During the use of the equipment, due to chip aging and deterioration in performance, the compensation code that the equipment has been calibrated is no longer the optimal value, resulting in the problem of IQ signal imbalance again. The existing technology requires complex calibration processing with the help of external signal sources, and the efficiency is low.
By forming an inner loop circuit in the transmission channel and reception channel of the device to be tested, the three-point search algorithm is used to quickly determine the optimal compensation phase deviation and the optimal compensation amplitude deviation without the help of the ATE machine and the external board to achieve the goal of achieving Spontaneous self-reception calibration of IQ signal.
It simplifies the calibration process of the receiving channel, reduces testing costs, improves testing efficiency, and can calibrate multiple times when the equipment ages, ensuring that the calibration results match the chip performance status and effectively solve the IQ imbalance problem.
Smart Images

Figure CN118945030A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an IQ imbalance calibration method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] IQ signals include in-phase signals and quadrature signals. Due to the simplicity of modulation, they are often used for RF signal modulation. Due to process reasons, when the mixer processes the IQ signal, it will cause an unbalanced IQ signal, that is, the amplitude and phase between the in-phase signal and the quadrature signal in the IQ signal are inconsistent. The unbalanced IQ signal will produce a mirror tone signal, which will interfere with the IQ signal. To solve this problem, the received IQ signal needs to be calibrated so that the amplitude of the mirror tone signal is the lowest and the interference is the smallest. Generally, the equipment can be tested by ATE (Automatic Test Equipment) machines and external boards before leaving the factory, so as to calibrate the problem of IQ signal imbalance and obtain compensation codes for amplitude and phase.
[0003] However, during the use of the device, as the chip ages and its performance deteriorates, the calibrated compensation code of the device is no longer the optimal value. At this time, the IQ signal imbalance problem will reappear when the device receives the IQ signal. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an IQ imbalance calibration method, device, electronic device, storage medium, and computer program product, which are used to quickly calibrate IQ imbalance without the help of an external signal source, thereby solving the problem of calibration failure caused by chip aging and performance deterioration.
[0005] On the one hand, the present application provides an IQ imbalance calibration method, which is applied to a device under test, wherein a transmitting channel and a receiving channel of the device under test form an inner loop circuit, including:
[0006] Controlling the transmitting channel and the receiving channel to be opened simultaneously, 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 a 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 a relative energy parameter under a current device state, and the third IQ signal is an associated IQ signal of the first IQ signal;
[0007] When the compensation amplitude deviation is fixed, multiple rounds of searching are performed in the compensation phase interval based on the three-part searching algorithm, and the optimal compensation phase deviation is selected according to 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 interval based on a three-part searching algorithm, and the optimal compensation amplitude deviation is selected according to the relative energy parameter corresponding to each compensation amplitude deviation;
[0009] The optimal compensation phase deviation and the optimal compensation amplitude deviation are used as calibration results of the device under test.
[0010] In one embodiment, the step of acquiring the relative energy parameter includes:
[0011] Performing a single-point Fourier transform on the third IQ signal and the second IQ signal by a hardware multiplier of the device under test to obtain a transform result;
[0012] A relative energy parameter is determined according to a specified number of transformation results corresponding to a specified number of third IQ signals.
[0013] In one embodiment, the controlling the sending channel and the receiving channel to be opened simultaneously includes:
[0014] A target value is written into a preset state machine register so that the target value enables the sending channel and the receiving channel to be opened simultaneously.
[0015] In one embodiment, before using the optimal compensation phase deviation and the optimal compensation 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 based on a three-part searching algorithm, and the optimal compensation phase deviation is reselected with the relative energy parameter corresponding to each compensation phase deviation to update the optimal compensation phase deviation.
[0017] In one embodiment, the method further comprises:
[0018] After obtaining the optimal compensation phase deviation and the optimal compensation amplitude deviation, determining 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, it is determined that the optimal compensation phase deviation and the optimal compensation amplitude deviation are qualified, and the optimal compensation phase deviation and the optimal compensation amplitude deviation are used as calibration results.
[0020] In one embodiment, the method further comprises:
[0021] If not, it is determined that the optimal compensation phase deviation and the optimal compensation amplitude deviation are unqualified, and the calibration of the device under test fails.
[0022] On the other hand, the present application provides an IQ imbalance calibration device, which is applied to a device under test, wherein a transmitting channel and a receiving channel of the device under test form an inner loop circuit, including:
[0023] A control module, used for controlling the transmission channel and the receiving channel to be opened at the same time, so that the receiving channel receives the radio frequency signal emitted by the transmission channel; wherein the transmission channel emits a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through a mixer of the receiving channel to obtain a second IQ signal received by the receiving channel, and the second IQ signal and a third IQ signal are used to determine a relative energy parameter under a current device state, and the third IQ signal is an associated IQ signal of the first IQ signal;
[0024] A first search module is used to perform multiple rounds of searches in the compensation phase interval based on a three-part 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] A second search module is used to perform multiple rounds of searches in the compensation amplitude interval based on the optimal compensation phase deviation and a three-part search algorithm, and select the optimal compensation amplitude deviation according to the relative energy parameter corresponding to each compensation amplitude deviation;
[0026] The determination module is used to use 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, the present application provides an electronic device, the electronic device comprising:
[0028] processor;
[0029] a memory for storing processor-executable instructions;
[0030] The processor is configured to execute the above-mentioned IQ imbalance calibration method.
[0031] Furthermore, the present application provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can be executed by a processor to complete the above-mentioned IQ imbalance calibration method.
[0032] In addition, the present application provides a computer program product, including a computer program / instruction, which implements the above-mentioned IQ imbalance calibration method when executed by a processor.
[0033] The present application scheme can quickly determine the optimal compensation phase deviation and the optimal compensation amplitude deviation through a three-way check and reception algorithm when the device under test transmits and receives itself without the aid of an ATE machine and an external board. This process can simplify the calibration process of the receiving channel, reduce test costs, and improve test efficiency. Moreover, during the use of the device under test, as the chip ages, multiple calibrations can be started so that the calibration results match the chip performance status, ensuring that the IQ imbalance problem is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solution of the embodiments of the present application, the drawings required for use in the embodiments of the present application are briefly introduced below.
[0035] Figure 1 A schematic diagram of the structure of a sending channel and a receiving channel in a device under test provided in an embodiment of the present application;
[0036] Figure 2 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;
[0037] Figure 3 A flowchart of a method for calibrating IQ imbalance provided in one embodiment of the present application;
[0038] Figure 4 A schematic diagram of a three-point search provided by an embodiment of the present application;
[0039] Figure 5 A trend diagram of relative energy parameters during a three-point search provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of a flow chart of a method for obtaining relative energy parameters provided in an embodiment of the present application;
[0041] Figure 7 A processing diagram of a hardware multiplier provided in one embodiment of the present application;
[0042] Figure 8 A block diagram of an IQ imbalance calibration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0044] Similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0045] See also Figure 1 , is a schematic diagram of the structure of the sending channel and the receiving channel in the device under test provided in an embodiment of the present application, such as Figure 1 As shown in the figure, in the transmission channel: after the digital modulation signal undergoes IQ Mismatch (IQ imbalance) compensation, DC (Direct Current to Direct Current, DC to DC conversion) compensation and DAC (Digital to Analog Conversion) digital-to-analog conversion, it is first processed by a filter and then up-converted to the 2.4G or 5G frequency band by a mixer (Tx Mixer), amplified by a PA (Power Amplifier), and then sent out through the antenna. In the receiving channel: the RF signal is received by the antenna, enters the linear amplifier LNA (Low Noise Amplifier), and then down-converted to a baseband signal by a mixer (GM+Mixer); after passing through components such as TIA (Trans-Impedance Amplifier) and BIQ (Bi-Quadratic Filter), the analog-to-digital conversion is completed by ADC (Analog-to-Digital Conversion), and then Rx DC and IQM mismatch compensation are completed, and finally it is handed over to the digital system for demodulation.
[0046] The mixer in the receiving channel will generate a mirror image signal during the down-conversion process. This mirror image signal will raise the receiving noise floor and deteriorate the receiving sensitivity when the demodulation threshold is constant. In addition to affecting the demodulation of the receiver, the IQ imbalance of the transmitter will also deteriorate the spectrum of the air channel. This problem needs to be solved at the transmitting end. The IQ imbalance of the receiver will not affect the air channel and can be compensated in the digital baseband. The problem to be solved in this solution is to determine the optimal compensation phase deviation (pha_code) and the optimal compensation amplitude deviation (amp_code) for the receiving channel.
[0047] In this solution, the pin of the transmission channel (Tx PIN) and the pin of the receiving channel (Rx PIN) can be combined into one pin. Under the condition of external 50 ohm impedance matching outside the device under test, the transmission channel and the receiving channel can be opened at the same time to form an inner loop circuit, thereby realizing the self-transmission and self-reception of the IQ signal of the device under test. In this case, the calibration of IQ imbalance can be completed without the help of ATE machines and external boards. The specific calibration process is described 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 A processor 11 is taken 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 so that the electronic device 1 can execute all or part of the process of the method in the following embodiment. In one embodiment, the electronic device 1 can be the aforementioned device under test, which can be a wireless headset or other device with wireless communication function, 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, disk or optical disk.
[0050] The present application also provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by the processor 11 to complete the IQ imbalance calibration method provided in the present application.
[0051] The present application also provides a computer program product, including a computer program / instruction, which implements the IQ imbalance calibration method provided in the present application when the computer program / instruction is executed by a processor.
[0052] See also Figure 3 , is a flow chart of a method for calibrating an IQ imbalance provided in an embodiment of the present application, such as Figure 3 As shown, the method may include the following steps 310 to 340.
[0053] Step 310: Control the transmitting channel and the receiving channel to be opened at the same time, 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 a second IQ signal received by the receiving channel, and the second IQ signal and the third IQ signal are used to determine the relative energy parameter under the current device state, and the third IQ signal is an associated signal of the first IQ signal.
[0054] During the use of the device under test, the calibration of IQ signal imbalance can be started irregularly, or periodically, or after receiving the calibration instruction sent by the host computer. When performing the calibration of IQ signal imbalance, the device under test can control the transmission channel and the receiving channel to be opened at the same time. Since the receiving channel and the transmission channel form an inner loop circuit, in this case, after the transmission channel sends out the RF signal, the receiving channel can receive the RF signal.
[0055] During the IQ imbalance calibration process, the single tone signal generator ( Figure 1 The tx-packet-top in the transmission channel can continuously generate a first IQ signal in the form of a single-tone signal. Here, the single-tone signal constituting the first IQ signal includes a single-tone signal corresponding to the I signal and a single-tone signal corresponding to the Q signal. Further, the first IQ signal is up-converted by the mixer of the transmission channel to obtain a radio frequency signal, which is emitted from the transmission channel and externally coupled into the receiving channel. The radio frequency signal is received through the mixer path of the receiving channel and a second IQ signal is obtained by down-conversion.
[0056] When the single-tone signal generator generates the first IQ signal in the form of a single-tone signal, it can simultaneously generate a third IQ signal in the form of a single-tone signal. The third IQ signal and the first IQ signal are associated IQ signals. The two are generated at the same time point, and the frequency of the third IQ signal is the same as the frequency of the first IQ signal, and the rotation direction is opposite.
[0057] The difference between the third IQ signal and the second IQ signal can be used to evaluate the degree of IQ imbalance. Therefore, a relative energy parameter can be determined through the third IQ signal and the second IQ signal corresponding to the third IQ signal. The 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] In the IQ imbalance calibration process, the corresponding second IQ signal can be determined based on the first IQ signal corresponding to the third IQ signal, and then the relative energy parameter in the current device state is determined according to the third IQ signal and the second IQ signal. Here, the current device state is determined by the current compensation amplitude deviation and the compensation phase deviation, and when one or both of the compensation amplitude deviation and the compensation phase deviation change, the device state changes.
[0059] Step 320: When the compensation amplitude deviation is fixed, multiple rounds of searching are performed in the compensation phase interval based on the three-part searching algorithm, and the optimal compensation phase deviation is selected according to the relative energy parameter corresponding to each compensation phase deviation.
[0060] After calibration begins, the compensation amplitude deviation can be controlled to be fixed to find the optimal compensation phase deviation. Here, the initial value of the compensation amplitude deviation can be configured based on experience. For example, the compensation amplitude deviation can be controlled to be 0.
[0061] The compensation phase interval is an interval in which the phase deviation can be selected for compensation, and can be pre-configured according to the software and hardware conditions of the device under test.
[0062] The three-part search algorithm first takes the middle value mid from the compensation phase interval, and the middle value mid divides the interval into a left interval and a right interval, and then takes the middle value midmid from the right interval, and the middle value midmid of the right interval divides the right interval into two intervals. Therefore, the middle value mid of the compensation phase interval and the middle value midmid of the right interval divide the compensation phase interval into three small intervals.
[0063] During a round of search, the middle value mid of the interval to be searched (when searching for the first time, the interval is the entire compensation phase interval) and the middle value midmid of the interval to the right of the interval can be configured to the registers respectively, so that the device under test operates 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 to be tested. Therefore, the relative energy parameter can be determined by a number of third IQ signals under the current device state and the second IQ signal corresponding to the third IQ signal, as the relative energy parameter corresponding to the compensation phase deviation. In a round of search, the corresponding relative energy parameter can be determined for the middle value mid of the interval to be searched, and the corresponding relative energy parameter can be determined for the middle value midmid of the right interval of the interval to be searched. At this time, the size of the two relative energy parameters can be compared. Since the smaller the relative energy parameter, the lower the degree of IQ imbalance, if the relative energy parameter corresponding to mid is smaller, the right interval of the interval to be searched can be discarded. If the relative energy parameter corresponding to midmid is smaller, the left interval of the interval to be searched can be discarded.
[0065] See also Figure 4 , is a schematic diagram of a three-point search provided in an embodiment of the present application, Figure 4 The two curves on the right and left represent the relationship between the two device states and the relative energy parameters. The horizontal axis is the parameter corresponding to the device state (for example: compensated phase deviation and / or compensated amplitude deviation), and the vertical axis is the relative energy parameter. The lowest point of the curve is the target of the three-point search.
[0066] Figure 4The left of the left curve is the left endpoint of the interval to be searched, and the right is the right endpoint. The middle value of the interval to be searched mid=(left+right) / 2, and the middle value of the right interval of the interval to be searched midmid=(mid+right) / 2. It can be seen from the figure that the relative energy parameter of mid is greater than the relative energy parameter of midmid, so the left interval of the interval to be searched can be discarded. After discarding the left interval, the right interval can be used as the new interval to be searched, and a new round of three-part search process can be carried out.
[0067] Figure 4 The left of the right curve is the left endpoint of the interval to be searched, and the right is the right endpoint. The middle value of the interval to be searched mid=(left+right) / 2, and the middle value of the right interval of the interval to be searched midmid=(mid+right) / 2. It can be seen from the figure that the relative energy parameter of mid is less than the relative energy parameter of midmid, so the right interval of the interval to be searched can be discarded. After discarding the right interval, the left interval can be used as the new interval to be searched, and a new round of three-point search process can be carried out.
[0068] After multiple rounds of searching, the range of the search interval in 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 also Figure 5 , which is a trend diagram of relative energy parameters during three-point search provided by an embodiment of the present application, such as Figure 5 As shown, the horizontal axis represents the search rounds, the vertical axis represents the size of the relative energy parameter, the dotted line is the change trend of the relative energy parameter corresponding to the middle value mid of the interval to be searched in each round of search, and the solid line is the change trend of the relative energy parameter corresponding to the middle value midmid of the right interval of the interval to be searched in each round of search. Figure 5 In the example, after 14 rounds of searching, the optimal compensation phase deviation with the smallest relative energy parameter can be obtained.
[0070] Step 330: Based on the optimal compensation phase deviation, multiple rounds of searching are performed in the compensation amplitude interval based on a three-part searching algorithm, and the optimal compensation amplitude deviation is selected according to 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 the optimal compensation phase deviation can be controlled to remain unchanged to find the optimal compensation amplitude deviation.
[0072] The compensation amplitude interval is an interval in which the compensation amplitude deviation can be selected and can be pre-configured according to the software and hardware conditions of the device under test.
[0073] The execution process of the three-part search algorithm can be found in the previous text. Since the optimal compensation phase deviation is fixed, the compensation amplitude deviation selected during the search process can determine the current device state of the device under test. Therefore, the relative energy parameter can be determined through several third IQ signals in the current device state and the second IQ signal corresponding to the third IQ signal, as the relative energy parameter corresponding to the compensation amplitude deviation.
[0074] After multiple rounds of searching, the range of the search interval in the compensation amplitude range can be continuously narrowed, gradually approaching the optimal compensation amplitude deviation corresponding to the minimum relative energy parameter, and finally obtaining the optimal compensation amplitude deviation.
[0075] Step 340: taking the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result 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 subsequent device under test receives the IQ signal under the optimal compensation amplitude deviation and the optimal compensation phase deviation. After calibration, it can be ensured that the impact of IQ imbalance is minimized.
[0077] Through the above measures, without the help of ATE machines and external boards, the optimal compensation phase deviation and the optimal compensation amplitude deviation can be quickly determined through the three-way check and reception algorithm when the device under test is self-transmitting and self-receiving. This process can simplify the calibration process of the receiving channel, reduce testing costs, and improve testing efficiency; and during the use of the device under test, as the chip ages, multiple calibrations can be started to match the calibration results with the chip performance status, ensuring that the IQ imbalance problem is solved.
[0078] In one embodiment, see Figure 6 , is a flow chart of a method for obtaining relative energy parameters provided in an embodiment of the present application, such as Figure 6 As shown, under the current device state, the relative energy parameter can be calculated through the following steps 610 to 620.
[0079] Step 610: Perform a correlation operation on the third IQ signal and the second IQ signal through a hardware multiplier of the device under test to obtain a transformation result.
[0080] Here, the principle of the hardware multiplier is explained. According to the product-to-difference formula: Acosα*Bcosβ=AB / 2*[cos(α+β)+cos(α-β)], assuming that the frequencies of the two signals are the same (i.e., α=β), Acosα*Bcosβ=AB / 2*[cos(α+β)+cos(α-β)]=AB / 2*[cos(2α)+1]. Among them, the value range of cos(2α) is (-1~1), so cos(2α)+1≥0. Here, Acosα can represent the I signal or Q signal of one IQ input signal, Bcosβ can represent the I signal or Q signal of another IQ input signal, and A and B are the signal amplitudes.
[0081] Since the second IQ signal is obtained by processing the RF signal corresponding to the first IQ signal by a mixer, 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 and the rotation direction is opposite, so the frequency of the RX IQ unbalanced signal is equal to the frequency of the third IQ signal. In addition, the frequency of the Rx DC signal is different from the frequency of the third IQ signal.
[0082] When the third IQ signal is correlated with the second IQ signal, it can be regarded as correlating the third IQ signal with the first IQ signal, the RX DC signal and the RX IQ imbalance signal. Since the frequency of the third IQ signal is different from that of the first IQ signal and the RXDC signal, when the number of sampling points N is large enough, the discrete sequence equivalent power of the correlation operation between the third IQ signal and the first IQ signal can be expressed as: Among them, the value range of cos(α+β) is (-1 to 1); the value range of cos(α-β) is (-1 to 1). After the integer number of cycles N is accumulated Approximately equal to 0; after an integer number of cycles N is accumulated is approximately equal to 0. Therefore, P is approximately equal to 0. Similarly, when the number of sampling points N is large enough, the discrete sequence equivalent power of the correlation operation between the third IQ signal and the RX DC signal is also approximately equal to 0.
[0083] Since the third IQ signal has the same frequency as the RX IQ imbalance signal, when the number of sampling points N is large enough, the discrete sequence equivalent power of the correlation operation between the third IQ signal and the RX IQ imbalance signal can be expressed as: Since the value range of cos(2α) is (-1 to 1), after the integer number of cycles N is accumulated, is approximately equal to 0, then the power can be expressed as P = AB / 2*(1*N) / N = AB / 2, and the power P is stable and unchanged.
[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β, wherein A1cosα1 represents the RX IQ imbalance signal in the second IQ signal, A1 is the amplitude of the RX IQ imbalance signal, and α1 is the frequency of the RX IQ imbalance 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≠β, and α3≠β.
[0085] During the calibration process, based on the above inference, it can be known that the discrete sequence equivalent power of the third IQ signal correlated with the RX DC signal is also approximately 0, and the discrete sequence equivalent power of the third IQ signal correlated with the first IQ signal is also approximately 0. By setting the compensation phase deviation and the compensation amplitude deviation, the amplitude A1 of the RX IQ imbalance signal can be adjusted. Based on this principle, it can be known that under the optimal compensation amplitude deviation and the optimal compensation phase deviation, the sum of the products P is the smallest.
[0086] A transformation result can be obtained by performing a correlation operation on the third IQ signal and the second IQ signal through a hardware multiplier.
[0087] The in-phase signal and the quadrature signal in the IQ signal are orthogonal, and the actual hardware implementation is expressed in the form of complex numbers. The third IQ signal is expressed as X(t) = (I-jQ), and the quadrature signal uses a negative frequency to keep consistent with the frequency of the mirror signal (RX IQ imbalance signal). The second IQ signal is expressed as X'(t) = (I'+jQ'). The third IQ signal is multiplied by the second IQ signal through a hardware multiplier, that is, a single-point Fourier transform is completed, which is expressed as X(t)*X'(t) = (I-jQ)*(I'+jQ') = (II'+QQ') + j(IQ'-QI').
[0088] See also Figure 7 , is a processing diagram of a hardware multiplier provided in an embodiment of the present application, such as Figure 7As shown, the I signal and Q signal in the third IQ signal, and the I' signal and Q' signal in the second IQ signal are input to the hardware multiplier to obtain transformation results II', IQ', QI', QQ'. Among them, the I" signal and Q" signal in the first IQ signal pass through the mixers of the transmitting channel and the receiving channel to obtain the second signal. These transformation results all represent power.
[0089] Step 620: Determine a relative energy parameter according to a specified number of transformation results corresponding to a specified number of third IQ signals.
[0090] The specified number may be configured as needed. For example, the specified number may be 1000, 2000, 3000, etc.
[0091] Exemplarily, the relative energy parameter can be expressed by the following formula (1):
[0092]
[0093] Here, N is a specified number; II', IQ', QI', QQ' are transformation results.
[0094] Since the power of the third IQ signal remains stable when N is large, the energy of the third IQ signal remains stable. The greater the noise in the second IQ signal, the greater the energy of the second IQ signal. Therefore, the greater the relative energy, the greater the noise signal, that is, the more serious the IQ imbalance problem.
[0095] Through this measure, in any device state, a specified number of transformation results can be determined through a specified number of third IQ signals and second IQ signals, and then the relative energy parameter in the device state can be determined through the specified number of transformation results. Since the hardware multiplier can quickly complete this calculation process, this solution can efficiently obtain the relative energy parameter.
[0096] In one embodiment, when executing step 310, a target value may be written into a preset state machine register, and the state machine register may serve as a state machine. In this case, the target value in the state machine register may enable the sending channel and the receiving channel to be opened simultaneously.
[0097] In one embodiment, before taking the optimal compensation phase deviation and the optimal compensation amplitude deviation as calibration results, the compensation phase deviation may be further adjusted.
[0098] On the basis of the optimal compensation amplitude deviation, multiple rounds of searching are performed in the compensation phase interval based on the three-part searching algorithm, and the optimal compensation phase deviation is reselected with the relative energy parameter corresponding to each compensation phase deviation to update the optimal compensation phase deviation.
[0099] This process is similar to the execution process of the aforementioned step 320, except that this time the three-part search process for the compensation phase deviation is performed with the determined optimal compensation amplitude deviation fixed.
[0100] This measure can avoid 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, and can ensure 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 compensation phase deviation and the optimal compensation amplitude deviation, it can be 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. Here, for any model of the device under test, an energy threshold can be configured as needed, and the energy threshold represents the relative energy parameter at the tolerable maximum IQ imbalance.
[0102] On the one hand, if yes, it can be determined that the optimal compensation phase deviation and the optimal compensation amplitude deviation are qualified, and the optimal compensation phase deviation and the optimal compensation amplitude deviation are used as calibration results. In this case, the calibration results can be written into the memory of the device under test to solve the IQ imbalance problem in the subsequent wireless communication of the device under test.
[0103] On the other hand, if not, the optimal compensation phase deviation and the optimal compensation amplitude deviation are unqualified, and the calibration of the device under test fails. In this case, the device under test can send a prompt message of calibration failure to the user, so that the user is informed in time that the device under test cannot solve the problem of IQ signal imbalance.
[0104] Figure 8 is a block diagram of an IQ imbalance calibration device according to an embodiment of the present invention. Figure 8 As shown, the device may include:
[0105] The control module 810 is used to control the transmission channel and the receiving channel to be opened at the same time, so that the receiving channel receives the radio frequency signal sent by the transmission channel; wherein the transmission channel sends a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through a mixer of the receiving channel to obtain a second IQ signal received by the receiving channel, and the second IQ signal and the third IQ signal are used to determine the relative energy parameter under the current device state, and the third IQ signal is an associated IQ signal of the first IQ signal;
[0106] A first search module 820 is used to perform multiple rounds of searches in the compensation phase interval based on a three-part search algorithm when the compensation amplitude deviation is fixed, and select an optimal compensation phase deviation based on a relative energy parameter corresponding to each compensation phase deviation;
[0107] A second search module 830 is used to perform multiple rounds of searches in the compensation amplitude interval based on the optimal compensation phase deviation and a three-part search algorithm to select the optimal compensation amplitude deviation according to the relative energy parameter corresponding to each compensation amplitude deviation;
[0108] The determination module 840 is configured to use the optimal compensation phase deviation and the optimal compensation amplitude deviation as calibration results of the device under test.
[0109] The implementation process of the functions and effects of each module in the above device is specifically described in the implementation process of the corresponding steps in the above IQ imbalance calibration method, which will not be repeated here.
[0110] In several embodiments provided in the present application, the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0111] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0112] If the function is implemented in the form of a software function 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 the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
Claims
1. A method for calibrating IQ imbalance, applied to a device under test, characterized in that: The transmitting channel and the receiving channel of the device under test form an inner loop circuit, including: Controlling the transmitting channel and the receiving channel to be opened simultaneously, 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 a 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 a relative energy parameter under a current device state, and the third IQ signal is an associated IQ signal of the first IQ signal; When the compensation amplitude deviation is fixed, multiple rounds of searching are performed in the compensation phase interval based on the three-part searching algorithm, and the optimal compensation phase deviation is selected according to 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 interval based on a three-part searching algorithm, and the optimal compensation amplitude deviation is selected according to the relative energy parameter corresponding to each compensation amplitude deviation; The optimal compensation phase deviation and the optimal compensation amplitude deviation are used as calibration results of the device under test.
2. The method according to claim 1, characterized in that The step of obtaining the relative energy parameter comprises: Performing a correlation operation on the third IQ signal and the second IQ signal by a hardware multiplier of the device under test to obtain a transformation result; A relative energy parameter is determined according to 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 controlling the sending channel and the receiving channel to be opened simultaneously includes: A target value is written into a preset state machine register so that the target value enables the sending channel and the receiving channel to be opened simultaneously.
4. The method according to claim 1, characterized in that: Before using the optimal compensation phase deviation and the optimal compensation amplitude deviation as the calibration result 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 based on a three-part searching algorithm, and the optimal compensation phase deviation is reselected with the relative energy parameter corresponding to each compensation phase deviation to update the optimal compensation phase deviation.
5. The method according to claim 1 or 4, characterized in that: The method further comprises: After obtaining the optimal compensation phase deviation and the optimal compensation amplitude deviation, determining 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, it is determined that the optimal compensation phase deviation and the optimal compensation amplitude deviation are qualified, and the optimal compensation phase deviation and the optimal compensation amplitude deviation are used as calibration results.
6. The method according to claim 5, characterized in that The method further comprises: If not, it is determined that the optimal compensation phase deviation and the optimal compensation amplitude deviation are unqualified, and the calibration of the device under test fails.
7. An IQ imbalance calibration device, applied to a device under test, characterized in that: The transmitting channel and the receiving channel of the device under test form an inner loop circuit, including: A control module, used for controlling the transmission channel and the receiving channel to be opened at the same time, so that the receiving channel receives the radio frequency signal emitted by the transmission channel; wherein the transmission channel emits a radio frequency signal converted from a first IQ signal, and the radio frequency signal passes through a mixer of the receiving channel to obtain a second IQ signal received by the receiving channel, and the second IQ signal and a third IQ signal are used to determine a relative energy parameter under a current device state, and the third IQ signal is an associated IQ signal of the first IQ signal; A first search module is used to perform multiple rounds of searches in the compensation phase interval based on a three-part 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; A second search module is used to perform multiple rounds of searches in the compensation amplitude interval based on the optimal compensation phase deviation and a three-part search algorithm, and select the optimal compensation amplitude deviation according to the relative energy parameter corresponding to each compensation amplitude deviation; The determination module is used to use 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 comprises: processor; a memory for storing processor-executable instructions; The processor is configured to execute the IQ imbalance calibration method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program can be executed by a processor to complete the IQ imbalance calibration method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the IQ imbalance calibration method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
IQ signal calibration method and apparatus
CN105490973A
NPRACH timing synchronization estimation method and NPRACH timing synchronization estimation device
CN110891036A
Broadband signal IQ imbalance and channel flatness calibration method
CN115250218A
Calibration method and device of zero intermediate frequency signal transceiver and electronic equipment
CN115276840A
Transmitter circuit, compensation value calibration device and method for calibrating IQ imbalance compensation values
US20220345166A1
