Antenna tuning method and apparatus, electronic device, and storage medium

CN122660656APending Publication Date: 2026-08-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510228267.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2026-08-28

AI Technical Summary

Technical Problem

例如,在多模通信中,天线在多个频段之间快速切换时,会由于天线调谐器的同步问题,导致信号中断或信号跳变,影响用户使用体验

Benefits of technology

[0040]The method described above has the following advantages: The method provided in the embodiments of this disclosure first tunes the antenna tuner of the target antenna. In response to the completion of the tuning of the antenna tuner, the operating frequency band of the target antenna is switched to the target frequency band. This ensures that the target antenna performs frequency band switching after tuning is completed, thereby avoiding synchronization problems of the antenna tuner and signal interruption or signal jump when frequency band switching occurs, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122660656A_ABST
    Figure CN122660656A_ABST
Patent Text Reader

Abstract

The present disclosure relates to an antenna tuning method and device, electronic equipment and storage medium. The method comprises: in response to a frequency band switching request for a target antenna, tuning an antenna tuner corresponding to the target antenna, so that the tuned state of the antenna tuner matches a target frequency band, and the frequency band switching request comprises the target frequency band; and in response to completing the tuning of the antenna tuner, switching the working frequency band of the target antenna to the target frequency band. The method ensures that the target antenna performs frequency band switching after tuning is completed, thereby avoiding synchronization problems of the antenna tuner, and signal interruption or signal jump problems when the frequency band is switched, and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic equipment technology, and in particular to an antenna tuning method, apparatus, electronic equipment, and storage medium. Background Technology

[0002] In current multi-mode antenna tuning systems, dynamic antenna tuning is typically achieved using an external, independent control chip. While this architecture offers flexible support for various communication modes (such as 2G / 3G / 4G / 5G), it also introduces synchronization issues for the antenna tuner. For example, in multi-mode communication, when the antenna rapidly switches between multiple frequency bands, synchronization problems with the antenna tuner can lead to signal interruptions or abrupt changes, impacting the user experience. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides an antenna tuning method, apparatus, electronic device, and storage medium.

[0004] According to a first aspect of the present disclosure, an antenna tuning method is provided, comprising:

[0005] In response to a frequency band switching request for the operating frequency band of the target antenna, the antenna tuner corresponding to the target antenna is tuned so that the tuned state of the antenna tuner after tuning matches the target frequency band; the frequency band switching request includes the target frequency band;

[0006] In response to the completion of tuning of the antenna tuner, the operating frequency band of the target antenna is switched to the target frequency band.

[0007] In some embodiments, tuning the antenna tuner corresponding to the target antenna in response to a frequency band switching request for the operating frequency band of the target antenna includes:

[0008] In response to the frequency band switching request, a tuning command is generated; the tuning command is used to instruct the antenna tuner to be tuned.

[0009] In response to the tuning command, the antenna tuner is tuned.

[0010] In some embodiments, switching the operating frequency band of the target antenna to the target frequency band in response to completing the tuning of the antenna tuner includes:

[0011] In response to the timing duration reaching the first duration, the operating frequency band of the target antenna is switched to the target frequency band;

[0012] Wherein, the timing duration is the duration between the current time and the first time, the first time is the time when the tuning command is generated, and the first duration is the duration required from the generation of the tuning command to the completion of tuning of the antenna tuner.

[0013] In some embodiments, switching the operating frequency band of the target antenna to the target frequency band in response to completing the tuning of the antenna tuner includes:

[0014] Once the control module determines that the tuning of the antenna tuner is complete, it sends a processing completion message to the protocol stack; the processing completion message is used to indicate that the tuning of the antenna tuner has been completed.

[0015] In response to receiving the processing completion information, the protocol stack switches the operating frequency band of the target antenna to the target frequency band.

[0016] In some embodiments, the control module determines that tuning of the antenna tuner is complete, including:

[0017] The control module reads the current tuning status of the antenna tuner;

[0018] In response to the current tuning state being the tuned state after tuning, the control module determines that the tuning of the antenna tuner is complete.

[0019] In some embodiments, the control module determines that tuning of the antenna tuner is complete, including:

[0020] In response to the interval between the current time and the second time reaching the second duration, the control module determines that the tuning of the antenna tuner is complete; the second time is the time when the control module sends the tuning parameters to the antenna tuner, and the second duration is the sum of the time consumed by the control module in transmitting data to the antenna tuner and the time required to tune the antenna tuner based on the tuning parameters.

[0021] In some embodiments, tuning the antenna tuner in response to a frequency band switching request for the operating frequency band of the target antenna includes:

[0022] In response to the frequency band switching request, determine the tuning parameters;

[0023] The antenna tuner is tuned based on the tuning parameters.

[0024] In some embodiments, determining the tuning parameters includes:

[0025] The tuning parameters are calculated using a preset algorithm; or,

[0026] The tuning parameters that match the current scene information are retrieved from the stored tuning information; the tuning information includes tuning parameters corresponding to different scene information, and the scene information is used to characterize the usage scenario of the electronic device.

[0027] In some embodiments, generating a tuning command in response to the frequency band switching request includes:

[0028] In response to the frequency band switching request, the protocol stack generates the tuning command;

[0029] Switching the operating frequency band of the target antenna to the target frequency band includes:

[0030] The protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band; the frequency band switching command is used to indicate the target frequency band after the target antenna is switched.

[0031] According to a second aspect of the present disclosure, an antenna tuning apparatus is provided, comprising:

[0032] A tuning module is configured to tune an antenna tuner corresponding to the target antenna in response to a frequency band switching request for the operating frequency band of the target antenna, so that the tuned state of the antenna tuner after tuning matches the target frequency band; the frequency band switching request includes the target frequency band.

[0033] The switching module is configured to switch the operating frequency band of the target antenna to the target frequency band in response to the completion of tuning of the antenna tuner.

[0034] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0035] processor;

[0036] Memory used to store processor-executable instructions;

[0037] The processor is configured to perform the antenna tuning method as described in the first aspect of the embodiments of this disclosure.

[0038] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform an antenna tuning method as described in a first aspect of the present disclosure.

[0039] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the antenna tuning method as described in the first aspect of the present disclosure.

[0040] The method described above has the following advantages: The method provided in the embodiments of this disclosure first tunes the antenna tuner of the target antenna. In response to the completion of the tuning of the antenna tuner, the operating frequency band of the target antenna is switched to the target frequency band. This ensures that the target antenna performs frequency band switching after tuning is completed, thereby avoiding synchronization problems of the antenna tuner and signal interruption or signal jump when frequency band switching occurs, thus improving the user experience.

[0041] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0042] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0043] Figure 1 This is a schematic diagram of an antenna tuning system according to an exemplary embodiment.

[0044] Figure 2 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment.

[0045] Figure 3 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment.

[0046] Figure 4 This is a schematic diagram illustrating an antenna tuning strategy according to an exemplary embodiment.

[0047] Figure 5 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment.

[0048] Figure 6 This is a schematic diagram illustrating an antenna tuning strategy according to an exemplary embodiment.

[0049] Figure 7 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment.

[0050] Figure 8 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment.

[0051] Figure 9 This is a schematic diagram illustrating an antenna tuning strategy according to an exemplary embodiment.

[0052] Figure 10 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment.

[0053] Figure 11 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment.

[0054] Figure 12 This is a block diagram illustrating an antenna tuning device according to an exemplary embodiment.

[0055] Figure 13 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0057] Figure 1 This is a schematic diagram of an antenna tuning system according to an exemplary embodiment, such as... Figure 1 As shown, the antenna tuning system includes a protocol stack, a transceiver, a control module, and multiple antenna tuners. The protocol stack is connected to the physical layer, the physical layer is connected to the control module, and the control module is connected to the multiple antenna tuners. The protocol stack refers to the collection of software or hardware modules in a modem that implement various communication protocols.

[0058] The antenna tuning process is as follows: When the protocol stack detects the need to switch between different cell scenarios, it sends relevant instructions to the control module through the physical layer. Then, the control module performs calculations and controls the antenna tuner to complete the tuning of the antenna tuner.

[0059] In some embodiments, the antenna tuning system may also be called a multimode antenna tuning system, the protocol stack may also be called a Modem protocol stack, and the control module may also be called an antenna tuner control module.

[0060] In related technologies, antenna tuning systems need to switch rapidly between different frequency bands and communication modes to adapt to dynamically changing communication requirements. However, external independent control chips need to communicate and coordinate frequently with the main system during tuning, which may lead to delays and asynchrony in tuning operations, i.e., the tuning state cannot be switched in a timely manner when switching frequency bands. For example, while the protocol stack switches frequency bands, it tunes the antenna tuner through the transceiver scheduling control module in the physical layer. However, the control module requires a certain amount of processing time, resulting in asynchrony between the frequency band switching and the tuning state switching of the antenna tuner. This can cause signal interruption or signal jumps, which in turn affect subsequent network registration, calls, data transmission, and other services, resulting in a poor user experience.

[0061] The method provided in this disclosure is executed by an electronic device, which can be a mobile phone, tablet computer, laptop computer, smartwatch, smart home device, vehicle terminal, or other device equipped with an antenna. In addition, the electronic device also includes various hardware resources and energy storage devices that provide power for the operation of these hardware resources.

[0062] Figure 2 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment, performed by an electronic device, see [link to flowchart]. Figure 2 The method includes the following steps:

[0063] Step S201: In response to the frequency band switching request for the operating frequency band of the target antenna, the antenna tuner corresponding to the target antenna is tuned so that the tuned state of the antenna tuner after tuning matches the target frequency band; the frequency band switching request includes the target frequency band.

[0064] The frequency band switching request is used to request that the operating frequency band of the target antenna be switched to the target frequency band.

[0065] Based on the target frequency band, the antenna tuner corresponding to the target antenna is tuned accordingly to match the tuned state of the antenna tuner with the target frequency band. Matching the tuned state with the target frequency band means that the target antenna can achieve better operating performance in the target frequency band under this tuned state. The tuned state refers to the specific operating state of the antenna system achieved by the antenna tuner adjusting its own parameters. In other words, matching the tuned state of the antenna tuner with the target frequency band ensures adaptation between the tuned state and the target frequency band, thereby guaranteeing efficient signal transmission and reception.

[0066] In some embodiments, the antenna switching request can be triggered when the electronic device switches mobile networks, for example, when the electronic device switches from a 4G network to a 5G network, the antenna's operating frequency band needs to be switched to the target frequency band corresponding to 5G. Alternatively, the antenna switching request can also be triggered when the electronic device moves from a first environment to a second environment. For example, in a natural environment, there are fewer electronic devices, and the current electronic device is not easily interfered with. However, in an industrial production environment, there are various production devices, and these devices can interfere with specific frequency bands when they are working. Therefore, when the electronic device moves from a natural environment to an industrial production environment, the operating frequency band of the electronic device needs to be switched to another operating frequency band that is not interfered with by the production devices. Alternatively, the antenna switching request can also be issued by a network device. For example, in a satellite communication scenario, the network device determines the target frequency band required for the current satellite communication based on the current data transmission requirements and then issues an antenna switching request to the electronic device. Of course, antenna switching requests can also be triggered in other application scenarios, and this disclosure does not limit this.

[0067] In some embodiments, tuning the antenna tuner includes adjusting its own parameters, such as changing the capacitance and inductance. By tuning the antenna tuner, the input impedance of the target antenna can be matched with the characteristic impedance of the transmission line to achieve efficient signal transmission and maximized power transmission. In this case, when the antenna tuner adjusts the input impedance of the target antenna to be equal to the characteristic impedance of the transmission line, the tuning state is considered to be matched with the target frequency band.

[0068] Step S202: In response to completing the tuning of the antenna tuner, the operating frequency band of the target antenna is switched to the target frequency band.

[0069] After tuning the antenna tuner, its parameters are more suitable for the target frequency band. At this point, switching the target antenna to its operating frequency band can avoid signal interruption or signal jump during the frequency band switch.

[0070] The method provided in this disclosure first tunes the antenna tuner of the target antenna. In response to the completion of the tuning of the antenna tuner, the operating frequency band of the target antenna is switched to the target frequency band. This ensures that the target antenna performs frequency band switching after tuning is completed, thereby avoiding synchronization problems of the antenna tuner and signal interruption or signal jump when frequency band switching occurs, thus improving the user experience.

[0071] In some embodiments, in response to a frequency band switching request, a tuning command is generated, and in response to the tuning command, the antenna tuner is tuned to match the tuned state of the antenna tuner with a target frequency band. The tuning command instructs the antenna tuner to be tuned. Optionally, the tuning command may include a target frequency band to instruct the antenna tuner to be tuned to a tuning state matching the target frequency band.

[0072] In some embodiments, since the target antenna's operating frequency band needs to be switched to the target frequency band after the antenna tuner has been tuned, it is necessary to first determine whether the antenna tuner has been tuned.

[0073] Optionally, a first duration can be preset, which is the time required from generating the tuning command to completing the tuning of the antenna tuner. Then, after generating the tuning command, the elapsed duration is monitored and compared with the first duration to determine whether the tuning of the antenna tuner has been completed. Figures 3 to 7 The illustrated embodiments provide a detailed description of this.

[0074] Optionally, feedback can be provided after tuning the antenna tuner is completed. The result of the feedback can be used to determine whether tuning of the antenna tuner has been completed, through the following... Figures 8 to 10 The illustrated embodiments provide a detailed description of this.

[0075] Figure 3 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment, performed by an electronic device. See also... Figure 3 The method includes the following steps:

[0076] Step S301: In response to the frequency band switching request, a tuning command is generated.

[0077] In some embodiments, the protocol stack generates a tuning instruction in response to a frequency band switching instruction.

[0078] Optionally, the AP (Application Processor) or network device sends a frequency band switching request to the protocol stack, and the protocol stack receives the frequency band switching request.

[0079] Step S302: In response to the tuning command, the antenna tuner is tuned so that the tuned state of the antenna tuner matches the target frequency band.

[0080] In some embodiments, the protocol stack sends a tuning command to the control module; in response to the tuning command, the control module tunes the antenna tuner. The control module determines tuning parameters to tune the antenna tuner.

[0081] Optionally, the protocol stack sends tuning commands to the transceiver, and the transceiver then sends tuning commands to the control module.

[0082] Optionally, the protocol stack sends tuning commands to the transceiver; the transceiver processes the tuning commands, generates control commands, and sends the control commands to the control module; in response to the control commands, the control module tunes the antenna tuner. The control commands instruct the control module to tune the antenna tuner.

[0083] In some embodiments, in response to a tuning command, tuning parameters are determined; and the antenna tuner is tuned based on the tuning parameters. The tuning parameters may include parameters such as the capacitance, inductance, and resistance of the antenna tuner.

[0084] In some embodiments, a preset algorithm is used to calculate the tuning parameters. For example, the preset algorithm can be a formula related to LC (inductor-capacitor) network theory, a formula related to transmission line theory, etc. In this embodiment, the method of calculating the tuning parameters is not limited.

[0085] In some embodiments, tuning parameters matching the current scenario information are queried from stored tuning information. The tuning information includes tuning parameters corresponding to different scenario information. Scenario information characterizes the usage scenario of the electronic device, and the current scenario information characterizes the current usage scenario of the electronic device; for example, the current scenario information can be a 4G scenario, a 5G scenario, etc.

[0086] Optionally, the current scene information can be sent from the protocol stack to the control module. For example, the protocol stack sends tuning instructions and current scene information to the control module.

[0087] Optionally, the tuning information is stored in the control module. The tuning information can be stored in list form or other forms. This embodiment of the disclosure does not limit the storage form of the tuning information.

[0088] It should be noted that the above embodiments take the determination of tuning parameters in response to tuning commands as an example. In some embodiments, the tuning parameters can be determined in response to frequency band switching requests.

[0089] In step S303, in response to the timing duration reaching the first duration, the operating frequency band of the target antenna is switched to the target frequency band.

[0090] In some embodiments, in response to a timing period reaching a first duration, the protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band. The frequency band switching command indicates the target frequency band after the target antenna has switched.

[0091] In some embodiments, if a preset algorithm is used to calculate the tuning parameters, it takes a long time, while if the pre-stored tuning parameters are directly queried, it takes less time. Therefore, corresponding first durations can be set for these two different situations, and the first duration for calculating the tuning parameters is longer than the first duration for querying the pre-stored tuning parameters.

[0092] Optionally, the first duration is the sum of the data transmission loss duration and the duration required to determine the tuning parameters. The data transmission loss duration includes the loss duration when transmitting data between the protocol stack and the transceiver, the loss duration when transmitting data between the transceiver and the control module, and the loss duration when transmitting data between the control module and the antenna tuner.

[0093] In some embodiments, a timer can be set to monitor in real time whether the timer's duration has reached a first duration.

[0094] In one example, for the case of calculating tuning parameters, see [link to example]. Figure 4 The diagram shows the antenna tuning strategy. The control module calculates the tuning parameters for a duration of duration A, and the data transmission loss duration is duration B. The first duration is duration C. When the timer's timing duration reaches the first duration C, the protocol stack needs to send a frequency band switching command to the target antenna to switch the target antenna's operating frequency band to the target frequency band.

[0095] In this case, see Figure 5 The flowchart of the antenna tuning method shown is executed by an electronic device. See [link / reference]. Figure 5 The method includes the following steps:

[0096] In step S501, in response to the frequency band switching request, the protocol stack generates a tuning command and sends the tuning command to the control module.

[0097] In step S502, in response to the tuning command, the control module uses a preset algorithm to calculate the tuning parameters and tunes the antenna tuner based on the tuning parameters so that the tuned state of the antenna tuner matches the target frequency band.

[0098] Step S503: Determine whether the timer duration has reached the first duration. If the timer duration has not reached the first duration C, continue to execute step S503. If the timer duration has reached the first duration, execute step S504.

[0099] In step S504, the protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band.

[0100] In another example, for querying pre-stored tuning parameters, see [link to example]. Figure 6The diagram shows the antenna tuning strategy. The duration of the tuning parameters queried from the control module is duration D, and the duration of data transmission loss is duration B. The first duration is duration E. When the timer's timing duration reaches the first duration E, the protocol stack needs to send a frequency band switching command to the target antenna to switch the target antenna's operating frequency band to the target frequency band.

[0101] In this case, see Figure 7 The flowchart of the antenna tuning method shown is executed by an electronic device. See [link / reference]. Figure 7 The method includes the following steps:

[0102] In step S701, in response to the frequency band switching request, the protocol stack generates a tuning command and sends the tuning command and current scene information to the control module.

[0103] In step S702, in response to the tuning command, the control module queries the stored tuning information for tuning parameters that match the current scene information, and tunes the antenna tuner based on the tuning parameters so that the tuned state of the antenna tuner matches the target frequency band.

[0104] Step S703: Determine whether the timer duration has reached the first duration. If the timer duration has not reached the first duration E, continue to execute step S703. If the timer duration has reached the first duration, execute step S704.

[0105] Step S704: The protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band.

[0106] In some embodiments, for the two methods described above, either method can be selected to determine the tuning parameters in actual use. Alternatively, the method of querying the tuning parameters that match the current scene information from the stored tuning information can be preferred. If no matching tuning parameters are found, the tuning parameters are then calculated.

[0107] The method provided in this disclosure indicates that the tuning of the antenna tuner is complete when the timing duration reaches the first duration. Afterward, the operating frequency band of the target antenna can be switched to the target frequency band, ensuring that the target antenna performs frequency band switching after tuning is complete. This avoids synchronization problems of the antenna tuner and signal interruption or signal jumps during frequency band switching, improving the user experience. Furthermore, tuning parameters matching the current scene information can be retrieved from stored tuning information, reducing the time spent calculating tuning parameters, increasing the speed of obtaining tuning parameters, and thus improving the tuning speed of the antenna tuner.

[0108] Figure 8 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment, performed by an electronic device. See also... Figure 8 The method includes the following steps:

[0109] Step S801: In response to the frequency band switching request, a tuning command is generated.

[0110] The implementation method of step S801 is similar to that of step S301 described above, and will not be repeated here.

[0111] In step S802, in response to the tuning command, the control module tunes the antenna tuner so that the tuned state of the antenna tuner matches the target frequency band.

[0112] The implementation method of step S802 is similar to that of step S303 described above, and will not be repeated here.

[0113] In step S803, the control module determines that the tuning of the antenna tuner is complete and sends a processing completion message to the protocol stack.

[0114] The processing completion information indicates that the antenna tuner has been tuned.

[0115] In some embodiments, the control module reads the current tuning state of the antenna tuner; in response to the current tuning state being the tuned state, the control module determines that the tuning of the antenna tuner is complete. That is, the control module determines whether the antenna tuner is tuned by judging whether the current tuning state of the antenna tuner is the tuned state based on the tuning parameters. If the current tuning state is the tuned state, it is determined that the tuning of the antenna tuner is complete; if the current tuning state is not the tuned state, it is determined that the tuning of the antenna tuner is not yet complete.

[0116] In some embodiments, in response to the interval between the current time and the second time reaching the second duration, the control module determines that the tuning of the antenna tuner is complete. Here, the second time is the moment when the control module sends tuning parameters to the antenna tuner, and the second duration is the sum of the time consumed by the control module in transmitting data to the antenna tuner and the time required to tune the antenna tuner based on the tuning parameters; this second duration is a preset duration. If the interval between the current time and the second time reaches the second duration, it indicates that the tuning of the antenna tuner is complete; if the interval between the current time and the second time does not reach the second duration, it indicates that the tuning of the antenna tuner is not yet complete.

[0117] In actual processing, either of the two methods mentioned above can be selected as needed to determine whether the tuning of the antenna tuner has been completed.

[0118] In some embodiments, the control module sends processing completion information to the protocol stack via the MIPI (Mobile Industry Processor Interface) protocol or GPIO (General-Purpose Input / Output) interrupt signals. Alternatively, the control module synchronizes processing completion information to the main system via the MIPI protocol or GPIO interrupt signals.

[0119] Optionally, the control module sends processing completion information to the transceiver via the MIPI protocol or GPIO interrupt signal, and the transceiver then forwards the processing completion information to the protocol stack.

[0120] See one example. Figure 9 The diagram shown illustrates the antenna tuning strategy. Figure 9 As can be seen, a closed-loop feedback system has been introduced. The control module sends processing completion information to the transceiver through the GPIO interrupt signal, and then the transceiver forwards the processing completion information to the protocol stack.

[0121] In step S804, in response to receiving the processing completion information, the protocol stack switches the operating frequency band of the target antenna to the target frequency band.

[0122] In some embodiments, in response to receiving processing completion information, the protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band. The frequency band switching command indicates the target frequency band after the target antenna has switched.

[0123] See one example. Figure 10 The flowchart of the antenna tuning method shown is executed by an electronic device. See [link / reference]. Figure 10 The method includes the following steps:

[0124] In step S1001, in response to the frequency band switching request, the protocol stack generates a tuning command and sends the tuning command to the control module.

[0125] In step S1002, in response to the tuning command, the control module determines the tuning parameters and tunes the antenna tuner based on the tuning parameters so that the tuned state of the antenna tuner matches the target frequency band.

[0126] Step S1003: Determine whether the tuning of the antenna tuner is complete. If it is determined that the tuning of the antenna tuner is not complete, continue to execute step S1003. If it is determined that the tuning of the antenna tuner is complete, execute step S1004.

[0127] In step S1004, the control module sends a processing completion message back to the protocol stack.

[0128] In step S1005, in response to receiving the processing completion information, the protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band.

[0129] The method provided in this disclosure allows the control module to send tuning completion information to the protocol stack after determining that the tuning of the antenna tuner is complete. Then, the protocol stack can switch the operating frequency band of the target antenna to the target frequency band, ensuring that the target antenna can switch frequency bands after tuning is complete. This avoids the synchronization problem of the antenna tuner and the problem of signal interruption or signal jump when frequency band switching occurs, thereby improving the user experience.

[0130] This disclosure also provides an antenna tuning system applied to an electronic device, the antenna tuning system comprising:

[0131] The protocol stack is used to receive frequency band switching requests for the target antenna's operating frequency band;

[0132] The control module is used to respond to a frequency band switching request by tuning the antenna tuner corresponding to the target antenna so that the tuned state of the antenna tuner matches the target frequency band; the frequency band switching request includes the target frequency band.

[0133] The protocol stack is used to switch the operating frequency band of the target antenna to the target frequency band in response to the completion of the tuning of the antenna tuner.

[0134] In some embodiments, the protocol stack is used to generate a tuning instruction in response to a frequency band switching request; the tuning instruction is used to instruct the antenna tuner to be tuned.

[0135] The control module is used to tune the antenna tuner in response to tuning commands.

[0136] In some embodiments, the protocol stack is configured to switch the operating frequency band of the target antenna to the target frequency band in response to the timing duration reaching a first duration.

[0137] Among them, the timing duration is the time interval between the current time and the first time, the first time is the time when the tuning command is generated, and the first duration is the time required from the generation of the tuning command to the completion of the tuning of the antenna tuner.

[0138] In some embodiments, the control module is further configured to determine that tuning of the antenna tuner has been completed;

[0139] The control module is also used to send processing completion information to the protocol stack; the processing completion information is used to indicate that the antenna tuner has been tuned.

[0140] The protocol stack is used to switch the operating frequency band of the target antenna to the target frequency band.

[0141] In some embodiments, the control module is also configured to read the current tuning state of the antenna tuner;

[0142] The control module is also used to determine that the tuning of the antenna tuner is complete in response to the current tuning state being the tuned state.

[0143] In some embodiments, the control module is further configured to determine that the tuning of the antenna tuner is complete in response to the second duration being reached between the current time and the second time; the second time is the time when the control module sends tuning parameters to the antenna tuner.

[0144] In some embodiments, the control module is configured to determine tuning parameters in response to a tuning command; and to tune the antenna tuner based on the tuning parameters.

[0145] In some embodiments, the control module is configured to:

[0146] The tuning parameters are calculated using a preset algorithm; or,

[0147] The system retrieves tuning parameters from the stored tuning information that match the current scene information. The tuning information includes tuning parameters corresponding to different scene information, which is used to characterize the usage scenario of the electronic device.

[0148] In some embodiments, the protocol stack is also used to generate tuning instructions in response to a frequency band switching request;

[0149] The protocol stack is also used to send frequency band switching commands to the target antenna to switch the target antenna's operating frequency band to the target frequency band; the frequency band switching command is used to indicate the target antenna's new frequency band.

[0150] The specific methods by which each module in the above-mentioned antenna tuning system performs its operations have been described in detail in the embodiments of the relevant method, and will not be elaborated here.

[0151] In one example, Figure 11 This is a flowchart illustrating an antenna tuning method according to an exemplary embodiment, see [link to flowchart]. Figure 11 The method includes the following steps:

[0152] Step S1101: The application processor or network device sends a frequency band switching request to the protocol stack.

[0153] In step S1102, the protocol stack responds to the frequency band switching request by generating a tuning command and sending the tuning command to the transceiver.

[0154] In step S1103, the transceiver responds to the tuning command, generates a control command, and sends the control command to the control module.

[0155] In step S1104, the control module responds to the control command and tunes the antenna tuner.

[0156] In step S1105, in response to the completion of the antenna tuner tuning, the protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band.

[0157] Figure 12 This is a block diagram illustrating an antenna tuning device according to an exemplary embodiment, configured in an electronic device, see [link to relevant documentation]. Figure 12 The device includes:

[0158] Tuning module 1201 is configured to, in response to a frequency band switching request for the operating frequency band of the target antenna, tune the antenna tuner corresponding to the target antenna so that the tuned state of the antenna tuner after tuning matches the target frequency band; the frequency band switching request includes the target frequency band.

[0159] The switching module 1202 is configured to switch the operating frequency band of the target antenna to the target frequency band in response to the completion of tuning of the antenna tuner.

[0160] In some embodiments, the tuning module 1201 is configured to:

[0161] In response to a frequency band switching request, a tuning command is generated; the tuning command is used to instruct the antenna tuner to be tuned.

[0162] In response to a tuning command, the antenna tuner is tuned.

[0163] In some embodiments, the switching module 1202 is configured to switch the operating frequency band of the target antenna to the target frequency band in response to the timing duration reaching a first duration;

[0164] Among them, the timing duration is the time interval between the current time and the first time, the first time is the time when the tuning command is generated, and the first duration is the time required from the generation of the tuning command to the completion of the tuning of the antenna tuner.

[0165] In some embodiments, the switching module 1202 is configured to:

[0166] Once the control module confirms that the tuning of the antenna tuner is complete, it sends a processing completion message to the protocol stack; the processing completion message indicates that the tuning of the antenna tuner has been completed.

[0167] Upon receiving the processing completion message, the protocol stack switches the operating frequency band of the target antenna to the target frequency band.

[0168] In some embodiments, the switching module 1202 is configured to:

[0169] The control module reads the current tuning status of the antenna tuner;

[0170] In response to the current tuning state being the tuned state after tuning, the control module determines that the tuning of the antenna tuner is complete.

[0171] In some embodiments, the switching module 1202 is configured to:

[0172] In response to the second time interval between the current time and the second time interval reaching the second duration, the control module determines that the tuning of the antenna tuner is complete; the second time interval is the time when the control module sends the tuning parameters to the antenna tuner, and the second duration is the sum of the time consumed by the control module in transmitting data to the antenna tuner and the time required to tune the antenna tuner based on the tuning parameters.

[0173] In some embodiments, the tuning module 1201 is configured to:

[0174] In response to a frequency band switching request, determine the tuning parameters;

[0175] The antenna tuner is tuned based on the tuning parameters.

[0176] In some embodiments, the tuning module 1201 is configured to: calculate tuning parameters using a preset algorithm; or,

[0177] The system retrieves tuning parameters from the stored tuning information that match the current scene information. The tuning information includes tuning parameters corresponding to different scene information, which is used to characterize the usage scenario of the electronic device.

[0178] In some embodiments, the tuning module 1201 is further configured to:

[0179] In response to a frequency band switching request, the protocol stack generates a tuning command;

[0180] Switching module 1202 is configured as follows:

[0181] The protocol stack sends a frequency band switching command to the target antenna to switch the target antenna's operating frequency band to the target frequency band; the frequency band switching command is used to indicate the target frequency band after the target antenna switches.

[0182] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0183] This disclosure also provides an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the antenna tuning method described in the above embodiments.

[0184] Figure 13 This is a block diagram of an electronic device 1300 according to an exemplary embodiment.

[0185] Reference Figure 13 The electronic device 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power supply 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.

[0186] Processing component 1302 typically controls the overall operation of electronic device 1300, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 1302 may include one or more processors 1320 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1302 may include one or more modules to facilitate interaction between processing component 1302 and other components. For example, processing component 1302 may include a multimedia module to facilitate interaction between multimedia component 1308 and processing component 1302.

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

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

[0189] 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 may be implemented as a touchscreen 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 may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1308 includes a front-facing camera and / or a rear-facing camera. When the electronic device 1300 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

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

[0191] I / O interface 1312 provides an interface between processing component 1302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0192] Sensor assembly 1314 includes one or more sensors for providing state assessments of various aspects of electronic device 1300. For example, sensor assembly 1314 may detect the on / off state of electronic device 1300, the relative positioning of components such as the display and keypad of electronic device 1300, changes in position of electronic device 1300 or a component of electronic device 1300, the presence or absence of user contact with electronic device 1300, the orientation or acceleration / deceleration of electronic device 1300, and temperature changes of electronic device 1300. Sensor assembly 1314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1314 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0193] Communication component 1316 is configured to facilitate wired or wireless communication between electronic device 1300 and other devices. Electronic device 1300 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 1316 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1316 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0194] In an exemplary embodiment, the electronic device 1300 may 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 to perform the methods described above.

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

[0196] This disclosure also provides a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is able to perform the antenna tuning method described in the above embodiments.

[0197] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the antenna tuning method described in the above embodiments.

[0198] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0199] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. An antenna tuning method, characterized in that, include: In response to a frequency band switching request for the operating frequency band of the target antenna, the antenna tuner corresponding to the target antenna is tuned so that the tuned state of the antenna tuner after tuning matches the target frequency band; the frequency band switching request includes the target frequency band; In response to the completion of tuning of the antenna tuner, the operating frequency band of the target antenna is switched to the target frequency band.

2. The antenna tuning method according to claim 1, characterized in that, The step of tuning the antenna tuner corresponding to the target antenna in response to a frequency band switching request for the target antenna's operating frequency band includes: In response to the frequency band switching request, a tuning command is generated; the tuning command is used to instruct the antenna tuner to be tuned. In response to the tuning command, the antenna tuner is tuned.

3. The antenna tuning method according to claim 2, characterized in that, The step of switching the operating frequency band of the target antenna to the target frequency band in response to completing the tuning of the antenna tuner includes: In response to the timing duration reaching the first duration, the operating frequency band of the target antenna is switched to the target frequency band; Wherein, the timing duration is the duration between the current time and the first time, the first time is the time when the tuning command is generated, and the first duration is the duration required from the generation of the tuning command to the completion of tuning of the antenna tuner.

4. The antenna tuning method according to claim 1, characterized in that, The step of switching the operating frequency band of the target antenna to the target frequency band in response to completing the tuning of the antenna tuner includes: Once the control module determines that the tuning of the antenna tuner is complete, it sends a processing completion message to the protocol stack; the processing completion message is used to indicate that the tuning of the antenna tuner has been completed. In response to receiving the processing completion information, the protocol stack switches the operating frequency band of the target antenna to the target frequency band.

5. The antenna tuning method according to claim 4, characterized in that, The control module determines that the tuning of the antenna tuner is complete, including: The control module reads the current tuning status of the antenna tuner; In response to the current tuning state being the tuned state after tuning, the control module determines that the tuning of the antenna tuner is complete.

6. The antenna tuning method according to claim 4, characterized in that, The control module determines that the tuning of the antenna tuner is complete, including: In response to the interval between the current time and the second time reaching the second duration, the control module determines that the tuning of the antenna tuner is complete; the second time is the time when the control module sends the tuning parameters to the antenna tuner, and the second duration is the sum of the time consumed by the control module in transmitting data to the antenna tuner and the time required to tune the antenna tuner based on the tuning parameters.

7. The antenna tuning method according to claim 1, characterized in that, The step of tuning the antenna tuner in response to a frequency band switching request for the target antenna's operating frequency band includes: In response to the frequency band switching request, determine the tuning parameters; The antenna tuner is tuned based on the tuning parameters.

8. The antenna tuning method according to claim 7, characterized in that, The determination of tuning parameters includes: The tuning parameters are calculated using a preset algorithm; or, The tuning parameters that match the current scene information are retrieved from the stored tuning information; the tuning information includes tuning parameters corresponding to different scene information, and the scene information is used to characterize the usage scenario of the electronic device.

9. The antenna tuning method according to claim 2, characterized in that, The step of generating a tuning command in response to the frequency band switching request includes: In response to the frequency band switching request, the protocol stack generates the tuning command; Switching the operating frequency band of the target antenna to the target frequency band includes: The protocol stack sends a frequency band switching command to the target antenna to switch the operating frequency band of the target antenna to the target frequency band; the frequency band switching command is used to indicate the target frequency band after the target antenna is switched.

10. An antenna tuning device, characterized in that, include: A tuning module is configured to tune an antenna tuner corresponding to the target antenna in response to a frequency band switching request for the operating frequency band of the target antenna, so that the tuned state of the antenna tuner after tuning matches the target frequency band; the frequency band switching request includes the target frequency band. The switching module is configured to switch the operating frequency band of the target antenna to the target frequency band in response to the completion of tuning of the antenna tuner.

11. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the antenna tuning method as described in any one of claims 1-9.

12. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the antenna tuning method as described in any one of claims 1-9.