Calibration method, electronic equipment and calibration device
By transmitting single tone signals of different frequencies in a zero-intermediate frequency transmitter to determine calibration parameters, the problems of carrier leakage and mirror signals are solved, high-accuracy and low-cost calibration effects are achieved, and equipment performance is optimized.
Patent Information
- Application Number
- CN202211384519.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-11-07
AI Technical Summary
The zero-intermediate frequency transmitter has problems with carrier signal leakage and mirror signal, resulting in noise signals in the transmitted signal, which reduces the performance indicators of the system. In the prior art, different calibration methods are used to suppress carrier leakage and mirror signals respectively, and there are problems such as low calibration accuracy and high calibration cost.
The single tone signals with different operating frequencies are transmitted by the transmitter, and the processing unit receives these signals and determines the target calibration parameters based on them for calibrating the carrier signal and the mirror signal before transmitting the signal. This method can not only suppress carrier leakage, but also mirrored signals, simplify calibration schemes, reduce costs, and improve calibration accuracy.
The same method not only suppresses carrier leakage in the signal, but also suppresses mirror signals, simplifies the calibration scheme, reduces calibration costs, improves calibration accuracy, improves the quality of the transmitted signal, and optimizes equipment performance indicators.
Smart Images

Figure CN115913403B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to but is not limited to the field of transmitter technology, and in particular to a calibration method, electronic equipment and calibration device. Background Art
[0002] The main task of the transmitter is to complete the modulation of the high-frequency carrier with the useful low-frequency signal, and convert it into an electromagnetic wave with a certain bandwidth at a certain center frequency, which is suitable for transmission through the antenna. With the development of radio technology, the zero intermediate frequency architecture is also widely used in various fields, such as zero intermediate frequency transmitters. Zero intermediate frequency transmitter refers to the direct modulation of the baseband signal onto the RF carrier, which reduces the use of intermediate frequency amplification, intermediate frequency filtering and other circuits. However, due to the problems of carrier signal leakage and image signal in the zero intermediate frequency transmitter, noise signals exist in the transmitted signal, thereby reducing the performance indicators of the system.
[0003] In the related art, different calibration methods are used to suppress carrier leakage and image signals respectively, but there are problems such as low calibration accuracy and high calibration cost. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a calibration method, an electronic device, and a calibration device.
[0005] The technical solution of the embodiment of the present disclosure is implemented as follows:
[0006] The embodiment of the present disclosure provides a calibration method, which is applied to an electronic device having a processing unit and a transmitter, and the method includes:
[0007] The transmitter transmits a first single-tone signal having a first operating frequency;
[0008] The processing unit receives the first single-tone signal, and determines a first target calibration parameter from at least one first calibration parameter based on the first single-tone signal; wherein the first target calibration parameter is used to calibrate a carrier signal in a signal to be transmitted before the transmitter transmits the signal;
[0009] The transmitter transmits a second single-tone signal having a second operating frequency;
[0010] The processing unit receives the second single-tone signal, and determines a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted.
[0011] An embodiment of the present disclosure provides an electronic device, the device comprising:
[0012] A transmitter, configured to transmit a first single-tone signal having a first operating frequency;
[0013] A processing unit, configured to receive the first single-tone signal, and determine a first target calibration parameter from at least one first calibration parameter based on the first single-tone signal; wherein the first target calibration parameter is used to calibrate a carrier signal in a signal to be transmitted before the transmitter transmits the signal;
[0014] The transmitter is further used to transmit a second single-tone signal having a second operating frequency; wherein the second operating frequency is less than the first operating frequency;
[0015] The processing unit is also used to receive the second single-tone signal, and determine a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted.
[0016] An embodiment of the present disclosure provides a calibration device, comprising any of the above-mentioned electronic devices.
[0017] In an embodiment of the present disclosure, a first single-tone signal having a first operating frequency is transmitted by the transmitter; the processing unit receives the first single-tone signal, and based on the first single-tone signal, determines a first target calibration parameter from at least one first calibration parameter; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal; the transmitter transmits a second single-tone signal having a second operating frequency; the processing unit receives the second single-tone signal, and based on the second single-tone signal and the first target calibration parameter, determines a second target calibration parameter from at least one second calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted. In this way, the calibration parameters used in the subsequent calibration process are determined by transmitting single-tone signals of different frequencies by the transmitter, that is, by the same method, both the carrier leakage in the signal and the image signal are suppressed, which not only simplifies the calibration scheme, but also improves the calibration accuracy while reducing the calibration cost, and also improves the quality of the transmitted signal, thereby achieving the purpose of optimizing the performance indicators of the device.
[0018] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0020] Figure 1 A schematic diagram of an implementation flow of a calibration method provided in an embodiment of the present disclosure;
[0021] Figure 2 A schematic diagram of an implementation flow of a calibration method provided in an embodiment of the present disclosure;
[0022] Figure 3 A schematic diagram of an implementation flow of a calibration method provided in an embodiment of the present disclosure;
[0023] Figure 4A A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0024] Figure 4B A schematic diagram of a process for a processing unit to obtain an envelope detection result provided by an embodiment of the present disclosure;
[0025] Figure 4C A schematic diagram of an implementation flow of a calibration method provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0027] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0028] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0030] In related technologies, a zero-IF transmitter refers to a transmitter that directly modulates the baseband signal onto a radio frequency carrier, which reduces the use of circuits such as IF amplification and IF filtering, and reduces the difficulty of filter design. Therefore, it has the advantages of light weight, small size, low power consumption and easy integration.
[0031] However, the zero-IF architecture also has unique defects, such as carrier signal leakage and mirror signal. Among them, carrier signal leakage is mainly caused by two parts. One part is due to the poor isolation between the local oscillator signal and the RF signal, so the local oscillator signal is easily output from the RF port, causing local oscillator signal leakage; the other part is due to the mismatch of the differential end, which causes the DC amount to be superimposed on the baseband signal, and after the local oscillator mixing, it is output from the RF port, causing DC bias leakage. The mirror signal is the amplitude and phase imbalance of the I / Q orthogonal two paths caused by the difference in hardware circuits.
[0032] Due to the presence of carrier signal leakage and image signals, noise signals exist in the transmitted signal, which reduces the performance indicators of the system.
[0033] At present, the methods for suppressing local oscillator signal leakage mainly include: Method 1, adding a comparator in the transmission link, and pre-adding a DC bias to the I / Q branch through the comparison method to generate an equal-amplitude and inverted carrier signal to offset the local oscillator signal leakage. However, this method can only calibrate the leakage caused by the DC bias, and has a poor effect on the local oscillator signal leakage caused by poor isolation, resulting in poor calibration effect. Method 2, production test calibration, that is, testing the leakage component of the local oscillator signal before the product leaves the factory, and then adjusting the DC bias on the I / Q branch until the local oscillator signal leakage index is qualified. However, this method has a high calibration cost.
[0034] The method of suppressing the image signal mainly includes: by testing the image signal size of the output signal, continuously adjusting the amplitude and phase parameters of the I / Q orthogonal two-way, and minimizing the amplitude and phase imbalance of the I / Q orthogonal two-way caused by the hardware circuit, until the image suppression index is qualified.
[0035] It can be seen from the above that adopting different calibration methods to suppress carrier leakage and image signals respectively not only increases the calibration cost but also has low calibration accuracy.
[0036] The calibration method provided in the embodiment of the present disclosure can be performed by an electronic device, wherein the electronic device can be a radio frequency device, a laptop computer, a tablet computer, a desktop computer, a set-top box, a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other types of terminals, and can also be implemented as a server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0037] Below, the technical solutions in the embodiments of the present disclosure will be clearly and completely described in conjunction with the drawings in the embodiments of the present disclosure.
[0038] Figure 1 A schematic diagram of an implementation flow of a calibration method provided in an embodiment of the present disclosure is provided. The calibration method is applied to an electronic device having a processing unit and a transmitter, such as Figure 1 As shown, the method includes steps S11 to S14, wherein:
[0039] Step S11: The transmitter transmits a first single-tone signal having a first operating frequency.
[0040] Here, the single tone signal represents a sinusoidal signal of a single frequency. The first operating frequency is within the operating bandwidth of the electronic device. The operating bandwidth of the electronic device is the bandwidth of a baseband filter (BBF).
[0041] Step S12: The processing unit receives the first single-tone signal, and based on the first single-tone signal, determines a first target calibration parameter from at least one first calibration parameter; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal.
[0042] Here, the processing unit may be any unit capable of implementing signal processing. Among them, signal processing may include but is not limited to analog-to-digital conversion (ADC), digital-to-analog conversion (DAC), frequency conversion, mixing, filtering, amplification, etc. During implementation, those skilled in the art may independently select a suitable processing unit according to actual needs, and the embodiments of the present disclosure are not limited thereto.
[0043] The at least one first calibration parameter may be a control word corresponding to a first register, wherein the first register is electrically connected to the processing unit. In some embodiments, the number of the at least one first calibration parameter is related to the number of bits of the register. For example, if the register is eight bits, the number of the at least one first calibration parameter may be no greater than 256 (2 8 ).
[0044] In some embodiments, each first calibration parameter includes at least one calibration value. In implementation, the control word output by the first register can be converted into a corresponding calibration value according to a pre-established conversion relationship, wherein the conversion relationship represents a conversion relationship between the control word and the calibration value.
[0045] In some implementations, the processing unit converts the first target calibration parameter into a first control word of a first register, and outputs the first control word to the first register, so that before transmitting the signal, the first register outputs the first control word to calibrate the carrier signal in the signal to be transmitted.
[0046] Step S13: The transmitter transmits a second single-tone signal having a second operating frequency.
[0047] Here, the second operating frequency is less than the first operating frequency and is within the operating bandwidth of the electronic device.
[0048] Step S14: The processing unit receives the second single-tone signal, and determines a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted.
[0049] Here, at least one second calibration parameter may be a control word corresponding to a second register, wherein the second register is electrically connected to the processing unit. In some embodiments, the number of at least one second calibration parameter is related to the number of bits of the second register. For example, if the second register is 4 bits, the number of at least one second calibration parameter may be no greater than 16 (2 4 ).
[0050] In some embodiments, each second calibration parameter includes at least one calibration value. In implementation, the control word output by the second register can be converted into a corresponding calibration value according to a pre-established conversion relationship, wherein the conversion relationship represents a conversion relationship between the control word and the calibration value.
[0051] In some embodiments, the processing unit converts the second target calibration parameter into a second control word of a second register and outputs the second control word to the second register, so that before transmitting the signal, the second register outputs the second control word to calibrate the mirror signal in the signal to be transmitted.
[0052] In an embodiment of the present disclosure, a first single-tone signal having a first operating frequency is transmitted by the transmitter; the processing unit receives the first single-tone signal, and based on the first single-tone signal, determines a first target calibration parameter from at least one first calibration parameter; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal; the transmitter transmits a second single-tone signal having a second operating frequency; the processing unit receives the second single-tone signal, and based on the second single-tone signal and the first target calibration parameter, determines a second target calibration parameter from at least one second calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted. In this way, the calibration parameters used in the subsequent calibration process are determined by transmitting single-tone signals of different frequencies by the transmitter, that is, by the same method, both the carrier leakage in the signal and the image signal are suppressed, which not only simplifies the calibration scheme, but also improves the calibration accuracy while reducing the calibration cost, and also improves the quality of the transmitted signal, thereby achieving the purpose of optimizing the performance indicators of the device.
[0053] In some embodiments, before step S11, the method further includes step S10, wherein:
[0054] Step S10: In response to receiving the calibration instruction, the processing unit adjusts the state value of the transmitter to a transmitting state.
[0055] Here, the state value of the transmitter may include but is not limited to the transmitting state, the standby state, the power-off state, etc. The adjustment method may include but is not limited to changing from other states to the transmitting state, or maintaining the transmitting state, etc. For example, changing from the standby state to the transmitting state.
[0056] The generation method of the calibration instruction may include but is not limited to user operation generation, automatic generation by the electronic device, receiving instructions sent by other devices, etc. Among them, user operations may include but are not limited to gestures, voice, body sensation, etc. During implementation, those skilled in the art may independently determine the generation method of the display instruction according to actual needs, and the embodiments of the present disclosure are not limited. For example, the user presses the calibration button in the electronic device to generate the calibration instruction. For another example, the electronic device generates the calibration instruction after power-on, reset or reconfiguration. For another example, the electronic device receives instructions sent by other devices and uses the instruction as the calibration instruction.
[0057] In the disclosed embodiment, the processing unit adjusts the state value of the transmitter to the transmitting state in response to receiving the calibration instruction. In this way, the device can be easily and conveniently powered on for self-calibration or autonomous recalibration, which not only improves the intelligence of the device, but also enhances the adaptability of the device to the working environment while improving the user experience.
[0058] In some embodiments, the method further comprises step S15, wherein:
[0059] Step S15: The transmitter generates the first single-tone signal and the second single-tone signal respectively based on the working bandwidth of the electronic device.
[0060] Here, since the frequency of the image signal can be twice the frequency of the single-tone signal, the frequency of the carrier signal is greater than the frequency of the single-tone signal and less than the maximum operating frequency of the device (the maximum value of the bandwidth), therefore, by setting the operating frequency of the first single-tone signal to the first operating frequency, the frequency of the carrier signal is within the operating bandwidth, and the frequency of the image signal is outside the operating bandwidth, so that only the carrier leakage is calibrated; by setting the operating frequency of the second single-tone signal to the second operating frequency, the frequency of the image signal is within the operating bandwidth of the electronic device, so that the image signal in the calibrated signal is calibrated. For example, assuming that the operating bandwidth is 10MHz (megahertz), at this time, the frequency of the single-tone signal is set to be greater than 5MHz (corresponding to the above-mentioned first operating frequency), then the image signal is not within the working bandwidth, and the frequency of the single-tone signal is set to be less than 5MHz (corresponding to the above-mentioned second operating frequency), then the image signal is within the working bandwidth.
[0061] In the disclosed embodiment, the transmitter generates the first single-tone signal and the second single-tone signal respectively based on the working bandwidth of the electronic device. In this way, the transmitter generates single-tone signals of different frequencies, and can only suppress carrier leakage and only suppress image signals, thereby simplifying the calibration scheme, reducing the calibration cost and improving the accuracy of the calibration.
[0062] Figure 2 A schematic diagram of an implementation flow of a calibration method provided in an embodiment of the present disclosure is provided. The calibration method is applied to an electronic device having a processing unit and a transmitter, such as Figure 2 As shown, the method includes steps S21 to S27, wherein:
[0063] Step S21: The transmitter transmits a first single-tone signal having a first operating frequency.
[0064] Here, the above step S21 corresponds to the above step S11, and when implementing it, reference may be made to the specific implementation of the above step S11.
[0065] Step S22: The processing unit receives the first single-tone signal, and generates a first baseband signal based on the first single-tone signal.
[0066] Here, the first single tone signal is preprocessed to obtain the first baseband signal. The preprocessing may include but is not limited to DAC, orthogonal modulation, frequency conversion, ADC, etc. For example, the processing unit includes a radio frequency transmitting unit, a radio frequency receiving unit and a loopback switch, wherein the radio frequency transmitting unit includes a DAC and an orthogonal modulation unit, and the radio frequency receiving unit includes an ADC and a frequency conversion unit. During implementation, the radio frequency transmitting unit converts the first single tone signal into an analog signal through the DAC, and converts the analog signal into a radio frequency signal using the orthogonal modulation unit; turns off the receiving switch of the radio frequency receiving unit of the device, and loops the radio frequency signal back to the radio frequency receiving unit through the loopback switch in the device; the radio frequency receiving unit converts the radio frequency signal into an intermediate frequency signal using the frequency conversion unit, and converts the intermediate frequency signal into a digital signal through the ADC, and uses the digital signal as the first baseband signal.
[0067] Step S23: The processing unit determines a first initial calibration parameter from at least one first calibration parameter.
[0068] Here, the first initial calibration parameter can be determined based on a preset rule. The preset rule may include but is not limited to random, custom, default value, frequency of use, user preference, user operation, etc. The default value may include but is not limited to a value after multiple tests, an empirical value, a value related to the model / batch of the product, etc. During implementation, those skilled in the art can independently set the preset rules according to actual needs, and the embodiments of the present disclosure are not limited thereto.
[0069] For example, a default value is used as the first initial calibration parameter. For example, the first initial calibration parameter may be at least one value between 0 and 255. In this way, according to the experimental value / empirical value, the range can be narrowed, the number of calculations can be reduced, and thus the calibration time can be shortened.
[0070] For another example, the user specifies an endpoint value as the first initial calibration parameter.
[0071] For example, the first initial calibration parameter can be determined based on the attribute information of the user operation. Among them, the attribute information may include but is not limited to the type, speed, position, duration, number of times, strength, etc. of the operation. During implementation, those skilled in the art can independently set the relationship between the attribute information of the operation and the first initial calibration parameter according to actual needs, and the embodiments of the present disclosure are not limited. For example, when the user clicks a button, the first calibration parameter and the last calibration parameter are used as the first initial calibration parameter; when the user double-clicks the button, two calibration parameters are randomly selected as the first initial calibration parameters.
[0072] In some embodiments, the first initial calibration parameter includes a first sub-calibration parameter and a second sub-calibration parameter. The first sub-calibration parameter is different from the second sub-calibration parameter, and the first sub-calibration parameter and the second sub-calibration parameter are both one of the at least one first calibration parameter. For example, if the at least one first calibration parameter includes 0 to 255, then the first sub-calibration parameter may be 0, and the second sub-calibration parameter may be 255. For another example, the first sub-calibration parameter is 50, and the second sub-calibration parameter is 150.
[0073] Step S24: The processing unit obtains a first envelope detection result based on the first initial calibration parameter and the first baseband signal.
[0074] Here, the first baseband signal is divided into an I-channel baseband signal and a Q-channel baseband signal, the first register is controlled to output a control word corresponding to the first initial calibration parameter, the I / Q-channel baseband signal is processed to obtain an output signal, and the output signal is looped back to the receiver, and the output signal is pre-processed by the adaptive envelope detection unit in the processing unit to obtain a first envelope detection result, wherein the signal processing may include but is not limited to DAC, BBF, mixing, DA (Drive Amplifier), PA (Power Amplifier), etc. Preprocessing may include but is not limited to envelope detection, low-pass filtering, filtering DC, digital processing, etc. Digital processing may include but is not limited to square, accumulation, averaging, etc.
[0075] In some embodiments, the first envelope detection result is related to the amplitude, DC offset, and carrier leakage of the I / Q roadband signal. The first envelope detection result includes a first detection value and a second detection value. The first detection value is obtained based on a smaller calibration parameter in the first initial calibration parameter, and the second detection value is obtained based on a larger calibration parameter in the first calibration parameter.
[0076] Step S25: The processing unit obtains a first target calibration parameter based on the first envelope detection result; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal.
[0077] Here, the first target calibration parameter may include but is not limited to a calibration parameter in the first initial calibration parameter, other calibration parameters, etc. In some embodiments, the first envelope detection result may be compared with a preset value, and the first target calibration parameter may be obtained based on the comparison result. For example, when the first detection value and the second detection value in the first envelope detection result are both close to the preset value, the calibration parameter corresponding to the first detection value or the second detection value is used as the first target calibration parameter; when the first detection value and the second detection value in the first envelope detection result are less than the preset value, or greater than the preset value, a new first initial calibration parameter is re-determined, and a new first envelope detection result is obtained based on the new first initial calibration parameter and the first baseband signal, and the first target calibration parameter is obtained based on the new first envelope detection result.
[0078] In some embodiments, step S25 includes step S251 and / or step S252, wherein:
[0079] Step S251: When the first envelope detection result satisfies a first preset condition, use the first initial calibration parameter as the first target calibration parameter.
[0080] Here, the first preset condition may include but is not limited to a preset value, a minimum value, an approximate preset value, an approximate minimum value, etc. Among them, the preset value may be an average value, an empirical value, etc. of multiple target calibration parameters. During implementation, those skilled in the art may independently set the first preset condition according to actual needs, and the embodiments of the present disclosure are not limited thereto.
[0081] For example, when the first detection value and the second detection value in the first envelope detection result are both equal to or approximately equal to the preset value, the calibration parameter corresponding to the first detection value or the second detection value is used as the first target calibration parameter, or the calibration parameter corresponding to the smaller detection value between the first detection value and the second detection value is used as the first target calibration parameter.
[0082] Step S252: When the first envelope detection result does not meet the first preset condition, based on the first envelope detection result, the first initial calibration parameter is updated at least once to obtain the updated first initial calibration parameter; based on the updated first initial calibration parameter and the first baseband signal, an updated first envelope detection result is obtained, until the updated first envelope detection result meets the first preset condition, and the updated first initial calibration parameter is used as the first target calibration parameter.
[0083] Here, the updating method may include but is not limited to replacing a calibration parameter in the first initial calibration parameter, replacing the first initial calibration parameter with other calibration parameters, etc. For example, when the first detection value or the second detection value is less than / greater than the preset value, the calibration parameter corresponding to the first detection value or the second detection value is kept unchanged, and a new calibration parameter is re-determined as the calibration parameter corresponding to the second detection value / the first detection value. For example, the first initial calibration parameter includes a first sub-calibration parameter 50 and a second sub-calibration parameter 150. If the first detection value corresponding to the first sub-calibration parameter 50 is 40, the second detection value corresponding to the second sub-calibration parameter 150 is 80, and the preset value is 50, then the first sub-calibration parameter 50 is kept unchanged, and the second sub-calibration parameter is reconfirmed.
[0084] In some embodiments, the first initial calibration parameter includes a first sub-calibration parameter and a second sub-calibration parameter, and the first envelope detection result includes a first detection value and a second detection value; and the step of “updating the first initial calibration parameter at least once based on the first envelope detection result” in step S252 includes steps S2521 to S2523, wherein:
[0085] Step S2521: Obtain a third sub-calibration parameter based on the first sub-calibration parameter and the second sub-calibration parameter.
[0086] Here, the method of obtaining the third sub-calibration parameter may include but is not limited to the first sub-calibration parameter, the second sub-calibration parameter, the difference / average / mean square error / variance between the first sub-calibration parameter and the second sub-calibration parameter, the average / mean square error / variance after weighting the first sub-calibration parameter and the second sub-calibration parameter, etc. During implementation, those skilled in the art may independently determine the method of obtaining the third sub-calibration parameter according to actual needs, and the present disclosure does not limit it.
[0087] In some embodiments, the third sub-calibration parameter may be an average of the first sub-calibration parameter and the second sub-calibration parameter. For example, if the first sub-calibration parameter is 0 and the second sub-calibration parameter is 255, then 128 may be used as the third sub-calibration parameter.
[0088] Step S2522: When the first detection value and the second detection value satisfy a second preset condition, use the third sub-calibration parameter as the second sub-calibration parameter.
[0089] Here, the second preset condition may include but is not limited to the first detection value being less than the second detection value, etc. Then, when the first detection value is less than the second detection value, the first sub-calibration parameter corresponding to the first detection value is kept unchanged, and the second sub-calibration parameter corresponding to the second detection value is replaced by the third sub-calibration parameter.
[0090] Step S2523: When the first detection value and the second detection value do not satisfy the second preset condition, use the third sub-calibration parameter as the first sub-calibration parameter.
[0091] Here, when the first detection value is greater than the second detection value, the second sub-calibration parameter corresponding to the second detection value is kept unchanged, and the first sub-calibration parameter corresponding to the first detection value is replaced by the third sub-calibration parameter.
[0092] Step S26: The transmitter transmits a second single-tone signal having a second operating frequency.
[0093] Step S27, the processing unit receives the second single-tone signal, and determines a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted.
[0094] Here, the above steps S26 to S27 correspond to the above steps S13 to S14 respectively. When implementing, the specific implementation methods of the above steps S13 to S14 can be referred to.
[0095] In the embodiment of the present disclosure, the transmitter transmits a first single-tone signal having a first operating frequency; the processing unit receives the first single-tone signal and generates a first baseband signal based on the first single-tone signal; the processing unit determines a first initial calibration parameter from at least one first calibration parameter; the processing unit obtains a first envelope detection result based on the first initial calibration parameter and the first baseband signal; the processing unit obtains a first target calibration parameter based on the first envelope detection result; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal; the transmitter transmits a second single-tone signal having a second operating frequency; the processing unit receives the second single-tone signal and determines a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted. In this way, by finding the best first target calibration parameter through the method of adaptive envelope detection, the accuracy of the first target calibration parameter can be improved, thereby improving the accuracy of calibration, and further shortening the calibration time and improving the calibration efficiency.
[0096] In some embodiments, the method further comprises step S28, wherein:
[0097] Step S28: When the processing unit detects that the first envelope detection result does not satisfy a third preset condition, the processing unit adaptively adjusts a corresponding gain parameter so that the first envelope detection result satisfies the third preset condition.
[0098] Here, the third preset condition may include but is not limited to being greater than a preset minimum value and less than a preset maximum value, etc. Since when the first envelope detection result is less than the preset minimum value, a slight change or small interference on the electronic device will affect the value of the new first initial calibration parameter, and if the first envelope detection result is greater than the preset maximum value, it will cause saturation of the receiving loop in the loopback link. Both of these situations will affect the correctness of the calibration result, so that the best first target calibration parameter cannot be obtained, and may even lead to calibration failure.
[0099] In some embodiments, at the beginning of calibration, the gain parameter may be set to a smaller value to reduce the possibility that the first envelope detection result is too large. During the calibration process, if the first envelope detection result is too small (less than a preset minimum value), the gain parameter may be adaptively increased so that the first envelope detection result is greater than the preset minimum value; if the first envelope detection result is too large (greater than a preset maximum value), the gain parameter may be adaptively decreased so that the first envelope detection result is less than the preset maximum value.
[0100] In the embodiment of the present disclosure, when the processing unit detects that the first envelope detection result does not meet the third preset condition, the corresponding gain parameter is adaptively adjusted so that the first envelope detection result meets the third preset condition. In this way, by adaptively adjusting the gain parameter, the first envelope detection result can be adjusted to reduce the possibility that the accuracy of the calibration result is affected by the first envelope detection result being too small or too large, thereby obtaining the best first target calibration parameter and improving the efficiency of calibration.
[0101] Figure 3 A schematic diagram of an implementation flow of a calibration method provided in an embodiment of the present disclosure is provided. The calibration method is applied to an electronic device having a processing unit and a transmitter, such as Figure 3 As shown, the method includes steps S31 to S37, wherein:
[0102] Step S31: The transmitter transmits a first single-tone signal having a first operating frequency.
[0103] Step S32, the processing unit receives the first single-tone signal, and based on the first single-tone signal, determines a first target calibration parameter from at least one first calibration parameter; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal.
[0104] Step S33: The transmitter transmits a second single-tone signal having a second operating frequency.
[0105] Here, the above steps S31 to S33 correspond to the above steps S11 to S13 respectively. When implementing, the specific implementation methods of the above steps S11 to S13 can be referred to.
[0106] Step S34: The processing unit receives the second single-tone signal, and generates a second baseband signal based on the second single-tone signal.
[0107] Here, the method of generating the second baseband signal is similar to the method of generating the first baseband signal in the aforementioned step S22. During implementation, reference may be made to the specific implementation of the aforementioned step S22.
[0108] Step S35: The processing unit determines a second initial calibration parameter from at least one second calibration parameter.
[0109] Here, the method of determining the second initial calibration parameters is similar to the method of determining the first initial calibration parameters in the aforementioned step S23. During implementation, reference may be made to the specific implementation of the aforementioned step S23.
[0110] In some embodiments, the second initial calibration parameter includes a fourth sub-calibration parameter and a fifth sub-calibration parameter. The fourth sub-calibration parameter is different from the fifth sub-calibration parameter, and the fourth sub-calibration parameter and the fifth sub-calibration parameter are both one of the at least one second calibration parameter. For example, if the at least one second calibration parameter includes 0 to 255, then the fourth sub-calibration parameter may be 0, and the fifth sub-calibration parameter may be 255. For another example, the fourth sub-calibration parameter is 60, and the fifth sub-calibration parameter is 130.
[0111] Step S36: The processing unit obtains a second envelope detection result based on the second initial calibration parameter, the second baseband signal and the first target calibration parameter.
[0112] Here, the method of obtaining the second envelope detection result is similar to the method of obtaining the first envelope detection result in the aforementioned step S24. During implementation, reference may be made to the specific implementation of the aforementioned step S24.
[0113] In some embodiments, the second envelope detection result includes a third detection value and a fourth detection value, wherein the third detection value is obtained based on a smaller calibration parameter in the second initial calibration parameters, and the fourth detection value is obtained based on a larger calibration parameter in the second calibration parameters.
[0114] Step S37: The processing unit obtains a second target calibration parameter based on the second envelope detection result; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted.
[0115] Here, the second target calibration parameter may include but is not limited to a calibration parameter in the second initial calibration parameter, other calibration parameters, etc. In some embodiments, the second envelope detection result may be compared with a preset value, and the second target calibration parameter may be obtained based on the comparison result. For example, when the third detection value and the fourth detection value in the second envelope detection result are both close to the preset value, the calibration parameter corresponding to the third detection value or the fourth detection value is used as the second target calibration parameter; when the third detection value and the fourth detection value in the second envelope detection result are less than the preset value, or greater than the preset value, a new second initial calibration parameter is re-determined, and a new second envelope detection result is obtained based on the new second initial calibration parameter and the second baseband signal, and the second target calibration parameter is obtained based on the new second envelope detection result.
[0116] In some embodiments, step S37 includes step S371 and / or step S372, wherein:
[0117] Step S371: When the second envelope detection result satisfies a first preset condition, use the second initial calibration parameter as the second target calibration parameter.
[0118] Here, the first preset condition may include but is not limited to a preset value, a minimum value, an approximate preset value, an approximate minimum value, etc. Among them, the preset value may be an average value, an empirical value, etc. of multiple target calibration parameters. During implementation, those skilled in the art may independently set the first preset condition according to actual needs, and the embodiments of the present disclosure are not limited thereto.
[0119] For example, when the third detection value and the fourth detection value in the second envelope detection result are both equal to or approximately equal to the preset value, the calibration parameter corresponding to the third detection value or the fourth detection value is used as the second target calibration parameter, or the calibration parameter corresponding to the smaller detection value between the third detection value and the fourth detection value is used as the second target calibration parameter.
[0120] Step S372: When the second envelope detection result does not meet the first preset condition, based on the second envelope detection result, update the second initial calibration parameter at least once to obtain the updated second initial calibration parameter; based on the updated second initial calibration parameter, the second baseband signal and the first target calibration parameter, obtain the updated second envelope detection result, until the updated second envelope detection result meets the first preset condition, and use the updated second initial calibration parameter as the second target calibration parameter.
[0121] Here, the updating method may include but is not limited to replacing a calibration parameter in the second initial calibration parameter, replacing the second initial calibration parameter with other calibration parameters, etc. For example, when the third detection value or the fourth detection value is less than / greater than the preset value, the calibration parameter corresponding to the third detection value or the fourth detection value is kept unchanged, and a new calibration parameter is re-determined as the calibration parameter corresponding to the fourth detection value / the third detection value. For example, the second initial calibration parameter includes a fourth sub-calibration parameter 50 and a fifth sub-calibration parameter 130. If the third detection value corresponding to the fourth sub-calibration parameter 50 is 40, the second detection value corresponding to the fifth sub-calibration parameter 130 is 70, and the preset value is 52, then the fourth sub-calibration parameter 50 is kept unchanged, and the fifth sub-calibration parameter is reconfirmed.
[0122] In some embodiments, the second initial calibration parameters include a fourth sub-calibration parameter and a fifth sub-calibration parameter, and the second envelope detection result includes a third detection value and a fourth detection value; and the step S372 of “updating the second initial calibration parameters at least once based on the second envelope detection result” includes steps S3721 to S3723, wherein:
[0123] Step S3721: Obtain a sixth sub-calibration parameter based on the fourth sub-calibration parameter and the fifth sub-calibration parameter.
[0124] Here, the method of obtaining the sixth sub-calibration parameter is similar to the method of obtaining the third sub-calibration parameter in the aforementioned step S2521. During implementation, reference may be made to the specific implementation of the aforementioned step S2521.
[0125] Step S3722: When the third detection value and the fourth detection value satisfy a second preset condition, use the fifth sub-calibration parameter as the fourth sub-calibration parameter, and use the sixth sub-calibration parameter as the fifth sub-calibration parameter.
[0126] Here, the second preset condition may include but is not limited to the third detection value being less than the fourth detection value, etc. Then, when the third detection value is less than the fourth detection value, the fourth sub-calibration parameter corresponding to the third detection value is kept unchanged, and the fifth sub-calibration parameter corresponding to the fourth detection value is replaced by the sixth sub-calibration parameter.
[0127] Step S3723: When the third detection value and the fourth detection value do not satisfy the second preset condition, use the sixth sub-calibration parameter as the fourth sub-calibration parameter.
[0128] Here, when the third detection value is greater than the fourth detection value, the fifth sub-calibration parameter corresponding to the fourth detection value is kept unchanged, and the fourth sub-calibration parameter corresponding to the third detection value is replaced by the sixth sub-calibration parameter.
[0129] In an embodiment of the present disclosure, a first single-tone signal having a first operating frequency is transmitted by the transmitter; the processing unit receives the first single-tone signal, and based on the first single-tone signal, determines a first target calibration parameter from at least one first calibration parameter; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal; the transmitter transmits a second single-tone signal having a second operating frequency; the processing unit receives the second single-tone signal, and generates a second baseband signal based on the second single-tone signal; the processing unit determines a second initial calibration parameter from at least one second calibration parameter; the processing unit obtains a second envelope detection result based on the second initial calibration parameter, the second baseband signal and the first target calibration parameter; the processing unit obtains a second target calibration parameter based on the second envelope detection result; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted. In this way, by finding the best second target calibration parameter through the method of adaptive envelope detection, the accuracy of the second target calibration parameter can be improved, thereby improving the accuracy of calibration, and further shortening the calibration time and improving the calibration efficiency.
[0130] In some embodiments, the method further comprises step S38, wherein:
[0131] Step S38: When the processing unit detects that the second envelope detection result does not satisfy a third preset condition, the processing unit adaptively adjusts a corresponding gain parameter so that the second envelope detection result satisfies the third preset condition.
[0132] Here, the way of adjusting the gain parameter is similar to the way of adjusting the gain in the aforementioned step S28. During implementation, reference may be made to the specific implementation in the aforementioned step S28.
[0133] In the embodiment of the present disclosure, when the processing unit detects that the second envelope detection result does not meet the third preset condition, the corresponding gain parameter is adaptively adjusted so that the second envelope detection result meets the third preset condition. In this way, by adaptively adjusting the gain parameter, the second envelope detection result can be adjusted to reduce the possibility that the accuracy of the calibration result is affected by the second envelope detection result being too small or too large, thereby obtaining the best second target calibration parameter and improving the efficiency of calibration.
[0134] Figure 4A A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure is shown in FIG. Figure 4A As shown, the electronic device includes a transmitter 41 and a processing unit 42, wherein:
[0135] The transmitter 41 is used to transmit a first single-tone signal having a first operating frequency;
[0136] The processing unit 42 is used to receive the first single-tone signal, and determine a first target calibration parameter from at least one first calibration parameter based on the first single-tone signal; wherein the first target calibration parameter is used to calibrate the carrier signal in the signal to be transmitted before the transmitter transmits the signal;
[0137] The transmitter 41 is further used to transmit a second single tone signal having a second operating frequency;
[0138] The processing unit 42 is also used to receive the second single-tone signal, and determine a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the mirror signal in the calibrated signal to be transmitted.
[0139] Here, the processing unit may be any unit capable of implementing signal processing. Among them, the signal processing may include but is not limited to ADC, DAC, frequency conversion, mixing, filtering, amplification, etc. During implementation, those skilled in the art may independently select a suitable processing unit according to actual needs, and the embodiments of the present disclosure are not limited thereto.
[0140] At least one first calibration parameter may be a control word corresponding to the first register. In some embodiments, each first calibration parameter includes at least one calibration value. During implementation, the control word output by the first register may be converted to a corresponding calibration value according to a pre-established conversion relationship, wherein the conversion relationship represents a conversion relationship between the control word and the calibration value.
[0141] At least one second calibration parameter may be a control word corresponding to the second register. In some embodiments, each second calibration parameter includes at least one calibration value. During implementation, the control word output by the second register may be converted into a corresponding calibration value according to a pre-established conversion relationship.
[0142] In some implementations, the processing unit 42 is further configured to: in response to receiving a calibration instruction, adjust the state value of the transmitter to a transmitting state.
[0143] Here, the state value of the transmitter may include but is not limited to the transmitting state, the standby state, the power-off state, etc. The generation method of the calibration instruction may include but is not limited to the generation by user operation, the automatic generation by the electronic device, the reception of instructions sent by other devices, etc. For example, the user presses the calibration button in the electronic device to generate the calibration instruction. For another example, the electronic device generates the calibration instruction after power-on, reset or reconfiguration. In this way, the device can be easily and conveniently powered on for self-calibration or autonomous recalibration, which not only improves the intelligence of the device, but also enhances the adaptability of the device to the working environment while improving the user experience.
[0144] In some embodiments, the electronic device also includes a first register electrically connected to the processing unit 42, and the processing unit 42 includes a processing module and an envelope detection module connected in sequence; wherein: the processing module is used to determine a first initial calibration parameter from at least one first calibration parameter stored in the first register; based on the first single tone signal, a first baseband signal is generated; based on the first initial calibration parameter and the first baseband signal, a first output signal is generated; the envelope detection module is used to perform envelope detection processing on the first output signal to obtain a first envelope detection result; the processing module is also used to obtain the first target calibration parameter based on the first envelope detection result.
[0145] Here, the process of obtaining the first target calibration parameter corresponds to the process of the aforementioned steps S22 to S25. During implementation, reference may be made to the specific implementation of the aforementioned steps S22 to S25.
[0146] The envelope detection process may include but is not limited to envelope detection, low-pass filtering, filtering out DC terms, squaring, accumulation, averaging, etc. During implementation, those skilled in the art may independently determine the envelope detection process method according to actual needs, and the embodiments of the present disclosure are not limited thereto.
[0147] In some embodiments, the device also includes a second register electrically connected to the processing unit 42; the processing module is also used to determine a second initial calibration parameter from at least one second calibration parameter stored in the second register; based on the second single-tone signal, a second baseband signal is generated; based on the second initial calibration parameter and the second baseband signal, a second output signal of the transmitter is generated; the envelope detection module is also used to perform envelope detection processing on the second output signal to obtain a second envelope detection result; the processing module is also used to obtain the second target calibration parameter based on the second envelope detection result.
[0148] Here, the process of obtaining the second target calibration parameter corresponds to the process of the aforementioned steps S34 to S37. During implementation, reference may be made to the specific implementation of the aforementioned steps S34 to S37.
[0149] In some embodiments, the processing unit is also used for at least one of the following: converting the first target calibration parameter into a first control word of a first register, and outputting the first control word to the first register; converting the second target calibration parameter into a second control word of a second register, and outputting the second control word to the second register.
[0150] Figure 4B A schematic diagram of a process of obtaining an envelope detection result by a processing unit provided in an embodiment of the present disclosure, such as Figure 4B As shown, the process includes: a receiving transmitter 41 transmits a single-tone signal y(t); the single-tone signal y(t) is preprocessed to obtain a baseband signal z(t); the baseband signal z(t) is divided into an I / Q baseband signal, which is the I / Q baseband signal plus a calibration parameter output by a first register and a second register; after being processed by DAC and BBF, it is multiplied with an AC signal u(t) for frequency conversion; the signals on the I / Q paths are combined, and the combined signal is processed by DA and PA to obtain an output signal x(t) of the transmitter; the output signal x(t) is received by a feedback receiver 44, and an adaptive envelope detection module 45 is used to perform envelope detection on the output signal x(t) to obtain a corresponding envelope detection result b.
[0151] Assuming that the gain of DA and PA is 1 and the phase is 0, the output signal x(t) of the transmitter can be expressed by the following formula (1-1):
[0152]
[0153] Among them, x I (t) and x Q (t) represent the transmitted signals of I and Q paths respectively, k dRepresents the amplitude of the I and Q channel transmission signals, α and β represent the gains of the I and Q channels respectively. and represents the phase of I and Q paths, δ I andδ Q Represent the DC offset of the analog baseband, ω c represents the LO signal frequency, γ and θ represent the amplitude and phase of the directly leaked LO signal, respectively. I (t) and x Q (t) can be defined by the following formula (1-2):
[0154] x I (t) = cosωt, x Q (t) = sinωt (1-2);
[0155] Wherein, ω represents the frequency of the single tone signal transmitted by the I and Q paths.
[0156] If we only consider the carrier signal leakage and ignore the IQ imbalance problem, then α=β=1. Then the transmitter output signal x(t) in the above formula (1-1) can be expressed by the following formula (1-3):
[0157] x(t)=(k d ·x I (t)+δ I )cos(ω c t)+(k d ·x Q (t)+v Q )sin(ω c t)+γcos(ω c t+θ) (1-3);
[0158] After the transmitter output signal x(t) in formula (1-3) is processed by envelope detection, low-pass filtering and DC filtering, the output signal x(t) can be expressed by formula (1-4):
[0159] x(t)=k d (δ I +γcosθ)cosωt+k d (δ Q -γsinθ)sinωt (1-4);
[0160] The output signal x(t) in formula (1-4) is squared, accumulated and averaged by the digital processing part to obtain the first envelope detection result b1, which can be expressed by the following formula (1-5):
[0161] b1=(k d 2 / 2)×[(δ I +γcosθ) 2 +(δ Q -γsinθ) 2 ] (1-5);
[0162] According to formula (1-5), the first envelope detection result b1 and the I-channel and Q-channel signal transmission signal amplitude (k d ), DC offset (δ I and δ Q ) and direct carrier leakage (γ and θ).
[0163] If it is assumed that the carrier leakage has been calibrated and only the IQ imbalance problem is considered, the transmitter output signal x(t) can be expressed by the following formula (1-6), where:
[0164]
[0165] After the transmitter output signal x(t) in formula (1-6) is processed by envelope detection, low-pass filtering and DC filtering, the output signal x(t) can be expressed by formula (1-7):
[0166]
[0167] The output signal x(t) in formula (1-7) is squared, accumulated and averaged by the digital processing part to obtain the second envelope detection result b2, which can be expressed by the following formula (1-8):
[0168]
[0169] According to the above formula (1-8), the second envelope detection result b2 is related to the I-channel and Q-channel signal transmission signal amplitude (k d ), the amplitude of I and Q paths (α and β), and the phase of I and Q paths ( and ) mismatch.
[0170] It can be seen that selecting a suitable working frequency of a single-tone signal can suppress both carrier leakage and image signal. In implementation, a suitable single-tone signal with a first working frequency can be selected according to the working bandwidth of the device, so that the local oscillator signal is within the working bandwidth and the image signal is outside the working bandwidth. At this time, only the carrier leakage needs to be considered, and the I / Q imbalance problem does not need to be considered; after the carrier leakage calibration is completed, a suitable single-tone signal with a second working frequency is selected, so that the image signal is within the working bandwidth. Since the carrier leakage has been calibrated, the influence of the carrier signal can be ignored at this time, and only the I / Q imbalance problem needs to be considered.
[0171] In some implementations, the processing unit 42 further includes a gain adjustment module; wherein:
[0172] The gain adjustment module is used to adaptively adjust the corresponding gain parameter when it is detected that the first envelope detection result or the second envelope detection result does not meet the third preset condition, so that the first envelope detection result or the second envelope detection result meets the third preset condition.
[0173] Here, since the first / second envelope detection result is less than the preset minimum value, a slight change or small interference on the electronic device will affect the value of the new first / second initial calibration parameter. At the same time, if the first / second envelope detection result is greater than the preset maximum value, it will cause the receiving loop in the loopback link (corresponding to Figure 4B The feedback receiver and adaptive envelope detection module in the calibration process may be saturated. Both of these situations will affect the correctness of the calibration result, so that the best first target calibration parameters cannot be obtained, and may even lead to calibration failure. Then, at the beginning of the calibration, the gain parameter can be set to a smaller value to reduce the possibility that the first / second envelope detection result is too large. During the calibration process, if the first / second envelope detection result is too small, at this time, the gain parameter can be adaptively increased so that the first / second envelope detection result is greater than the preset minimum value; if the first / second envelope detection result is too large, at this time, the gain parameter can be adaptively lowered so that the first / second envelope detection result is less than the preset maximum value.
[0174] Figure 4C A schematic diagram of a calibration method according to an embodiment of the present disclosure is shown in FIG. Figure 4C The method comprises steps S41 to S410, wherein:
[0175] Step S401: In response to receiving a calibration instruction, the processing unit sets the working state of the device to a transmitting state;
[0176] Here, the working state of the device may include but is not limited to a transmitting state, a receiving state, a standby state, etc.
[0177] Step S402: The processing unit turns on the loopback switch in the device link and fixes the gain of the link;
[0178] Here, the loopback switch is turned on so that the feedback loop can receive the output signal x(t) of the transmitter.
[0179] Step S403: The transmitter transmits a first single-tone signal having a first operating frequency;
[0180] Here, the first single-tone signal with the first working frequency can make the local oscillator signal within the working bandwidth and the image signal outside the working bandwidth, so as to reduce the influence of the current image signal on the local oscillator leakage calibration.
[0181] Step S404: The processing unit receives the first single tone signal, and generates a first baseband signal based on the first single tone signal;
[0182] Step S405: The processing unit determines a first initial calibration parameter from at least one first calibration parameter, and obtains a first envelope detection result based on the first initial calibration parameter and the first baseband signal;
[0183] Here, the first initial calibration parameter may be a calibration experience value obtained during the process of calibrating the local oscillator signal. The first envelope detection result is an envelope detection calculation result under the first initial calibration parameter.
[0184] Step S406: The processing unit obtains a first target calibration parameter based on the first envelope detection result, converts the first target calibration parameter into a first control word of a first register, and outputs the first control word to the first register;
[0185] Here, the improved binary search method can be used to find the calibration parameter corresponding to the minimum envelope detection calculation result, which is the optimal calibration value (corresponding to the first target calibration parameter). At the beginning of the calibration, the gain parameter can be set to a smaller value to reduce the possibility that the first envelope detection result is too large. During the calibration process, if the first envelope detection result is too small, the gain parameter can be adaptively increased so that the first envelope detection result is greater than the preset minimum value; if the first envelope detection result is too large, the gain parameter can be adaptively decreased so that the first envelope detection result is less than the preset maximum value.
[0186] Step S407: The transmitter transmits a second single-tone signal having a second operating frequency;
[0187] Here, the second single-tone signal with the second operating frequency can make the image signal fall within the operating bandwidth. Since the carrier leakage has been calibrated, the influence of the carrier signal can be ignored at this time.
[0188] Step S408: The processing unit receives the second single tone signal, and generates a second baseband signal based on the second single tone signal;
[0189] Step S409: The processing unit determines a second initial calibration parameter from the at least one second calibration parameter, and obtains a second envelope detection result based on the second initial calibration parameter and the second baseband signal;
[0190] Here, the second initial calibration parameter may be a calibration experience value obtained during the process of calibrating the mirror signal. The second envelope detection result is an envelope detection calculation result under the second initial calibration parameter.
[0191] Step S410: The processing unit obtains a second target calibration parameter based on the second envelope detection result, converts the second target calibration parameter into a second control word of a second register, and outputs the second control word to the second register;
[0192] Here, the improved binary search method can be used to find the calibration parameter corresponding to the minimum envelope detection calculation result, which is the optimal calibration value (corresponding to the second target calibration parameter). At the beginning of the calibration, the gain parameter can be set to a smaller value to reduce the possibility that the second envelope detection result is too large. During the calibration process, if the second envelope detection result is too small, the gain parameter can be adaptively increased so that the second envelope detection result is greater than the preset minimum value; if the second envelope detection result is too large, the gain parameter can be adaptively decreased so that the second envelope detection result is less than the preset maximum value.
[0193] In the embodiments of the present disclosure, on the one hand, by adding a feedback loop inside the device, the transmitter is used to transmit single-tone signals of different frequencies to determine the calibration parameters used in the subsequent calibration process, that is, by the same method, both the carrier leakage and the mirror signal in the signal are suppressed, which not only simplifies the calibration scheme, but also improves the calibration accuracy while reducing the calibration cost, and also improves the quality of the transmitted signal, thereby achieving the purpose of optimizing the performance indicators of the device; on the other hand, by using the adaptive envelope detection method to find the best first / second target calibration parameters, the accuracy of the first / second target calibration parameters can be improved, thereby improving the accuracy of the calibration, and then shortening the calibration time and improving the calibration efficiency.
[0194] Based on the above embodiments, an embodiment of the present disclosure provides a calibration device, which includes any of the above electronic devices.
[0195] It should be noted that the description of the above device and calibration device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the device and calibration device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure for understanding.
[0196] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present disclosure, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.
[0197] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0198] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0199] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0200] In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately configured as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0201] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0202] The above description is only an implementation mode of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure.
Claims
1. An electronic device, characterized in that: The device comprises: A transmitter, configured to transmit a first single-tone signal having a first operating frequency; A processing unit, configured to receive the first single-tone signal, and determine a first target calibration parameter from at least one first calibration parameter based on the first single-tone signal; wherein the first target calibration parameter is used to calibrate a carrier signal in a signal to be transmitted before the transmitter transmits the signal; The transmitter is further used to transmit a second single-tone signal having a second operating frequency; wherein the second operating frequency is less than the first operating frequency; The processing unit is also used to receive the second single-tone signal, and determine a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted.
2. The device according to claim 1, characterized in that The device further comprises a first register electrically connected to the processing unit, wherein the processing unit comprises a processing module and an envelope detection module connected in sequence; The processing module is used to determine a first initial calibration parameter from at least one first calibration parameter stored in the first register; Based on the first single tone signal, generating a first baseband signal; generating a first output signal based on the first initial calibration parameter and the first baseband signal; The envelope detection module is used to perform envelope detection processing on the first output signal to obtain a first envelope detection result; The processing module is further used to obtain the first target calibration parameter based on the first envelope detection result.
3. The device according to claim 2, characterized in that The processing module is further used for at least one of the following: When the first envelope detection result satisfies a first preset condition, using the first initial calibration parameter as the first target calibration parameter; When the first envelope detection result does not satisfy the first preset condition, based on the first envelope detection result, updating the first initial calibration parameter at least once to obtain an updated first initial calibration parameter; Based on the updated first initial calibration parameters and the first baseband signal, an updated first envelope detection result is obtained, until the updated first envelope detection result meets the first preset condition, and the updated first initial calibration parameters are used as the first target calibration parameters.
4. The device according to claim 3, characterized in that The first initial calibration parameter includes a first sub-calibration parameter and a second sub-calibration parameter, and the first envelope detection result includes a first detection value and a second detection value; The processing module is also used to: obtain a third sub-calibration parameter based on the first sub-calibration parameter and the second sub-calibration parameter; when the first detection value and the second detection value meet a second preset condition, use the third sub-calibration parameter as the second sub-calibration parameter; when the first detection value and the second detection value do not meet the second preset condition, use the third sub-calibration parameter as the first sub-calibration parameter.
5. The device according to claim 2, characterized in that The device also includes a second register electrically connected to the processing unit; The processing module is further used to determine a second initial calibration parameter from at least one second calibration parameter stored in the second register; Based on the second single tone signal, generating a second baseband signal; The envelope detection module is further used to obtain a second envelope detection result based on the second initial calibration parameter, the second baseband signal and the first target calibration parameter; The processing module is further used to obtain the second target calibration parameter based on the second envelope detection result.
6. The device according to claim 5, characterized in that The processing module is further used for at least one of the following: When the second envelope detection result satisfies a first preset condition, using the second initial calibration parameter as the second target calibration parameter; When the second envelope detection result does not satisfy the first preset condition, based on the second envelope detection result, updating the second initial calibration parameter at least once to obtain an updated second initial calibration parameter; Based on the updated second initial calibration parameters, the second baseband signal and the first target calibration parameters, an updated second envelope detection result is obtained, until the updated second envelope detection result meets the first preset condition, and the updated second initial calibration parameters are used as the second target calibration parameters.
7. The device according to claim 6, characterized in that The second initial calibration parameter includes a fourth sub-calibration parameter and a fifth sub-calibration parameter, and the second envelope detection result includes a third detection value and a fourth detection value; The processing module is further used to: obtain a sixth sub-calibration parameter based on the fourth sub-calibration parameter and the fifth sub-calibration parameter; use the sixth sub-calibration parameter as the fifth sub-calibration parameter when the third detection value and the fourth detection value meet a second preset condition; and use the sixth sub-calibration parameter as the fourth sub-calibration parameter when the third detection value and the fourth detection value do not meet the second preset condition.
8. The device according to claim 5, characterized in that The processing unit also includes a gain adjustment module; The gain adjustment module is used to adaptively adjust the corresponding gain parameter when it is detected that the first envelope detection result or the second envelope detection result does not meet the third preset condition, so that the first envelope detection result or the second envelope detection result meets the third preset condition.
9. The device according to any one of claims 1 to 8, characterized in that The processing unit is further configured to: Converting the first target calibration parameter into a first control word of a first register, and outputting the first control word to the first register; The second target calibration parameter is converted into a second control word of a second register, and the second control word is output to the second register.
10. A calibration method, characterized in that: Applied in an electronic device having a processing unit and a transmitter, the method comprises: The transmitter transmits a first single-tone signal having a first operating frequency; The processing unit receives the first single-tone signal, and determines a first target calibration parameter from at least one first calibration parameter based on the first single-tone signal; wherein the first target calibration parameter is used to calibrate a carrier signal in a signal to be transmitted before the transmitter transmits the signal; The transmitter transmits a second single tone signal having a second operating frequency; wherein the second operating frequency is less than the first operating frequency; The processing unit receives the second single-tone signal, and determines a second target calibration parameter from at least one second calibration parameter based on the second single-tone signal and the first target calibration parameter; wherein the second target calibration parameter is used to calibrate the image signal in the calibrated signal to be transmitted.
11. The method according to claim 10, characterized in that The determining, based on the first single tone signal, a first target calibration parameter from at least one first calibration parameter comprises: Based on the first single tone signal, generating a first baseband signal; determining a first initial calibration parameter from the at least one first calibration parameter; Obtaining a first envelope detection result based on the first initial calibration parameter and the first baseband signal; The first target calibration parameter is obtained based on the first envelope detection result.
12. The method according to claim 11, characterized in that The method further comprises: When detecting that the first envelope detection result does not satisfy a third preset condition, the processing unit adaptively adjusts a corresponding gain parameter so that the first envelope detection result satisfies the third preset condition.
13. The method according to claim 10, characterized in that The determining, based on the second single tone signal and the first target calibration parameter, a second target calibration parameter from at least one second calibration parameter comprises: Based on the second single tone signal, generating a second baseband signal; determining a second initial calibration parameter from the at least one second calibration parameter; Obtaining a second envelope detection result based on the second initial calibration parameter, the second baseband signal and the first target calibration parameter; Based on the second envelope detection result, the second target calibration parameter is obtained.
14. The method according to any one of claims 10 to 13, characterized in that The method further comprises: The transmitter generates the first single-tone signal and the second single-tone signal respectively based on the working bandwidth of the electronic device.
15. A calibration device, characterized in that: An electronic device comprising any one of claims 1 to 9.
Citation Information
Patent Citations
Method for automatically calibrating local oscillation mirror image by using RF chip
CN107425862A
Zero intermediate frequency automatic calibration method and system
CN112383365A