Radio frequency circuit calibration method, apparatus and device, and storage medium

By introducing a calibration method into the RF circuit, setting the preset value of the target parameters and scanning, the problem of the power amplifier being easily burned when operating at high power is solved, and the effect of improving PA reliability is achieved.

CN119449199APending Publication Date: 2025-02-14GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310957471.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Power amplifiers in mobile terminals are prone to burning when operating at high power, resulting in poor communication quality and it is difficult for the prior art to accurately find the appropriate PA input power to protect the reliability of the PA.

Method used

By introducing a calibration method of the radio frequency circuit into the radio frequency circuit, a preset value of the target parameter is determined based on the first frequency band, a scan is performed to determine the current value, and the scanning is stopped when a specific condition is met, and the frequency band calibration is determined to be successful. The method includes setting a first calibration parameter (such as a relative gain index RGI) and a second calibration parameter (such as a calibration power or a calibration compression point) to protect the PA from burning.

Benefits of technology

This method can effectively protect the power amplifier from burning, improve its reliability, avoid the problem of excessive calibration power, and save the calibration time of PA.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449199A_ABST
    Figure CN119449199A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a calibration method and device of a radio frequency circuit, equipment and a storage medium, the radio frequency circuit comprises a power amplifier, and the method comprises the following steps: determining a preset value of a target parameter based on a first frequency band; scanning the first frequency band, and determining the current value of the target parameter; and when a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, stopping scanning the first frequency band, and determining that the first frequency band is successfully calibrated. Wherein the target parameters comprise a first calibration parameter and a second calibration parameter, the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier. Therefore, when the first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, the calibration time is saved, and the reliability of the PA is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a calibration method, device, equipment and storage medium for a radio frequency circuit. Background Art

[0002] With the rapid development of communication technology, users have higher and higher requirements for the communication quality of mobile terminals. In order to improve the quality of uplink transmission signals, mobile terminal manufacturers can improve it by continuously increasing the transmission power of the power amplifier (PA). When the transmission power of the PA is too high, the power consumption is high, resulting in a greater risk to the reliability of the PA. Summary of the invention

[0003] The present application proposes a calibration method, device, equipment and storage medium for a radio frequency circuit, which can improve the reliability of a power amplifier.

[0004] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a calibration method for a radio frequency circuit, wherein the radio frequency circuit includes a power amplifier, and the method includes:

[0006] Based on the first frequency band, determining a preset value of a target parameter;

[0007] Scanning the first frequency band to determine the current value of the target parameter;

[0008] When a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful;

[0009] The target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier.

[0010] In a second aspect, an embodiment of the present application provides a calibration device for a radio frequency circuit, the radio frequency circuit including a power amplifier, the calibration device including a setting unit, a scanning unit and a judgment unit, wherein:

[0011] a setting unit configured to determine a preset value of a target parameter based on the first frequency band;

[0012] a scanning unit configured to scan the first frequency band to determine a current value of a target parameter;

[0013] The judgment unit is configured to stop scanning the first frequency band and determine that the calibration of the first frequency band is successful when a first condition is met between the current value of the target parameter and the preset value of the target parameter; wherein the target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier.

[0014] In a third aspect, an embodiment of the present application provides a terminal device, the terminal device including a memory and a processor, wherein:

[0015] A memory for storing computer programs that can be run on the processor;

[0016] A processor is used to execute the method described in the first aspect when running a computer program.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by at least one processor, it implements the method described in the first aspect.

[0018] The present application provides a method, device, equipment and storage medium for calibrating a radio frequency circuit, wherein the radio frequency circuit includes a power amplifier, and based on a first frequency band, a preset value of a target parameter is determined; the first frequency band is scanned to determine the current value of the target parameter; when a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful; wherein the target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier. In this way, on the basis of setting the first calibration parameter (for example, calibrating the relative gain index RGI), a judgment condition for the second calibration parameter is added, and when the current value of the second calibration parameter reaches the preset value of the second calibration parameter, the scanning of the first frequency band can be stopped, so that the PA is protected from burning, thereby improving the reliability of the PA. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of an application scenario of a communication system;

[0020] Figure 2 A curve diagram showing the relationship between voltage and current in a triode;

[0021] Figure 3 It is a schematic diagram of the composition structure of a PA device with overvoltage protection;

[0022] Figure 4 A schematic diagram of a calibration method for a radio frequency circuit provided in an embodiment of the present application Figure 1 ;

[0023] Figure 5 A schematic diagram of a calibration method for a radio frequency circuit provided in an embodiment of the present application Figure 2 ;

[0024] Figure 6 A detailed flow diagram of a radio frequency circuit calibration method provided in an embodiment of the present application Figure 1 ;

[0025] Figure 7 A detailed flow diagram of a radio frequency circuit calibration method provided in an embodiment of the present application Figure 2 ;

[0026] Figure 8 A schematic diagram of a calibration method for a radio frequency circuit provided in an embodiment of the present application Figure 3 ;

[0027] Fig. 9 A detailed flow diagram of a radio frequency circuit calibration method provided in an embodiment of the present application Figure 3 ;

[0028] Fig.10 A schematic diagram of the structure of a radio frequency circuit calibration device provided in an embodiment of the present application;

[0029] Fig.11 A schematic diagram of the specific hardware structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0031] 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 this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0032] 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.

[0033] It should also be pointed out that the terms "first\second\third" involved in the embodiments of the present application are only 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 in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0034] With the rapid development of terminal equipment, users have higher and higher requirements for the communication quality of terminal equipment. Terminal equipment generally realizes wireless communication through radio frequency circuits. As an important component of radio frequency circuits, power amplifiers (PA) are usually used to amplify the power of radio frequency signals.

[0035] In order to improve the quality of uplink transmission signals, terminal equipment manufacturers can improve it by continuously increasing the transmission power of PA. Existing terminal equipment generally needs to support power class 2 (PC2), multiple input multiple output (MIMO) of uplink (UL), dual SIM dual active (DSDA), carrier aggregation (CA) of UL, etc. Among them, when the power of PA is too high, the power consumption is high, which makes the reliability of PA have a greater risk. Especially when PA works at high power for a long time, it is easy to burn PA, resulting in poor communication quality.

[0036] In the related art, the reliability of PA can generally be improved through two methods: software control and hardware control. In a specific implementation method, the software control scheme mainly controls the reliability of PA by limiting the PA input power and supply voltage through software, and limits the PA's transmission power within a certain range, which can protect the PA to a certain extent and improve the reliability of PA. Specifically, it is first necessary to set different input powers and supply voltages according to the limit characteristics of each PA, and then during calibration, the PA input power and supply voltage are controlled by limiting the relative gain index (Relative Gain Index, RGI) and the calibration voltage. Here, when the PA input power is limited by software, the PA output power will also change accordingly, so the software control scheme can also control the reliability of PA by limiting the PA output power by software.

[0037] For example, Figure 1 Figure 1 is a schematic diagram of an application scenario of a communication system. Figure 1As shown, the scenario may include: a terminal device 11 and a base station 12, and wireless communication is performed between the terminal device 11 and the base station 12. The terminal device 11 may include a transceiver 111, a power supply 112, a power amplifier 113, a filter 114, an antenna switch 115, and an antenna 116. Specifically, the terminal device 11 transmits and receives signals with the base station 12 via the antenna 116.

[0038] Here, the output end of the transceiver 111 is connected to the input end of the power amplifier 113, and the transceiver 111 can send a radio frequency signal to the power amplifier 113, and the transceiver 111 can control the transmission frequency of the radio frequency signal and adjust the transmission power of the radio frequency signal. The power amplifier 113 is used to amplify the power of the radio frequency signal, and then the signal is transmitted outward through the antenna 116. The power supply 112 can adjust the supply voltage of the power amplifier 113 within a certain range according to the current required transmission power. The filter 114 can be used to filter out interference signals in the radio frequency signal, and the antenna switch 115 and the antenna 116 are used to control the transmission and reception of the radio frequency signal.

[0039] Different scenarios have different requirements for the transmission power of the antenna 116. Usually, the transceiver 111 detects the output power of the power amplifier 113 through a feedback loop, and determines the corresponding transmission power of the transceiver 111 according to the return loss ratio (also called "reflection loss"). Return loss is the ratio of the incident power to the reflected power of the RF circuit, and it looks at the mismatch problem between input and output from the perspective of power. For example, if 1mW (0dBm) of power is input to the antenna 116, if 10% of it is reflected (bounced) back, the return loss is 10dB. When the parameters such as the component impedance of the RF circuit, the antenna efficiency, and the radiation field shape of the antenna are determined, the return loss of the RF circuit is also fixed.

[0040] During use, the power amplifier 113 is prone to burnout, affecting the reliability of the RF circuit. Figure 1 As shown, when a hardware anomaly occurs in the PA link back stage, such as damage to components such as the filter 114 or the antenna switch 115, or the link insertion loss increases, the transmission power of the antenna 116 cannot be increased. At this time, the received signal of the base station 12 deteriorates, and the terminal device 11 is triggered to increase the transmission power, that is, to control the output power of the transceiver 111 to increase, that is, to increase the PA input power to ensure the PA output power. In fact, the PA is in a fixed gain, and when the PA input power increases, the PA output power will also increase accordingly. If the front-end link is disconnected, the transceiver 111 will increase the PA input power to the maximum, and the PA output power will also increase to the maximum. As a result, the PA becomes saturated. If it is in this state for a long time, the power amplifier 113 is easily burned, and reliability problems occur.

[0041] After analysis, it is found that the burning of the power amplifier 113 is mainly caused by two reasons. One is the voltage breakdown of the transistor inside the power amplifier 113, and the other is the current breakdown of the transistor inside the power amplifier 113.

[0042] For example, Figure 2 This is a curve diagram showing the relationship between voltage and current in a triode. Figure 2 As shown in the figure, when the input supply voltage VCC of the PA exceeds the collector-emitter reverse breakdown voltage (i.e. BV CEO ), the transistor undergoes avalanche breakdown. Among them, BV CEO BV is the collector-emitter reverse breakdown voltage, specifically refers to the maximum allowable reverse voltage applied between the collector and emitter when the base of the transistor is open; CBO BV is the collector-base reverse breakdown voltage, specifically refers to the maximum allowable reverse voltage applied between the collector and base when the emitter of the transistor is open. CEO <BV CBO .

[0043] Here, the main reason for current breakdown is that the PA output power is too large, the current flow capacity of the device in the current path of the PA internal transistor is insufficient, the operating current exceeds the maximum current flow capacity of the device or circuit, and appears in the area with the largest current swing, thus causing current breakdown. Therefore, in order to ensure the normal operation of the RF circuit, it is necessary to improve the reliability of the PA as much as possible to avoid PA burning.

[0044] In another specific implementation, the hardware control solution is mainly implemented by using a PA device with a self-protection mechanism, such as a PA device with over current protection (OCP), over voltage protection (OVP), etc. Specifically, the protection current and protection voltage are first established, and then the input current and supply voltage are detected in real time by a comparator to determine whether they exceed the set threshold; if exceeded, the PA is immediately controlled to enter the protection mode to prevent the PA from burning out.

[0045] For example, Figure 3 Figure 1 is a schematic diagram of the structure of a PA device with overvoltage protection. Figure 3As shown, the PA device may include: a transceiver 31, a direct current-direct current (DCDC) converter 32, a power amplifier 33 and an overvoltage protection circuit 34. The overvoltage protection circuit 34 may include a mobile industry processor interface (MIPI) 341, a digital to analog converter (DAC) 342, a low pass filter (LPF) 343 and a comparator 344.

[0046] Here, the negative input terminal of the comparator 344 is connected to the MIPI interface 341 through the digital-to-analog converter 342, so as to obtain a reference voltage threshold, for example, 4.95V; the positive input terminal of the comparator 344 is connected to the low-pass filter 343, so as to obtain a real-time monitoring value of the power supply voltage VCC; the output terminal of the comparator 344 is connected to the bias terminal of the power amplifier 33, so as to provide a bias voltage (bias) to the power amplifier 33; the power supply terminal of the power amplifier 33 is connected to the output terminal of the DCDC converter 32, that is, the power supply voltage of the power amplifier 33 is VCC.

[0047] In this way, when the power supply voltage VCC increases, the overvoltage protection circuit 34 will monitor the power supply voltage through the comparator 344, and protect the reliability of the PA by shutting down or reducing the bias voltage of the first-stage PA. If the power supply voltage exceeds 4.95V, it will automatically enter the protection mode, and the PA output power will drop rapidly to ensure the reliability of the PA; if the power supply voltage is lower than 4.95V, the overvoltage protection circuit 34 will automatically increase the bias voltage to restore the circuit to normal state. Among them, "shutdown" here means that the bias voltage is set to 0.

[0048] Simply put, related technologies can generally improve the reliability of PA through software control and hardware control. However, these control schemes still have defects. For example, for software control schemes, it is difficult to accurately find a suitable PA input power by limiting the input power through software due to the problems of PA consistency and transceiver consistency. For example, under the same relative gain index RGI conditions, the power between different transceivers may differ by 3dB. When the input power is set too low, the calibration power will not be able to be increased; when the input power is set too high, it will cause it to exceed the reliability range of the PA, which may easily cause reliability problems such as burning the PA. For hardware control schemes, PA devices with overcurrent protection OCP or overvoltage protection OVP can be used, but the cost is relatively high and it is not conducive to implementation.

[0049] Based on this, an embodiment of the present application provides a calibration method for a radio frequency circuit, wherein the radio frequency circuit includes a power amplifier, and based on a first frequency band, a preset value of a target parameter is determined; the first frequency band is scanned to determine the current value of the target parameter; when a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful; wherein the target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier. In this way, on the basis of setting the first calibration parameter (for example, calibrating the relative gain index RGI), a judgment condition for the second calibration parameter is added, and when the current value of the second calibration parameter reaches the preset value of the second calibration parameter, the scanning of the first frequency band can be stopped, which can save the calibration time of the PA, and can also avoid the calibration power being too high, protect the PA from burning, and thus improve the reliability of the PA.

[0050] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0051] In one embodiment of the present application, see Figure 4 , which shows a schematic flow chart of a calibration method for a radio frequency circuit provided in an embodiment of the present application. Figure 4 As shown, the method may include:

[0052] S401: Determine a preset value of a target parameter based on a first frequency band.

[0053] It should be noted that the calibration method of the embodiment of the present application is applied to the calibration device of the radio frequency circuit, or the terminal device integrated with the calibration device. Among them, the terminal device can be implemented in various forms. For example, the terminal device described in the embodiment of the present application may include mobile terminals such as smart phones, tablet computers, laptops, PDAs, portable media players (PMPs), navigation devices, wearable devices, and fixed terminals such as digital TVs and desktop computers. It should be noted that the subsequent description will be described by taking the mobile terminal as an example, and those skilled in the art will understand that, in addition to components specifically used for mobile purposes, the implementation method according to the embodiment of the present application can also be applied to fixed type terminals.

[0054] It should also be noted that, in the embodiment of the present application, the radio frequency circuit may include a power amplifier, wherein the power amplifier may operate in different frequency bands, and the following is a detailed description taking the power amplifier operating in the first frequency band as an example.

[0055] In some embodiments, the target parameter may include a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier. Exemplarily, in a specific embodiment, the first calibration parameter may include a relative gain index RGI, and the second calibration parameter may include a calibration power and / or a calibration compression point.

[0056] For the first calibration parameter, the relative gain index RGI can correspond to different powers so that the input power of the power amplifier does not exceed the maximum allowable input power of the power amplifier. Here, the preset value of the first calibration parameter, that is, the preset value of the relative gain index RGI (or referred to as "setting the relative gain index RGI"), can be the relative gain index corresponding to the maximum allowable input power. According to the characteristics of different power amplifiers, a preset value of the relative gain index RGI can be determined for each frequency band to ensure that the input power corresponding to the preset value is within the reliability range of the power amplifier, that is, the PA input power corresponding to the relative gain index RGI is set not to exceed the maximum allowable input power of the power amplifier. In addition, since the output power of the transceiver is the PA input power, it is equivalent to determining the maximum relative gain index RGI required to limit the maximum allowable input power of the PA based on the relationship between the output power of the transceiver and the relative gain index RGI.

[0057] For the second calibration parameter, the calibration power and / or calibration compression point are both associated with the output power of the power amplifier. Not only is the reliability of the PA improved by limiting the relative gain index RGI (i.e. limiting the PA input power), but also the judgment condition of the second calibration parameter (e.g. calibration power / calibration compression point) is added, so that even if the relative gain index RGI is set very high during the calibration process, the PA input power will not be very high, which protects the PA to a certain extent and prevents the PA from burning out. Among them, the calibration power is the output power of the power amplifier, and the calibration compression point refers to a compression point set when the PA works in the saturation region. Generally, the higher the compression point, the greater the corresponding calibration power; conversely, the smaller the compression point, the smaller the corresponding calibration power.

[0058] That is to say, in the embodiment of the present application, the power amplifier can operate in different frequency bands. In different operating frequency bands, the maximum input power corresponding to the PA may be different, and the preset value of the target parameter may also be different. In other words, for different operating frequency bands, the preset values ​​of the first calibration parameter and the second calibration parameter need to be set separately.

[0059] S402: Scan the first frequency band to determine the current value of the target parameter.

[0060] It should be noted that, in the embodiment of the present application, the first frequency band is any one of the operating frequency bands of the power amplifier. In this way, after setting the preset value of the target parameter, the first frequency band can be scanned, and then the current value of the target parameter can be determined, so as to determine whether to stop scanning, that is, whether to stop calibration for the first frequency band, based on the current value of the target parameter and the preset value of the target parameter.

[0061] It should also be noted that in the embodiments of the present application, the scanning mode here may include full voltage (Fullbias) mode, average power tracking (Average Power Tracking, APT) mode, envelope tracking (EnvelopTracker, ET) mode, etc., which are not specifically limited here.

[0062] In a possible implementation, when the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes calibration power, scanning the first frequency band may include: scanning the first frequency band based on a full voltage mode and an average power tracking mode respectively.

[0063] In the embodiment of the present application, the full voltage mode is also called the full voltage mode, and all powers correspond to a calibration voltage. The average power tracking mode is also called the adaptive voltage adjustment mode, and different powers correspond to different calibration voltages. It specifically automatically adjusts the working voltage of the PA according to the output power of the PA and the PA's own parameters. Among them, compared with the average power tracking mode, the full voltage mode has a better effect of saving power and power consumption.

[0064] In the embodiment of the present application, when the first calibration parameter includes the relative gain index RGI and the second calibration parameter includes the calibration power, when scanning the first frequency band, both the full voltage mode and the average power tracking mode need to be executed. Usually, the full voltage mode is used for scanning first, and then the average power tracking mode is used for scanning. In addition, for the preset value of the calibration power, it can include the preset value of the calibration power in the full voltage mode and the preset value of the calibration power in the average power tracking mode, and the preset values ​​of the two can be set to be the same or different.

[0065] In another possible implementation, when the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes a calibration compression point, scanning the first frequency band may include: scanning the first frequency band based on an envelope tracking method.

[0066] In the embodiment of the present application, when the output power of the power amplifier reaches a peak value, that is, when gain compression occurs, the power amplifier reaches the highest operating efficiency. Here, the technical principle of envelope tracking is to make the power amplifier operate in the compression region or saturation region as much as possible. Among them, the efficiency peak point and the output power peak point of the power amplifier will change with the change of the supply voltage. For example, the output power of the peak efficiency will increase with the increase of the supply voltage.

[0067] In envelope tracking mode, the supply voltage is dynamically adjusted to track the RF envelope with high instantaneous power. At this time, the power amplifier operates in the compression region with high efficiency. It should be noted that the preset value of the calibration compression point may be different for different power amplifiers and different operating frequency bands.

[0068] In an embodiment of the present application, when the first calibration parameter includes the relative gain index RGI and the second calibration parameter includes the calibration compression point, the power amplifier operates in the compression region. At this time, when scanning the first frequency band, an envelope tracking method can be used for scanning.

[0069] In this way, a suitable scanning method can be determined according to the second calibration parameter (calibration power / calibration compression point), and then the first frequency band is scanned using the determined scanning method to obtain the current value of the calibration relative gain index RGI and the current value of the calibration power / calibration compression point.

[0070] S403: When a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful.

[0071] It should be noted that, in the embodiment of the present application, if the current value of the target parameter satisfies the first condition with the preset value of the target parameter, the scanning of the first frequency band can be stopped, and it is determined that the calibration of the first frequency band passes (PASS). Figure 5 , the method further comprises:

[0072] S501: When a first condition is satisfied between a current value of a target parameter and a preset value of the target parameter, calibration information corresponding to a first frequency band is determined, and the calibration information is stored in a memory.

[0073] In some embodiments, the calibration information may include at least a mapping relationship between the following parameters: calibration voltage, calibration power, and relative gain index. For example, in a specific embodiment, the calibration information may include a mapping relationship between calibration voltage, calibration power, and relative gain index.

[0074] Here, the mapping relationship between the calibration voltage, calibration power and relative gain index under different operating frequency bands can be stored in the memory of the terminal device or in the cloud server. For the memory of the terminal device, it can be stored in a volatile memory such as a random access memory (RAM) or a non-volatile memory (NVM). Exemplarily, in an embodiment of the present application, these calibration information are written to the non-volatile memory NVM. In this way, even if the terminal device loses power, it will not be lost, and the calibration information will still retain the original settings when it is restarted next time.

[0075] It should also be noted that, in the embodiment of the present application, the calibration information written to the memory may be a mapping relationship, specifically a list of information about calibration voltage, calibration power, relative gain index, etc. Before the terminal device leaves the factory, the terminal device needs to be calibrated for each operating frequency band of the power amplifier, and then after obtaining the calibration information of each operating frequency band, the corresponding calibration information may be written into the memory of the terminal device; so that when the terminal device is subsequently used, the appropriate PA input power can be determined according to the calibration relative gain index RGI, thereby improving the reliability of the PA.

[0076] In some embodiments, the first condition between the current value of the target parameter and the preset value of the target parameter may include: the current value of the second calibration parameter is greater than or equal to the preset value of the second calibration parameter, and the current value of the first calibration parameter is less than or equal to the preset value of the first calibration parameter.

[0077] It should be noted that in an embodiment of the present application, if the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes a calibration power, then specifically here: the current value of the calibration power is greater than or equal to the preset value of the calibration power, and the current value of the relative gain index RGI is less than or equal to the preset value of the relative gain index RGI.

[0078] It should also be noted that, in an embodiment of the present application, if the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes a calibration compression point, then specifically here: the current value of the calibration compression point is greater than or equal to a preset value of the calibration compression point, and the current value of the relative gain index RGI is less than or equal to the preset value of the relative gain index RGI.

[0079] In some embodiments, the method further includes: when a first condition is not satisfied between the current value of the target parameter and the preset value of the target parameter, and a second condition is satisfied between the current value of the target parameter and the preset value of the target parameter, continuing to scan the first frequency band.

[0080] It should be noted that if the current value of the target parameter and the preset value of the target parameter satisfy the first condition, the scanning of the first frequency band is stopped immediately, and it is determined that the calibration of the first frequency band is successful. Conversely, if the current value of the target parameter and the preset value of the target parameter do not satisfy the first condition, but the current value of the target parameter and the preset value of the target parameter satisfy the second condition, then the step of scanning the first frequency band can be continued. The first condition is different from the second condition.

[0081] Further, in some embodiments, the second condition satisfied between the current value of the target parameter and the preset value of the target parameter may include: the current value of the second calibration parameter is less than the preset value of the second calibration parameter, and the current value of the first calibration parameter is less than the preset value of the first calibration parameter.

[0082] It should be noted that in an embodiment of the present application, if the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes a calibration power, then specifically here: the current value of the calibration power is less than the preset value of the calibration power, and the current value of the relative gain index RGI is less than the preset value of the relative gain index RGI.

[0083] It should also be noted that, in an embodiment of the present application, if the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes a calibration compression point, then specifically here: the current value of the calibration compression point is less than the preset value of the calibration compression point, and the current value of the relative gain index RGI is less than the preset value of the relative gain index RGI.

[0084] In some embodiments, the method further includes: when a first condition is not satisfied between the current value of the target parameter and the preset value of the target parameter, and a third condition is satisfied between the current value of the target parameter and the preset value of the target parameter, stopping scanning the first frequency band and determining that the calibration of the first frequency band has failed.

[0085] If the current value of the target parameter and the preset value of the target parameter satisfy the first condition, the scanning of the first frequency band is stopped immediately, and it is determined that the calibration of the first frequency band is successful. Conversely, if the current value of the target parameter and the preset value of the target parameter do not satisfy the first condition, but the current value of the target parameter and the preset value of the target parameter satisfy the third condition, it is also necessary to stop scanning the first frequency band, and determine that the calibration of the first frequency band has failed. Among them, the third condition is different from the first condition and the second condition.

[0086] Further, in some embodiments, the third condition satisfied between the current value of the target parameter and the preset value of the target parameter may include: the current value of the second calibration parameter is less than the preset value of the second calibration parameter, and the current value of the first calibration parameter is equal to the preset value of the first calibration parameter.

[0087] It should be noted that in an embodiment of the present application, if the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes a calibration power, then specifically here: the current value of the calibration power is less than the preset value of the calibration power, and the current value of the relative gain index RGI is equal to the preset value of the relative gain index RGI.

[0088] It should also be noted that, in an embodiment of the present application, if the first calibration parameter includes a relative gain index RGI and the second calibration parameter includes a calibration compression point, then specifically here: the current value of the calibration compression point is less than the preset value of the calibration compression point, and the current value of the relative gain index RGI is equal to the preset value of the relative gain index RGI.

[0089] It should be noted that, regarding the case where the current value of the calibration power is equal to the preset value of the calibration power, the first condition can be set to be satisfied between the current value of the target parameter and the preset value of the target parameter, the second condition can be set to be satisfied between the current value of the target parameter and the preset value of the target parameter, and the third condition can be set to be satisfied between the current value of the target parameter and the preset value of the target parameter.

[0090] Furthermore, in an embodiment of the present application, the calibration method can be applied to the production line testing stage of the terminal device. Before the terminal device leaves the factory, the above-mentioned calibration process is performed separately for each operating frequency band for the power amplifier in the terminal device. Since the embodiment of the present application adds a judgment condition for a second calibration parameter (such as calibration power / calibration compression point) on the basis of limiting the relative gain index RGI, this can not only shorten the calibration time of the PA, but also solve the problem of production line consistency and reduce the reliability risk of the PA.

[0091] In summary, in the embodiments of the present application, on the one hand, by adding a judgment condition for the calibration power, the scanning can be stopped when the calibration power scanned in the full voltage Full bias mode and the average power tracking APT mode reaches the preset value of the calibration power, thereby avoiding the calibration power being too high, which may cause the PA to burn out and reliability problems to occur; on the other hand, by adding a judgment condition for the calibration compression point, the scanning can be stopped when the calibration compression point scanned in the envelope tracking ET mode reaches the preset value of the calibration compression point, thereby avoiding the calibration power being too high, which may cause the PA to burn out and reliability problems to occur.

[0092] This embodiment provides a calibration method for a radio frequency circuit, the radio frequency circuit includes a power amplifier, firstly based on a first frequency band, a preset value of a target parameter is determined; then the current value of the target parameter is determined by scanning the first frequency band; when a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful; wherein the target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier. In this way, on the basis of setting the first calibration parameter (for example, calibrating the relative gain index RGI), a judgment condition of the second calibration parameter is added, and when the current value of the second calibration parameter reaches the preset value of the second calibration parameter, the scanning of the first frequency band can be stopped, which can save the calibration time of the PA, and can also avoid the calibration power being too high, protect the PA from burning, and thus improve the reliability of the PA.

[0093] In another embodiment of the present application, based on the calibration method of the aforementioned embodiment, the reliability of the PA can be further and more reasonably improved by limiting the calibration parameters. Specifically, the problem is mainly solved by setting the target power (i.e., the "preset value of the calibration power") and the target compression point (i.e., the "preset value of the calibration compression point").

[0094] Among them, the related technology solves the problem by limiting the relative gain index RGI (i.e. limiting the PA input power), but when the relative gain index RGI is set high, PA reliability problems are still prone to occur. Based on this, on the basis of the related technology, the discrimination conditions of the target power and the target compression point are added here. When the calibration scan reaches the target power and / or the target compression point, the scan is stopped immediately. In this way, even if the relative gain index RGI is set very high, a very high input power will not appear during the calibration process, which can protect the PA to a certain extent and improve the reliability of the PA.

[0095] In a possible implementation manner, taking the scanning condition of increasing the target power as an example, Figure 6 A detailed flow chart of a method for calibrating a radio frequency circuit provided in an embodiment of the present application. Figure 6 As shown, the detailed process may include:

[0096] S601: Determine and set a relative gain index RGI.

[0097] S602: Determine target power.

[0098] S603: Scanning is performed using the full bias mode and the average power tracking APT mode.

[0099] S604: Determine whether the calibration power is greater than or equal to the target power and whether the calibration relative gain index RGI is less than or equal to the set relative gain index RGI?

[0100] S605: Determine whether the calibration power is less than the target power and whether the calibration relative gain index RGI is less than the set relative gain index RGI?

[0101] S606: Determine whether the calibration power is less than the target power and whether the calibration relative gain index RGI is equal to the set relative gain index RGI?

[0102] S607: Stop scanning, write calibration information, and confirm that the calibration is passed.

[0103] S608: Stop scanning and determine that calibration has failed.

[0104] It should be noted that for step S604, if the judgment result is yes, then step S607 can be executed, that is, stop scanning, write calibration information, and determine that the calibration is passed; conversely, if the judgment result is no, then step S605 and step S606 can be executed, among which, if step S605 is established, continue to execute step S603; if step S606 is established, execute step S608, that is, stop scanning, and determine that the calibration has failed.

[0105] It should also be noted that, combined with Figure 6 , the specific process of this calibration method is as follows:

[0106] 1) According to the characteristics of each PA, the calibration relative gain index RGI of each working frequency band is set to ensure that the PA input power corresponding to the set relative gain index RGI is within the PA reliability range;

[0107] 2) Set the target power for calibration, including full bias and target power for scanning under average power tracking (APT);

[0108] 3) Perform full bias scan and average power tracking APT scan respectively;

[0109] 4) When the calibration relative gain index RGI is less than or equal to the set relative gain index RGI and the calibration power is greater than or equal to the target power, the calibration is stopped, the calibration information is written, and it is determined that the calibration is passed;

[0110] 5) When the calibration relative gain index RGI is less than the set relative gain index RGI and the calibration power is less than the target power, continue scanning;

[0111] 6) When the calibration relative gain index RGI is equal to the set relative gain index RGI and the calibration power is less than the target power, the calibration is stopped and it is determined that the calibration has failed.

[0112] In addition, for the case where the calibration power is equal to the target power, in some embodiments, it may also include: when the calibration relative gain index RGI is less than or equal to the set relative gain index RGI and the calibration power is greater than the target power, stopping the calibration, writing the calibration information, and judging that the calibration is passed; when the calibration relative gain index RGI is less than the set relative gain index RGI and the calibration power is less than or equal to the target power, continuing the scan; when the calibration relative gain index RGI is equal to the set relative gain index RGI and the calibration power is less than or equal to the target power, stopping the calibration and judging that the calibration has failed.

[0113] In another possible implementation, taking the addition of a scanning condition for a target compression point as an example, Figure 7 A detailed flow chart of another radio frequency circuit calibration method provided in an embodiment of the present application. Figure 7 As shown, the detailed process may include:

[0114] S701: Determine and set a relative gain index RGI.

[0115] S702: Determine a target compression point.

[0116] S703: Scanning using envelope tracking (ET) mode.

[0117] S704: Determine whether the calibration compression point is greater than or equal to the target compression point and whether the calibration relative gain index RGI is less than or equal to the set relative gain index RGI?

[0118] S705: Determine whether the calibration compression point is smaller than the target compression point and whether the calibration relative gain index RGI is smaller than the set relative gain index RGI?

[0119] S706: Determine whether the calibration compression point is less than the target compression point and whether the calibration relative gain index RGI is equal to the set relative gain index RGI?

[0120] S707: Stop scanning, write calibration information, and confirm that the calibration is passed.

[0121] S708: Stop scanning and determine that calibration has failed.

[0122] It should be noted that for step S704, if the judgment result is yes, then step S707 can be executed, that is, stop scanning, write calibration information, and determine that the calibration is passed; conversely, if the judgment result is no, then step S705 and step S706 can be executed, among which, if step S705 is established, continue to execute step S703; if step S706 is established, execute step S708, that is, stop scanning, and determine that the calibration has failed.

[0123] It should also be noted that, combined with Figure 7 , the specific process of this calibration method is as follows:

[0124] 1) According to the characteristics of each PA, the calibration relative gain index RGI of each working frequency band is set to ensure that the PA input power corresponding to the set relative gain index RGI is within the PA reliability range;

[0125] 2) Setting the target compression point for envelope tracking ET calibration;

[0126] 3) Perform envelope tracking ET scan;

[0127] 4) When the calibration relative gain index RGI is less than or equal to the set relative gain index RGI and the calibration compression point is greater than or equal to the target compression point, the calibration is stopped, the calibration information is written, and the calibration is determined to be passed;

[0128] 5) When the calibration relative gain index RGI is less than the set relative gain index RGI and the calibration compression point is less than the target compression point, continue scanning;

[0129] 6) When the calibration relative gain index RGI is equal to the set relative gain index RGI and the calibration compression point is less than the target compression point, the calibration is stopped and it is determined that the calibration has failed.

[0130] In addition, for the case where the calibration compression point is equal to the target compression point, in some embodiments, it may also include: when the calibration relative gain index RGI is less than or equal to the set relative gain index RGI and the calibration compression point is greater than the target compression point, stopping the calibration, writing the calibration information, and judging that the calibration is passed; when the calibration relative gain index RGI is less than the set relative gain index RGI and the calibration compression point is less than or equal to the target compression point, continuing the scan; when the calibration relative gain index RGI is equal to the set relative gain index RGI and the calibration compression point is less than or equal to the target compression point, stopping the calibration and judging that the calibration has failed.

[0131] In the embodiments of the present application, the specific implementation of the aforementioned embodiments is elaborated in detail through the above embodiments. It can be seen that according to the technical scheme of the aforementioned embodiments, on the one hand, by setting the target power and the target compression point, the calibration is stopped immediately after the calibration reaches the target power and / or the target compression point. In this way, the calibration does not need to scan to the set relative gain index RGI, and the PA input power control is low, which improves the PA reliability to a certain extent; on the other hand, by setting the target power and the target compression point, the calibration is stopped immediately after the calibration reaches the target power and / or the target compression point. In this way, the calibration does not need to scan to the set relative gain index RGI, which saves the calibration time to a certain extent, thereby improving the performance of the terminal device.

[0132] In another embodiment of the present application, based on the calibration method of the aforementioned embodiment, the embodiment of the present application can further be extended to other calibration parameters. Among them, the calibration parameters that affect the reliability of the PA also include current and voltage. The current is generally controlled by the PA static operating current (ICQ), which is usually a fixed parameter because it affects the performance; but the voltage is a variable, and the calibration voltages corresponding to different operating frequency bands and different motherboards vary greatly. Therefore, according to the calibration method of the aforementioned embodiment, a calibration voltage can also be set here.

[0133] In some embodiments, Figure 8 A flow chart of another method for calibrating a radio frequency circuit provided in an embodiment of the present application. Figure 8 As shown, the method includes:

[0134] S801: Determine a calibration voltage of a power amplifier.

[0135] S802: Scanning a first frequency band based on a calibration voltage to determine whether a current value of a target parameter and a preset value of the target parameter satisfy a first condition.

[0136] It should be noted that, in the embodiment of the present application, the radio frequency circuit includes a power amplifier. After setting the calibration voltage of the power amplifier, the calibration voltage can also be reduced in steps until a critical calibration voltage is found as the final calibration voltage. In some embodiments, the method can also include:

[0137] When a first condition is satisfied between a current value of the target parameter and a preset value of the target parameter, the calibration voltage is reduced according to a preset step size; based on the reduced calibration voltage, the first frequency band is scanned, and when the first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the operation of reducing the calibration voltage according to the preset step size is continued until the first condition is no longer satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful.

[0138] In the embodiment of the present application, when the scanning of the first frequency band is stopped, it is judged that the calibration is passed at this time, and the calibration information can also be written. Specifically, the method also includes: determining candidate calibration information when the current value of the most recent target parameter and the preset value of the target parameter meet the first condition, wherein the candidate calibration information at least includes the reduced calibration voltage; using the candidate calibration information as the calibration information corresponding to the first frequency band, and storing the calibration information in the memory.

[0139] In an embodiment of the present application, the target parameter may include a first calibration parameter and a second calibration parameter, wherein the first calibration parameter includes a relative gain index RGI, and the second calibration parameter includes a calibration power. That is, first, a calibration voltage may be set, and under the conditions of this calibration voltage and the set relative gain index RGI, if the calibration power can reach the target power, then the calibration voltage may be gradually reduced according to a preset step size (e.g., 0.5V) until a critical calibration voltage is found that just reaches the target power, at which point the calibration voltage is the most appropriate calibration voltage, and the calibration is judged to be passed, and the calibration information is written to the memory of the terminal device.

[0140] In another possible implementation, taking the scanning condition of increasing the target power as an example, Fig. 9 A detailed flow chart of another radio frequency circuit calibration method provided in an embodiment of the present application. Fig. 9 As shown, the detailed process may include:

[0141] S901: Determine and set a relative gain index RGI.

[0142] S902: Determine target power and calibration voltage.

[0143] S903: Scanning is performed using the full bias mode and the average power tracking APT mode.

[0144] S904: Determine whether the calibration power is greater than or equal to the target power and whether the calibration relative gain index RGI is less than or equal to the set relative gain index RGI?

[0145] S905: Determine whether the calibration power is less than the target power and whether the calibration relative gain index RGI is less than the set relative gain index RGI?

[0146] S906: Determine whether the calibration power is less than the target power and whether the calibration relative gain index RGI is equal to the set relative gain index RGI?

[0147] S907: The calibration voltage is reduced by 0.5V.

[0148] S908: Determine whether the calibration power is greater than or equal to the target power and whether the calibration relative gain index RGI is less than or equal to the set relative gain index RGI?

[0149] S909: Stop scanning, write the most recent calibration information that meets the target power and the set relative gain index RGI, and determine that the calibration is passed.

[0150] S910: Stop scanning and determine that calibration has failed.

[0151] It should be noted that, for step S904, if the judgment result is yes, then step S907 can be executed, that is, the calibration voltage is reduced by 0.5V; conversely, if the judgment result is no, then step S905 and step S906 can be executed, among which, if step S905 is established, step S903 is continued to be executed; if step S906 is established, step S910 is executed, that is, the scan is stopped, and it is determined that the calibration has failed.

[0152] It should be noted that for step S908, if the judgment result is yes, then continue to execute step S907 until step S908 is not established. At this time, the judgment result of step S908 is no, then execute step S909, that is, stop scanning, select the most recent calibration information that meets the target power and the set relative gain index RGI to write, and determine that the calibration is passed.

[0153] It should also be noted that, combined with Fig. 9 , the specific process of this calibration method is as follows:

[0154] 1) According to the characteristics of each PA, the calibration relative gain index RGI of each working frequency band is set to ensure that the PA input power corresponding to the set relative gain index RGI is within the PA reliability range;

[0155] 2) Set the calibration target power and calibration voltage, including the full voltage Full bias and the average power tracking APT target power;

[0156] 3) Perform full bias scan and average power tracking APT scan respectively;

[0157] 4) When the calibration relative gain index RGI is less than or equal to the set relative gain index RGI and the calibration power is greater than or equal to the target power, the calibration voltage is controlled to drop by 0.5V and recalibrated until the calibration voltage drops to a level that does not meet the target power and the set relative gain index RGI, then the calibration is stopped, the most recent calibration information that meets the conditions is taken and written, and the calibration is determined to be passed;

[0158] 5) When the calibration relative gain index RGI is less than the set relative gain index RGI and the calibration power is less than the target power, continue scanning;

[0159] 6) When the calibration relative gain index RGI is equal to the set relative gain index RGI and the calibration power is less than the target power, the calibration is stopped and it is determined that the calibration has failed.

[0160] In an embodiment of the present application, a calibration method for setting a calibration voltage is provided. Under the conditions of the calibration voltage and the set relative gain index RGI, if the target power can be achieved, the calibration voltage can be gradually reduced according to a preset step size until a critical calibration voltage is found that just reaches the calibration target power. At this time, the calibration power can be prevented from being too high, which may cause the PA to burn out, thereby improving the reliability of the PA. However, since the calibration voltage is gradually reduced according to the preset step size, although a more suitable calibration voltage can be found, the calibration time will be lengthened at the same time, increasing the time cost.

[0161] In yet another embodiment of the present application, based on the same inventive concept as the above embodiment, see Fig.10 , which shows a schematic diagram of the composition structure of a radio frequency circuit calibration device provided in an embodiment of the present application. Fig.10 As shown, the radio frequency circuit includes a power amplifier, and the calibration device 100 may include a setting unit 1001, a scanning unit 1002 and a judgment unit 1003, wherein:

[0162] The setting unit 1001 is configured to determine a preset value of a target parameter based on the first frequency band;

[0163] A scanning unit 1002 is configured to scan the first frequency band to determine a current value of a target parameter;

[0164] The judgment unit 1003 is configured to stop scanning the first frequency band and determine that the calibration of the first frequency band is successful when a first condition is met between the current value of the target parameter and the preset value of the target parameter; wherein the target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier.

[0165] In some embodiments, see Fig.10 The calibration device 100 may also include a storage unit 1004, which is configured to determine the calibration information corresponding to the first frequency band and store the calibration information in the memory when a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter; wherein the calibration information includes a mapping relationship between the calibration voltage, the calibration power and the relative gain index.

[0166] In some embodiments, a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, including: the current value of the second calibration parameter is greater than or equal to the preset value of the second calibration parameter, and the current value of the first calibration parameter is less than or equal to the preset value of the first calibration parameter.

[0167] In some embodiments, the judgment unit 1003 is further configured to continue scanning the first frequency band when a first condition is not satisfied between the current value of the target parameter and the preset value of the target parameter, and a second condition is satisfied between the current value of the target parameter and the preset value of the target parameter.

[0168] In some embodiments, the second condition is satisfied between the current value of the target parameter and the preset value of the target parameter, including: the current value of the second calibration parameter is less than the preset value of the second calibration parameter, and the current value of the first calibration parameter is less than the preset value of the first calibration parameter.

[0169] In some embodiments, the judgment unit 1003 is further configured to stop scanning the first frequency band and determine that the calibration of the first frequency band has failed when a first condition is not satisfied between the current value of the target parameter and the preset value of the target parameter, and a third condition is satisfied between the current value of the target parameter and the preset value of the target parameter.

[0170] In some embodiments, a third condition is satisfied between the current value of the target parameter and the preset value of the target parameter, including: the current value of the second calibration parameter is less than the preset value of the second calibration parameter, and the current value of the first calibration parameter is equal to the preset value of the first calibration parameter.

[0171] In some embodiments, the first calibration parameter comprises a relative gain index; and the second calibration parameter comprises a calibration power and / or a calibration compression point.

[0172] In some embodiments, the scanning unit 1002 is further configured to scan the first frequency band based on a full voltage mode and an average power tracking mode respectively when the second calibration parameter includes calibration power.

[0173] In some embodiments, the scanning unit 1002 is further configured to scan the first frequency band based on an envelope tracking method when the second calibration parameter includes a calibration compression point.

[0174] In some embodiments, the setting unit 1001 is further configured to determine a calibration voltage of the power amplifier;

[0175] The judgment unit 1003 is further configured to scan the first frequency band based on the calibration voltage to determine whether the current value of the target parameter and the preset value of the target parameter satisfy the first condition.

[0176] In some embodiments, the judgment unit 1003 is further configured to reduce the calibration voltage according to a preset step size when a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter; and based on the reduced calibration voltage, scan the first frequency band, and when the first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, continue to reduce the calibration voltage according to the preset step size until the first condition is no longer satisfied between the current value of the target parameter and the preset value of the target parameter, stop scanning the first frequency band, and determine that the calibration of the first frequency band is successful.

[0177] In some embodiments, the storage unit 1004 is further configured to determine, when stopping scanning of the first frequency band, candidate calibration information when a first condition is satisfied between the most recent current value of the target parameter and a preset value of the target parameter, wherein the candidate calibration information includes at least a reduced calibration voltage; use the candidate calibration information as calibration information corresponding to the first frequency band, and store the calibration information in the memory.

[0178] It can be understood that in this embodiment, a "unit" can be a part of a circuit, a part of a processor, a part of a program or software, etc., and of course it can also be a module, or it can be non-modular. Moreover, the components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional module.

[0179] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0180] Therefore, this embodiment provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by at least one processor, the steps of the method described in any one of the above embodiments are implemented.

[0181] Based on the composition of the calibration device 100 and the computer readable storage medium, see Fig.11 , which shows a schematic diagram of a specific hardware structure of a terminal device provided in an embodiment of the present application. Fig.11 As shown, the terminal device 110 may include: a communication interface 1101, a memory 1102 and a processor 1103; each component is coupled together via a bus system 1104. It is understood that the bus system 1104 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1104 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.11 Various buses are labeled as bus system 1104. Among them, the communication interface 1101 is used for receiving and sending signals in the process of sending and receiving information between other external network elements;

[0182] A memory 1102, used for storing a computer program that can be run on the processor 1103;

[0183] The processor 1103 is configured to execute, when running the computer program:

[0184] Based on the first frequency band, determining a preset value of a target parameter;

[0185] Scanning the first frequency band to determine the current value of the target parameter;

[0186] When a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful;

[0187] The target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier.

[0188] It can be understood that the memory 1102 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 1102 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0189] The processor 1103 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1103. The above-mentioned processor 1103 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1102, and the processor 1103 reads the information in the memory 1102 and completes the steps of the above method in combination with its hardware.

[0190] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0191] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0192] Optionally, as another embodiment, the processor 1103 is further configured to execute the steps of the method described in any one of the aforementioned embodiments when running the computer program.

[0193] In the embodiment of the present application, for the terminal device 110, since the judgment conditions of the calibration power and / or the calibration compression point are added, the calibration time of the PA can be saved, and the calibration power can be avoided to be too high, thereby protecting the PA from burning, thereby improving the reliability of the PA.

[0194] It should be noted that, in this application, the terms "include", "comprises" or any other variants 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 "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0195] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0196] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0197] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0198] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0199] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for calibrating a radio frequency circuit, characterized in that: The radio frequency circuit includes a power amplifier, and the method includes: Based on the first frequency band, determining a preset value of a target parameter; Scanning the first frequency band to determine a current value of the target parameter; When a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, stopping scanning of the first frequency band, and determining that the calibration of the first frequency band is successful; The target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier.

2. The method according to claim 1, characterized in that: The method further comprises: When a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, calibration information corresponding to the first frequency band is determined and the calibration information is stored in a memory; wherein the calibration information includes a mapping relationship between a calibration voltage, a calibration power and a relative gain index.

3. The method according to claim 1, characterized in that The current value of the target parameter and the preset value of the target parameter satisfy a first condition, including: The current value of the second calibration parameter is greater than or equal to a preset value of the second calibration parameter, and the current value of the first calibration parameter is less than or equal to the preset value of the first calibration parameter.

4. The method according to claim 1, characterized in that: The method further comprises: When the first condition is not satisfied between the current value of the target parameter and the preset value of the target parameter, and the second condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the first frequency band continues to be scanned.

5. The method according to claim 4, characterized in that The current value of the target parameter and the preset value of the target parameter satisfy the second condition, including: The current value of the second calibration parameter is less than the preset value of the second calibration parameter, and the current value of the first calibration parameter is less than the preset value of the first calibration parameter.

6. The method according to claim 1, characterized in that The method further comprises: When the first condition is not satisfied between the current value of the target parameter and the preset value of the target parameter, and the third condition is satisfied between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band has failed.

7. The method according to claim 6, characterized in that The current value of the target parameter and the preset value of the target parameter satisfy a third condition, including: The current value of the second calibration parameter is less than the preset value of the second calibration parameter, and the current value of the first calibration parameter is equal to the preset value of the first calibration parameter.

8. The method according to any one of claims 1 to 7, characterized in that The first calibration parameter comprises a relative gain index; The second calibration parameter comprises a calibration power and / or a calibration compression point.

9. The method according to claim 8, characterized in that When the second calibration parameter includes calibration power, scanning the first frequency band includes: The first frequency band is scanned based on a full voltage mode and an average power tracking mode respectively.

10. The method according to claim 8, characterized in that When the second calibration parameter includes a calibration compression point, scanning the first frequency band includes: The first frequency band is scanned based on an envelope tracking method.

11. The method according to claim 1, characterized in that: The method further comprises: determining a calibration voltage for the power amplifier; Based on the calibration voltage, the first frequency band is scanned to determine whether a first condition is satisfied between a current value of the target parameter and a preset value of the target parameter.

12. The method according to claim 11, characterized in that The method further comprises: When a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter, reducing the calibration voltage according to a preset step size; Based on the lowered calibration voltage, the first frequency band is scanned, and when a first condition is met between the current value of the target parameter and the preset value of the target parameter, the calibration voltage continues to be lowered according to a preset step size until the first condition is no longer met between the current value of the target parameter and the preset value of the target parameter, the scanning of the first frequency band is stopped, and it is determined that the calibration of the first frequency band is successful.

13. The method according to claim 12, characterized in that When stopping scanning the first frequency band, the method further includes: Determine candidate calibration information when the most recent current value of the target parameter and the preset value of the target parameter satisfy a first condition, wherein the candidate calibration information at least includes the reduced calibration voltage; The candidate calibration information is used as calibration information corresponding to the first frequency band, and the calibration information is stored in a memory.

14. A calibration device for a radio frequency circuit, characterized in that: The radio frequency circuit includes a power amplifier, and the calibration device includes a setting unit, a scanning unit and a judgment unit, wherein: The setting unit is configured to determine a preset value of the target parameter based on the first frequency band; The scanning unit is configured to scan the first frequency band to determine a current value of the target parameter; The judgment unit is configured to stop scanning the first frequency band and determine that the calibration of the first frequency band is successful when a first condition is satisfied between the current value of the target parameter and the preset value of the target parameter; wherein the target parameter includes a first calibration parameter and a second calibration parameter, and the first calibration parameter is associated with the input power of the power amplifier, and the second calibration parameter is associated with the output power of the power amplifier.

15. A terminal device, characterized in that: The terminal device includes a memory and a processor, wherein: The memory is used to store a computer program that can be run on the processor; The processor is configured to execute the method according to any one of claims 1 to 13 when running the computer program.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by at least one processor, the method according to any one of claims 1 to 13 is implemented.