Antenna switching method and device, electronic equipment, chip and storage medium

By selecting the target antenna group and signal channel group according to the signal strength in terminal devices such as mobile phones and other terminals, the signal loss problem caused by impedance mismatch is solved, and the signal quality and user experience are improved.

CN120377948APending Publication Date: 2025-07-25BEIJING X RING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411587237.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, when the antennas of terminal devices such as mobile phones are affected by head-hand or external environment, impedance mismatch leads to loss of antenna performance, especially metal frame mobile phones, which lack uplink signal coverage and poor user experience.

Method used

By determining the target antenna group and signal channel group according to the signal strength of each candidate antenna, selecting the antenna with the strongest signal for switching, and controlling the switch components based on the switching control strategy, flexible switching between multiple antennas is achieved.

Benefits of technology

Improves the flexibility of antenna switching, reduces signal loss, and improves signal quality and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120377948A_ABST
    Figure CN120377948A_ABST
Patent Text Reader

Abstract

The invention provides an antenna switching method and device, electronic equipment, a chip and a storage medium, and relates to the fields of communication technologies, circuits and the like. The method comprises the following steps: determining a target antenna group according to the current signal strength of each candidate antenna; determining a target signal channel group according to the target antenna group; determining a first target transmitting antenna and a second target transmitting antenna according to the signal intensity of each antenna in the target antenna group; determining a first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna and the target signal channel group; and based on the first switch control strategy, controlling a switch assembly connected with the target antenna group and the target signal channel group. The antenna switching flexibility can be improved, the signal loss is reduced, the signal quality is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of communication technologies, circuits, etc., and particularly relates to an antenna switching method, apparatus, electronic device, chip, and storage medium. Background Art

[0002] Antenna efficiency is an important indicator for measuring its communication performance, and the free space performance of an antenna also depends on the antenna efficiency. However, during the actual use of terminal devices such as mobile phones, impedance mismatch will occur due to the influence of the head and hands or the external environment. Especially for mobile phones with metal frame antennas, additional antenna performance losses will be caused. In order to improve the influence of the user's head and hands on the antenna performance of the device and improve the uplink signal coverage, the transmitting antenna can select the one with the best signal from multiple receiving antennas for switching. Summary of the Invention

[0003] The present disclosure aims to at least partly solve one of the technical problems in the related art.

[0004] Determine a target antenna group according to the current signal strength of each candidate antenna;

[0005] Determine a target signal channel group according to the target antenna group;

[0006] Determine a first target transmitting antenna and a second target transmitting antenna according to the signal strength of each antenna in the target antenna group;

[0007] Determine a first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group;

[0008] Control a switch component connecting the target antenna group and the target signal channel group based on the first switch control strategy.

[0009] A second aspect embodiment of the present disclosure provides an antenna switching apparatus, including:

[0010] A first determination module, configured to determine a target antenna group according to the current signal strength of each candidate antenna;

[0011] A second determination module, configured to determine a target signal channel group according to the target antenna group;

[0012] A third determination module, configured to determine a first target transmitting antenna and a second target transmitting antenna according to the signal strength of each antenna in the target antenna group;

[0013] A fourth determination module, configured to determine a first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group;

[0014] A control module, configured to control a switch component connecting the target antenna group and the target signal channel group based on the first switch control strategy.

[0015] An embodiment of the third aspect of the present disclosure provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the antenna switching method proposed in the embodiment of the first aspect of the present disclosure.

[0016] An embodiment of the fourth aspect of the present disclosure provides a chip, including a processing circuit and an interface circuit; wherein, the interface circuit is configured to obtain an instruction and send the instruction to the processing circuit, and the processing circuit is configured to execute the instruction to implement the antenna switching method proposed in the embodiment of the first aspect of the present disclosure.

[0017] An embodiment of the fifth aspect of the present disclosure provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, it implements the antenna switching method proposed in the embodiment of the first aspect of the present disclosure.

[0018] The antenna switching method, device, electronic device, chip, and storage medium provided by the present disclosure have the following beneficial effects:

[0019] In the embodiments of the present disclosure, an antenna for receiving and transmitting signals is selected based on the signal strength of the antenna, a signal channel is determined according to the selected antenna, and then a switching index and a switch control strategy are determined based on the determined antenna and signal channel to control the switch to complete the antenna switching. Thereby, the flexibility of antenna switching can be improved, signal loss can be reduced, signal quality can be improved, and the user experience can be enhanced.

[0020] Additional aspects and advantages of the present disclosure will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and / or additional aspects and advantages of the present disclosure will become apparent and be readily understood from the following description of the embodiments in conjunction with the drawings, where:

[0022] Figure 1 is a schematic flowchart of an antenna switching method provided by an embodiment of the present disclosure;

[0023] Figure 2 is a hardware example diagram for implementing 6-antenna switching under TDD provided by an embodiment of the present disclosure;

[0024] Figure 3Schematic flowchart of an antenna switching method provided by another embodiment of the present disclosure;

[0025] Figure 4 Schematic flowchart of an antenna switching method provided by another embodiment of the present disclosure;

[0026] Figure 5 Schematic flowchart of an antenna switching method provided by another embodiment of the present disclosure;

[0027] Figure 6 Schematic structural diagram of an antenna switching device provided by another embodiment of the present disclosure;

[0028] Figure 7 Block diagram of an exemplary electronic device suitable for implementing the embodiments of the present disclosure;

[0029] Figure 8 Schematic structural diagram of a chip proposed by an embodiment of the present disclosure. Detailed implementation manners

[0030] The embodiments of the present disclosure will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same 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 a limitation to the present disclosure.

[0031] The antenna switching method, device, electronic device, chip and storage medium according to the embodiments of the present disclosure will be described below with reference to the accompanying drawings.

[0032] In the related art, the intelligent antenna switching scheme of terminals such as mobile phones can only support the switching between 4 antennas. However, due to the influence of the hand during use, the 4 antennas located at the top and bottom of the device may be covered simultaneously, and their performance may deteriorate. At this time, switching between these 4 antennas cannot improve the uplink signal quality either, and users located at the edge of the cell may drop calls or lose network connection, resulting in a poor user experience.

[0033] Therefore, the present disclosure provides a scheme suitable for switching between a larger number of antennas, so that there are more choices for antenna switching and it can ensure that the signal quality after switching is significantly improved. In the following embodiments of the present disclosure, the switching between 6 antennas is taken as an example for illustration.

[0034] Figure 1 Schematic flowchart of an antenna switching method provided by an embodiment of the present disclosure.

[0035] In the embodiments of the present disclosure, the antenna switching method is exemplified by being configured in an antenna switching device, and the antenna switching device can be applied to any electronic device so that the electronic device can perform the function of switching the signal transceiver antenna.

[0036] As Figure 1 shown, the antenna switching method may include the following steps:

[0037] Step 101, determine a target antenna group according to the current signal strength of each candidate antenna.

[0038] Among them, the candidate antennas may be some antennas among all the physical antennas of the device whose corresponding network frequency bands are the same as the network frequency band currently used by the device.

[0039] In the embodiments of the present disclosure, when performing antenna switching under different network frequency bands, the number of candidate antennas may be different. The higher the network frequency band, the more the number of candidate antennas. For example, when operating in the high frequency band, the number of candidate antennas is 6, and when operating in the low frequency band, the number of candidate antennas is 4.

[0040] In the embodiments of the present disclosure, when the channels between all candidate antennas and the signal source or the signal receiving device are in a direct connection state (i.e., the through state), the signal strength of each candidate antenna can be measured, and the n candidate antennas with the highest current signal strength are determined as the target antenna group.

[0041] It should be noted that the number of antennas n in the target antenna group is less than or equal to the number of candidate antennas, and the value of n can be determined according to the device configuration. For example, the current device is a fourth-generation (4G) mobile communication system, such as a 4G mobile phone, and the device can only support downlink 2x2 multiple-input multiple-output (DL 2x2 MIMO) with two antennas at the downlink transmitter and receiver. Then, the 2 candidate antennas with the highest signal strength can be used as the target antenna group. Or, the current device is a fifth-generation (5G) mobile communication system, such as a 5G mobile phone. At this time, it can support downlink 4x4 multiple-input multiple-output (DL 4x4 MIMO) with four antennas at the downlink transmitter and receiver. Then, the 4 candidate antennas with the highest signal strength are used as the target antenna group.

[0042] Next, taking the example of selecting 4 antennas from 6 candidate antennas to form a target antenna group for illustration.

[0043] First, the six candidate antennas are ANT0 (i.e., the antenna with serial number 0, antenna, abbreviated as ANT), ANT1, ANT2, ANT3, ANT4, and ANT5. Signal strength measurements are performed on these six candidate antennas respectively, and the order of signal strength from largest to smallest is: ANT2, ANT3, ANT1, ANT4, ANT0, ANT5. Then, the target antenna group can be determined as ANT1, ANT2, ANT3, and ANT4.

[0044] Step 102: Determine the target signal channel group according to the target antenna group.

[0045] Among them, the target signal channel group is a combination composed of signal channels connected to the target antennas. According to the number of target antennas, the corresponding number of target signal channel groups can be determined, and each signal channel group can include a primary receiver (PRX) and a diversity receiver (DRX). For example, when there are 4 antennas in the target antenna group, 2 target signal channel groups can be determined.

[0046] In the present disclosure, there is no binding between the physical antenna and the signal channel, that is, the signal channels connected to each antenna are not necessarily in a direct connection state. Since the selection of the signal receiver (RX) channel needs to meet the grouping requirements of PRX plus DRX, and in order to minimize the RX loss, as many signal channels as possible should be in a direct connection state.

[0047] Therefore, in the embodiments of the present disclosure, the target signal channel group corresponding to the target antenna group can be determined according to the circuits between each signal receiver and the target antennas.

[0048] Next, in combination with Figure 2 An illustration of how to determine the target signal channel group corresponding to the target antenna group will be given. Figure 2 It is a hardware example diagram for implementing 6-antenna switching in the time division duplexing (TDD) mode.

[0049] As Figure 2 shown, the candidate antennas are ANT4, ANT5, ANT6, ANT7, ANT12, and ANT13 respectively. And when the determined target antenna group is ANT4, ANT5, ANT6, and ANT12 according to the signal strength of each antenna, since in Figure 2As can be seen, the direct signal channel connected by ANT4 (only passing through one switch component) is PRX, the direct signal channel connected by ANT5 is DRX, and ANT6 and ANT12 are respectively connected to a multi-input multi-output main receiving channel (multi-input multi-output PRX, mPRX), namely mPRX1 and mPRX2. Since the grouping requirement of the signal channels PRX plus DRX needs to be met, the signal channel connected by ANT12 can be determined as Figure 2 In it, the multi-input multi-output diversity receiving channel (multi-input multi-output DRX, mDRX) grouped with mPRX1, namely mDRX1. Then, at this time, the target signal channel group determined by the target antenna group ANT4, ANT5, ANT6, ANT12 is PRX, DRX, mPRX1, mDRX1.

[0050] In Figure 2 it, RFFE is the abbreviation of Radio Frequency Front End, RFIC is the abbreviation of Radio Frequency Integrated Circuit, and BBIC is the abbreviation of Baseband Integrated Circuit.

[0051] Step 103, determine the first target transmitting antenna and the second target transmitting antenna according to the signal strength of each antenna in the target antenna group.

[0052] Among them, the first target transmitting antenna refers to the antenna with the highest signal strength in the target antenna group. The second target transmitting antenna refers to the antenna with the highest signal strength among the antennas in the target antenna group except the first target transmitting antenna.

[0053] It should be noted that the antenna switching method provided by the present disclosure is applicable to the time division duplexing (TDD) scenario. Since the TDD frequency band does not transmit and receive simultaneously, any two antennas in the target antenna group can be selected as the transmitting antennas.

[0054] In the embodiment of the present disclosure, the device can connect antennas through two signal transmission (TX) paths to transmit signals. The two TX (respectively marked as TX0 and TX1) antennas need to be switched within the group according to the RX signal strength. Since the priority of TX0 is higher than that of TX1, TX0 can select the antenna with the highest signal strength among all the target antennas for switching, that is, the first target transmitting antenna, while TX1 can only select the antenna with the highest signal strength among the other antennas in the target antenna group except the first target transmitting antenna for switching, that is, the second target transmitting antenna.

[0055] For example, a 5G mobile phone can support DL 4x4 MIMO and Uplink 2x2 Multiple-Input Multiple-Output (i.e., DL 2x2 MIMO) where the uplink transmitter and receiver use two antennas. A single-band mobile phone design has 6 complete independent RX channels. Each RX channel can perform DL signal measurement independently. For the actual DL 4x4 MIMO service, the 4 RX channels with the best signal quality can be selected from these 6 receiving channels, and the UL TX antenna can further select the best 2 from these 4. This improves the signal quality of 4 DL signals and also improves the signal quality of 2 UL signals, thus solving the problem of dropped calls or network disconnections at the cell edge.

[0056] For example, the target antenna group corresponding to the receiving channels is ANT2, ANT3, ANT4, and ANT5, and they are sorted in descending order of signal strength as: ANT2, ANT4, ANT3, ANT5. Then the first target transmitting antenna (TX0) is ANT2, and the second target transmitting antenna (TX1) is ANT4.

[0057] Step 104: Determine the first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group.

[0058] Among them, the first switch control strategy is used to control the switch bodies corresponding to the respective target signal channels in the switch component to be connected to the contacts of the corresponding target antennas, so that the target antennas are connected to the target signal channel group, and signals can be received from the target antennas respectively, and signals can be transmitted from the first target transmitting antenna and the second target transmitting antenna.

[0059] In the embodiments of the present disclosure, according to the connection relationship among the antennas, transmitters, receivers, and switch components in the circuit, it can be determined under which switch control strategy the target antennas are connected to the target signal channel group, and signals can be received from the target antennas respectively, and signals can be transmitted from the first target transmitting antenna and the second target transmitting antenna. At this time, this switch control strategy is the first switch control strategy.

[0060] Alternatively, in the present disclosure, a switching index table corresponding to all possible switching situations of the antennas can also be established first, as well as the switch control strategy corresponding to each switching situation, and the corresponding switching index is associated with the switch control strategy. Then, after determining the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group, the first switch control strategy corresponding to the switching index can be obtained according to the switching index corresponding to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group in the switching index table.

[0061] Step 105: Control the switch assembly connecting the target antenna group and the target signal channel group based on the first switch control strategy.

[0062] In the embodiments of the present disclosure, between the antenna and the signal channel, each switch body in the switch assembly can be controlled so that one antenna is connected to one signal channel to complete signal reception and transmission. Therefore, the first switch control strategy can be used to control which contact each switch body in the switch assembly should be closed with at this time, forming a path connected to the target antenna, capable of receiving signals from the target antenna, and transmitting signals from the first target transmitting antenna and the second target transmitting antenna, that is, antenna switching can be completed.

[0063] The following will combine Figure 2 to illustrate how to control the switch assembly connecting the target antenna group and the target signal channel group.

[0064] As Figure 2 shown, the antenna and the signal channel can be connected through multiple switch assemblies. In Figure 2 there are 2 four-pole four-throw switches (4-polar 4-throw switch, 4P4T) and 1 dual-pole four-throw switch (dual-polar 4-throw switch, DP4T) respectively.

[0065] If at this time, the target signal channel group is PRX, DRX, mPRX1, and mDRX1, the target antenna group is ANT4, ANT5, ANT6, and ANT12, the first target transmitting antenna is ANT4, and the second target transmitting antenna is ANT12. It can be seen that during the signal reception period, the first switch control strategy controls Figure 2 the first 4P4T in

[0066] to close the switch body (i.e., the knife) connected to PRX with the contact corresponding to ANT4, the switch body connected to DRX with the contact corresponding to ANT5, control the second 4P4T to close the switch body connected to mPRX1 with the contact corresponding to ANT6, and control the DP4T so that mDRX1 can be connected to ANT12 via the switch bodies of the two switch assemblies.

[0067] It should be noted that the signal transmission path and the signal reception path corresponding to one antenna can be regarded as independent of each other.

[0068] In the embodiments of the present disclosure, an antenna for receiving and transmitting signals is selected based on the signal strength of the antenna, a signal channel is determined according to the selected antenna, and then a switching index and a switch control strategy are determined based on the determined antenna and signal channel, and the switch is controlled to complete the switching of the antenna. Thereby, the flexibility of antenna switching can be improved, signal loss can be reduced, signal quality can be improved, and the user experience can be enhanced.

[0069] Figure 3 As shown in the flowchart of an antenna switching method provided by an embodiment of the present disclosure, Figure 3 the antenna switching method may include the following steps:

[0070] Step 301: Determine a target antenna group according to the current signal strength of each candidate antenna.

[0071] For a detailed description of the above step 301, reference can be made to other embodiments of the present disclosure, which will not be elaborated here.

[0072] Step 302: Determine a target signal channel group corresponding to the target antenna group based on the type of signal channel initially connected to each antenna and / or the number of switches used to connect each signal channel to each antenna.

[0073] Among them, the target signal channel group includes a primary receiving channel PRX and a diversity receiving channel DRX.

[0074] In the embodiments of the present disclosure, the signal channel with a direct connection state to each antenna is the signal channel initially connected to the channel. The signal channel type can be divided into a primary receiving channel and a diversity receiving channel. In the present disclosure, the selection of the target signal channel needs to meet the grouping requirements of the primary receiving channel plus the diversity receiving channel, and the selection of the target signal channel group should also minimize the signal loss, so it is also necessary to minimize the number of switches used to connect each signal channel to each antenna. Therefore, a target signal channel group corresponding to the target antenna group can be determined based on the type of signal channel initially connected to each antenna and / or the number of switches used to connect each signal channel to each antenna.

[0075] Optionally, if the signal channel initially connected to the first antenna is the first primary receiving channel, the signal channel initially connected to the second antenna is the first diversity receiving channel, and the first antenna and the second antenna are respectively connected to the first primary receiving channel and the first diversity receiving channel through the same switch assembly, then the first primary receiving channel and the first diversity receiving channel can be determined as a target signal channel group.

[0076] Among them, the first antenna and the second antenna can be any two antennas in the target antenna group.

[0077] For example, the first antenna is ANT4 and the second antenna is ANT5. As provided in the above embodiments, Figure 2 as shown, the first antenna and the second antenna are connected to PRX and DRX through a 4P4T switch, so PRX and DRX can be used as a group of target signal channels.

[0078] Optionally, the signal channel initially connected to the third antenna is the second main receiving channel, and the signal channel initially connected to the fourth antenna is the second diversity receiving channel. When the third antenna and the fourth antenna are respectively connected to the second main receiving channel and the second diversity receiving channel through different switch components, and there is no connection path between the third main receiving channel associated with the second diversity receiving channel and the third antenna, the second main receiving channel and the third diversity receiving channel associated therewith can be determined as a group of target signal channels.

[0079] For example, the third antenna is ANT6 and the fourth antenna is ANT13. As provided in the above embodiments, Figure 2 as shown, the first antenna and the second antenna are respectively connected to mPRX1 and mDRX2 through different switches, and mPRX2 cannot be connected to ANT6, so mPRX1 and mDRX1 can be determined as a group of target signal channels.

[0080] Optionally, the signal channel initially connected to the third antenna is the second main receiving channel, and the signal channel initially connected to the fourth antenna is the second diversity receiving channel. The third antenna and the fourth antenna are respectively connected to the second main receiving channel and the second diversity receiving channel through different switch components. The first quantity of the switch connecting the third diversity receiving channel and the fourth antenna and the second quantity of the switch connecting the third main receiving channel and the third antenna can be determined first.

[0081] Among them, the third diversity receiving channel is associated with the second main receiving channel, and the third main receiving channel is associated with the second diversity receiving channel.

[0082] Then, when the first quantity is greater than the second quantity, the second diversity receiving channel and the third main receiving channel are determined as a group of target signal channels. Or, when the first quantity is less than the second quantity, the second main receiving channel and the third diversity receiving channel associated therewith are determined as a group of target signal channels.

[0083] It should be noted that when the first quantity is equal to the second quantity, the second diversity receiving channel and the third main receiving channel can be determined as a group of target signal channels, or the second main receiving channel and the third diversity receiving channel associated therewith can be determined as a group of target signal channels.

[0084] For example, the third antenna is ANT6 and the fourth antenna is ANT13. As provided in the above embodiments, Figure 2As shown, the first antenna and the second antenna are respectively connected to the second main receiving channel mPRX1 and the second diversity receiving channel mDRX2 through different switches. And by Figure 2 Yes, the third diversity receiving channel associated with the second main receiving channel mPRX1 is mDRX1, the first number of switches connecting mDRX1 and ANT13 is 2, and the third main receiving channel associated with the second diversity receiving channel mDRX2 is mPRX2, the first number of switches connecting mPRX2 and ANT6 is 2. Since 2 = 2, it can be determined that mPRX1 and mDRX1 are a group of target signal channels, or it can also be determined that mPRX2 and mDRX2 are a group of target signal channels.

[0085] In the embodiments of the present disclosure, by determining the number of switches that each signal channel group needs to pass through when connected to the antenna, and determining the signal channel group with a smaller number of switches as the target signal channel group, the differential loss of the signal at the switch component can be reduced, and the signal quality can be guaranteed.

[0086] Step 303, determine the first target transmitting antenna and the second target transmitting antenna according to the signal strength of each antenna in the target antenna group.

[0087] Step 304, determine the first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group.

[0088] Step 305, control the switch component connecting the target antenna group and the target signal channel group based on the first switch control strategy.

[0089] For the detailed description of the above steps 303 to 305, reference can be made to other embodiments of the present disclosure, which will not be elaborated here.

[0090] In this embodiment, by combining the type of signal channel initially connected to each antenna, and / or the number of switches used to connect each signal channel to each antenna, to determine the target signal channel group corresponding to the target antenna group, the loss generated during signal transmission due to passing through the switch can be reduced, the routing differential loss from the antenna to the switch can be reduced, and the signal quality can be improved.

[0091] Figure 4 It is a schematic flowchart of an antenna switching method provided by an embodiment of the present disclosure. As Figure 4 shown, the antenna switching method may include the following steps:

[0092] Step 401, determine the current candidate antennas based on the network frequency bands corresponding to the antennas in the device and the network frequency band currently used by the device.

[0093] In the embodiments of the present disclosure, a device can support signal transceiver for different network frequency bands, and the number of antenna switches supported by different frequency bands is also different. Each frequency band can respectively correspond to different candidate antennas. That is to say, a large number of physical antennas can be configured in a device. In the same network frequency band, only 4 or 6 antennas with the same network frequency band can be supported for switching.

[0094] For example, the device can support frequency bands of a low - frequency band (LB) group, a middle / high - frequency band (MHB) group (such as n41), and a channel - bonding / band (CB) group (such as n78). The LB - group frequency band only supports 4 - antenna switching, and the corresponding candidate antenna numbers may be 0, 1, 2, 3. While in the MHB frequency band, 6 - antenna switching can be supported, and the corresponding candidate antenna numbers may be 4, 5, 6, 7, 12, 13, etc.

[0095] Therefore, multiple antennas with the same network frequency band as the network frequency band currently used by the device can be selected according to the network frequency bands corresponding to the respective antennas in the device and the network frequency band currently used by the device, and these antennas are determined as the current candidate antennas.

[0096] Step 402: Determine the target antenna group according to the current signal strength of each candidate antenna.

[0097] Step 403: Determine the target signal channel group according to the target antenna group.

[0098] For the detailed description of the above steps 402 and 403, reference can be made to the description in other embodiments of the present disclosure, which will not be elaborated here.

[0099] Step 404: Determine the two antennas with the strongest signal strength according to the signal strength of each antenna in the target antenna group.

[0100] In the embodiments of the present disclosure, the signal strength measured by each antenna in the target antenna group can be sorted from large to small, and then the two antennas with the strongest signal strength can be determined from the sorting result.

[0101] Step 405: Determine the antenna with the stronger signal strength among the two antennas as the first target transmitting antenna, and the other antenna as the second target transmitting antenna.

[0102] In the embodiments of the present disclosure, in order to ensure the quality of signal transmission, the TX 2 antennas need to perform in-group switching according to the RX signal strength. Then, according to the priorities of the transmitters (TXs), the antennas with the strongest current signals can be switched in descending order of priority. Then, the antenna with the strongest signal strength among the two antennas can be determined as the first target transmitting antenna, and the other antenna can be determined as the second target transmitting antenna.

[0103] Step 406: Determine the first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group.

[0104] Step 407: Control the switch component connecting the target antenna group and the target signal channel group based on the first switch control strategy.

[0105] For the detailed description of the above steps 406 to 407, reference can be made to the description in other embodiments of the present disclosure, which will not be elaborated here.

[0106] In the embodiments of the present disclosure, by selecting the antenna in the device whose corresponding network band is the same as the network band currently used by the device to determine the candidate antennas that can be used for antenna switching currently, it can ensure that communication signals can be transmitted and received within the correct frequency range, avoid the degradation of signal quality caused by impedance mismatch, and further improve the reliability of antenna switching. Moreover, by determining the two antennas with the strongest signal strength in the target antenna group, the antenna with the stronger signal strength is determined as the first target transmitting antenna, and the other antenna is determined as the second target transmitting antenna, which can ensure the quality of the transmitted signal.

[0107] Figure 5 It is a schematic flowchart of an antenna switching method provided by an embodiment of the present disclosure. As Figure 5 shown, the antenna switching method may include the following steps:

[0108] Step 501: Determine the target antenna group according to the current signal strength of each candidate antenna.

[0109] Step 502: Determine the target signal channel group according to the target antenna group.

[0110] Step 503: Determine the first target transmitting antenna and the second target transmitting antenna according to the signal strength of each antenna in the target antenna group.

[0111] For the detailed description of the above steps 501 to 503, reference can be made to other embodiments of the present disclosure, which will not be elaborated here.

[0112] Step 504, traverse the first mapping table to determine the first switching index corresponding to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group.

[0113] The first mapping table is used to store the mapping relationship between the identifiers of the transmitting antennas corresponding to different antenna groups and the switching index under different signal channel groups.

[0114] The first switching index refers to the index of the state that matches the first target transmitting antenna and the second target transmitting antenna among all possible states (i.e., transmitter antenna switching state (TAS state)) of selecting any two antennas in the target antenna group to transmit signals when it is determined to receive signals through the target signal channel group.

[0115] It should be noted that in the first mapping table, there may be a situation where the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group corresponding to two switching indexes are the same, but the corresponding target antenna groups are different. Therefore, when traversing the first mapping table, the current target antenna group also needs to be considered.

[0116] In the embodiment of the present disclosure, all switching indexes corresponding to the target antenna group can be first determined in the first mapping table corresponding to the target signal channel group. The format of the switching index can be TAS state0, TAS state1, and so on. Then, according to the identifiers of the two transmitting antennas corresponding to each switching index in the first mapping table, the switching index that matches the first target transmitting antenna and the second target transmitting antenna can be found to obtain the first switching index corresponding to the current transmitting antenna.

[0117] For example, the target signal channel group is PRX, DRX, mPRX1, and mDRX1, and the target antenna group is ANT0, ANT1, ANT2, and ANT3. Since there may be 12 TAS states when selecting 2 antennas from ANT0, ANT1, ANT2, and ANT3 to be switched to the first target transmitting antenna and the second target transmitting antenna respectively, there are 12 switching indexes corresponding to the target signal channel group and the target antenna group in the switching index table, which are TAS state12, TAS state13,..., TAS state23 respectively.

[0118] It can be understood that when any one of the determined target signal channel group and the target antenna group is different, the switching index corresponding to it in the first mapping table is different, and it may be TAS state0, TAS state1,..., TAS state24, and so on.

[0119] Then, when the first target transmitting antenna is ANT2 and the second target transmitting antenna is ANT1, determine the first transmitting antenna and the second transmitting antenna corresponding to each switching index in TASstate12, TAS state13, ……, and TAS state23, and determine the switching index TASstate1 with the corresponding first transmitting antenna and second transmitting antenna being ANT2 and ANT1 respectively as the first switching index.

[0120] In some possible embodiments, the format of the first mapping table used to determine the first switching index may be similar to Table 1 below.

[0121] Table 1

[0122]

[0123] From Table 1 above, the first mapping table may contain 3 signal channel groups, namely PRX and DRX, mPRX1 and mDRX1, and mPRX2 and mDRX2 (DRX, mDRX1, and mDRX2 are not shown in Table 1). Since there are a total of 5 + 4 + 3 + 2 + 1 = 15 possible cases of selecting 4 antennas from 6 antennas as the target antenna group, they can be named Group0, Group1, ……, Group14 respectively. And according to the method for determining the target signal channel group in the above embodiments, it can be known that these 14 cases can be divided into three categories, each category corresponding to a combination method of signal channel groups. For example, for Group0 to Group9 in Table 1, the corresponding target signal channel groups are PRX, DRX, mPRX1, and mDRX1, etc.

[0124] Moreover, when the antenna group contains 4 antennas, there are 12 cases of selecting two antennas in each antenna group to be switched to the first target transmitting antenna (TX0) and the second target transmitting antenna (TX1) respectively. Therefore, there are 12 switching indexes corresponding to each Group in Table 1.

[0125] For example, if the target signal channel groups are PRX, DRX, mPRX1, and mDRX1, the target antenna group is group0, the first target transmitting antenna is ANT4, and the second target transmitting antenna is ANT7, then the first switching index can be obtained as TASstate14 in Table 1.

[0126] Step 505, traverse the second mapping table to determine the first switch control strategy corresponding to the first switching index.

[0127] Among them, the second mapping table is a table storing the mapping relationship between the switching index and the control strategy.

[0128] In the embodiments of the present disclosure, after determining the first switching index, the first switch control policy corresponding to the first switching index may be searched in the second mapping table, so as to determine which switch element in each switch component is to be closed with which contact, which can form 4 signal reception paths with the target antenna and 2 signal transmission paths with the first target transmitting antenna and the second target transmitting antenna.

[0129] Step 506: Control the switch component associated with the target antenna group based on the first switch control policy.

[0130] For the detailed description of the above step 506, reference may be made to other embodiments of the present disclosure, which will not be elaborated here.

[0131] Optionally, one switching index with the least number of corresponding switches in the first mapping table may be traversed and determined as the second switching index corresponding to the receiving antenna.

[0132] In the embodiments of the present disclosure, the method with the least number of switches used in the switching index mode corresponding to the target antenna group is to satisfy as many as possible that each antenna passes through only one switch component when connected to the signal channel, which can ensure the minimum signal loss during reception.

[0133] For example, in combination with the above-provided Figure 2 and Table 1, when the target antenna group is Group8 (i.e., ANT5, ANT6, ANT7, and ANT13), one switching index with the least number of switches is TAS state108 in Table 1, that is, PRX is connected to ANT13, DRX is connected to ANT5, mPRX1 is connected to ANT6, and mDRX1 is connected to ANT7. Then, the second switching index corresponding to the receiving antenna is TASstate108.

[0134] Then, control the switch component connecting the target antenna group and the target signal channel group based on the first switch control policy and the second switch control policy corresponding to the second switching index.

[0135] In the embodiments of the present disclosure, the switch component connecting the target antenna group and the signal transmission path may be controlled to be closed or opened by using the first switch control policy, and the switch component connecting the target antenna group and the signal reception path may be controlled to be closed or opened by using the second switch control policy corresponding to the second switching index, so as to achieve time-sharing control during the transmission period and the reception period.

[0136] In this embodiment, by traversing the first mapping table, the first switching index corresponding to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group is determined, and by traversing the second mapping table, the first switch control strategy corresponding to the first switching index is determined. Then, the antenna switching is realized by using the first switch control strategy, so that the antenna switching can be more accurate and reliable, and further the user experience is optimized.

[0137] To implement the above embodiment, the present disclosure also proposes an antenna switching device.

[0138] Figure 6 It is a schematic structural diagram of the antenna switching device provided by the embodiment of the present disclosure.

[0139] As Figure 6 shown, the antenna switching device 600 may include:

[0140] A first determination module 601, configured to determine a target antenna group according to the current signal strength of each candidate antenna.

[0141] A second determination module 602, configured to determine a target signal channel group according to the target antenna group.

[0142] A third determination module 603, configured to determine a first target transmitting antenna and a second target transmitting antenna according to the signal strength of each antenna in the target antenna group.

[0143] A fourth determination module 604, configured to determine a first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group.

[0144] A control module 605, configured to control a switch component connecting the target antenna group and the target signal channel group based on the first switch control strategy.

[0145] Optionally, the first determination module 601 may further be configured to:

[0146] Determine the current candidate antennas based on the network bands corresponding to the antennas in the device and the network band currently used by the device.

[0147] Optionally, the second determination module 602 may specifically be configured to:

[0148] Determine a target signal channel group corresponding to the target antenna group based on the signal channel types initially connected to each antenna, and / or the number of switches used to connect each signal channel to each antenna, where the target signal channel group includes a main receiving channel and a diversity receiving channel.

[0149] Optionally, the second determination module 602 may specifically be configured to:

[0150] The signal channel initially connected to the first antenna is the first main receiving channel, and the signal channel initially connected to the second antenna is the first diversity receiving channel. The first antenna and the second antenna are respectively connected to the first main receiving channel and the first diversity receiving channel through the same switch component, and the first main receiving channel and the first diversity receiving channel are determined to be a target signal channel group.

[0151] Optionally, the second determination module 602 may specifically be configured to:

[0152] The signal channel initially connected to the third antenna is the second main receiving channel, and the signal channel initially connected to the fourth antenna is the second diversity receiving channel. The third antenna and the fourth antenna are respectively connected to the second main receiving channel and the second diversity receiving channel through different switch components. When there is no connection path between the third main receiving channel associated with the second diversity receiving channel and the third antenna, the second main receiving channel and its associated third diversity receiving channel are determined to be a target signal channel group.

[0153] Optionally, the second determination module 602 may specifically be configured to:

[0154] The signal channel initially connected to the third antenna is the second main receiving channel, and the signal channel initially connected to the fourth antenna is the second diversity receiving channel. The third antenna and the fourth antenna are respectively connected to the second main receiving channel and the second diversity receiving channel through different switch components. Determine the first number of switches connecting the third diversity receiving channel and the fourth antenna, and the second number of switches connecting the third main receiving channel and the third antenna, where the third diversity receiving channel is associated with the second main receiving channel, and the third main receiving channel is associated with the second diversity receiving channel;

[0155] When the first number is greater than the second number, the second diversity receiving channel and the third main receiving channel are determined to be a target signal channel group;

[0156] When the first number is less than the second number, the second main receiving channel and its associated third diversity receiving channel are determined to be a target signal channel group.

[0157] Optionally, the third determination module 603 may specifically be configured to:

[0158] Determine the two antennas with the strongest signal strengths according to the signal strengths of each antenna in the target antenna group;

[0159] Determine the antenna with the strongest signal strength among the two antennas as the first target transmitting antenna, and determine the other antenna as the second target transmitting antenna.

[0160] Optionally, the fourth determination module 604 may specifically be used for:

[0161] Traverse the first mapping table to determine a first switching index corresponding to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group;

[0162] Traverse the second mapping table to determine a first switch control policy corresponding to the first switching index.

[0163] Optionally, the fourth determination module 604 may also be used for:

[0164] Determine the switching index with the fewest corresponding switch numbers in the traversed first mapping table as the second switching index corresponding to the receiving antenna;

[0165] Based on the first switch control policy and the second switch control policy corresponding to the second switching index, control the switch component connecting the target antenna group and the target signal channel group.

[0166] The antenna switching device according to the embodiments of the present disclosure selects antennas for receiving and transmitting signals based on the signal strength of the antennas, determines signal channels according to the selected antennas, then determines switching indexes and switch control policies based on the determined antennas and signal channels, and controls the switch to complete antenna switching. Thereby, the flexibility of antenna switching can be improved, signal loss can be reduced, signal quality can be improved, and the user experience can be enhanced.

[0167] To implement the above embodiments, the present disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the antenna switching method proposed in the foregoing embodiments of the present disclosure.

[0168] Figure 7 The block diagram of an exemplary electronic device suitable for implementing the embodiments of the present disclosure is shown. Figure 7 The illustrated electronic device 12 is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0169] As Figure 7 shown, the electronic device 12 is presented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).

[0170] Bus 18 represents one or more of several types of bus architectures, including a memory bus or memory controller, a peripheral bus, an Accelerated Graphics Port, a processor, or a local bus using any of the various bus architectures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnection (PCI) bus.

[0171] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and nonvolatile media, removable and non-removable media.

[0172] Memory 28 can include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and / or cache memory 32. Electronic device 12 can further include other removable / non-removable, volatile / nonvolatile computer system storage media. By way of example only, storage system 34 can be used for reading and writing on non-removable, nonvolatile magnetic media ( Figure 7 not shown, typically referred to as a "hard disk drive"). Although Figure 7 not shown in the figure, a disk drive for reading and writing on a removable nonvolatile disk (such as a "floppy disk") and an optical disk drive for reading and writing on a removable nonvolatile optical disk (such as Compact Disc Read Only Memory (CD-ROM), Digital Video Disc Read Only Memory (DVD-ROM), or other optical media) can be provided. In these cases, each drive can be connected to bus 18 through one or more data media interfaces. Memory 28 can include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0173] A program / utilities 40 having a set (at least one) of program modules 42 can be stored, for example, in a memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules 42 generally execute the functions and / or methods in the embodiments described in this disclosure.

[0174] The electronic device 12 can also communicate with one or more external devices 14 (such as a keyboard, a pointing device, a display 24, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through an input / output (I / O) interface 22. Moreover, the electronic device 12 can also communicate with one or more networks (such as a Local Area Network (LAN), a Wide Area Network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the electronic device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0175] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the foregoing embodiments.

[0176] To implement the above embodiments, the present disclosure also proposes a chip, which includes a processing circuit and an interface circuit; wherein, the interface circuit is used to obtain instructions and send the instructions to the processing circuit, and the processing circuit is used to execute the instructions to implement the antenna switching method proposed in the foregoing embodiments of the present disclosure.

[0177] Figure 8 is a schematic structural diagram of the chip proposed in the embodiments of the present disclosure. Reference can be made to Figure 8 the schematic structural diagram of the chip 800 shown, but not limited thereto.

[0178] The chip 800 includes a processing circuit 801, and the processing circuit 801 is configured to execute any of the above methods.

[0179] In some embodiments, the chip 800 further includes one or more interface circuits 802. Optionally, the interface circuit 802 is connected to the memory 803. The interface circuit 802 can be used to receive signals from the memory 803 or other devices, and the interface circuit 802 can be used to send signals to the memory 803 or other devices. For example, the interface circuit 802 can read the instructions stored in the memory 803 and send the instructions to the processing circuit 801.

[0180] In some embodiments, the interface circuit 802 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processing circuit 801 performs other steps.

[0181] In some embodiments, terms such as interface circuit, interface, transceiver pin, transceiver, etc. can be used interchangeably.

[0182] In some embodiments, the chip 800 further includes one or more memories 803 for storing instructions. Optionally, all or part of the memory 803 can be outside the chip 800.

[0183] To implement the above embodiments, the present disclosure also proposes a computer-readable storage medium storing a computer program, which when executed by a processor, implements the antenna switching method proposed in the foregoing embodiments of the present disclosure.

[0184] The technical solution of the present disclosure can reduce the signal reception loss, improve the signal quality, and enhance the user experience.

[0185] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0186] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, "a plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0187] Any process or method description represented in a flowchart or otherwise described herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a customized logic function or process. The scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may be executed not in the order 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 art to which the embodiments of the present disclosure pertain.

[0188] The logic and / or steps represented in a flowchart or otherwise described herein, for example, can be considered a sequenced list of executable instructions for implementing a logical function, and can be embodied specifically in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection having one or more wires (electronic device), 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 medium on which the program can be printed, as the program can be obtained, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or otherwise processing as appropriate, and then storing it in a computer memory.

[0189] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following techniques known in the art or a combination thereof 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), and the like.

[0190] Those of ordinary skill in the art can understand that all or part of the steps carried out in the method of the above embodiments can be completed by instructing relevant hardware through a program. 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.

[0191] In addition, in each of the various embodiments of the present disclosure, the functional units can be integrated in a processing module, or each unit can exist physically alone, or two or more units can be integrated in a module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. When the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0192] The storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disc, etc. 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 switching method, characterized in that Including: Determine a target antenna group according to the current signal strength of each candidate antenna; Determine a target signal channel group according to the target antenna group; Determine a first target transmitting antenna and a second target transmitting antenna according to the signal strength of each antenna in the target antenna group; Determine a first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna and the target signal channel group; Based on the first switch control strategy, control a switch component connecting the target antenna group and the target signal channel group.

2. The method according to claim 1, wherein Before determining the target antenna group according to the current signal strength of each candidate antenna, it further includes: Determine current candidate antennas based on the network bands corresponding to the antennas in the device and the network band currently used by the device.

3. The method according to claim 1, wherein The determining the target signal channel group according to the target antenna group includes: Determine a target signal channel group corresponding to the target antenna group based on the signal channel types initially connected to each antenna and / or the number of switches used to connect each signal channel to each antenna, where the target signal channel group includes a main receiving channel and a diversity receiving channel.

4. The method according to claim 3, wherein The determining the target signal channel group corresponding to the target antenna group based on the signal channel types initially connected to each antenna and / or the number of switches used to connect each signal channel to each antenna includes: If the signal channel initially connected to the first antenna is a first main receiving channel, the signal channel initially connected to the second antenna is a first diversity receiving channel, and the first antenna and the second antenna are respectively connected to the first main receiving channel and the first diversity receiving channel through the same switch component, determine the first main receiving channel and the first diversity receiving channel as a target signal channel group.

5. The method according to claim 3, wherein The determining the target signal channel group corresponding to the target antenna group based on the signal channel types initially connected to each antenna and / or the number of switches used to connect each signal channel to each antenna includes: If the signal channel initially connected to the third antenna is a second main receiving channel, the signal channel initially connected to the fourth antenna is a second diversity receiving channel, the third antenna and the fourth antenna are respectively connected to the second main receiving channel and the second diversity receiving channel through different switch components, and there is no connection path between the third main receiving channel associated with the second diversity receiving channel and the third antenna, determine the second main receiving channel and its associated third diversity receiving channel as a target signal channel group.

6. The method according to claim 3, wherein The determining the target signal channel group corresponding to the target antenna group based on the signal channel types initially connected to each antenna and / or the number of switches used to connect each signal channel to each antenna includes: The signal channel initially connected to the third antenna is the second main receiving channel, and the signal channel initially connected to the fourth antenna is the second diversity receiving channel. Moreover, the third antenna and the fourth antenna are respectively connected to the second main receiving channel and the second diversity receiving channel through different switching components. Determine the first quantity of the switch connecting the third diversity receiving channel and the fourth antenna, and the second quantity of the switch connecting the third main receiving channel and the third antenna, where the third diversity receiving channel is associated with the second main receiving channel, and the third main receiving channel is associated with the second diversity receiving channel; In the case where the first quantity is greater than the second quantity, determine the second diversity receiving channel and the third main receiving channel as a target signal channel group; In the case where the first quantity is less than the second quantity, determine the second main receiving channel and its associated third diversity receiving channel as a target signal channel group.

7. The method according to claim 1, wherein The determining the first target transmitting antenna and the second target transmitting antenna according to the signal strength of each antenna in the target antenna group includes: Determine the two antennas with the strongest signal strength according to the signal strength of each antenna in the target antenna group; Determine the antenna with the strongest signal strength among the two antennas as the first target transmitting antenna, and the other antenna as the second target transmitting antenna.

8. The method according to any one of claims 1-7, characterized in that The determining the first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group includes: Traverse the first mapping table to determine the first switching index corresponding to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group; Traverse the second mapping table to determine the first switch control strategy corresponding to the first switching index.

9. The method according to claim 8, wherein The method further includes: Determine the switching index with the least corresponding switch quantity in the traversing of the first mapping table as the second switching index corresponding to the receiving antenna; Based on the first switch control strategy and the second switch control strategy corresponding to the second switching index, control the switching components connecting the target antenna group and the target signal channel group.

10. An antenna switching device, characterized in that, The device includes: A first determination module, configured to determine a target antenna group according to the current signal strength of each candidate antenna; A second determination module, configured to determine a target signal channel group according to the target antenna group; A third determination module, configured to determine a first target transmitting antenna and a second target transmitting antenna according to the signal strength of each antenna in the target antenna group; A fourth determination module, configured to determine the first switch control strategy corresponding to the current transmitting antenna according to the first target transmitting antenna, the second target transmitting antenna, and the target signal channel group; A control module, configured to control the switching components connecting the target antenna group and the target signal channel group based on the first switch control strategy.

11. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the antenna switching method as described in any one of claims 1-9.

12. A chip, characterized in that, The chip includes a processing circuit and an interface circuit; wherein, the interface circuit is configured to obtain an instruction and send the instruction to the processing circuit, and the processing circuit is configured to execute the instruction to implement the antenna switching method according to any one of claims 1-9.

13. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, the antenna switching method according to any one of claims 1-9 is implemented.