A DC bias correction method and related apparatus
By first performing a one-dimensional search on the IQ plane and then determining the target two-dimensional correction set, the problem of slow DC bias correction speed or poor accuracy in the prior art is solved, and efficient DC bias correction is achieved.
Patent Information
- Application Number
- CN202411069712.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-08-05
AI Technical Summary
In the existing technology, DC bias correction algorithms have problems such as slow correction speed or poor accuracy. In particular, the traversal algorithm is complex and slow, while the single gradient descent algorithm has poor noise resistance and low correction accuracy.
First, perform a one-dimensional search for the I and Q directions respectively to determine the initial DC bias compensation value. Then, combine the preset two-dimensional set range to determine the target two-dimensional correction set. Perform a two-dimensional search only within a small range to determine the target DC bias compensation value for the I and Q directions.
This approach improves correction speed while maintaining correction accuracy, avoiding the problem of excessive computation caused by large-scale two-dimensional searches.
Smart Images

Figure CN118984262B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal processing, and more specifically, to a DC bias correction method and related apparatus. Background Technology
[0002] In signal processing, complex signals are typically divided into two signals, I-phase (I) and quadrature-phase (Q), through quadrature sampling, i.e., IQ signals. In radio frequency transceivers, such as... Figure 1 As shown, when the antenna of the RF transceiver receives electromagnetic waves, the signal is first amplified by a low-noise amplifier (LNA) after passing through a balun. Then, the real part (In-phase Local Oscillator, LO-I) and the imaginary part (Quadrature-phase Local Oscillator, LO-Q) of the local oscillator signal are converted into lower-frequency in-phase (RX-I) and quadrature (RX-Q) signals by a filter and an analog-to-digital converter (ADC). Finally, these signals are sent to the modem to be converted into digital signals, completing the data decoding.
[0003] Due to various circuit defects, such as filter mismatch, filter circuit bias, local oscillator (LO) coupling in the mixer, LO leakage, and antenna noise, a DC bias will appear at the output of the ADC. If the DC bias is not corrected, the performance of the modem connected to the ADC output will be degraded. In other words, in a modem, in addition to demodulation and automatic gain control (AGC) of the I / O signals, DC offset cancellation (DCOC) is also required.
[0004] In related technologies, DC bias correction algorithms for IO signals mainly include traversal algorithms and single gradient descent algorithms. Among them, the traversal algorithm has high correction accuracy but is relatively complex and slow, while the single gradient descent algorithm has fast correction speed but poor correction accuracy due to poor noise resistance. Summary of the Invention
[0005] This application provides a DC bias correction method and related apparatus. First, a one-dimensional search is performed in the I and Q directions respectively to determine the initial DC bias compensation values in the I and Q directions. Then, a target two-dimensional correction set is determined by combining the preset two-dimensional set range. This eliminates the need for a two-dimensional search within the large initial two-dimensional correction set, and instead requires a two-dimensional search within the smaller target two-dimensional correction set to determine the target DC bias compensation values in the I and Q directions used to correct the DC bias of the target IQ signals. This ensures both correction speed and correction accuracy.
[0006] In a first aspect, this application provides a DC bias correction method, including:
[0007] When the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, for the target IQ signal, the first DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set in the IQ plane is determined, and the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values is determined as the initial DC bias compensation value in the I direction.
[0008] When the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, for the target IQ signal, the second DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set is determined, and the Q direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values is determined as the initial DC bias compensation value in the Q direction.
[0009] Based on the initial DC bias compensation values in the I and Q directions, the initial DC bias compensation two-dimensional points on the IQ plane are determined.
[0010] Based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range, the target two-dimensional correction set on the IQ plane is determined. The range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional correction set.
[0011] For the target IQ signal, the third DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the target two-dimensional correction set is determined, and the DC bias compensation value in the I direction and the DC bias compensation value in the Q direction corresponding to the minimum value among the multiple third DC bias values are determined as the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction, respectively.
[0012] The DC bias of the target IQ signal is corrected based on the target DC bias compensation values in the I and Q directions.
[0013] Secondly, this application also provides a DC bias correction device, comprising:
[0014] The first determining unit is used to determine the first DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set on the IQ plane for the target IQ signal when the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, and to determine the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values as the initial DC bias compensation value in the I direction.
[0015] The second determining unit is used to determine the second DC bias value corresponding to the multiple Q-direction DC bias compensation values in the initial two-dimensional correction set for the target IQ signal when the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, and to determine the Q-direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values as the initial DC bias compensation value in the Q direction.
[0016] The third determining unit is used to determine the initial DC bias compensation two-dimensional point on the IQ plane based on the initial DC bias compensation value in the I direction and the initial DC bias compensation value in the Q direction.
[0017] The fourth determining unit is used to determine the target two-dimensional correction set on the IQ plane based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range, wherein the range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional correction set.
[0018] The fifth determining unit is used to determine the third DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the target two-dimensional correction set for the target IQ signal, and to determine the I-direction DC bias compensation value and Q-direction DC bias compensation value corresponding to the minimum value among the multiple third DC bias values as the I-direction target DC bias compensation value and Q-direction target DC bias compensation value, respectively.
[0019] The correction unit is used to correct the DC bias of the target IQ signal based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
[0020] Thirdly, this application also provides an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the DC bias correction method provided in this application is executed.
[0021] Fourthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, performs the DC bias correction method provided in this application.
[0022] Fifthly, this application also provides a computer program product, including a computer program that is executed by a processor to perform the DC bias correction method provided in this application.
[0023] In summary, this application provides a DC bias correction method and related apparatus. The method includes: when the DC bias compensation value in the Q direction is fixed to a preset DC bias compensation value in the Q direction, for a target IQ signal, determining first DC bias values corresponding to multiple I-direction DC bias compensation values in an initial two-dimensional correction set on the IQ plane, and determining the I-direction DC bias compensation value corresponding to the minimum value among the multiple first DC bias values as the initial DC bias compensation value in the I direction; when the DC bias compensation value in the I direction is fixed to the initial DC bias compensation value in the I direction, for a target IQ signal, determining second DC bias values corresponding to multiple Q-direction DC bias compensation values in the initial two-dimensional correction set, and determining the Q-direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values as the initial DC bias compensation value in the Q direction. The process involves: determining initial DC bias compensation points in the IQ plane based on the initial DC bias compensation values in the I and Q directions; determining a target two-dimensional correction set in the IQ plane based on the initial DC bias compensation points and a preset two-dimensional set range, where the range of the target two-dimensional correction set is smaller than that of the initial two-dimensional correction set; determining the third DC bias value corresponding to each of the multiple DC bias compensation points within the target two-dimensional correction set for the target IQ signal, and determining the minimum value among these third DC bias values as the target DC bias compensation value in the I and Q directions, respectively; and correcting the DC bias of the target IQ signal based on the target DC bias compensation values in the I and Q directions. Using the above method, a one-dimensional search is first performed for the I and Q directions respectively to determine the initial DC bias compensation values for the I and Q directions. Then, the target two-dimensional correction set is determined by combining the preset two-dimensional set range. This eliminates the need for a two-dimensional search within the large initial two-dimensional correction set, and instead requires a two-dimensional search within the smaller target two-dimensional correction set to determine the target DC bias compensation values for the I and Q directions used to correct the DC bias of the target IQ signals. This ensures both correction speed and correction accuracy.
[0024] Other advantages of this application will be explained in more detail in conjunction with the following description and figures.
[0025] It should be understood that the above description is merely an overview of the technical solution of this application, so as to enable a general understanding of the technical means of this application and to implement it in accordance with the contents of the specification. In order to make the above and other objects, features and advantages of this application more apparent and understandable, specific embodiments of this application are illustrated below. Attached Figure Description
[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly described below. The accompanying drawings are incorporated in and constitute a part of this specification. These drawings illustrate embodiments conforming to this application and are used together with the specification to explain the technical solutions of this application. It should be understood that the drawings only illustrate certain embodiments of this application and should not be considered as a limitation on the scope of protection. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. Furthermore, the same reference numerals denote the same components throughout the drawings. In the drawings:
[0027] Figure 1 This is a schematic diagram of the structure of a radio frequency transceiver;
[0028] Figure 2 This application provides a DC bias value map for multiple DC bias compensation two-dimensional points within a two-dimensional correction set on the IQ plane, as provided in this embodiment.
[0029] Figure 3 A flowchart of a DC bias correction method provided in this application embodiment;
[0030] Figure 4 This is a schematic diagram illustrating the effect of a DC bias correction method provided in an embodiment of this application.
[0031] Figure 5 This is a schematic diagram of a DC bias correction device provided in an embodiment of this application. Detailed Implementation
[0032] Exemplary embodiments of this application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0033] In the description of embodiments of this application, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of the disclosed features, figures, steps, behaviors, components, portions or combinations thereof in this specification, and do not exclude the possibility of the presence of one or more other features, figures, steps, behaviors, components, portions or combinations thereof.
[0034] Unless otherwise stated, " / " means "or". For example, A / B can mean A or B. In this article, "and / or" is merely a way of describing the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A alone, A and B at the same time, and B alone.
[0035] The terms "first," "second," etc., are used only for ease of description to distinguish identical or similar technical features and should not be construed as indicating or implying the relative importance or number of these technical features. Therefore, a feature defined by "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of embodiments of this application, unless otherwise stated, the term "multiple" means two or more.
[0036] For I / O signals, DC bias correction can be performed using both the DC bias compensation values in the Q direction and the DC bias compensation values in the I direction, such as... Figure 2 As shown, the shape of the DC bias value corresponding to multiple DC bias compensation two-dimensional points in the two-dimensional correction set on the IQ plane is usually concave, that is, there will be a DC bias compensation two-dimensional point that minimizes the overall DC bias value.
[0037] In related technologies, DC bias correction algorithms for IO signals mainly include traversal algorithms and single gradient descent algorithms. Among them, the traversal algorithm has high correction accuracy but is relatively complex and slow, while the single gradient descent algorithm has fast correction speed but poor correction accuracy due to poor noise resistance.
[0038] In view of this, this application provides a DC bias correction method and related apparatus. First, a one-dimensional search is performed in the I and Q directions respectively to determine the initial DC bias compensation value in the I direction and the initial DC bias compensation value in the Q direction. Then, a target two-dimensional correction set is determined by combining a preset two-dimensional set range. This eliminates the need for a two-dimensional search within the large initial two-dimensional correction set, and only requires a two-dimensional search within the small target two-dimensional correction set to determine the target DC bias compensation value in the I and Q directions used to correct the DC bias of the target IQ signal. This ensures both correction speed and correction accuracy.
[0039] The DC bias correction method provided in this application can be implemented using computer equipment, which can be a terminal device or a server. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal devices include, but are not limited to, mobile phones, computers, smart voice interaction devices, smart home appliances, vehicle terminals, and aircraft. The terminal devices and servers can be directly or indirectly connected via wired or wireless communication, and this application does not impose any limitations on this connection.
[0040] The DC bias correction method provided in this application will be described below through method embodiments, such as... Figure 3 As shown, Figure 3 This is a flowchart of a DC bias correction method provided in an embodiment of this application. The aforementioned computer device can be a server. The method includes:
[0041] S301. When the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, for the target IQ signal, the first DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set in the IQ plane is determined, and the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values is determined as the initial DC bias compensation value in the I direction.
[0042] Specifically, such as Figure 2 As shown, the shape of the DC bias value corresponding to multiple DC bias compensation two-dimensional points in the two-dimensional correction set on the IQ plane is usually concave, that is, there will be a DC bias compensation two-dimensional point that minimizes the overall DC bias value.
[0043] In this application, the target IO signal is the IO signal with DC bias to be corrected. The initial two-dimensional correction set is a two-dimensional set initially determined for DC bias correction. If a two-dimensional search is performed directly on the initial two-dimensional correction set to determine the two-dimensional point of DC bias compensation with the smallest DC bias value, the correction accuracy can be guaranteed. However, since the initial two-dimensional correction set has a large range, the amount of calculation will be too large, resulting in a slow correction speed.
[0044] To address this, for the target I / O signal, a one-dimensional search can be performed first along the I direction, such as... Figure 4As shown by line 1 in the figure, when the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, the server can determine the first DC bias value corresponding to the multiple DC bias compensation values in the I direction in the initial two-dimensional correction set, and determine the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values as the initial DC bias compensation value idc1 in the I direction.
[0045] S302. When the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, for the target IQ signal, determine the second DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set, and determine the Q direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values as the initial DC bias compensation value in the Q direction.
[0046] After determining the initial DC bias compensation value in the I direction using S301, a one-dimensional search can be performed in the Q direction for the target I / O signal, such as... Figure 4 As shown by line 2 in the figure, when the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, the server can determine the second DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set, and determine the Q direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values as the initial DC bias compensation value qdc1 in the Q direction.
[0047] S303. Based on the initial DC bias compensation value in the I direction and the initial DC bias compensation value in the Q direction, determine the two-dimensional point of initial DC bias compensation on the IQ plane.
[0048] After S301 determines the initial DC bias compensation value idc1 in the I direction and S302 determines the initial DC bias compensation value qdc1 in the Q direction, the server can determine the initial DC bias compensation two-dimensional point (idc1, qdc1) on the IQ plane.
[0049] S304. Based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range, determine the target two-dimensional correction set on the IQ plane. The range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional correction set.
[0050] The preset two-dimensional set range is a set range set in advance for two-dimensional search. In order to avoid excessive computation in the subsequent two-dimensional search in this application, the preset two-dimensional set range is usually small. For example, the preset two-dimensional set range can be a 3x3 or 5x5 region.
[0051] Based on the initial DC bias compensation two-dimensional points (idc1, qdc1) and the preset two-dimensional set range, the server can determine the target two-dimensional correction set on the IQ plane, for example, such as Figure 4 As shown in circle 3, the server can determine the corresponding target two-dimensional correction set by taking the initial DC bias compensation two-dimensional point (idc1, qdc1) as the center and combining it with the preset two-dimensional set range.
[0052] S305. For the target IQ signal, determine the third DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the target two-dimensional correction set, and determine the I-direction DC bias compensation value and Q-direction DC bias compensation value corresponding to the minimum value among the multiple third DC bias values as the I-direction target DC bias compensation value and Q-direction target DC bias compensation value, respectively.
[0053] After determining the target two-dimensional correction set with a small range in S304, for the target IQ signal, the server can determine the third DC bias value corresponding to multiple DC bias compensation two-dimensional points in the target two-dimensional correction set. That is, the server can perform a two-dimensional search in the target two-dimensional correction set and determine the I-direction DC bias compensation value and Q-direction DC bias compensation value corresponding to the minimum value among multiple third DC bias values as the I-direction target DC bias compensation value idc and the Q-direction target DC bias compensation value qdc, respectively.
[0054] It should be noted that since the range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional correction set, performing a two-dimensional search based on the target two-dimensional correction set can ensure the correction speed. At the same time, since the target two-dimensional correction set is determined based on the initial DC bias compensation two-dimensional points determined after performing one-dimensional searches for the I and Q directions respectively, performing a two-dimensional search based on the target two-dimensional correction set can ensure the correction accuracy.
[0055] S306. Correct the DC bias of the target IQ signal based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
[0056] After S305 determines the target DC bias compensation value idc in the I direction and the target DC bias compensation value qdc in the Q direction, the server can correct the DC bias of the target IQ signal based on the target DC bias compensation value idc in the I direction and the target DC bias compensation value qdc in the Q direction.
[0057] In one possible implementation, the method further includes:
[0058] Based on the phase length in the I direction, determine multiple DC bias compensation values in the initial two-dimensional correction set in the I direction;
[0059] Based on the phase length in the Q direction, multiple Q-direction DC bias compensation values in the initial two-dimensional correction set are determined.
[0060] Specifically, to ensure the search accuracy of the one-dimensional search in the I direction, the server can determine multiple DC bias compensation values in the initial two-dimensional correction set based on the phase length in the I direction; to ensure the search accuracy of the one-dimensional search in the Q direction, the server can determine multiple DC bias compensation values in the initial two-dimensional correction set based on the phase length in the Q direction.
[0061] In one possible implementation, considering the practical application of this application, if the circuit is relatively ideal, the median value of the multiple Q-direction DC bias compensation values in the initial two-dimensional correction set corresponds to the place where the DC bias value is the smallest. Therefore, the preset DC bias compensation value in the Q direction can be the median value of the multiple Q-direction DC bias compensation values in the initial two-dimensional correction set.
[0062] In one possible implementation, to ensure robustness, in the practical application of this application, after determining the target DC bias compensation value idc in the I direction and the target DC bias compensation value qdc in the Q direction according to the aforementioned steps S301-S305, the method further includes:
[0063] S21. When the DC bias compensation value in the I direction is fixed as the preset DC bias compensation value in the I direction, for the target IQ signal, determine the fourth DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set, and determine the Q direction DC bias compensation value corresponding to the minimum value among the multiple fourth DC bias values as the second Q direction initial DC bias compensation value.
[0064] S22. When the DC bias compensation value in the Q direction is fixed as the initial DC bias compensation value in the second Q direction, for the target IQ signal, the fifth DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set is determined, and the DC bias compensation value in the I direction corresponding to the minimum value among the multiple fifth DC bias values is determined as the initial DC bias compensation value in the second I direction.
[0065] S23. Based on the initial DC bias compensation value in the second I direction and the initial DC bias compensation value in the second Q direction, determine the two-dimensional point of the second initial DC bias compensation on the IQ plane;
[0066] S24. Based on the second initial DC bias compensation two-dimensional point and the preset two-dimensional set range, determine the second target two-dimensional correction set on the IQ plane. The second target two-dimensional correction set is smaller than the initial two-dimensional correction set.
[0067] S25. For the target IQ signal, determine the sixth DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the second target two-dimensional correction set, and determine the I-direction DC bias compensation value and Q-direction DC bias compensation value corresponding to the minimum value among the multiple sixth DC bias values as the second I-direction target DC bias compensation value and the second Q-direction target DC bias compensation value, respectively.
[0068] Specifically, compared to the aforementioned steps S301-S305, which first perform a one-dimensional search in the I direction and then in the Q direction, steps S21-S25 in this embodiment first perform a one-dimensional search in the Q direction and then in the I direction, as follows: Figure 4 As shown by line 1' in the diagram, a one-dimensional search is performed in the Q direction, as follows: Figure 4 As shown by line 2', a one-dimensional search is performed in the I direction, and then a two-dimensional search is performed within the two-dimensional correction set of the second target, thereby determining the corresponding DC bias compensation value of the second I direction target and the DC bias compensation value of the second Q direction target.
[0069] After determining the target DC bias compensation values in the second I direction and the second Q direction, step S306 corrects the DC bias of the target IQ signals based on the target DC bias compensation values in the I and Q directions, including:
[0070] If the difference between the target DC bias compensation value in the I direction and the target DC bias compensation value in the second I direction meets the difference requirement, and the difference between the target DC bias compensation value in the Q direction and the target DC bias compensation value in the second Q direction also meets the difference requirement, the DC bias of the target IQ signal is corrected based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
[0071] Specifically, the target DC bias compensation value in the I direction and the second target DC bias compensation value in the I direction, as well as the target DC bias compensation value in the Q direction and the second target DC bias compensation value in the Q direction, are compared. If the difference between the target DC bias compensation value in the I direction and the second target DC bias compensation value in the I direction meets the difference requirement, and the difference between the target DC bias compensation value in the Q direction and the second target DC bias compensation value in the Q direction also meets the difference requirement, it indicates that the target DC bias compensation values in the I direction and the Q direction determined according to the aforementioned steps S301-S305 have high reliability. Therefore, the server can correct the DC bias of the target IQ signal based on the target DC bias compensation values in the I direction and the Q direction.
[0072] In one possible implementation, if the difference between the target DC bias compensation value in the I direction and the second target DC bias compensation value in the I direction does not meet the difference requirement, or the difference between the target DC bias compensation value in the Q direction and the second target DC bias compensation value in the Q direction does not meet the difference requirement, it indicates that the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction determined according to the aforementioned steps S301-S305 have low reliability. Therefore, the server can redetermine the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction. For example, the server can repeat steps S301-S305 to redetermine the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
[0073] In one possible implementation, considering the practical application of this application, if the circuit is relatively ideal, the median value of the multiple I-direction DC bias compensation values in the initial two-dimensional correction set corresponds to the place where the DC bias value is the smallest. Therefore, the preset DC bias compensation value in the I direction can be the median value of the multiple I-direction DC bias compensation values in the initial two-dimensional correction set.
[0074] Therefore, this application provides a DC bias correction method, which includes: when the DC bias compensation value in the Q direction is fixed to a preset DC bias compensation value in the Q direction, for the target IQ signal, determining the first DC bias value corresponding to multiple I-direction DC bias compensation values in an initial two-dimensional correction set on the IQ plane, and determining the I-direction DC bias compensation value corresponding to the minimum value among the multiple first DC bias values as the initial DC bias compensation value in the I direction; when the DC bias compensation value in the I direction is fixed to the initial DC bias compensation value in the I direction, for the target IQ signal, determining the second DC bias value corresponding to multiple Q-direction DC bias compensation values in the initial two-dimensional correction set, and determining the Q-direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values as the initial DC bias compensation value in the Q direction; determining an initial DC bias compensation two-dimensional point on the IQ plane based on the initial DC bias compensation value in the I direction and the initial DC bias compensation value in the Q direction; and determining the DC bias compensation value in the I direction based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range.
[0075] The target two-dimensional correction set on the Q plane has a range smaller than that of the initial two-dimensional correction set. For the target IQ signal, the third DC bias value corresponding to multiple DC bias compensation two-dimensional points within the target two-dimensional correction set is determined, and the DC bias compensation value in the I direction and the DC bias compensation value in the Q direction corresponding to the minimum value among the multiple third DC bias values are determined as the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction, respectively. The DC bias of the target IQ signal is corrected based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction. Using the above method, a one-dimensional search is first performed for the I and Q directions respectively to determine the initial DC bias compensation values for the I and Q directions. Then, the target two-dimensional correction set is determined by combining the preset two-dimensional set range. This eliminates the need for a two-dimensional search within the large initial two-dimensional correction set, and instead requires a two-dimensional search within the smaller target two-dimensional correction set to determine the target DC bias compensation values for the I and Q directions used to correct the DC bias of the target IQ signals. This ensures both correction speed and correction accuracy.
[0076] In the description of this specification, references to terms such as "some possible implementations," "some implementations," "example," "specific example," or "some examples" indicate that a specific feature, structure, material, or characteristic described in connection with that implementation or example is included in at least one implementation or example of this application, and the aforementioned terms do not necessarily refer to the same implementation or example. Furthermore, the described specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more implementations or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different implementations or examples described in this specification, as well as the features of different implementations or examples.
[0077] The method flowcharts for embodiments of this application describe certain operations as different steps performed in a certain order. Such flowcharts are illustrative and not restrictive. Some steps described herein may be grouped together and performed in a single operation, or some steps may be divided into multiple sub-steps, and some steps may be performed in an order different from that shown herein. The various steps shown in the flowcharts may be implemented in any way by any circuit structure and / or tangible mechanism (e.g., by software running on a computer device, hardware (e.g., logic functions implemented by a processor or chip), and / or any combination thereof).
[0078] Those skilled in the art will understand that in the methods described in the above specific embodiments, the order in which the steps are written does not imply a strict execution order, and the specific execution order of each step should be determined by its function and possible internal logic.
[0079] Based on the foregoing Figures 1-4 The DC bias correction device provided in this application will be described below through device embodiments, such as... Figure 5 As shown, Figure 5 This is a schematic diagram of a DC bias correction device provided in an embodiment of this application. The DC bias correction device 500 includes:
[0080] The first determining unit 501 is used to determine the first DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set on the IQ plane for the target IQ signal when the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, and to determine the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values as the initial DC bias compensation value in the I direction.
[0081] The second determining unit 502 is used to determine, for the target IQ signal, the second DC bias value corresponding to the multiple Q-direction DC bias compensation values in the initial two-dimensional correction set when the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, and to determine the Q-direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values as the initial DC bias compensation value in the Q direction.
[0082] The third determining unit 503 is used to determine the initial DC bias compensation two-dimensional point on the IQ plane based on the initial DC bias compensation value in the I direction and the initial DC bias compensation value in the Q direction.
[0083] The fourth determining unit 504 is used to determine a target two-dimensional correction set on the IQ plane based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range, wherein the range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional correction set.
[0084] The fifth determining unit 505 is used to determine, for the target IQ signal, the third DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the target two-dimensional correction set, and to determine the I-direction DC bias compensation value and the Q-direction DC bias compensation value corresponding to the minimum value among the multiple third DC bias values as the I-direction target DC bias compensation value and the Q-direction target DC bias compensation value, respectively.
[0085] The correction unit 506 is used to correct the DC bias of the target IQ signal based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
[0086] In one possible implementation, the first determining unit 501 is further configured to:
[0087] Based on the phase length in the I direction, determine multiple DC bias compensation values in the initial two-dimensional correction set in the I direction;
[0088] Based on the phase length in the Q direction, multiple Q-direction DC bias compensation values in the initial two-dimensional correction set are determined.
[0089] In one possible implementation, the preset DC bias compensation value in the Q direction is the median value of multiple DC bias compensation values in the initial two-dimensional correction set.
[0090] In one possible implementation, the first determining unit 501 is further configured to:
[0091] When the DC bias compensation value in the I direction is fixed as the preset DC bias compensation value in the I direction, for the target IQ signal, the fourth DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set is determined, and the Q direction DC bias compensation value corresponding to the minimum value among the multiple fourth DC bias values is determined as the second Q direction initial DC bias compensation value.
[0092] When the DC bias compensation value in the Q direction is fixed as the initial DC bias compensation value in the second Q direction, for the target IQ signal, the fifth DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set is determined, and the DC bias compensation value in the I direction corresponding to the minimum value among the multiple fifth DC bias values is determined as the initial DC bias compensation value in the second I direction.
[0093] Based on the initial DC bias compensation value in the second I direction and the initial DC bias compensation value in the second Q direction, the two-dimensional point of the second initial DC bias compensation on the IQ plane is determined.
[0094] Based on the second initial DC bias compensation two-dimensional point and the preset two-dimensional set range, a second target two-dimensional correction set is determined on the IQ plane. The second target two-dimensional correction set is smaller than the initial two-dimensional correction set.
[0095] For the target IQ signal, the sixth DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the second target two-dimensional correction set is determined, and the DC bias compensation value in the I direction and the DC bias compensation value in the Q direction corresponding to the minimum value among the multiple sixth DC bias values are determined as the second I direction target DC bias compensation value and the second Q direction target DC bias compensation value, respectively.
[0096] Correction unit 506 is used for:
[0097] If the difference between the target DC bias compensation value in the I direction and the target DC bias compensation value in the second I direction meets the difference requirement, and the difference between the target DC bias compensation value in the Q direction and the target DC bias compensation value in the second Q direction also meets the difference requirement, the DC bias of the target IQ signal is corrected based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
[0098] In one possible implementation, the first determining unit 501 is further configured to:
[0099] If the difference between the target DC bias compensation value in direction I and the target DC bias compensation value in direction II does not meet the difference requirement, or if the difference between the target DC bias compensation value in direction Q and the target DC bias compensation value in direction Q does not meet the difference requirement, the target DC bias compensation value in direction I and the target DC bias compensation value in direction Q shall be re-determined.
[0100] In one possible implementation, the preset DC bias compensation value in the I direction is the median value of multiple DC bias compensation values in the initial two-dimensional correction set.
[0101] It should be noted that the apparatus in the embodiments of this application can implement each process of the aforementioned method and achieve the same effect and function, which will not be elaborated here.
[0102] This application also provides an electronic device, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the following processing is performed:
[0103] When the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, for the target IQ signal, the first DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set in the IQ plane is determined, and the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values is determined as the initial DC bias compensation value in the I direction.
[0104] When the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, for the target IQ signal, the second DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set is determined, and the Q direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values is determined as the initial DC bias compensation value in the Q direction.
[0105] Based on the initial DC bias compensation values in the I and Q directions, the initial DC bias compensation two-dimensional points on the IQ plane are determined.
[0106] Based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range, the target two-dimensional correction set on the IQ plane is determined. The range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional correction set.
[0107] For the target IQ signal, the third DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the target two-dimensional correction set is determined, and the DC bias compensation value in the I direction and the DC bias compensation value in the Q direction corresponding to the minimum value among the multiple third DC bias values are determined as the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction, respectively.
[0108] The DC bias of the target IQ signal is corrected based on the target DC bias compensation values in the I and Q directions.
[0109] This application also provides a computer-readable storage medium storing a computer program. When a processor runs the computer program, it executes the steps of the DC bias correction method described in the above-described method embodiments. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0110] This application also provides a computer program product, including a computer program carrying program code. The program code includes instructions that can be used to execute the steps of the DC bias correction method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.
[0111] The aforementioned computer program product can be implemented through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied in a computer storage medium; in another optional embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0112] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on its differences from other embodiments. In particular, the descriptions of the apparatus, device, and computer-readable storage medium embodiments are simplified because they are substantially similar to the method embodiments; relevant details can be found in the descriptions of the method embodiments.
[0113] The apparatus, device, and computer-readable storage medium provided in the embodiments of this application correspond one-to-one with the method. Therefore, the apparatus, device, and computer-readable storage medium also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the apparatus, device, and computer-readable storage medium will not be repeated here.
[0114] While the spirit and principles of this application have been described above with reference to several specific embodiments, it should be understood that this application is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined. This application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A DC bias correction method, characterized in that, The method includes: When the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, for the target IQ signal, the first DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set in the IQ plane is determined, and the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values is determined as the initial DC bias compensation value in the I direction. When the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, for the target IQ signal, the second DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set is determined, and the Q direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values is determined as the initial DC bias compensation value in the Q direction. Based on the initial DC bias compensation value in the I direction and the initial DC bias compensation value in the Q direction, the initial DC bias compensation two-dimensional point on the IQ plane is determined; Based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range, a target two-dimensional correction set is determined on the IQ plane, wherein the range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional set. For the target IQ signal, the third DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the target two-dimensional correction set is determined, and the DC bias compensation value in the I direction and the DC bias compensation value in the Q direction corresponding to the minimum value among the multiple third DC bias values are determined as the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction, respectively. The DC bias of the target IQ signal is corrected based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
2. The method according to claim 1, characterized in that, The method further includes: Based on the phase length in the I direction, determine multiple DC bias compensation values in the initial two-dimensional correction set in the I direction; Based on the phase length in the Q direction, multiple Q-direction DC bias compensation values in the initial two-dimensional correction set are determined.
3. The method according to claim 1, characterized in that, The preset DC bias compensation value in the Q direction is the median value among the multiple DC bias compensation values in the initial two-dimensional correction set.
4. The method according to claim 1, characterized in that, The method further includes: When the DC bias compensation value in the I direction is fixed as the preset DC bias compensation value in the I direction, for the target IQ signal, the fourth DC bias value corresponding to the multiple Q direction DC bias compensation values in the initial two-dimensional correction set is determined, and the Q direction DC bias compensation value corresponding to the minimum value among the multiple fourth DC bias values is determined as the second Q direction initial DC bias compensation value. When the DC bias compensation value in the Q direction is fixed as the initial DC bias compensation value in the second Q direction, for the target IQ signal, the fifth DC bias value corresponding to the multiple I direction DC bias compensation values in the initial two-dimensional correction set is determined, and the I direction DC bias compensation value corresponding to the minimum value among the multiple fifth DC bias values is determined as the initial DC bias compensation value in the second I direction. Based on the initial DC bias compensation value in the second I direction and the initial DC bias compensation value in the second Q direction, a two-dimensional point for the second initial DC bias compensation is determined on the IQ plane; Based on the second initial DC bias compensation two-dimensional point and the preset two-dimensional set range, a second target two-dimensional correction set is determined on the IQ plane, wherein the second target two-dimensional correction set is smaller than the initial two-dimensional correction set. For the target IQ signal, the sixth DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the second target two-dimensional correction set is determined, and the I-direction DC bias compensation value and Q-direction DC bias compensation value corresponding to the minimum value among the multiple sixth DC bias values are determined as the second I-direction target DC bias compensation value and the second Q-direction target DC bias compensation value, respectively. The step of correcting the DC bias of the target IQ signal based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction includes: If the difference between the target DC bias compensation value in the I direction and the second target DC bias compensation value in the I direction meets the difference requirement, and the difference between the target DC bias compensation value in the Q direction and the second target DC bias compensation value in the Q direction meets the difference requirement, the DC bias of the target IQ signal is corrected according to the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
5. The method according to claim 4, characterized in that, The method further includes: If the difference between the target DC bias compensation value in the I direction and the second target DC bias compensation value in the I direction does not meet the difference requirement, or if the difference between the target DC bias compensation value in the Q direction and the second target DC bias compensation value in the Q direction does not meet the difference requirement, the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction shall be re-determined.
6. The method according to claim 4, characterized in that, The preset DC bias compensation value in the I direction is the median value among the multiple DC bias compensation values in the initial two-dimensional correction set.
7. A DC bias correction device, characterized in that, The device includes: The first determining unit is used to determine the first DC bias value corresponding to the multiple DC bias compensation values in the initial two-dimensional correction set on the IQ plane for the target IQ signal when the DC bias compensation value in the Q direction is fixed as the preset DC bias compensation value in the Q direction, and to determine the DC bias compensation value in the I direction corresponding to the minimum value among the multiple first DC bias values as the initial DC bias compensation value in the I direction. The second determining unit is used to determine, for the target IQ signal, the second DC bias value corresponding to the multiple Q-direction DC bias compensation values in the initial two-dimensional correction set when the DC bias compensation value in the I direction is fixed as the initial DC bias compensation value in the I direction, and to determine the Q-direction DC bias compensation value corresponding to the minimum value among the multiple second DC bias values as the initial DC bias compensation value in the Q direction. The third determining unit is used to determine the initial DC bias compensation two-dimensional point on the IQ plane based on the initial DC bias compensation value in the I direction and the initial DC bias compensation value in the Q direction. The fourth determining unit is used to determine a target two-dimensional correction set on the IQ plane based on the initial DC bias compensation two-dimensional point and the preset two-dimensional set range, wherein the range of the target two-dimensional correction set is smaller than the range of the initial two-dimensional correction set. The fifth determining unit is used to determine, for the target IQ signal, the third DC bias value corresponding to the multiple DC bias compensation two-dimensional points in the target two-dimensional correction set, and to determine the I-direction DC bias compensation value and the Q-direction DC bias compensation value corresponding to the minimum value among the multiple third DC bias values as the I-direction target DC bias compensation value and the Q-direction target DC bias compensation value, respectively. The correction unit is used to correct the DC bias of the target IQ signal based on the target DC bias compensation value in the I direction and the target DC bias compensation value in the Q direction.
8. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the DC bias correction method as described in any one of claims 1 to 6 is performed.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the DC bias correction method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, performs the DC bias correction method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Vector signal processing method and device and computer readable storage medium
CN114925315A
Orthogonal imbalance compensation method, system, device and medium
CN116244571A