Antenna tuning and detuning method and device, electronic equipment, chip and medium

By calibrating the tuner in the RF circuit, obtaining the combined S parameters and determining the optimal tuning code, the contradiction between antenna working bandwidth and gain in wireless communication equipment is solved, and efficient antenna tuning is achieved.

CN120074694APending Publication Date: 2025-05-30BEIJING X RING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311611325.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In wireless communication devices, the contradiction between antenna working bandwidth and gain leads to the demand for antenna aperture tuning and impedance tuning, but the prior art is difficult to effectively solve the tuning code search problem of unknown tuners.

Method used

By short-circuiting, open-circuiting and load calibration of the tuner in the RF circuit, the combined S parameters of the dual-directional coupler and the tuner are obtained, and the optimal tuning code is determined.

Benefits of technology

The optimal tuning/deharmonic code is achieved without search, which solves the problem that unknown tuners have to search for tuning codes, and improves the tuning efficiency of the antenna.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120074694A_ABST
    Figure CN120074694A_ABST
Patent Text Reader

Abstract

The invention provides an antenna tuning and detuning method and device, electronic equipment, a chip and a medium, and relates to the field of communication. The method comprises: calibrating a tuner in a radio frequency circuit to obtain an S parameter set of the radio frequency circuit, the S parameter set comprising S parameters corresponding to a plurality of tuning codes of the tuner; determining a target S parameter corresponding to the current tuning code from the S parameter set for a reference signal sent by a transmitter in the radio frequency circuit; according to the target S parameter, determining a tuning code meeting a first preset condition as a target tuning code, and / or determining a tuning code meeting a second preset condition as a target detuning code; and configuring the target tuning code and / or the target detuning code into the tuner. According to the method, the S parameter set can be obtained through calibration, then the target S parameter is obtained, the optimal tuning / detuning code is obtained in a search-free mode according to the parameter, tuning / detuning of different antennas is achieved, and flexible multi-antenna management is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communications, and in particular, to an antenna tuning and detuning method, apparatus, electronic device, chip, and medium. Background Art

[0002] In an antenna and radio frequency system for wireless communication, the upper limit of the ratio of antenna gain to antenna quality factor is determined by the antenna size. Since the antenna quality factor is inversely proportional to the operating bandwidth, wireless devices that need to accommodate more antennas will have to face the contradiction between the antenna operating bandwidth and antenna gain. Thus, there are two major requirements for antenna aperture tuning and antenna impedance tuning. Summary of the Invention

[0003] The present disclosure provides an antenna tuning and detuning method, apparatus, electronic device, chip, and medium. In a dynamic closed-loop antenna impedance tuning scenario, the combined S-parameters of the dual directional coupler and the tuner are obtained through short-circuit, open-circuit, and load calibration of the tuner, and then the optimal tuning code is obtained based on this parameter. Thus, the problem of having to search for tuning codes for unknown tuners is solved.

[0004] An embodiment of the first aspect of the present disclosure provides an antenna tuning and detuning method, which includes: calibrating a tuner in a radio frequency circuit to obtain a set of S-parameters of the radio frequency circuit, where the set of S-parameters includes the S-parameters corresponding to multiple tuning codes of the tuner; for a reference signal sent by a transmitter in the radio frequency circuit, determining the target S-parameter corresponding to the current tuning code from the set of S-parameters; according to the target S-parameter, determining the tuning code that satisfies the first preset condition as the target tuning code, and / or determining the tuning code that satisfies the second preset condition as the target detuning code; and configuring the target tuning code and / or the target detuning code into the tuner.

[0005] In some embodiments of the present disclosure, for a reference signal sent by a transmitter in the radio frequency circuit, determining the target S-parameter corresponding to the current tuning code from the set of S-parameters includes: determining whether the output power of the reference signal sent by the transmitter after passing through the power amplifier is greater than or equal to a power threshold; if the output power is greater than or equal to the power threshold, determining the input reflection coefficient; if the input reflection coefficient is greater than or equal to a coefficient threshold, determining the target S-parameter corresponding to the current tuning code from the set of S-parameters according to the current tuning code.

[0006] In some embodiments of the present disclosure, determining the input reflection coefficient includes: controlling the coupler switch of the radio frequency circuit to switch between the FB path and the FX path, and controlling the receiver of the radio frequency circuit to measure the amplitude and phase of the incident wave and the reflected wave of the reference signal to obtain the FB complex gain of the FB path and the FX complex gain of the FX path; and determining the ratio of the FX complex gain to the FB complex gain as the input reflection coefficient.

[0007] In some embodiments of the present disclosure, determining a tuning code that meets a first preset condition as a target tuning code, and / or determining a tuning code that meets a second preset condition as a target detuning code according to a target S parameter includes: converting an input reflection coefficient into an antenna load reflection coefficient according to the target S parameter; determining the target tuning code and / or the target detuning code according to the antenna load reflection coefficient, where the first preset condition is that the absolute value of the difference between the conjugate of the antenna load reflection coefficient and the target S parameter is the smallest, and the second preset condition is that the absolute value of the difference between the conjugate of the antenna load reflection coefficient and the target S parameter is the largest.

[0008] In some embodiments of the present disclosure, calibrating a tuner in a radio frequency circuit to obtain a set of S parameters of the radio frequency circuit includes: controlling an antenna switch in the radio frequency circuit to switch to a calibration module, where the calibration module includes a short - circuit state, an open - circuit state, and a state of connecting a matching load; for each tuning code corresponding to different switch combinations in the tuner, respectively switching the calibration module to the short - circuit state, the open - circuit state, and the state of connecting a matching load, and determining the load reflection coefficient in each state; controlling a coupler switch in the radio frequency circuit to switch between an FB path and an FX path, and respectively determining the input reflection coefficient in each state; determining the S parameter corresponding to each tuning code according to the input reflection coefficient in each state.

[0009] In some embodiments of the present disclosure, the radio frequency circuit includes a first antenna and a second antenna, the first antenna is a working antenna, and the second antenna is a non - working antenna. Determining a tuning code that meets a first preset condition as a target tuning code, and / or determining a tuning code that meets a second preset condition as a target detuning code includes: controlling the antenna switch of the radio frequency circuit to switch to the second antenna to determine the target detuning code for detuning the second antenna; controlling the antenna switch to switch to the first antenna to determine the target tuning code for tuning the first antenna.

[0010] A second - aspect embodiment of the present disclosure provides an antenna tuning and detuning device, including: a calibration module for calibrating a tuner in a radio frequency circuit to obtain a set of S parameters of the radio frequency circuit, where the set of S parameters includes S parameters corresponding to multiple tuning codes of the tuner; determining a target S parameter corresponding to the current tuning code from the set of S parameters for a reference signal emitted by a transmitter in the radio frequency circuit; determining a tuning code that meets a first preset condition as a target tuning code, and / or determining a tuning code that meets a second preset condition as a target detuning code according to the target S parameter; and configuring the target tuning code and / or the target detuning code into the tuner.

[0011] A third - aspect embodiment of the present disclosure provides an electronic device, including: a memory for storing processor - executable instructions; a processor configured to execute the executable instructions in the memory to implement the method described in the first - aspect embodiment of the present disclosure.

[0012] An embodiment of the fourth aspect of the present disclosure provides a computer-readable storage medium storing computer instructions, on which a computer program is stored. The program, when executed by a processor, implements the method described in the embodiment of the first aspect of the present disclosure.

[0013] An embodiment of the fifth aspect of the present disclosure provides a chip, including: one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from a memory of an electronic device and send the signals to the processors, and the signals include computer instructions stored in the memory; when the processors execute the computer instructions, the electronic device is caused to execute the method described in the embodiment of the first aspect of the present disclosure.

[0014] In summary, for the antenna tuning and detuning method proposed in the present disclosure, by calibrating a tuner in a radio frequency circuit, a set of S-parameters of the radio frequency circuit is obtained, and the set of S-parameters includes S-parameters corresponding to multiple tuning codes of the tuner; for a reference signal sent by a transmitter in the radio frequency circuit, a target S-parameter corresponding to the current tuning code is determined from the set of S-parameters; according to the target S-parameter, a tuning code that satisfies a first preset condition is determined as the target tuning code, and / or a tuning code that satisfies a second preset condition is determined as the target detuning code; the target tuning code and / or the target detuning code is configured into the tuner. This method can obtain the combined S-parameters of the bi-directional coupler and the tuner through short-circuit, open-circuit, and load-matching calibration of the tuner, and then obtain the antenna load reflection coefficient based on this parameter, and obtain the optimal tuning / detuning code in a non-searching manner.

[0015] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure, and do not constitute an improper limitation to the present disclosure.

[0017] Figure 1 Schematic diagram showing the influence of aperture tuning on the antenna operating frequency provided by an embodiment of the present disclosure;

[0018] Figure 2 Schematic diagram showing the influence of open-loop and closed-loop antenna impedance tuning on antenna matching provided by an embodiment of the present disclosure;

[0019] Figure 3 Schematic diagram of a typical closed-loop tuning system provided by an embodiment of the present disclosure;

[0020] Figure 4 Schematic diagram of a load reflection coefficient and a detected reflection coefficient provided by an embodiment of the present disclosure;

[0021] Figure 5 Schematic diagram of the two-port calibration model provided by the embodiments of the present disclosure;

[0022] Figure 6 Flowchart of a tuning and detuning method provided by the embodiments of the present disclosure;

[0023] Figure 7 Flowchart of the method for determining the target S parameters proposed by the embodiments of the present disclosure;

[0024] Figure 8 Flowchart of the method for determining the input reflection coefficient proposed by the embodiments of the present disclosure;

[0025] Figure 9 Flowchart of the method for determining the target tuning code and target detuning code proposed by the embodiments of the present disclosure;

[0026] Figure 10 Flowchart of the process of calibrating the tuner in the RF circuit to obtain the S parameter set of the RF circuit provided by the embodiments of the present disclosure;

[0027] Figure 11A Schematic diagram of the closed-loop antenna tuning structure of an embodiment of the present disclosure;

[0028] Figure 11B Flowchart of the calibration and tuning algorithm of an embodiment of the present disclosure;

[0029] Figure 11C Schematic diagram of the structure of a calibration and tuning framework module of the present disclosure;

[0030] Figure 11D Flowchart of the specific calculation process of the input reflection coefficient of the present disclosure;

[0031] Figure 11E Schematic diagram of the structure of an embodiment provided by the present disclosure;

[0032] Figure 11F Schematic diagram of the relationship between the antenna and the frequency band provided by the present disclosure;

[0033] Figure 12 Schematic diagram of the structure of an antenna tuning and detuning device proposed by the embodiments of the present disclosure;

[0034] Figure 13 Schematic diagram of the structure of the electronic device provided by the embodiments of the present disclosure;

[0035] Figure 14 Schematic diagram of the structure of the chip provided by the embodiments of the present disclosure. Detailed implementation manners

[0036] Embodiments of the present disclosure will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where like or similar reference numerals denote like or similar elements or elements having like or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present disclosure and should not be construed as limiting the present disclosure.

[0037] With the development of wireless communication technology, the bandwidth of wireless communication systems tends to become wider and the number of transceiver antennas increases. As a result, wireless devices need to accommodate more antennas within a limited volume to support higher bandwidths. However, the Chu limit theorem proves that the upper limit of the ratio of antenna gain to antenna quality factor is determined by the antenna size. Since the antenna quality factor is inversely proportional to the operating bandwidth, wireless devices that need to accommodate more antennas will have to face the contradiction between the antenna operating bandwidth and antenna gain. Thus, there are two natural requirements: antenna aperture tuning and antenna impedance tuning. Moreover, the integrated antennas of terminals often face complex and dynamic usage environments (such as being held, close to the user's head, close to metal objects, etc.), making the operating efficiency of the antennas unable to reach the optimum.

[0038] The overall efficiency of an antenna consists of two components: antenna radiation efficiency and antenna mismatch loss. Antenna aperture tuning improves the radiation efficiency of the antenna at a specific resonant frequency by loading different reactive devices; while antenna impedance tuning reduces the mismatch loss from the power amplifier to the antenna load through a matching network. Through dynamic aperture and impedance tuning, it is possible to ensure that a narrowband antenna switches operating frequency points within a relatively wide frequency band while maintaining a high antenna gain. As Figure 1 shown in the influence of aperture tuning on the antenna operating frequency, since it is difficult to monitor the antenna radiation condition through the transceiver, aperture tuning usually needs to be configured according to the antenna loading reactance switch combinations preset for the operating frequency point, bandwidth, and operating mode, which is an open-loop operating state. The matching state of the antenna can be determined by monitoring the reflection coefficient through a directional coupler, so impedance tuning can be adjusted dynamically in a closed loop, as Figure 2 shown in the influence of open-loop and closed-loop antenna impedance tuning on antenna matching. Therefore, closed-loop antenna impedance tuning is an important device in today's intelligent adaptive radio frequency systems. It monitors the change in antenna impedance by measuring the reflection coefficient and adjusts the configuration of the tunable matching network (or tuner) using the optimal tuner code found by the tuner control algorithm, thereby compensating for this mismatch loss under different environmental conditions. On the other hand, when multiple antennas coexist, they will couple with each other, thereby affecting the antenna radiation efficiency. To prevent non-operating antennas from affecting operating antennas, the non-operating antennas will be mismatched through tuning.

[0039] The closed-loop tuning scheme includes two main technical points: 1. Detection of the reflection coefficient; 2. Selection of the optimal tuning code. A typical closed-loop tuning system is as Figure 3As shown, the transmitter signal (Tx Signal) is sent into the impedance matching network (also known as the Antenna Impedance Tuner) through a bi-directional coupler and a radio frequency front-end (RFFE), and the impedance matching network is connected to the transmitting antenna. The incident wave (Vforward) on the coupled path can be coupled at the forward end of the bi-directional coupler, while the reflected wave (Vbackward) on the coupled path can be coupled at the reverse end. The coupled incident wave and the coupled reflected wave are respectively received by a feedback receiver (Feedback Rx, FBRx) to detect the reflection coefficient of the current path. The closed-loop tuning control algorithm outputs the optimal tuning code according to the reflection coefficient, and the antenna tuner configures the switches of the matching network according to the tuning code to achieve impedance matching from the Tx path to the antenna.

[0040] Dynamic adaptive antenna tuning was first proposed in avionics solutions in 1974 and is now widely used in wireless communication systems. Early dynamic impedance tuning schemes were implemented by detecting the voltage standing wave ratio (VSWR) and searching for tuning codes. Since the VSWR is a function of the modulus value of the reflection coefficient Γ, it can be simply estimated from the signal power detection value RSSI through the following formula:

[0041] When the VSWR exceeds the detection threshold, the tuning code is searched step by step until the detected VSWR value reaches the minimum, at which point the tuning is completed and the current tuning code configuration is fixed. There are defects in both the detection of the reflection coefficient and the selection of the tuning code in such methods: First, the reflection coefficient of the RF path changes periodically with the length of the transmission line, and the limited directivity of the coupler causes mutual leakage between the incident wave and the reflected wave, so the VSWR detected at the FBRx end is not equivalent to the VSWR value at the antenna port. Second, the step-by-step search tuning code algorithm is extremely rough. Typical algorithms such as line search, gradient search, or hill climbing cannot guarantee convergence and search speed, so it is easy to fall into a local optimal solution in practical applications and cannot improve the antenna efficiency.

[0042] To avoid the problem of step search, a look-up table (LUT) corresponding to different reflection coefficients is established under the fixed tuning code state. In the production line calibration state, the current tuning code is fixed, and different terminal loads are configured to detect the reflection coefficient, and the current optimal tuning code is selected according to the current load situation. Thus, the LUT of reflection coefficient - tuning code is established. In the actual working state, when the standing wave ratio exceeds the detection threshold, the tuning code is configured as the default value during table building, and the reflection coefficient is detected. After determining the region of the detected reflection coefficient on the LUT, interpolation is performed to obtain the optimal tuning code. Since the LUT needs to be established for each mismatch state of each tuning code, the corresponding table storage dimension is: the number of tuning codes × the number of mismatch states. Therefore, the total table storage dimension is too high and not suitable for terminal devices with limited memory. In addition, the mapping relationship in the LUT is limited by the topology of the RFFE, and the replacement of devices and the modification of transmission lines will both cause the LUT to fail. Therefore, the flexibility of this solution is limited.

[0043] According to Figure 4 the schematic diagram of load reflection coefficient and detected reflection coefficient shown in L it, a transfer function model is established for the matching network with known structure, and thus the antenna load reflection coefficient Γ can be directly deduced from the detected reflection coefficient Γ

[0044] Another method proposes a method for tuning code search according to the S-parameters (scattering parameters) of the matching network, the lumped element model of the tuner, and the load reflection coefficient Γ L When the S22 of the matching network is approximately equal to the conjugate of the load reflection coefficient Γ * L L L L LDue to the differences in device characteristics, this conversion is not accurate. Therefore, it is still necessary to search for the tuning code within a local range to achieve the maximum Relative Transducer Gain (RTG), and the search area is determined by the |S21| of the matching network and the lumped element model. Therefore, compared with the look-up table method, this method reduces the dimension of the LUT. Only the S11, S21, S12, and S22 parameters of each tuning code need to be stored, and the total dimension of the look-up table is: the number of tuning codes × 4. In addition, this method searches within a limited area, reducing the search range compared with the step-by-step search method. However, it still depends on the known tuner topology to determine the search interval and path.

[0045] Existing related technologies have provided a reflection coefficient calibration method. By adding open circuit, short circuit, and matched load branches before and after the tuner, S-parameter calibration is performed, thereby improving the accuracy of converting the detected reflection coefficient Γ to the load reflection coefficient Γ L As Figure 5 shown, for the incident wave a1 and reflected wave b1 on the input port side of the two-port matching network, and the incident wave a2 and reflected wave b2 from the matching network to the output port of the antenna. The antenna at the network output port is replaced by a short circuit, an open circuit, and a matched load respectively, and the reflection coefficients Γ 1 、Γ 2 and Γ 3 at the input port are measured. Since the load is known, the reflection coefficients Γ L1 、Γ L2 and Γ L3 at the output port under short circuit, open circuit, and matched load are all known, and the corresponding calibration equations are:

[0046]

[0047] In the service state, the reflection coefficient Γ measured at the network input port is converted to the load reflection coefficient Γ L at the antenna end as:

[0048] This calibration can provide a more accurate load reflection coefficient Γ L . In addition, this scheme is only proposed for reflection coefficient calibration and does not involve the selection of the optimal tuning code.

[0049] In summary, traditional VSWR-based tuning involves a large number of step searches and has a large VSWR estimation error; the look-up table method depends on a specific RF front-end circuit and has a large storage table dimension (number of tuning codes × number of mismatch states); the topological model method depends on a specific RF front-end and requires an accurately known matching network topology; the search based on conjugate matching and RTG requires a certain amount of blind search and a known network topology; the reflection coefficient calibration method can get rid of the need for a matching network topology through open-circuit, short-circuit, and matched load calibrations, but lacks a suitable tuning code selection strategy. In addition, none of the above related tuning technical solutions involve an antenna detuning solution.

[0050] In summary, to solve the technical problems in the related art, embodiments of the present disclosure provide an antenna tuning and detuning method. By calibrating the tuner in the RF circuit, a set of S-parameters of the RF circuit is obtained. The set of S-parameters includes the S-parameters corresponding to multiple tuning codes of the tuner. For the reference signal sent by the transmitter in the RF circuit, the target S-parameter corresponding to the current tuning code is determined from the set of S-parameters. According to the target S-parameter, the tuning code that meets the first preset condition is determined as the target tuning code, and / or the tuning code that meets the second preset condition is determined as the target detuning code. The target tuning code and / or the target detuning code is configured into the tuner. This technical solution can, for an unknown structure of the tuner and RF front-end, obtain the combined S-parameters of the bi-directional coupler and the tuner through short-circuit, open-circuit, and matched load calibrations of the tuner, and then obtain the antenna load reflection coefficient based on this parameter, and obtain the optimal tuning / detuning code in a non-searching manner.

[0051] Next, the tuning and detuning method provided by the present application will be introduced in detail with reference to the accompanying drawings.

[0052] Figure 6 It is a schematic flow chart of a tuning and detuning method proposed by embodiments of the present disclosure. As Figure 6 shown, this method is executed by a terminal. Specifically, it can be executed by the MCU related to the RF circuit in the terminal, or by a processor or an independent software. This method may include the following steps.

[0053] Step 601, calibrate the tuner in the RF circuit to obtain a set of S-parameters of the RF circuit.

[0054] In some embodiments, the set of S-parameters includes the S-parameters corresponding to multiple tuning codes of the tuner.

[0055] In some embodiments, calibrating the tuner is to calibrate the tuning codes and detuning codes of all antennas in the RF circuit. Specifically, the antennas are divided into low-frequency bands, medium-frequency bands, and high-frequency bands, and three typical antennas are selected for calibration.

[0056] In some embodiments, the parameters corresponding to the tuning codes can be reused. Specifically, there is a corresponding relationship between the antenna and the frequency band, and the S-parameters calculated from the tuning codes of the same frequency band can be reused for other tuning codes of the same frequency band.

[0057] In some embodiments, the S-parameters are used to obtain the corresponding load reflection coefficient, so as to determine the conjugate matching of the corresponding tuning code.

[0058] In some embodiments, different frequency bands have different S-parameters, so calibration needs to be performed under the corresponding excitation signals.

[0059] Specifically, the S-parameters are the S-parameters of the paths 205 to 208 in the figure.

[0060] Exemplarily, the RF front-end S-parameters under the current tuning code can be calculated through the reflection coefficients in the short-circuit, open-circuit, and matched load states. For example, the reflection coefficients in the short-circuit, open-circuit, and matched load states are Γ 1 , Γ 2 and Γ 3 respectively, to obtain the S-parameter matrix S 11 , S 12 , S 21 , S 22 , where S 12 and S 21 are the same. By traversing different frequency bands, an S-parameter set is obtained.

[0061] In the above embodiments, the purpose of calibration is to obtain the S-parameters of the equivalent four-port RF front-end formed by four nodes: the power amplifier, the antenna switch, the switched FB path, and the switched FX path. The S-parameters correspond one-to-one with the closed-loop antenna tuning codes.

[0062] Step 602: Determine the target S-parameter corresponding to the current tuning code from the S-parameter set for the reference signal sent by the transmitter in the RF circuit.

[0063] In some embodiments, for each reference signal sent by the transmitter in the RF circuit, the target S-parameter corresponding to the current tuning code of the signal can be determined from the S-parameter set.

[0064] In some embodiments, the target S-parameter corresponds to a specific antenna.

[0065] Step 603: Determine the tuning code that satisfies the first preset condition as the target tuning code, and / or determine the tuning code that satisfies the second preset condition as the target detuning code according to the target S-parameter.

[0066] In some embodiments, the first preset condition is the condition for judging the target tuning code, and the second preset condition is the condition for judging the target detuning code.

[0067] In some embodiments, the first preset condition may be that the absolute value between the conjugate of the antenna load reflection coefficient calculated according to the target S parameter and the target S parameter is the smallest; the second preset condition may be that the absolute value between the conjugate of the antenna load reflection coefficient calculated according to the target S parameter and the target S parameter is the largest.

[0068] In some embodiments, the target tuning code is used to tune the working antenna, and the target detuning code is used to detune the non-working antenna, so as to avoid mutual coupling and reduced radiation efficiency between antennas due to the close layout of multiple antennas.

[0069] Exemplarily, the radio frequency circuit includes a first antenna and a second antenna, the first antenna is the working antenna, and the second antenna is the non-working antenna.

[0070] Control the antenna switch of the radio frequency circuit to switch to the second antenna, determine the target detuning code to detune the second antenna; control the antenna switch to switch to the first antenna, and determine the target tuning code to tune the first antenna.

[0071] Step 604, configure the target tuning code and / or the target detuning code into the tuner.

[0072] In some embodiments, configuring the target tuning code and / or the target detuning code into the tuner can achieve the purpose of tuning / detuning different antennas and flexible multi-antenna management.

[0073] In summary, in the above embodiments of the present application, by calibrating the tuner in the radio frequency circuit, a set of S parameters of the radio frequency circuit is obtained; for the reference signal sent by the transmitter in the radio frequency circuit, the target S parameter corresponding to the current tuning code is determined from the set of S parameters; according to the target S parameter, the tuning code that satisfies the first preset condition is determined as the target tuning code, and / or the tuning code that satisfies the second preset condition is determined as the target detuning code; the target tuning code and / or the target detuning code are configured into the tuner to complete the process of antenna tuning and detuning. This method can calibrate an unknown tuner to obtain the target S parameter, and thus determine the corresponding tuning code according to the target S parameter, realizing the tuning / detuning of different antennas and multi-antenna management.

[0074] Figure 7 This is the flowchart of the method for determining the target S parameter proposed in the embodiments of the present disclosure. Based on Figure 6 the embodiments shown, Figure 7 is a further description of Figure 6 step 602. Figure 7 The embodiments shown may include the following steps.

[0075] Step 701, determine whether the output power of the reference signal sent by the transmitter after passing through the power amplifier is greater than or equal to the power threshold.

[0076] In some embodiments, a transmitter is used to generate a radio frequency signal and transmit a reference signal to a receiver for reflection coefficient estimation.

[0077] In some embodiments, different reference signals are sent to the transmitter, and the output power of different reference signals after passing through a power amplifier is compared with a power threshold to determine the target S parameter of the current reference signal.

[0078] In some embodiments, the power threshold is a pre-set value used to judge the output power.

[0079] Step 702: If the output power is greater than or equal to the power threshold, determine the input reflection coefficient.

[0080] In some embodiments, if the output power is less than the power threshold, return to step 701 to re-determine the reference signal for power amplification.

[0081] In some embodiments, the input reflection coefficient is calculated from the amplitudes and phases of the incident wave and the reflected wave of the radio frequency circuit under different load conditions.

[0082] In some embodiments, determining the input reflection coefficient is to calculate the antenna load reflection coefficient corresponding to the tuning code, so as to determine the target S parameter of the corresponding radio frequency front end according to the relationship between the antenna load reflection coefficient and the S parameter.

[0083] Step 703: If the input reflection coefficient is greater than or equal to the coefficient threshold, determine the target S parameter corresponding to the current tuning code from the S parameter set according to the current tuning code.

[0084] In some embodiments, the coefficient threshold is a pre-set value used to judge whether the input reflection coefficient meets the requirements of the current tuning.

[0085] In some embodiments, if the input reflection coefficient is less than the coefficient threshold, return to step 701 to re-judge.

[0086] Figure 8 This is a flowchart of the method for determining the input reflection coefficient proposed in the embodiments of the present disclosure. Based on Figure 7 the embodiments shown, Figure 8 for Figure 7 step 702 in the embodiments is further described. As Figure 8 shown, it includes the following steps:

[0087] Step 801: Control the coupler switch of the radio frequency circuit to switch between the FB path and the FX path, and control the receiver of the radio frequency circuit to measure the amplitudes and phases of the incident wave and the reflected wave of the reference signal to obtain the FB complex gain of the FB path and the FX complex gain of the FX path.

[0088] Exemplarily, the transmitter transmits a reference signal to the receiver. After passing through a power amplifier and a directional coupler, the radio frequency signal is sent to a tuner for impedance transformation and then fed back to the load of the calibration module. The incident wave on the path from the power amplifier to the tuner is coupled out by the FB interface of the coupler. The receiver samples the coupled incident wave at the FB interface and performs a conversion with the reference signal of the transmitter to obtain the complex gain G of the incident wave. FB 。

[0089] Exemplarily, switch the coupler switch to the FX path. By sampling the coupled reflected wave at the FX interface by the receiver, the complex gain G of the reflected wave can be obtained. FX 。

[0090] In some embodiments, by switching the three states of the calibration module, short circuit, open circuit, and connected to a matching load, the complex gain of the incident wave and the complex gain of the reflected wave in the three states are obtained respectively.

[0091] Step 802, determine the ratio of the FX complex gain to the FB complex gain as the input reflection coefficient.

[0092] Exemplarily, according to the complex gains of the FB and FX paths, the input reflection coefficient Γ = G FX / G FB ,

[0093] In some embodiments, the input reflection coefficient is used to determine whether the current antenna needs to be tuned.

[0094] Figure 9 The figure is a flowchart of a method for determining a target tuning code and a target detuning code proposed in an embodiment of the present disclosure. Based on Figure 6 the embodiment shown, Figure 9 for Figure 6 step 603 in the embodiment is further described. As Figure 9 shown, it includes the following steps:

[0095] Step 901, convert the input reflection coefficient into an antenna load reflection coefficient according to the target S parameter.

[0096] In some embodiments, the target S parameter is a matrix of the target S parameter corresponding to the current tuning code. Exemplarily, the target S parameter includes S 11 、S 12 、S 21 、S 22 。

[0097] In some embodiments, according to the target S parameter, the input reflection coefficient is converted into an antenna load reflection coefficient Γ according to the formula L 。

[0098] Step 902: Determine the target tuning code and / or the target detuning code according to the antenna load reflection coefficient.

[0099] In some embodiments, when the source end is matched with the load end, i.e., S 22 = Γ * L , look up the table to obtain c that satisfies the following conditions n as the target tuning code: Obtain cn′ that satisfies the following conditions as the target detuning code:

[0100] In some embodiments, the target tuning code and the target detuning code are the tuning code and the detuning code corresponding to the current antenna, respectively, and can be used to tune / detune the antenna.

[0101] In the embodiments of the present disclosure, accurately estimating the load reflection coefficient according to the input reflection coefficient and determining the tuning code and / or the detuning code that meet the conditions based on the load reflection coefficient can obtain more adaptable tuning code and / or detuning code.

[0102] Figure 10 It is a schematic flow chart of calibrating a tuner in a radio frequency circuit to obtain a set of S parameters of the radio frequency circuit according to the embodiments of the present disclosure. As Figure 10 shown, the method may include the following steps:

[0103] Step 1001: Control the antenna switch in the radio frequency circuit to switch to the calibration module.

[0104] In some embodiments, the calibration module includes a short-circuit state, an open-circuit state, and a state of connecting to a matching load.

[0105] Step 1002: For each tuning code corresponding to different switch combinations in the tuner, switch the calibration module to the short-circuit state, the open-circuit state, and the state of connecting to a matching load respectively, and determine the load reflection coefficient in each state.

[0106] In some embodiments, the matching network of the tuner is composed of a stack of switch resistors and capacitors. Different switch combinations correspond to a tuning code, and the transformation and matching of different load impedances are realized by switching the tuning code.

[0107] In some embodiments, it is necessary to configure the tuning code of the tuner and traverse the tuning code in multiple rounds of calibration.

[0108] In some embodiments, switch the calibration module to the short-circuit state, the open-circuit state, and the state of connecting to a matching load respectively, so that the load reflection coefficients at the antenna end are -1, +1, and 0 respectively.

[0109] Step 1003: Control the coupler switch of the RF circuit to switch between the FB path and the FX path, and determine the input reflection coefficient in each state respectively.

[0110] In some embodiments, when the calibration module is in the short - circuit state, open - circuit state, and matched - load state respectively, control the coupler switch of the RF circuit to switch between the FB path and the FX path, so as to obtain the input reflection coefficient in each state.

[0111] In some embodiments, the input reflection coefficient is the ratio of the complex gain of the reflected wave to the complex gain of the incident wave. Exemplarily, when the coupler switch is on the FX path, the receiver samples the coupled reflected wave at the FX interface to obtain the complex gain G FX of the reflected wave. When the coupler switch is on the FB path, the receiver samples the coupled incident wave at the FB interface to obtain the complex gain G FB of the incident wave. Based on Γ = G FX / G FB , the input reflection coefficient under the current tuning code can be obtained, and the input reflection coefficients in each corresponding state are Γ 1 , Γ 2 , and Γ 3 .

[0112] Step 1004: Determine the S - parameters corresponding to each tuning code according to the input reflection coefficient in each state.

[0113] In some embodiments, for the current tuning code, the value of the matrix of its corresponding S - parameters can be obtained through the following formula.

[0114] S 11 = Γ3; where S 21 is the same as S 12 .

[0115] In some embodiments, by traversing all tuning codes, the matrix of S - parameters corresponding to each tuning code can be obtained.

[0116] Figure 11A is a schematic diagram of a closed - loop antenna tuning structure according to an embodiment of the present disclosure. As Figure 11A shown, this solution is applied to the dynamic closed - loop antenna impedance tuning scenario.

[0117] When the user of the terminal device holds the antenna, brings the device close to the head for a call, or places the device beside a metal object, the load impedance of the antenna will change, which will further cause the mismatch at the output end of the transmitter power amplifier. The VSWR and reflection coefficient of the RF path will both increase, thereby reducing the output power and working efficiency of the whole machine. When the receiving circuit detects that the VSWR exceeds the threshold, the closed - loop antenna tuning process is started.

[0118] The transmitting circuit 101 generates a service signal and sends it to the power amplifier 102. The power amplifier outputs the amplified signal, which is sent to the antenna 105 after passing through the dual-directional coupler 103 and the tuner 104, and is radiated into free space by the antenna 105. When the antenna is not in a free space environment, its load impedance will change, which will lead to the matching failure of the original tuner 104. Therefore, there are reflected waves on the transmission line between the power amplifier 102 and the antenna 105. At the same time, the incident wave and the reflected wave on this transmission line are coupled into the receiving circuit 105 through the FB and FX ports of the dual-directional coupler 103 respectively. The receiving circuit 105 selects to detect the amplitude and phase of the incident wave and the reflected wave by switching the switches of the FB and FX ports, and estimates the reflection coefficient on the transmission line at the antenna port 105. The closed-loop tuning algorithm 107 obtains the optimal tuning code according to the estimated reflection coefficient and configures it to the tuner 104. Thus, a closed-loop tuning process is completed, and the matching between the power amplifier 102 and the antenna 105 is achieved.

[0119] Figure 11B It is a schematic diagram of the calibration and tuning algorithm process of an embodiment of the present disclosure. As Figure 11B shown:

[0120] The entire closed-loop tuning includes two processes: calibration and tuning. The calibration and tuning framework module is as Figure 11C shown. The purpose of calibration is to obtain the S parameters of the equivalent four-port RF front end composed of four nodes: the power amplifier 1102, the antenna switch 1105, the coupling switch 1108 that switches the FB path and the FX path. Tuning is to estimate the load reflection coefficient according to the calibrated S parameters and select the tuning code with appropriate S parameters for corresponding conjugate matching.

[0121] The calibration process includes the following steps:

[0122] 1. Initialize the operating frequency band and received signal of the transmitter 1101 and the receiver 1109. Different frequency bands have different S parameter characteristics, so calibration needs to be performed under corresponding excitation signals.

[0123] 2. Switch the antenna switch 1105 to the calibration module 1107. The calibration module 1107 has three states to choose from: short circuit, open circuit, and connected to a matching load. The matching network of the tuner 1104 consists of a bunch of switched resistors, capacitors, and different switch combinations correspond to a tuning code c n , and different load impedances are transformed and matched by switching the tuning code.

[0124] 3. Configure the tuning code of the tuner and traverse the tuning code in multiple calibration processes.

[0125] 4. Configure the calibration module 1107 to be short-circuited so that the load reflection coefficient at the antenna end is -1.

[0126] 5. The receiver 1109 switches between the FB and FX paths through the coupler switch 1108, measures the amplitudes and phases of the incident wave and the reflected wave, and converts them into the input reflection coefficient Γ in the short - circuit state. 1 .

[0127] 6. Configure the calibration module 1107 to be open - circuited so that the load reflection coefficient at the antenna end is +1.

[0128] 7. The receiver 1109 switches between the FB and FX paths through the coupler switch 1108, measures the amplitudes and phases of the incident wave and the reflected wave, and converts them into the input reflection coefficient Γ in the open - circuit state. 2 .

[0129] 8. Configure the calibration module 1107 to be connected to a matched load so that the load reflection coefficient at the antenna end is 0.

[0130] 9. The receiver 1109 switches between the FB and FX paths through the coupler switch 1108, measures the amplitudes and phases of the incident wave and the reflected wave, and converts them into the input reflection coefficient Γ in the state of being connected to a matched load. 3 .

[0131] The specific calculation processes of the input reflection coefficients in steps 5, 7, and 9 are as follows Figure 11D shown. First, switch the coupler switch 1108 to the FB path. The transmitter 1101 is used to generate a radio - frequency signal and transmit the base - band reference signal to the receiver 1109 for reflection - coefficient estimation. After the radio - frequency signal passes through the power amplifier 1102 and the directional coupler 1103, it is fed into the tuner 1104 for impedance transformation and then fed to the load of the calibration module 1107. The incident wave on the path from the power amplifier 1102 to the tuner 1104 is coupled out by the FB interface of the directional coupler 1103. The receiver 1109 samples the coupled incident wave at the FB interface and performs conversion with the base - band reference signal of the transmitter 1101 to obtain the complex gain GFB of the incident wave. Similarly, switch the coupler switch 1108 to the FX path. The receiver 1109 samples the coupled reflected wave at the FX interface to obtain the complex gain GFX of the reflected wave. Given the complex gains of the FB and FX paths, the input reflection coefficient is: Γ = G FX / G FB ;

[0132] 10. The processor 1110 calculates the RF front - end S - parameters S 1 、Γ 2 and Γ 3 in the short - circuit, open - circuit, and matched - load states of the calibration module 1107 to calculate the RF front - end S - parameters S n (n) = Γ 11 ; 3 ; And store the S parameters into the current tuning code c n in the corresponding LUT table 1111

[0133] 11. Determine whether the traversal of the tuning code is completed. If "yes", end the calibration of the current frequency band; otherwise, go back to step 3 to configure the next tuning code

[0134] 12. Determine whether the calibration of all frequency bands is completed. If "yes", end the calibration; otherwise, go back to step 2 to configure the parameters of the next frequency band

[0135] The tuning process includes the following steps

[0136] 13. Initialize the closed-loop tuning parameter configuration, and use the default open-loop tuning code. At this time, the antenna switch 1105 switches to the antenna 1106

[0137] 14. Determine whether the output power of the transmitter 1101 after passing through the power amplifier 1102 exceeds the power threshold Pt for the reflection coefficient detection. If "yes", enter step 15; otherwise, return to step 13

[0138] 15. Switch between the FB and FX paths through the coupler switch 1108, measure the amplitude and phase of the incident wave and the reflected wave by the receiver 1109, and the processor 1110 converts the measurement results into the input reflection coefficient Γ

[0139] 16. Determine whether the input reflection coefficient Γ exceeds the threshold. If "yes", enter step 17 to continue the closed-loop tuning; otherwise, go back to step 13

[0140] 17. The processor 1110 selects the corresponding S parameter from the LUT according to the current tuning code c n and converts the input reflection coefficient Γ to the antenna load reflection coefficient Γ L :

[0141] When both the source end and the load end are matched, S22 = Γ is satisfied L .

[0142] 18. Look up the tuning code c in the LUT that satisfies the following relationship n : as the optimal tuning code. Conversely, if it satisfies the following relationship, it is the optimal detuning code c n′ :

[0143] 19. Configure this tuning code c n or c n′ into the tuner 1104 and wait for the next reflection coefficient measurement

[0144] Figure 11EStructural diagram of an embodiment provided by the present disclosure.

[0145] As Figure 11E shown, generally, a communication system needs to support different operating frequency bands within a relatively wide frequency range, and an integrated antenna requires a high quality factor to maintain radiation efficiency. Since a single antenna covers a narrow frequency band, the same transceiver will switch multiple antennas through an antenna switch to adapt to different operating frequency bands. Due to the close layout of multiple antennas, there is mutual coupling between the antennas and the radiation efficiency is reduced. Therefore, it is necessary to tune the working antenna and detune the non-working antenna. In this embodiment, two antennas are taken as an example. As Figure 11F shown: Antenna 1 covers frequency band 1, and Antenna 2 covers frequency band 2.

[0146] During the calibration phase, it is necessary to calibrate the S-parameters of each tuning code under different frequency bands. In this embodiment, only frequency band 1 and frequency band 2 are described. Initialize the configuration so that the transceiver operates in frequency band 1, keep the antenna switch 11E5 in the off state, and then configure the load side of the tuner to be short-circuited, open-circuited, and connected to a matching load. Among them, the short-circuit switch 11E8 is turned on and the antenna switch 11E5 is turned on, and the load side of the tuner is short-circuited; the short-circuit switch 11E8 is turned off and the antenna switch 11E5 is turned on, and the load side of the tuner is open-circuited; the short-circuit switch 11E8 is turned off and the antenna switch 11E5 is switched to Antenna 1, and the load side of the tuner is connected to a load. Usually, the antenna during the calibration phase is in an ideal state, so connecting the antenna load is equivalent to load-end matching. The receiver 11E10 obtains the complex gains GFB and GFX of the incident wave and the reflected wave by switching through the coupler switch 11E9 at the coupler FB and FX interfaces, and then respectively obtains the input reflection coefficients Γ 1 、Γ 2 and Γ 3 , and then converts to S-parameters according to Γ 1 、Γ 2 and Γ 3 . When the traversal of the tuning codes is completed, then configure the operating frequency band of the transceiver in frequency band 2 and repeat the above operations. The only difference is that the state of the load side matching of the tuner is: the short-circuit switch 11E8 is turned off and the antenna switch 11E5 is switched to Antenna 2.

[0147] During the tuning / detuning phase, assume that Antenna 1 is working and Antenna 2 is not working. First, switch the antenna switch to Antenna 2. The receiver 11E10 obtains the complex gains G FB and G FX of the incident wave and the reflected wave by switching through the coupler switch 11E9 at the coupler FB and FX interfaces, and then obtains the input reflection coefficient Γ, and converts it to the load reflection coefficient Γ L2 according to the calibrated S-parameters. Since Antenna 2 is in a non-working state and needs to be detuned, so select |S22(n′)-ΓL2 |The maximum tuning code c n′ Then switch the antenna switch back to Antenna 1, obtain the input reflection coefficient, and convert it to the load reflection coefficient Γ according to the calibration result L1 Since Antenna 1 is in the working state and tuning is required, |S22(n)-Γ is selected L2 |The minimum tuning code c n Thus, the decoupling management of Antenna 1 and Antenna 2 is completed.

[0148] Figure 12 FIG. is a schematic structural diagram of an antenna tuning and detuning device proposed by an embodiment of the present disclosure. As Figure 12 shown, the device includes: a calibration module 1201 and a tuning module 1202. The calibration module 1201 is used to calibrate the tuner in the radio frequency circuit to obtain a set of S-parameters of the radio frequency circuit. The set of S-parameters includes the S-parameters corresponding to multiple tuning codes of the tuner;

[0149] The tuning module 1202 is used to determine the target S-parameter corresponding to the current tuning code from the set of S-parameters for the reference signal sent by the transmitter in the radio frequency circuit; according to the target S-parameter, determine the tuning code that satisfies the first preset condition as the target tuning code, and / or determine the tuning code that satisfies the second preset condition as the target detuning code; configure the target tuning code and / or the target detuning code into the tuner.

[0150] In some embodiments, the calibration module is further used to control the antenna switch in the radio frequency circuit to switch to the calibration module, where the calibration module includes a short-circuit state, an open-circuit state, and a state of connecting a matching load; for each tuning code corresponding to different switch combinations in the tuner, respectively switch the calibration module to the short-circuit state, the open-circuit state, and the state of connecting a matching load, and determine the load reflection coefficient in each state; control the coupler switch in the radio frequency circuit to switch between the FB path and the FX path, and respectively determine the input reflection coefficient in each state; according to the input reflection coefficient in each state, determine the S-parameter corresponding to each tuning code.

[0151] In some embodiments, the tuning module is further used to determine whether the output power of the reference signal sent by the transmitter after passing through the power amplifier is greater than or equal to the power threshold; if the output power is greater than or equal to the power threshold, determine the input reflection coefficient; if the input reflection coefficient is greater than or equal to the coefficient threshold, according to the current tuning code, determine the target S-parameter corresponding to the current tuning code from the set of S-parameters.

[0152] In some embodiments, the tuning module is further configured to control the coupler switch of the RF circuit to switch between the FB path and the FX path, and control the receiver of the RF circuit to measure the amplitude and phase of the incident wave and the reflected wave of the reference signal, so as to obtain the FB complex gain of the FB path and the FX complex gain of the FX path; determine the ratio of the FX complex gain to the FB complex gain as the input reflection coefficient.

[0153] In some embodiments, the tuning module is further configured to convert the input reflection coefficient into an antenna load reflection coefficient according to the target S parameter; determine the target tuning code and / or the target detuning code according to the antenna load reflection coefficient, where the first preset condition is that the absolute value of the difference between the conjugate of the antenna load reflection coefficient and the target S parameter is the smallest, and the second preset condition is that the absolute value of the difference between the conjugate of the antenna load reflection coefficient and the target S parameter is the largest.

[0154] In some embodiments, the tuning module is further configured to control the antenna switch of the RF circuit to switch to the second antenna, determine the target detuning code to detune the second antenna; control the antenna switch to switch to the first antenna, determine the target tuning code to tune the first antenna. The RF circuit includes a first antenna and a second antenna, the first antenna is the working antenna, and the second antenna is the non-working antenna.

[0155] In summary, the antenna tuning and detuning method proposed by the present disclosure calibrates the tuner in the RF circuit to obtain the S parameter set of the RF circuit, and the S parameter set includes the S parameters corresponding to multiple tuning codes of the tuner; for the reference signal sent by the transmitter in the RF circuit, determine the target S parameter corresponding to the current tuning code from the S parameter set; according to the target S parameter, determine the tuning code that satisfies the first preset condition as the target tuning code, and / or determine the tuning code that satisfies the second preset condition as the target detuning code; configure the target tuning code and / or the target detuning code into the tuner. It can obtain the S parameter set through calibration, determine the target S parameter according to the reference signal, and then obtain the optimal tuning / detuning code, realize the tuning / detuning of different antennas, and flexible multi-antenna management.

[0156] Figure 13 FIG. 1300 is a schematic structural diagram of an electronic device 1300 for implementing the above antenna tuning and detuning method according to an exemplary embodiment.

[0157] For example, the electronic device 1300 may be a mobile phone, a computer, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0158] Refer to Figure 13, the electronic device 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input / output (I / O) interface 1312, a sensor component 1314, and a communication component 1316.

[0159] The processing component 1302 generally controls the overall operation of the electronic device 1300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 1302 may include one or more modules to facilitate the interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate the interaction between the multimedia component 1308 and the processing component 1302.

[0160] The memory 1304 is configured to store various types of data to support the operation of the electronic device 1300. Examples of such data include instructions for any application or method operating on the electronic device 1300, contact data, phone book data, messages, pictures, videos, etc. The memory 1304 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0161] The power component 1306 provides power to various components of the electronic device 1300. The power component 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1300.

[0162] The multimedia component 1308 includes a screen that provides an output interface between the electronic device 1300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of a touch or swipe action but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 1308 includes a front camera and / or a rear camera. When the electronic device 1300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0163] The audio component 1310 is configured to output and / or input audio signals. For example, the audio component 1310 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 1300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 further includes a speaker for outputting audio signals.

[0164] The I / O interface 1312 provides an interface between the processing component 1302 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.

[0165] The sensor component 1314 includes one or more sensors for providing an assessment of the status of various aspects of the electronic device 1300. For example, the sensor component 1314 can detect the on / off state of the electronic device 1300, the relative positioning of components, such as the display and the keypad of the electronic device 1300. The sensor component 1314 can also detect a change in the position of the electronic device 1300 or a component of the electronic device 1300, the presence or absence of user contact with the electronic device 1300, the orientation or acceleration / deceleration of the electronic device 1300, and a change in the temperature of the electronic device 1300. The sensor component 1314 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 1314 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1314 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0166] The communication component 1316 is configured to facilitate communication between the electronic device 1300 and other devices in a wired or wireless manner. The electronic device 1300 can access a communication standard-based wireless network, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio), or a combination thereof. In an exemplary embodiment, the communication component 1316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1316 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0167] In an exemplary embodiment, the electronic device 1300 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0168] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1304 including instructions, and the above instructions can be executed by a processor 1320 of the electronic device 1300 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0169] Embodiments of the present disclosure also propose a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the antenna tuning and detuning method described in the above embodiments of the present disclosure.

[0170] Embodiments of the present disclosure also propose a computer program product, including a computer program, and the computer program is used to execute the antenna tuning and detuning method described in the above embodiments of the present disclosure when being executed by a processor.

[0171] Figure 14 FIG. 18 is a schematic structural diagram of a chip 1400 for implementing the above antenna tuning and detuning method shown according to an exemplary embodiment. Refer to Figure 14, the chip 1400 includes at least one communication interface 1401 and a processor 1402. The communication interface 1401 is configured to receive signals input to the chip 1400 or signals output from the chip 1400. The processor 1402 communicates with the communication interface 1401 and implements the antenna tuning and detuning method described in the above embodiments of the present disclosure through logic circuits or by executing code instructions.

[0172] It should be noted that the terms "first", "second", etc. in the description of the present disclosure's specification, claims, and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described here can be implemented in an order other than those illustrated or described here. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0173] In the description of this specification, the description with reference to terms such as "one implementation manner", "some implementation manners", "illustrative implementation manners", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the implementation manner or example are included in at least one implementation manner or example of the present disclosure. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same implementation manner or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more implementation manners or examples in a suitable manner.

[0174] Any process or method description shown in a flowchart or described in other ways herein can be understood as representing a module, segment, or part of code including one or more executable instructions for implementing a specific logical function or process. The scope of the preferred implementation manners of the present disclosure includes additional implementations, where the functions can be executed in a manner other than that shown or discussed, including in a substantially simultaneous manner according to the functions involved or in a reverse order, which should be understood by those skilled in the technical field to which the embodiments of the present disclosure belong.

[0175] The logic and / or steps represented in the flowchart or otherwise described herein can, for example, be considered a definable sequence list of executable instructions for implementing logical functions, which can be embodied specifically in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other systems that can fetch instructions from the instruction execution system, apparatus, or device and execute the instructions), or used in conjunction with these instruction execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (control method), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which a program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other appropriate processing as necessary, and then stored in a computer memory.

[0176] It should be understood that various parts of the embodiments of the present disclosure can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0177] Those of ordinary skill in the art of this technology can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiments.

[0178] In addition, each functional unit in various embodiments of the present disclosure may be integrated into one processing module, may exist separately as individual physical units, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.

[0179] Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present disclosure.

Claims

1. An antenna tuning and detuning method, characterized in that, the method includes: Calibrating the tuner in the RF circuit to obtain the S-parameter set of the RF circuit, where the S-parameter set includes the S-parameters corresponding to multiple tuning codes of the tuner; For the reference signal emitted by the transmitter in the RF circuit, determining the target S-parameter corresponding to the current tuning code from the S-parameter set; According to the target S-parameter, determining the tuning code that meets the first preset condition as the target tuning code, and / or determining the tuning code that meets the second preset condition as the target detuning code; Configuring the target tuning code and / or the target detuning code into the tuner.

2. The method according to claim 1, characterized in that, the determining the target S-parameter corresponding to the current tuning code from the S-parameter set for the reference signal emitted by the transmitter in the RF circuit includes: Determining whether the output power of the reference signal emitted by the transmitter after passing through the power amplifier is greater than or equal to the power threshold; If the output power is greater than or equal to the power threshold, determining the input reflection coefficient; If the input reflection coefficient is greater than or equal to the coefficient threshold, determining the target S-parameter corresponding to the current tuning code from the S-parameter set according to the current tuning code.

3. The method according to claim 2, characterized in that, the determining the input reflection coefficient includes: Controlling the coupler switch of the RF circuit to switch between the FB path and the FX path, and controlling the receiver of the RF circuit to measure the amplitude and phase of the incident wave and the reflected wave of the reference signal to obtain the FB complex gain of the FB path and the FX complex gain of the FX path; Determining the ratio of the FX complex gain to the FB complex gain as the input reflection coefficient.

4. The method according to claim 2 or 3, characterized in that, the determining the tuning code that meets the first preset condition as the target tuning code, and / or determining the tuning code that meets the second preset condition as the target detuning code according to the target S-parameter includes: Converting the input reflection coefficient into an antenna load reflection coefficient according to the target S-parameter; Determining the target tuning code and / or the target detuning code according to the antenna load reflection coefficient, wherein the first preset condition is that the absolute value of the difference between the conjugate of the antenna load reflection coefficient and the target S-parameter is the smallest, and the second preset condition is that the absolute value of the difference between the conjugate of the antenna load reflection coefficient and the target S-parameter is the largest.

5. The method according to claim 1, characterized in that, the calibrating the tuner in the RF circuit to obtain the S-parameter set of the RF circuit includes: Controlling the antenna switch in the RF circuit to switch to the calibration module, where the calibration module includes a short-circuit state, an open-circuit state, and a state of connecting a matching load; For each tuning code corresponding to different switch combinations in the tuner, respectively switching the calibration module to the short-circuit state, the open-circuit state, and the state of connecting a matching load, and determining the load reflection coefficient in each state; Control the coupler switch of the RF circuit to switch between the FB path and the FX path, and respectively determine the input reflection coefficient in each state. Determine the S-parameters corresponding to each tuning code according to the input reflection coefficient in each state.

6. The method according to claim 1, wherein, the RF circuit includes a first antenna and a second antenna, the first antenna is a working antenna, the second antenna is a non-working antenna, and determining the tuning code that meets the first preset condition as the target tuning code, and / or determining the tuning code that meets the second preset condition as the target detuning code includes: Control the antenna switch of the RF circuit to switch to the second antenna, and determine the target detuning code to detune the second antenna. Control the antenna switch to switch to the first antenna, and determine the target tuning code to tune the first antenna.

7. An antenna tuning and detuning device, wherein, comprising: a calibration module for calibrating the tuner in the RF circuit to obtain a set of S-parameters of the RF circuit, where the set of S-parameters includes the S-parameters corresponding to multiple tuning codes of the tuner; a tuning module for determining the target S-parameter corresponding to the current tuning code from the set of S-parameters for the reference signal sent by the transmitter in the RF circuit; Determine the tuning code that meets the first preset condition as the target tuning code, and / or determine the tuning code that meets the second preset condition as the target detuning code according to the target S-parameter; Configure the target tuning code and / or the target detuning code into the tuner.

8. An electronic device, wherein, comprising: a memory for storing processor-executable instructions; a processor configured to execute the executable instructions in the memory to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, on which a computer program is stored, wherein, the program, when executed by a processor, implements the method according to any one of claims 1 to 6.

10. A chip, wherein, comprising: one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor, and the signal includes computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device is caused to execute the method according to any one of claims 1 to 6.