Antenna selection method and electronic device
By dynamically selecting and switching the working antenna of the terminal device and optimizing the antenna selection according to the quality of the received signal, the problem of poor signal reception performance of the terminal device in the idle state is solved, the signal reception effect is improved and power consumption is saved.
Patent Information
- Application Number
- PCT/CN2024/143483
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-29
- Filing Date
- 2024-12-28
- Publication Date
- 2025-10-02
AI Technical Summary
In the prior art, the terminal device has poor signal reception performance when in an idle state, especially due to the performance degradation caused by the non-dynamic antenna selection.
When the terminal device switches from the second state to the first state, the working antenna is dynamically selected according to the receiving signal quality of each antenna, and the antenna is determined and switched by periodically detecting and comparing the receiving signal quality to ensure that the signal is received using the antenna with good signal quality.
The signal receiving performance of the terminal device in the idle state is improved, power consumption is reduced, and unnecessary waste of resources and failures caused by antenna switching are avoided.
Smart Images

Figure CN2024143483_02102025_PF_FP_ABST
Abstract
Description
Antenna selection method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 29, 2024, with application number 202410396099.5 and application name “Antenna Selection Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and more particularly, to an antenna selection method and electronic device. Background Art
[0003] Currently, multiple antennas are typically installed on terminal devices to meet the signal transmission and reception requirements in different scenarios. For example, a 5G mobile phone typically has four antennas: a main antenna, a diversity antenna, a PM antenna, and a DM antenna.
[0004] Typically, when a terminal device is in idle state, it only needs to receive signals, such as synchronization signals, reference signals, or paging messages sent by network devices. Therefore, when the terminal device is in idle state, only one or two antennas need to be turned on to meet these needs. When the terminal device transitions from connected state to idle state, the terminal device can turn off some antennas, leaving only one or two antennas for signal reception, which can save power consumption. However, this may affect the terminal device's signal reception performance in idle state.
[0005] Based on this, how to improve the performance of terminal devices in receiving signals when in idle state has become an urgent problem to be solved. Summary of the Invention
[0006] An embodiment of the present application provides an antenna selection method that can improve the performance of a terminal device in receiving signals when in an idle state.
[0007] In a first aspect, an antenna selection method is provided, which is applied to a terminal device and includes:
[0008] When the terminal device switches from the second state to the first state, the terminal device uses the second antenna as the working antenna in the first state. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device receives signals and transmits signals.
[0009] When the terminal device is in the first state, determining the first antenna according to the quality of received signals of each antenna on the terminal device;
[0010] The working antenna in the first state is switched from the second antenna to the first antenna.
[0011] The antenna selection method provided in the embodiment of the present application is that when the terminal device transitions from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device receives and transmits signals. When the terminal device is in the first state, the first antenna is determined based on the received signal quality of each antenna on the terminal device, and the working antenna in the first state is switched from the second antenna to the first antenna. This is equivalent to the terminal device being able to dynamically determine the first antenna based on the received signal quality of each antenna when the terminal device is in the first state, and switch the working antenna in the first state from the second antenna to the first antenna. Compared with always using the second antenna determined when the terminal device is in the second state as the working antenna in the first state when the terminal device is in the first state, the first antenna dynamically determined based on the received signal quality as the working antenna in the first state can ensure that when the terminal device is in the first state, there are more opportunities to use antennas with good received signal quality to receive signals, thereby improving the signal reception performance of the terminal device when it is in the first state.
[0012] In combination with the first aspect, in certain embodiments of the first aspect, the above-mentioned determination of the first antenna based on the received signal quality of each antenna on the terminal device includes: periodically determining the received signal quality of each antenna on the terminal device according to a preset period; and determining the first antenna based on the received signal quality of each antenna on the terminal device.
[0013] In an antenna selection method provided in an embodiment of the present application, when a terminal device transitions from a second state to a first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device both receives and transmits signals. When the terminal device is in the first state, the received signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then a first antenna is determined based on the received signal quality of each antenna on the terminal device, and the working antenna at the current moment is switched from the second antenna to the first antenna. This is equivalent to the terminal device being able to periodically and dynamically determine the first antenna based on the received signal quality of each antenna when the terminal device is in the first state, and switching the working antenna in the first state from the second antenna to the first antenna. Compared with always using the second antenna determined when the terminal device is in the second state as the working antenna when the terminal device is in the first state, the first antenna dynamically determined based on the received signal quality as the working antenna can ensure that when the terminal device is in the first state, there are more opportunities to use antennas with good received signal quality to receive signals, thereby improving the signal reception performance of the terminal device in the first state.
[0014] In combination with the first aspect, in certain embodiments of the first aspect, the number of second antennas is at least one, and the above-mentioned determining the first antenna based on the received signal quality of each antenna on the terminal device when the terminal device is in the first state includes: when the terminal device is in the first state, obtaining the received signal quality of the second antenna; if the received signal quality of the second antenna is less than a first preset threshold, determining the first antenna based on the received signal quality of each antenna on the terminal device.
[0015] In some possible cases, in a 5G terminal device, the number of the second antenna may be 1.
[0016] In some possible cases, in a 5G terminal device, the number of second antennas may be 2.
[0017] The antenna selection method provided in the embodiment of the present application is that when the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals. When the terminal device is in the first state, the receiving signal quality of the second antenna is first obtained. When the receiving signal quality of the second antenna is less than the first preset threshold, the first antenna is determined according to the receiving signal quality of each antenna on the terminal device, and then the working antenna in the first state is switched from the second antenna to the first antenna. In this way, before determining the first antenna, it is first determined whether the working antenna of the terminal device at the current moment is in a normal working state, and only when the working antenna at the current moment is in an abnormal working state, the first antenna is further determined. This can avoid the situation where the first antenna that replaces the working antenna is determined when the working antenna of the terminal device at the current moment can work normally, thereby saving unnecessary resource overhead of the terminal device.
[0018] In combination with the first aspect, in certain embodiments of the first aspect, when the terminal device is a 5G terminal device, the terminal device includes a first antenna combination and a second antenna combination, the first antenna combination includes a first main antenna and a first diversity antenna, the second antenna combination includes a PM antenna and a DM antenna, and the first antenna is determined according to the received signal quality of each antenna, including: determining whether the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is greater than a second preset threshold, wherein the third antenna is the antenna with the best received information quality in the first antenna combination, and the fourth antenna is the antenna with the best received signal quality in the second antenna combination; if the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is greater than the second preset threshold, the PM antenna and the DM antenna in the second antenna combination are used as the first antenna.
[0019] In combination with the first aspect, in certain embodiments of the first aspect, the method also includes: if the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is less than or equal to a second preset threshold, then the first main antenna and the first diversity antenna in the first antenna combination are used as the first antenna.
[0020] The antenna selection method provided in the embodiment of the present application is that when the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna, when the terminal device is in the first state, the terminal device only receives signals but does not send signals, and when the terminal device is in the second state, the terminal device receives signals and sends signals, wherein the second antenna is the antenna in the first antenna combination, and when the terminal device is in the first state, the receiving signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then it is determined whether the difference between the receiving signal quality of the fourth antenna and the receiving signal quality of the third antenna is greater than the second preset threshold value, if the difference between the receiving signal quality of the fourth antenna and the receiving signal quality of the third antenna is greater than the second preset threshold value, then the PM antenna and the DM antenna in the second antenna combination are used as the first antenna, and if the receiving signal quality of the fourth antenna is subtracted from the receiving signal quality of the third antenna, If the difference in signal quality is less than or equal to a second preset threshold, the first main antenna and the first diversity antenna in the first antenna combination are used as the first antenna, and then the working antenna in the first state is switched from the second antenna to the first antenna. It can be understood that the first main antenna and the first diversity antenna in the first antenna combination are antennas used in pairs, and the PM antenna and the DM antenna in the second antenna combination are also antennas used in pairs. Therefore, when determining the first antenna, the first main antenna and the first diversity antenna in the first antenna combination are simultaneously determined as the first antenna, or the PM antenna and the DM antenna in the second antenna combination are simultaneously determined as the first antenna. This can avoid the need to additionally configure the connection relationship between the antenna and the RF circuit when only one antenna in an antenna combination is selected from the terminal device as the working antenna, thereby simplifying the process of the terminal device replacing the second antenna with the first antenna in the first state.
[0021] In combination with the first aspect, in certain embodiments of the first aspect, determining the first antenna based on the received signal quality of each antenna includes: taking the first N antennas with the highest received signal quality among the antennas in the terminal device as the first antenna.
[0022] The antenna selection method provided in an embodiment of the present application uses the second antenna as the working antenna when the terminal device transitions from the second state to the first state. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device receives and transmits signals. When the terminal device is in the first state, the received signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then the N antennas with the highest received signal quality in the terminal device are used as the first antenna. The first antenna is then used to replace the second antenna as the working antenna when the terminal device is in the first state. This is equivalent to the terminal device only needing to determine the first antenna by arranging the antennas in descending order according to their received signal quality, thereby reducing the difficulty of determining the first antenna and improving the efficiency of determining the first antenna, thereby also improving the efficiency of replacing the second antenna with the first antenna. That is, when the terminal device is in the first state, the first antenna can be quickly used to replace the second antenna, further improving the signal reception performance of the terminal device when it is in the first state.
[0023] In combination with the first aspect, in certain embodiments of the first aspect, N is 2.
[0024] In combination with the first aspect, in certain embodiments of the first aspect, when the terminal device is a 4G terminal device, the terminal device includes a second main set antenna and other antennas, and determines the first antenna based on the received signal quality of each antenna, including: determining whether the difference between the received signal quality of the fifth antenna and the received signal quality of the second main set antenna is greater than a fourth preset threshold, and the fifth antenna is the antenna with the best received signal quality among the other antennas; if the difference between the received signal quality of the fifth antenna and the received signal quality of the second main set antenna is greater than the fourth preset threshold, then the fifth antenna is used as the first antenna.
[0025] In combination with the first aspect, in certain embodiments of the first aspect, the method further includes: if the difference between the received signal quality of the fifth antenna and the received signal quality of the second main set antenna is less than or equal to a fourth preset threshold, then using the second main set antenna as the first antenna.
[0026] The antenna selection method provided in the embodiment of the present application is applied to a 4G terminal device. When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals, wherein the second antenna is the second main set antenna. When the terminal device is in the first state, the receiving signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then it is determined whether the difference between the receiving signal quality of the fifth antenna and the receiving signal quality of the second main set antenna is greater than a fourth preset threshold. The fifth antenna is the antenna with the best receiving signal quality among the other antennas. If the difference between the receiving signal quality of the fifth antenna and the receiving signal quality of the second main set antenna is greater than the fourth preset threshold, Set a threshold, then the fifth antenna is used as the first antenna; if the difference between the received signal quality of the fifth antenna and the received signal quality of the second main set antenna is less than or equal to the fourth preset threshold, the second main set antenna is used as the first antenna; and then the working antenna at the current moment is switched from the second antenna to the first antenna; it can be understood that in 4G terminal equipment, if the second main set antenna can work normally, the second main set antenna is usually used as the working antenna; in this case, if the received signal quality of other antennas is equivalent to or slightly better than the received signal quality of the second main set antenna, the second main set antenna can be kept as the working antenna, that is, the working antenna keeps the second main set antenna unchanged, which can reduce the frequent switching of antennas in the terminal equipment, thereby effectively avoiding failures caused by switching antennas.
[0027] In combination with the first aspect, in certain embodiments of the first aspect, the preset period includes a first preset sub-period and a second preset sub-period, and the received signal quality of each antenna on the terminal device is periodically determined according to the preset period, including: determining the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determining the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period, the first antenna combination includes a first main antenna and a first diversity antenna, and the second antenna combination includes a PM antenna and a DM antenna.
[0028] In combination with the first aspect, in some embodiments of the first aspect, the duration of one cycle in the second preset sub-cycle is N times the duration of one cycle in the first preset sub-cycle, where N is a positive integer greater than 1.
[0029] The antenna selection method provided in the embodiment of the present application can determine the received signal quality of the first antenna combination in the terminal device according to a first preset sub-period when periodically determining the received signal quality of each antenna on the terminal device according to a preset period, and at the same time determine the received signal quality of the second antenna combination in the terminal device according to a second preset sub-period. That is, the terminal device determines the received signal quality of the antennas in the first antenna combination and the second antenna combination respectively according to different preset periods. This can reduce the number of times the terminal device determines the received signal quality of each antenna, thereby reducing the power consumption consumed by the terminal device in determining the received signal quality of each antenna.
[0030] In combination with the first aspect, in certain embodiments of the first aspect, the above-mentioned determining the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determining the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period, includes: determining whether the movement information of the terminal device meets the preset conditions, the movement information includes the moving distance and moving speed of the terminal device; if the movement information of the terminal device meets the preset conditions, determining the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determining the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period, the preset conditions include at least one of the following: the moving distance of the terminal device is less than the fifth preset threshold; the moving speed of the terminal device is less than the sixth preset threshold.
[0031] In an antenna selection method provided in an embodiment of the present application, before periodically determining the received signal quality of each antenna on a terminal device according to a preset period, the terminal device first determines whether the terminal device's movement information meets a preset condition. If the terminal device's movement information meets the preset condition, the received signal quality of the first antenna combination in the terminal device is determined according to a first preset sub-period, and the received signal quality of the second antenna combination in the terminal device is determined according to a second preset sub-period. The movement information may include the movement distance and movement speed of the terminal device. The preset condition includes at least one of the following: the movement distance of the terminal device is less than a fifth preset threshold, and the movement speed of the terminal device is less than a sixth preset threshold. If the terminal device's movement information meets the preset condition, that is, the probability of a change in the received signal quality of the first main antenna and the first diversity antenna is reduced, and the probability of a problem occurring is low, the received signal quality of the first antenna combination in the terminal device is then determined according to the first preset sub-period, and the received signal quality of the second antenna combination in the terminal device is determined according to the second preset sub-period. This method can reduce the number of times the terminal device determines the received signal quality of each antenna, while ensuring the performance of receiving signals in the terminal device in an idle state, thereby reducing the power consumption consumed by the terminal device in determining the received signal quality of each antenna.
[0032] In combination with the first aspect, in some embodiments of the first aspect, the first state includes an idle state and / or a deactivated state, and the second state includes a connected state.
[0033] In combination with the first aspect, in certain embodiments of the first aspect, the terminal device includes a modem and a first chip, the modem is used to determine the received signal quality of each antenna on the terminal device in the second state, and the first chip is used to determine the first antenna based on the received signal quality of each antenna on the terminal device in the first state, and control the working antenna in the first state to be switched from the second antenna to the first antenna.
[0034] In a second aspect, an antenna selection device is provided, comprising a unit for executing any of the methods in the first aspect. The device may be a server, a terminal device, or a chip within the terminal device. The device may include an input unit and a processing unit.
[0035] When the device is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may also include a memory for storing computer program code, and when the processor executes the computer program code stored in the memory, the terminal device executes any one of the methods in the first aspect or the second aspect.
[0036] When the device is a chip in a terminal device, the processing unit may be a processing unit inside the chip, and the input unit may be an output interface, a pin or a circuit, etc.; the chip may also include a memory, which may be a memory inside the chip (for example, a register, a cache, etc.) or a memory located outside the chip (for example, a read-only memory, a random access memory, etc.); the memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, the chip executes any one of the methods in the first aspect or the second aspect.
[0037] In one possible implementation, a memory is used to store computer program code; a processor executes the computer program code stored in the memory, and when the computer program code stored in the memory is executed, the processor is used to perform: when the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna in the first state; when the terminal device is in the first state, the terminal device only receives signals but does not send signals; when the terminal device is in the second state, the terminal device receives signals and sends signals; when the terminal device is in the first state, the first antenna is determined according to the received signal quality of each antenna on the terminal device; and the working antenna in the first state is switched from the second antenna to the first antenna.
[0038] In a third aspect, a terminal device is provided, comprising: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the terminal device executes any one of the antenna selection methods in the first aspect.
[0039] In combination with the third aspect, in some embodiments of the third aspect, the one or more processors include a modem, and the above method can be implemented by a modem.
[0040] In combination with the third aspect, in other embodiments of the third aspect, one or more processors include a first chip and a modem, the modem is used to determine the receiving signal quality of each antenna on the terminal device in the second state, the first chip is used to determine the first antenna according to the receiving signal quality of each antenna on the terminal device in the first state, and control the working antenna in the first state to be switched from the second antenna to the first antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals. When the terminal device switches from the second state to the first state, the terminal device uses the second antenna as the working antenna in the first state.
[0041] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by an antenna selection device, the antenna selection device performs any one of the antenna selection methods in the first aspect.
[0042] In a fifth aspect, a computer program product is provided, comprising: a computer program code, wherein when the computer program code is executed by an antenna selection device, the antenna selection device is caused to execute any one of the device methods in the first aspect.
[0043] In a sixth aspect, a chip system is provided, wherein the chip system can be a modem, or a system on chip (SoC) including a modem. In some embodiments, the above method can be implemented by a modem, which has a new function of implementing the above method compared to existing modems. In other embodiments, the chip system can include a modem and a first chip, and the above method can be mainly implemented by the first chip. For the relevant description of the first chip, reference can be made to the description elsewhere in this document. The first chip can be integrated with the modem on a system on chip, or the first chip can be independently provided outside the system on chip including the modem.
[0044] The antenna selection method and terminal device provided in the embodiments of the present application use the second antenna as the working antenna when the terminal device transitions from the second state to the first state. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device receives and transmits signals. When the terminal device is in the first state, the first antenna is determined based on the received signal quality of each antenna on the terminal device, and the working antenna in the first state is switched from the second antenna to the first antenna. This is equivalent to the terminal device being able to dynamically determine the first antenna based on the received signal quality of each antenna when the terminal device is in the first state, and switching the working antenna in the first state from the second antenna to the first antenna. Compared with always using the second antenna determined when the terminal device is in the second state as the working antenna when the terminal device is in the first state, the first antenna dynamically determined based on the received signal quality as the working antenna can ensure that when the terminal device is in the first state, there are more opportunities to use antennas with good received signal quality to receive signals, thereby improving the performance of the terminal device in receiving signals when it is in the first state. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] FIG1 is a schematic diagram of a connection relationship between a terminal device and a network device when the terminal device is in an idle state;
[0046] FIG2 is a schematic diagram of a connection relationship between a terminal device and a network device when the terminal device is in a deactivated state;
[0047] FIG3 is a schematic diagram of a connection relationship between a terminal device and a network device when the terminal device is in a connected state;
[0048] FIG4 is a flow chart of an antenna selection method provided in an embodiment of the present application;
[0049] FIG5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
[0050] FIG6 is a flow chart of another antenna selection method provided in an embodiment of the present application;
[0051] FIG7 is a flow chart of another antenna selection method provided in an embodiment of the present application;
[0052] FIG8 is a flow chart of another antenna selection method provided in an embodiment of the present application;
[0053] FIG9 is a schematic structural diagram of another terminal device provided in an embodiment of the present application;
[0054] FIG10 is a schematic diagram of a connection relationship between a switch and an antenna provided in an embodiment of the present application;
[0055] FIG11 is a flow chart of another antenna selection method provided in an embodiment of the present application;
[0056] FIG12 is a schematic diagram of a hardware system of an electronic device applicable to the present application;
[0057] FIG13 is a schematic diagram of a software system of an electronic device applicable to the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0059] In the following, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features indicated. Therefore, a feature specified as "first," "second," or "third" may explicitly or implicitly include one or more of the features.
[0060] To facilitate understanding, some of the examples given are provided for reference to the description of concepts related to the embodiments of the present application.
[0061] 1. IDLE state.
[0062] The idle state refers to a state where no connection is established between the terminal and the base station, or between the base station and the core network, as shown in Figure 1. If data is to be sent to the terminal device, or if the terminal device needs to send data, it must first transition from the idle state to the connected state, which requires a longer delay, for example, more than 100ms.
[0063] 2. Inactive state.
[0064] The idle state refers to a state where there is no connection between the terminal and the base station, but a connection is established between the base station and the core network, as shown in Figure 2. If data needs to be sent to the terminal device through the base station, the base station will send a paging message to the terminal. After receiving the paging message, the terminal will quickly (for example, 10ms) establish a connection with the base station, and the terminal device will transition from the deactivated state to the connected state.
[0065] It is understandable that the time required for the terminal device to change from the deactivated state to the connected state is generally shorter than the time required for the terminal device to change from the idle state to the connected state.
[0066] 3. Connected state (Connect).
[0067] The connected state may mean that connections are established between the terminal and the base station, and between the base station and the core network, as shown in Figure 3. In the connected state, data can be transmitted at any time without delay.
[0068] It should be noted that 5G devices typically have a deactivated state, while 4G devices generally do not. In other words, 5G devices have three states: idle, deactivated, and connected; while 4G devices have two states: idle and connected.
[0069] It should be understood that when a terminal device is in an idle state, it usually only receives signals. For example, it receives synchronization signals sent by network devices, receives the Reference Signal Receiving Power (RSRP) between the terminal device and the network device, or receives paging messages. Therefore, when a terminal device is in an idle state, it is usually sufficient to turn on only one or two antennas. When the terminal device changes from a connected state to an idle state, the terminal device can turn off some antennas and only retain one or two antennas for receiving signals, which can save power consumption of the terminal device.
[0070] When a terminal device is in a connected state, it periodically and dynamically evaluates RSRP, signal-to-noise ratio (SNR), downlink schedule rate, and / or uplink transmit power ratio (Tx Power / MTPL) to determine the number of antennas to be active. For example, based on RSRP and SNR, the terminal device determines that two antennas should be enabled when the terminal device is in a connected state. The terminal device then selects the two antennas with the highest RSRP as the active antennas.
[0071] Typically, when a 5G device transitions from connected to idle, it defaults to using the primary receive antenna (Prx) and diversity receive antenna (Drx) as its idle antennas, used for searching for a serving cell or receiving paging messages. When a 4G device transitions from connected to idle, it defaults to using the primary receive antenna as its idle antenna.
[0072] It is understandable that due to the limitations of the existing modem working mechanism, the existing modem will not dynamically detect RSRP, SNR, downlink scheduling rate and uplink transmission power ratio when the terminal device is in idle state. Therefore, the terminal device will not dynamically evaluate the strength of the antenna receiving signal on the terminal device based on RSRP, SNR, downlink scheduling rate and uplink transmission power ratio.
[0073] If the antenna of the terminal device is in an idle state and is held by the user or blocked by other objects, the performance of the antenna will be degraded, affecting the user experience.
[0074] In view of this, an embodiment of the present application provides an antenna selection method. When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals. When the terminal device is in the first state, the first antenna is determined according to the received signal quality of each antenna on the terminal device, and then the working antenna in the first state is switched from the second antenna to the first antenna; this is equivalent to when the terminal device is in the first state, the terminal device can dynamically determine the first antenna according to the received signal quality of each antenna, and switch the working antenna in the first state from the second antenna to the first antenna. Compared with always using the second antenna determined when the terminal device is in the second state as the working antenna when the terminal device is in the first state, the first antenna dynamically determined based on the received signal quality as the working antenna can ensure that when the terminal device is in the first state, there are more opportunities to use antennas with good received signal quality to receive signals, thereby improving the performance of the terminal device in receiving signals when it is in the first state.
[0075] The application scenarios provided by the embodiments of the present application are described below.
[0076] The antenna selection method provided in the embodiment of the present application can be applied to the process of the terminal device converting from a connected state to an idle state, and can also be applied to the process of the terminal device converting from a connected state to a deactivated state. The embodiment of the present application does not limit this.
[0077] Illustratively, the antenna selection method provided in the embodiment of the present application can be applied to the process of a 4G mobile phone switching from a connected state to an idle state.
[0078] Exemplarily, the antenna selection method provided in the embodiment of the present application can be applied to the process of a 5G mobile phone converting from a connected state to an idle state.
[0079] Exemplarily, the antenna selection method provided in the embodiment of the present application can be applied to the process of converting a 5G mobile phone from a connected state to a deactivated state.
[0080] It should be understood that the above is an example of an application scenario and does not limit the application scenario of this application.
[0081] The antenna selection method provided in the embodiment of the present application is described in detail below with reference to FIG. 4 to FIG. 11 .
[0082] FIG4 is a flow chart of an antenna selection method provided in an embodiment of the present application. As shown in FIG4 , the method is applied to a terminal device and includes:
[0083] S101. When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals.
[0084] When the terminal device is in the first state, the terminal device only receives signals and does not send signals. It is understandable that when the terminal device is in the idle state or the deactivated state, the terminal device is in a state of only receiving paging messages sent by the network device. Therefore, the terminal device being in the first state can be equivalent to the terminal device being in the idle state or the deactivated state.
[0085] When the terminal device is in the second state, the terminal device receives and sends signals. It is understandable that when the terminal device is in the connected state, the terminal device needs to receive and send signals. Therefore, the terminal device being in the second state can be equivalent to the terminal device being in the connected state.
[0086] It should be noted that, when the terminal device is in the first state, in order to avoid power loss of the terminal device, some antennas in the terminal device are usually turned off. In other words, the terminal device will not actively query the received signal quality of all antennas.
[0087] S102: When the terminal device is in the first state, determine the first antenna according to the received signal quality of each antenna on the terminal device.
[0088] The received signal quality (RSQ) can be used to indicate the signal strength of a signal transmitted by a network device when received by a terminal device. For example, the received signal quality can refer to the Reference Signal Received Power (RSRP) or the Signal to Interference plus Noise Ratio (SNR); however, this embodiment of the present application does not limit this.
[0089] The terminal device may determine the antenna with the best received signal quality as the first antenna, or may determine multiple antennas with the best received signals as the first antenna. This embodiment of the present application does not limit this.
[0090] In one possible scenario, before determining the received signal quality of each antenna, the terminal device may determine the number of first antennas based on the received signal quality of the working antenna. For example, before determining the received signal quality of each antenna, the terminal device may determine the number of first antennas through the following steps.
[0091] Step 1: Obtain the receiving signal quality of the working antenna of the terminal device at the current moment.
[0092] Step 2: Determine the number of working antennas when the terminal device is in the first state according to the quality of the received signals of the working antennas.
[0093] In one possible case, the first antenna determined by the terminal device may be a group of antennas. For example, a 5G terminal device includes a first antenna combination and a second antenna combination. The first antenna combination includes a first main antenna and a first diversity antenna, and the second antenna combination includes a primary multiple-input multiple-output (PM) antenna and a secondary multiple-input multiple-output (DM) antenna. The antennas in the first antenna combination are usually used simultaneously, and similarly, the antennas in the second antenna combination are also used simultaneously. Therefore, the first antenna may be the first main antenna and the first diversity antenna in the first antenna combination, or the first antenna may be the PM antenna and the DM antenna in the second antenna combination.
[0094] In one possible scenario, the first antenna determined by the terminal device may be an antenna combination consisting of a target antenna and one other antenna. For example, a 4G terminal device includes one receiving antenna and three other antennas. The first antenna may be an antenna combination consisting of the receiving antenna and any one of the three other antennas.
[0095] Optionally, determining the first antenna based on the received signal quality of each antenna on the terminal device may mean first periodically determining the received signal quality of each antenna on the terminal device according to a preset period, and then determining the first antenna based on the received signal quality of each antenna on the terminal device.
[0096] When the terminal device is in the first state, that is, the terminal device is only receiving paging messages sent by the network device, the terminal device generally does not actively query the received signal quality of each antenna. Therefore, the antenna selection method provided in the embodiment of the application provides a first chip in the terminal device, and queries the received signal quality of each antenna through the first chip.
[0097] The terminal device periodically determines the received signal quality of each antenna on the terminal device, which is equivalent to determining the received signal quality of each antenna once every period, that is, the terminal device determines the received signal quality of each antenna thereon multiple times.
[0098] In an antenna selection method provided in an embodiment of the present application, when a terminal device transitions from a second state to a first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device both receives and transmits signals. When the terminal device is in the first state, the received signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then a first antenna is determined based on the received signal quality of each antenna on the terminal device, and the working antenna at the current moment is switched from the second antenna to the first antenna. This is equivalent to the terminal device being able to periodically and dynamically determine the first antenna based on the received signal quality of each antenna when the terminal device is in the first state, and switching the working antenna in the first state from the second antenna to the first antenna. Compared with always using the second antenna determined when the terminal device is in the second state as the working antenna when the terminal device is in the first state, the first antenna dynamically determined based on the received signal quality as the working antenna can ensure that when the terminal device is in the first state, there are more opportunities to use antennas with good received signal quality to receive signals, thereby improving the signal reception performance of the terminal device in the first state.
[0099] In one possible scenario, when the terminal device is in the first state, before periodically determining the received signal quality of each antenna on the terminal device according to a preset period, it can be determined whether the received signal quality of the working antenna at the current moment is within a normal range. If the received signal quality of the working antenna at the current moment is within the normal range, for example, the received signal quality of the working antenna at the current moment is greater than -100dBm, then the working antenna at the current moment is in a state where it can work normally, and therefore there is no need to obtain the received signal quality of other antennas to replace the working antenna at the current moment.
[0100] If the received signal quality of the currently active antenna is abnormal, for example, less than or equal to -100dBm, the received signal quality of each antenna on the terminal device is periodically determined according to a preset period. This means that the terminal device only determines the first antenna to replace the currently active antenna when the signal quality of the currently active antenna is poor, thus avoiding unnecessary resource waste in the terminal device.
[0101] It is understood that if the number of currently active antennas is greater than one, the antenna with the best received signal quality among the currently active antennas can be first determined, and then the received signal quality of the best antenna can be determined to be greater than -100 dBm. If the received signal quality of the best antenna is greater than -100 dBm, the currently active antenna is in a normal operating state. If the received signal quality of the best antenna is less than or equal to -100 dBm, the currently active antenna is not in a normal operating state.
[0102] If the received signal quality of the currently working antenna is abnormal, the terminal device can determine the number of antennas for which it can obtain received signal quality after obtaining the received signal quality of the working antenna. For example, if the terminal device has four antennas and can currently obtain the received signal quality of two antennas, then the number of antennas currently in operation is two. Therefore, the terminal device needs to poll the received signal quality of the other two antennas to obtain the received signal quality of all antennas. If the terminal device can currently obtain the received signal quality of all four antennas, then the number of antennas currently in operation is four, and the terminal device can currently obtain the received signal quality of all antennas.
[0103] Among them, the terminal device polls the receiving signal quality of the other two antennas, which may mean that the first chip in the terminal device periodically queries the receiving signal quality of the other two antennas according to a preset period.
[0104] The antenna selection method provided in the embodiment of the present application is that when the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals. When the terminal device is in the first state, the receiving signal quality of the second antenna is first obtained. When the receiving signal quality of the second antenna is less than the first preset threshold, the first antenna is determined according to the receiving signal quality of each antenna on the terminal device, and then the working antenna in the first state is switched from the second antenna to the first antenna. In this way, before determining the first antenna, it is first determined whether the working antenna of the terminal device at the current moment is in a normal working state, and only when the working antenna at the current moment is in an abnormal working state, the first antenna is further determined. This can avoid the situation where the first antenna that replaces the working antenna is determined when the working antenna of the terminal device at the current moment can work normally, thereby saving unnecessary resource overhead of the terminal device.
[0105] Since the terminal device periodically determines the received signal quality of each antenna on the terminal device, which is equivalent to determining the received signal quality of each antenna once every period, the terminal device periodically determines the first antenna based on the received signal quality of each antenna.
[0106] S103: Switch the working antenna in the first state from the second antenna to the first antenna.
[0107] When the terminal device is in a connected state, the modem in the terminal device can obtain the received signal quality of each antenna at any time. Therefore, when the terminal device is in the second state (connected state), the terminal device can read the received signal quality of each antenna at any time and then select the antenna with the best quality (the second antenna) as the working antenna. When the terminal device is in the first state (idle state or deactivated state), the second antenna determined in the second state is usually used as the working antenna. In an embodiment of the present application, the terminal device can query the received signal quality of each antenna in real time through the first chip, and then determine the first antenna in real time based on the received signal quality of each antenna, and then use the first antenna to replace the second antenna in real time.
[0108] Exemplarily, there are four antennas in the terminal device, namely antenna 1, antenna 2, antenna 3, and antenna 4. When the terminal device switches from the second state to the first state, the second antenna determined by the terminal device is antenna 1. In the first state, if the first antenna determined by the terminal device in the i-th cycle is antenna 2, the working antenna in the first state can be switched from antenna 1 to antenna 2. Then, the terminal device continues to poll the received signal quality of each antenna thereon. If the first antenna determined in the i+1-th cycle is antenna 3, the terminal device can switch the working antenna in the first state from antenna 2 to antenna 3.
[0109] It is understandable that when there are multiple antennas in the terminal device, the multiple antennas are usually connected through a multi-pole multi-throw switch, and the terminal device can switch the working antenna by switching the connection state of the multi-pole multi-throw switch.
[0110] For example, as shown in FIG5 , the terminal device has four antennas, namely antenna 1, antenna 2, antenna 3, and antenna 4. These four antennas are connected to the modem via a 4-pole 4-throw switch.
[0111] When the terminal device switches from the second state to the first state, the terminal device determines that antenna 2 is the second antenna (the antenna in working state). At this time, the terminal device connects antenna 2 to the modem by controlling the connection state of the 4-pole 4-throw switch, while antenna 1, antenna 3, and antenna 4 are disconnected from the modem. At this time, the terminal device receives signals through antenna 2. Then, based on the received signal quality of each antenna queried by the first chip, the terminal device determines that the first antenna is antenna 3. At this time, the terminal device can change the connection state of the 4-pole 4-throw switch to connect antenna 3 to the modem, while antenna 1, antenna 2, and antenna 4 are disconnected from the modem. At this time, the terminal device receives signals through antenna 3, that is, the working antenna at the current moment is switched from the second antenna to the first antenna, which serves as the working antenna when the terminal device is in the first state.
[0112] The antenna selection method provided in the embodiment of the present application is that when the terminal device converts from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals. When the terminal device is in the first state, the first antenna is determined based on the received signal quality of each antenna on the terminal device, and then the working antenna in the first state is switched from the second antenna to the first antenna. This is equivalent to the terminal device being able to dynamically determine the first antenna based on the received signal quality of each antenna when the terminal device is in the first state, and switch the working antenna in the first state from the second antenna to the first antenna. Compared with always using the second antenna determined when the terminal device is in the second state as the working antenna when the terminal device is in the first state, the first antenna dynamically determined based on the received signal quality as the working antenna can ensure that when the terminal device is in the first state, there are more opportunities to use antennas with good received signal quality to receive signals, thereby improving the performance of the terminal device receiving signals when it is in the first state.
[0113] When determining the first antenna based on the received signal quality, the terminal device may select the antenna with the best received signal quality as the first antenna. This will be described in detail below using the embodiment shown in FIG6 .
[0114] FIG6 is a flow chart of an antenna selection method provided in an embodiment of the present application. As shown in FIG6 , the method is applied to a terminal device and includes:
[0115] S201 When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals.
[0116] S202: When the terminal device is in the first state, periodically determine the quality of received signals of each antenna on the terminal device according to a preset period.
[0117] S203: Use N antennas in the terminal device that have the highest quality of received signals as first antennas.
[0118] It is understandable that the terminal device can select one or more antennas as the first antenna. Therefore, the terminal device can arrange the antennas in order from high to low according to the received signal quality of each antenna, obtain the arrangement number corresponding to each antenna, and use the antenna with an arrangement number less than or equal to the third preset threshold as the first antenna. In other words, the N antennas with the highest received signal quality among the antennas in the terminal device are used as the first antenna. For example, when the third preset threshold is 1, one antenna is selected from the terminal device as the first antenna, and the number of first antennas is 1; when the third preset threshold is 2, two antennas are selected from the terminal device as the first antenna, and the number of first antennas is 2.
[0119] It is understandable that, in some possible cases, antennas in a terminal device are usually used in pairs, so two antennas need to be selected as the first antennas.
[0120] Optionally, N is 2.
[0121] S204: Switch the working antenna in the first state from the second antenna to the first antenna.
[0122] The antenna selection method provided in an embodiment of the present application uses the second antenna as the working antenna when the terminal device transitions from the second state to the first state. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device receives and transmits signals. When the terminal device is in the first state, the received signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then the N antennas with the highest received signal quality in the terminal device are used as the first antenna. The first antenna is then used to replace the second antenna as the working antenna when the terminal device is in the first state. This is equivalent to the terminal device only needing to determine the first antenna by arranging the antennas in descending order according to their received signal quality, thereby reducing the difficulty of determining the first antenna and improving the efficiency of determining the first antenna, thereby also improving the efficiency of replacing the second antenna with the first antenna. That is, when the terminal device is in the first state, the first antenna can be quickly used to replace the second antenna, further improving the signal reception performance of the terminal device when it is in the first state.
[0123] It is understandable that the terminal device can be a 5G terminal device or a 4G terminal device, and the embodiments of the present application do not limit this.
[0124] In one possible scenario, if the terminal device is a 5G terminal device, the terminal device typically includes a first antenna combination and a second antenna combination, where the first antenna combination includes a first main antenna and a first diversity antenna, and the second antenna combination includes a PM antenna and a DM antenna. When determining the operating antenna in the first state, the terminal device may compare the antenna with the best signal quality in the first antenna combination with the antenna with the best signal quality in the second antenna combination to determine the first antenna. This is explained in detail below using the embodiment shown in FIG7.
[0125] FIG7 is a flow chart of an antenna selection method provided in an embodiment of the present application. As shown in FIG7 , the method is applied to a terminal device and includes:
[0126] S301. When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals, wherein the second antenna is the antenna in the first antenna combination.
[0127] S302: When the terminal device is in the first state, periodically determine the quality of received signals of each antenna on the terminal device according to a preset period.
[0128] S303. Determine whether the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is greater than a second preset threshold, where the third antenna is the antenna with the best received information quality in the first antenna combination, and the fourth antenna is the antenna with the best received signal quality in the second antenna combination.
[0129] 5G terminal devices typically include a first antenna combination and a second antenna combination. The first antenna combination typically includes a main antenna (equivalent to the first main antenna) and a diversity antenna (equivalent to the first diversity antenna); the second antenna combination typically includes a PM antenna and a DM antenna. It is understood that the main antenna and diversity antenna in 5G terminal devices are typically used in pairs, and the PM antenna and DM antenna in 5G terminal devices are also typically used in pairs. That is, in the terminal device, if the first main antenna is turned on, the first diversity antenna is also turned on; or if the PM antenna is turned on, the DM antenna is also turned on. Therefore, when determining the first antenna, the first main antenna and the first diversity antenna are typically both determined as the first antenna, or the PM antenna and the DM antenna are both determined as the first antenna. The third antenna is the antenna with the best received signal quality between the first main antenna and the first diversity antenna, that is, the antenna with the best received signal quality in the first antenna combination; the fourth antenna is the antenna with the best received signal quality between the PM antenna and the DM antenna, that is, the antenna with the best received signal quality in the second antenna combination.
[0130] It should be noted that when the terminal device is in the first state, it only receives signals. In this case, the terminal device typically only needs one antenna to receive signals. However, the main antenna and diversity antenna in 5G terminal devices are typically used in pairs, and the PM antenna and DM antenna in 5G terminal devices are also typically used in pairs. Therefore, when determining the first antenna, an antenna combination can be selected from a first antenna combination including a first main antenna and a first diversity antenna, and a second antenna combination including a PM antenna and a DM antenna, and the antenna in this antenna combination can be used as the first antenna.
[0131] For example, the terminal device can find the third antenna with the best received signal quality from the first antenna combination, and find the fourth antenna with the best received signal quality from the second antenna combination, and then select the first antenna based on the received signal quality of the third and fourth antennas.
[0132] It is understandable that in 5G terminal devices, the main antenna is usually the primary antenna used. Therefore, when the terminal device is in the second state, the probability of using the first main antenna as the second antenna is high. In this case, if the received signal quality of each antenna in the second antenna combination (PM antenna and DM antenna) is not significantly better than the antenna in the first antenna combination, that is, the difference in the received signal quality of the third antenna and the fourth antenna is small, the first main antenna and the first diversity antenna in the first antenna combination can continue to be used as the first antenna, thereby reducing the number of times the terminal device switches antennas and avoiding failures caused by switching antennas.
[0133] For example, in the process of selecting the first antenna based on the received signal qualities of the third antenna and the fourth antenna, the first antenna can be determined by formula (1). Wherein, formula (1) includes: max(pm, dm)-max(prx, drx)=X formula (1);
[0134] Here, max(prx, drx) represents the best received signal quality among the antennas in the first antenna combination, that is, the received signal quality of the third antenna; max(pm, dm) represents the best received signal quality among the antennas in the first antenna combination, that is, the received signal quality of the fourth antenna; and X represents the difference between the received signal quality of the third antenna and the received signal quality of the fourth antenna.
[0135] If X is less than or equal to a second preset threshold (eg, 3 dB), the first main antenna and the first diversity antenna in the first antenna combination are used as the first antenna, ie, S304 is executed.
[0136] If X is greater than 0dB, it is equivalent to that the received signal quality of the fourth antenna is greater than the received signal quality of the third antenna, but is only slightly higher than the received signal quality of the third antenna. In this case, the received signal quality of the third antenna is equivalent to the received signal quality of the fourth antenna, so there is no need to switch the working antenna determined when the terminal device is converted from the second state to the first state from the antenna in the first antenna combination to the antenna in the second antenna combination.
[0137] If X is less than or equal to 0 dB, it means that the received signal quality of the fourth antenna is less than or equal to the received signal quality of the third antenna. In this case, the terminal device can continue to use the antenna in the first antenna combination as the working antenna.
[0138] If X is greater than a second preset threshold (eg, 3 dB), the PM antenna and the DM antenna in the second antenna combination are used as the first antenna, ie, S305 is executed.
[0139] If X is greater than a second preset threshold (e.g., 3dB), this means that the received signal quality of the fourth antenna is significantly higher than that of the third antenna. Since the terminal device uses an antenna in the first antenna combination as the working antenna when transitioning from the second state to the first state, the working antenna is switched from an antenna in the first antenna combination to an antenna in the second antenna combination only when the received signal quality of the fourth antenna is significantly higher than that of the third antenna. This reduces antenna switching in the terminal device and prevents malfunctions caused by antenna switching.
[0140] Among them, the second preset threshold can be a value determined based on user experience, or a value obtained based on machine learning, and the embodiment of the present application does not limit this.
[0141] In the process of determining the first antenna, the terminal device can determine whether the difference in received signal quality between the third antenna and the fourth antenna is greater than the second preset threshold value once to determine the first antenna, or it can determine whether the difference in received signal quality between the third antenna and the fourth antenna is greater than the second preset threshold value multiple times to determine the first antenna.
[0142] Exemplarily, after first determining that the difference between the received signal quality of the fourth antenna minus the received signal quality of the third antenna is greater than 3dB, the terminal device may determine the first main antenna and the first diversity antenna in the first antenna combination as the first antenna when it determines for the second time that the difference between the received signal quality of the fourth antenna minus the received signal quality of the third antenna is greater than 3dB. That is, after twice determining that the difference between the received signal quality of the third antenna and the fourth antenna is greater than 3dB, the first main antenna and the first diversity antenna in the first antenna combination are determined as the first antenna. If the difference between the received signal quality of the fourth antenna minus the received signal quality of the third antenna is greater than the second preset threshold multiple times, the first main antenna and the first diversity antenna in the first antenna combination are determined as the first antenna, thereby improving the accuracy of determining the first antenna.
[0143] It should be noted that determining whether the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is greater than the second preset threshold is actually used to determine whether the received signal quality of the antenna in the second antenna combination is much higher than the received signal quality of the antenna in the first antenna combination. The terminal device can also determine whether the received signal quality of the antenna in the second antenna combination is much higher than the received signal quality of the antenna in the first antenna combination by other means. The embodiments of the present application do not limit this.
[0144] For example, the terminal device can determine whether the difference between the receiving signal quality of the third antenna and the receiving signal quality of the fourth antenna is less than -3dB. If the difference between the receiving signal quality of the third antenna and the receiving signal quality of the fourth antenna is less than -3dB, it means that the receiving signal quality of the fourth antenna is much higher than the receiving signal quality of the third antenna, that is, the receiving signal quality of the antenna in the second antenna combination is much higher than the receiving signal quality of the antenna in the first antenna combination.
[0145] S304: Use the first main antenna and the first diversity antenna in the first antenna combination as the first antenna.
[0146] S305: Use the PM antenna and the DM antenna in the second antenna combination as the first antenna.
[0147] S306: Switch the working antenna in the first state from the second antenna to the first antenna.
[0148] The antenna selection method provided in the embodiment of the present application is that when the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna, when the terminal device is in the first state, the terminal device only receives signals but does not send signals, and when the terminal device is in the second state, the terminal device receives signals and sends signals, wherein the second antenna is an antenna in the first antenna combination, and when the terminal device is in the first state, the receiving signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then it is determined whether the difference between the receiving signal quality of the fourth antenna and the receiving signal quality of the third antenna is greater than the second preset threshold value, if the difference between the receiving signal quality of the fourth antenna and the receiving signal quality of the third antenna is greater than the second preset threshold value, then the first antenna is the first main antenna and the first diversity antenna in the first antenna combination, if the receiving signal quality of the fourth antenna is less than the receiving signal quality of the third antenna, then the first antenna is the first main antenna and the first diversity antenna in the first antenna combination. If the difference in the quality of the antenna's received signals is less than or equal to a second preset threshold, the first antenna is the PM antenna and the DM antenna in the second antenna combination, and then the working antenna at the current moment is switched from the second antenna to the first antenna. It can be understood that the first main antenna and the first diversity antenna in the first antenna combination are antennas used in pairs, and the PM antenna and the DM antenna in the second antenna combination are also antennas used in pairs. Therefore, when determining the first antenna, the first main antenna and the first diversity antenna in the first antenna combination are simultaneously determined as the first antenna, or the PM antenna and the DM antenna in the second antenna combination are simultaneously determined as the first antenna. This can avoid the need to additionally configure the connection relationship between the antenna and the RF circuit when only one antenna in an antenna combination is selected from the terminal device as the working antenna, thereby simplifying the process of the terminal device replacing the second antenna with the first antenna in the first state.
[0149] In one possible scenario, if the terminal device is a 4G terminal device, it typically includes an RX antenna and a PRX antenna. The PRX antenna is the main antenna, and the RX antenna is an antenna other than the main antenna. To distinguish it from the first main antenna in a 5G terminal device, the PRX antenna can be referred to as the second main antenna. In this case, the terminal device can determine the first antenna based on the difference in received signal quality between the main antenna and the other antennas. This is explained in detail below using the embodiment shown in Figure 8.
[0150] FIG8 is a flow chart of an antenna selection method provided in an embodiment of the present application. As shown in FIG8 , the method is applied to a terminal device and includes:
[0151] S401. When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals, wherein the second antenna is the second main antenna.
[0152] S402: When the terminal device is in the first state, periodically determine the quality of received signals of each antenna on the terminal device according to a preset period.
[0153] S403: Determine whether the difference between the quality of the received signal of the fifth antenna and the quality of the received signal of the second main antenna is greater than a fourth preset threshold.
[0154] Among them, the fifth antenna is the antenna with the best received signal quality among the other antennas.
[0155] 4G terminal devices typically include RX antennas and PRX antennas. The PRX antenna is the main antenna, and the RX antenna is an antenna other than the main antenna. To distinguish it from the first main antenna in a 5G terminal device, the PRX antenna can be referred to as the second main antenna. It is understood that the PRX antenna in a 5G terminal device is the primary antenna. That is, in a 4G terminal device, if the second main antenna is functioning properly, the second main antenna is typically used as the working antenna. In this case, if the received signal quality of the other antennas is comparable to, or slightly better than, that of the second main antenna, the second main antenna can be maintained as the working antenna, meaning the first antenna remains unchanged as the second main antenna.
[0156] For example, a fifth antenna with the best received signal quality can be determined from other antennas of the terminal device except the second main antenna, and then the first antenna can be determined based on the received signal quality of the fifth antenna and the received signal quality of the second main antenna.
[0157] Exemplarily, the first antenna may be determined by determining whether a difference between the quality of a received signal of the fifth antenna and the quality of a received signal of the second host antenna is greater than a fourth preset threshold.
[0158] If the difference between the received signal quality of the fifth antenna and the received signal quality of the second main antenna is greater than a fourth preset threshold (eg, 3 dB), the first antenna is designated as the fifth antenna, and S404 is executed.
[0159] If the difference between the received signal quality of the fifth antenna and the received signal quality of the second main antenna is less than or equal to a fourth preset threshold (eg, 3 dB), the first antenna is the second main antenna, and S405 is executed.
[0160] Among them, the fourth preset threshold can be a value determined based on user experience, or a value obtained based on machine learning, and the embodiment of the present application does not limit this.
[0161] In the process of determining the first antenna, the terminal device can determine the first antenna once by whether the difference between the received signal quality of the fifth antenna and the received signal quality of the second main set antenna is greater than the fourth preset threshold, or it can determine the first antenna multiple times by whether the difference between the received signal quality of the fifth antenna and the received signal quality of the second main set antenna is greater than the fourth preset threshold.
[0162] Exemplarily, after first determining that the difference in received signal quality between the third antenna and the fourth antenna is greater than 3dB, the terminal device may determine the first main antenna and the first diversity antenna in the first antenna combination as the first antenna when it determines a second time that the difference in received signal quality between the third antenna and the fourth antenna is greater than 3dB. That is, after determining twice that the difference in received signal quality between the third antenna and the fourth antenna is greater than 3dB, the first main antenna and the first diversity antenna in the first antenna combination are determined as the first antenna. If the difference in received signal quality between the third antenna and the fourth antenna is greater than the second preset threshold multiple times, the first main antenna and the first diversity antenna in the first antenna combination are then determined as the first antenna, thereby improving the accuracy of determining the first antenna.
[0163] S404: Use the fifth antenna as the first antenna.
[0164] S405: Use the second main antenna as the first antenna.
[0165] S406: Switch the working antenna in the first state from the second antenna to the first antenna.
[0166] The antenna selection method provided in the embodiment of the present application is applied to a 4G terminal device. When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals, wherein the second antenna is the second main set antenna. When the terminal device is in the first state, the receiving signal quality of each antenna on the terminal device is periodically determined according to a preset period, and then it is determined whether the difference between the receiving signal quality of the fifth antenna and the receiving signal quality of the second main set antenna is greater than a fourth preset threshold. The fifth antenna is the antenna with the best receiving signal quality among the other antennas. If the difference between the receiving signal quality of the fifth antenna and the receiving signal quality of the second main set antenna is greater than the fourth preset threshold, Set a threshold, then the fifth antenna is used as the first antenna; if the difference between the received signal quality of the fifth antenna and the received signal quality of the second main set antenna is less than or equal to the fourth preset threshold, the second main set antenna is used as the first antenna; and then the working antenna at the current moment is switched from the second antenna to the first antenna; it can be understood that in 4G terminal equipment, if the second main set antenna can work normally, the second main set antenna is usually used as the working antenna; in this case, if the received signal quality of other antennas is equivalent to or slightly better than the received signal quality of the second main set antenna, the second main set antenna can be kept as the working antenna, that is, the working antenna keeps the second main set antenna unchanged, which can reduce the frequent switching of antennas in the terminal equipment, thereby effectively avoiding failures caused by switching antennas.
[0167] In the process of periodically determining the received signal quality of each antenna on the terminal device, the terminal device may collect the received signal quality of each antenna on the terminal device according to different preset periods. Taking a 5G terminal device as an example, the terminal device may collect the received signal quality of each antenna in the first antenna combination and the received signal quality of each antenna in the second antenna combination according to different preset periods.
[0168] The terminal device may include a modem, a sensor hub, a first chip, and a four-pole, four-throw (4P4T) switch. When the terminal device is in an idle or deactivated state, as shown in (a) of FIG9 , the sensor hub in the terminal device is connected to the modem and the first chip, respectively, and the first chip is also connected to the four-pole, four-throw (4P4T) switch.
[0169] The modem can be used to determine the number of receiving antennas when the antennas are in an idle or deactivated state. It is understood that the modem can include a control module. The control module is connected to the Sensor Hub. The control module sends a response instruction to the Sensor Hub, the first chip, and the 4P4T switch.
[0170] Exemplarily, the Modem sends instructions for acquiring data from various sensors to the SensorHub through the control module.
[0171] Exemplarily, the modem sends an instruction to change the switch state of the 4P4T switch to the 4P4T switch through the control module, so that the 4P4T switch switches the antenna in the on state, thereby switching the working antenna of the terminal device.
[0172] SensorHub can be used to obtain data from various sensors in the terminal device. For example, SensorHub can obtain data from the location sensor to determine the movement distance of the terminal device.
[0173] The first chip can be used to obtain the received signal quality of each antenna in the terminal device when the terminal device is in an idle state or a deactivated state. It should be noted that when the terminal device is in an idle state or a deactivated state, the existing modem does not obtain the received signal quality of each antenna in the terminal device.
[0174] The 4P4T switch can be connected to the antenna. By switching the state of the 4P4T switch, the antenna in the working state at the current moment is changed.
[0175] Exemplarily, as shown in (a) in FIG10 , when the switch of 4P4T is switched to the first connection state, the first chip is connected to the first main antenna and the first diversity antenna, so that the first main antenna and the first diversity antenna are the working antennas at the current moment.
[0176] Exemplarily, as shown in (b) of FIG10 , when the switch of the 4P4T is switched to the second connection state, the first chip is connected to the PM antenna and the DM antenna, so that the PM antenna and the DM antenna are the working antennas at the current moment.
[0177] It can be understood that the connection relationship between the Modem, Sensor Hub, first chip and four-pole four-throw 4P4T switch in the above-mentioned terminal device is only an example and does not constitute a limitation on the connection relationship between the Modem, Sensor Hub, first chip and four-pole four-throw 4P4T switch in the terminal device.
[0178] In one possible scenario, the modem is connected to the Sensor Hub and the first chip, respectively. The first chip is connected to a four-pole, four-throw (4P4T) switch. The first chip may not be connected to the Sensor Hub. The Sensor Hub acquires data from each sensor in the terminal device and sends it to the modem, which then sends the relevant data to the first chip.
[0179] When the terminal device is in a connected state, as shown in (b) of FIG9 , the modem may be connected to the 4P4T switch via a software defined radio (SDR).
[0180] It should be noted that when the terminal device is in an idle state or in a connected state, the antennas connected to the 4P4T switch are all the same antennas, but which of the connected antennas are connected to the 4P4T switch (i.e., which antennas are in an active state) may vary depending on the state of the terminal device. For example, as shown in (a) and (b) of Figure 9, the antennas connected to the 4P4T switch are the first main set antenna, the second main set antenna, the PM antenna, and the DM antenna. In addition, the 4P4T switches shown in (a) and (b) of Figure 9 can be the same switch or different switches.
[0181] The following embodiment shown in Figure 11 is used to describe in detail the specific process of the 5G terminal device collecting the received signal quality of each antenna in the first antenna combination and the received signal quality of each antenna in the second antenna combination according to different preset periods.
[0182] FIG11 is a flow chart of an antenna selection method provided in an embodiment of the present application. As shown in FIG11 , the method is applied to a terminal device, which includes a first antenna combination and a second antenna combination, wherein the first antenna combination includes a first main antenna and a first diversity antenna, and the second antenna combination includes a PM antenna and a DM antenna. The method includes:
[0183] S501. When the terminal device is converted from the second state to the first state, the terminal device uses the second antenna as the working antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals.
[0184] The second antenna may be an antenna in the first antenna combination.
[0185] S502: When the terminal device is in the first state, determine the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determine the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period.
[0186] It can be understood that the first preset sub-period and the second preset sub-period can be the same or different, and the embodiment of the present application does not limit this.
[0187] In one possible case, the first preset sub-period and the second preset sub-period are the same, and the terminal device determines the received signal quality of each antenna according to the same preset period.
[0188] In one possible case, the length of a cycle in the first preset sub-cycle is less than the length of a cycle in the second preset sub-cycle, then the number of times the terminal device determines the received signal quality of each antenna in the first antenna combination is higher than the number of times the terminal device determines the received signal quality of each antenna in the second antenna combination.
[0189] Optionally, the duration of one cycle in the second preset sub-cycle is N times the duration of one cycle in the first preset sub-cycle, where N is a positive integer greater than 1.
[0190] For example, if the duration of a sampling period in the terminal device is 320 ms, then the duration of a period in the first preset sub-period is 320 ms, and the terminal device determines the received signal quality of the first main antenna and the first diversity antenna once every 320 ms (the duration of a sampling period). The duration of a period in the second preset sub-period can be an integer multiple of the duration of a period in the first preset sub-period. For example, the duration of a period in the second preset sub-period can be 640 ms (the duration of two sampling periods), that is, the terminal device determines the received signal quality of the PM antenna and the DM antenna once every two sampling periods.
[0191] The antenna selection method provided in the embodiment of the present application can determine the received signal quality of the first antenna combination in the terminal device according to a first preset sub-period when periodically determining the received signal quality of each antenna on the terminal device according to a preset period, and at the same time determine the received signal quality of the second antenna combination in the terminal device according to a second preset sub-period. That is, the terminal device determines the received signal quality of the antennas in the first antenna combination and the second antenna combination respectively according to different preset periods. This can reduce the number of times the terminal device determines the received signal quality of each antenna, thereby reducing the power consumption consumed by the terminal device in determining the received signal quality of each antenna.
[0192] Optionally, a possible implementation of “determining the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determining the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period” includes:
[0193] S5021. Determine whether the mobile information of the terminal device meets the preset conditions.
[0194] The movement information may include the movement distance and movement speed of the terminal device, and at least one of the following pre-set conditions may be present:
[0195] The moving distance of the terminal device is less than a fifth preset threshold;
[0196] The moving speed of the terminal device is less than a sixth preset threshold.
[0197] The terminal device can obtain location sensor data through the Sensor Hub and then determine the terminal device's movement distance based on the location sensor data. If the terminal device's movement distance is small, for example, less than the fifth preset threshold, this indicates that the terminal device's surrounding environment has changed little, and the probability of changes in the received signal quality of each antenna is small. Furthermore, if the terminal device's movement speed is also small, for example, less than the sixth preset threshold, this also indicates that the terminal device's surrounding environment has changed little, and the probability of changes in the received signal quality of each antenna is small. For example, if the terminal device's movement speed is zero, it indicates that the terminal device is stationary, or if the terminal device's movement speed is less than the sixth preset threshold, it indicates that the terminal device is likely being carried by a user on foot. In this case, the probability of changes in the received signal quality of the first main antenna and the first diversity antenna is low, and the probability of problems is also low. Therefore, the measurement frequency of the PM antenna and DM antenna can be reduced, and the terminal device can still maintain normal operation. If the terminal device's movement speed is greater than the sixth preset threshold, it indicates that the terminal device is being carried at high speed, for example, when a user is driving the terminal device. If the terminal device's movement speed is greater than the sixth preset threshold, the terminal device's surrounding environment has changed significantly, and the probability of changes in the received signal quality of each antenna is high.
[0198] If the mobility information of the terminal device satisfies a preset condition, the terminal device may determine the received signal quality of the first antenna combination in the terminal device according to a first preset sub-period, and determine the received signal quality of the second antenna combination in the terminal device according to a second preset sub-period. Furthermore, the duration of one cycle in the second preset sub-period is N times the duration of one cycle in the first preset sub-period, where N is a positive integer greater than 1. Therefore, S5022 is executed.
[0199] When the mobile information of the terminal device does not meet the preset conditions, that is, the probability of changes in the receiving signal quality of the first main antenna and the first diversity antenna increases, and the probability of problems occurring increases. Therefore, the same preset period can continue to be used to determine the receiving signal quality of each antenna in the terminal device, and timely determine the working antenna of the terminal device.
[0200] S5022. If the mobility information of the terminal device meets the preset conditions, determine the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determine the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period.
[0201] In an antenna selection method provided in an embodiment of the present application, before periodically determining the received signal quality of each antenna on a terminal device according to a preset period, the terminal device first determines whether the terminal device's movement information meets a preset condition. If the terminal device's movement information meets the preset condition, the received signal quality of the first antenna combination in the terminal device is determined according to a first preset sub-period, and the received signal quality of the second antenna combination in the terminal device is determined according to a second preset sub-period. The movement information may include the movement distance and movement speed of the terminal device. The preset condition includes at least one of the following: the movement distance of the terminal device is less than a fifth preset threshold, and the movement speed of the terminal device is less than a sixth preset threshold. If the terminal device's movement information meets the preset condition, that is, the probability of a change in the received signal quality of the first main antenna and the first diversity antenna is reduced, and the probability of a problem occurring is low, the received signal quality of the first antenna combination in the terminal device is then determined according to the first preset sub-period, and the received signal quality of the second antenna combination in the terminal device is determined according to the second preset sub-period. This method can reduce the number of times the terminal device determines the received signal quality of each antenna, while ensuring the performance of receiving signals in the terminal device in an idle state, thereby reducing the power consumption consumed by the terminal device in determining the received signal quality of each antenna.
[0202] S503. Determine whether the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is greater than a second preset threshold, where the third antenna has the best received signal quality among the first main antenna and the first diversity antenna, and the fourth antenna has the best received signal quality among the PM antenna and the DM antenna.
[0203] If the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is less than or equal to the second preset threshold, the first antenna is the first main antenna and the first diversity antenna in the first antenna combination, and S504 is executed.
[0204] If the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is greater than the second preset threshold, the first antenna is the PM antenna and the DM antenna in the second antenna combination, and S505 is executed.
[0205] It should be noted that the number of first antennas may be determined based on the received signal quality of the working antennas before the terminal device determines the received signal quality of each antenna. For example, the terminal device may determine the number of first antennas by following the steps below before determining the received signal quality of each antenna.
[0206] Step 1: Obtain the receiving signal quality of the working antenna of the terminal device at the current moment.
[0207] Step 2: Determine the number of working antennas when the terminal device is in the first state according to the quality of the received signals of the working antennas.
[0208] S504: Use the first main antenna and the first diversity antenna in the first antenna combination as the first antenna.
[0209] S505: Use the PM antenna and the DM antenna in the second antenna combination as the first antenna.
[0210] S506: Switch the working antenna in the first state from the second antenna to the first antenna.
[0211] It should be understood that, although the various steps in the flow chart in the above-described embodiment are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless clearly stated herein, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0212] It is understandable that in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
[0213] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. It should be noted that the names of the modules in the embodiment of the present application are schematic and are not limited to the names of the modules in actual implementation.
[0214] The antenna selection method provided in the embodiments of the present application can be applied to terminal devices, which can also be referred to as terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. The terminal devices can be mobile phones, smart TVs, wearable devices, tablet computers, computers with wireless transceiver functions, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal devices.
[0215] A hardware structure of a terminal is shown in FIG12 , and may include: a processor, a first chip, an external memory interface, an internal memory, a Universal Serial Bus (USB) interface, a charging management module, a power management module, a battery, antenna 1, antenna 2, a mobile communication module, a wireless communication module, a sensor module, buttons, a motor, an indicator, a camera, a display, and a SIM card slot. The audio module may include a speaker, a receiver, a microphone, and an earphone jack, and the sensor module may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor.
[0216] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the terminal. In other embodiments, the terminal may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0217] The processor may include one or more processing units, for example, the processor may include an application processor (AP), a modem processor (also known as a baseband processor), a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The processor is the nerve center and command center of the terminal. The controller may generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0218] The first chip can be used to determine the first antenna according to the received signal quality of each antenna on the terminal device in the first state, and control the working antenna in the first state to be switched from the second antenna to the first antenna.
[0219] The terminal's communication functions can be implemented using antenna 1, antenna 2, a mobile communication module, a wireless communication module, and a modem. In some embodiments, antenna 1 of the terminal is coupled to the mobile communication module, and antenna 2 is coupled to the wireless communication module, enabling the terminal to communicate with network-side devices and other terminals. There can be multiple antennas 1. For example, the four antennas shown in Figure 9 (a) or Figure 9 (b) can be understood as the four antennas 1 shown in Figure 12.
[0220] It should be noted that the SensorHub shown in (a) of Figure 9 can be integrated into a system-on-chip (such as the processor shown in Figure 12); the 4-pole 4-throw switch shown in (a) of Figure 9 can be integrated into a mobile communication module as shown in Figure 12; and the SDR shown in (b) of Figure 9 can be integrated into a mobile communication module as shown in Figure 12.
[0221] In addition, operating systems are running on the above components, such as the iOS operating system developed by Apple, the Android open source operating system developed by Google, and the Windows operating system developed by Microsoft.
[0222] The terminal's operating system can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. The embodiments of this application take the Android system with a layered architecture as an example to illustrate the hardware and software structure of the terminal. It should be noted that although the embodiments of this application are described using the Android system as an example, its basic principles are also applicable to terminals based on operating systems such as iOS or Windows.
[0223] Figure 13 is a block diagram of the terminal's software architecture. The software structure employs a layered architecture, which divides the software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. Taking the Android system running on an AP as an example, in some embodiments, the Android system is divided into five layers: from top to bottom, the application layer, the application framework layer (Framework), the Android runtime (Android runtime) and system libraries, the hardware abstraction layer (HAL), and the system kernel layer (Kernel).
[0224] The application layer can include a series of application packages. These packages may include apps such as camera, gallery, calendar, call, map, WLAN, Bluetooth, music, video, and short messaging. The application layer may also include the system UI (system UI), which is used to display the terminal interface, such as the signal icon corresponding to the SIM card and the call interface. The application framework layer provides the application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, content provider, view system, call manager, resource manager, notification manager, etc. The call manager is used to provide terminal call functions, such as call status management (including connection and hang-up). The call manager is represented by the telephony in Figure 13. The application framework layer may also include the radio interface layer (RIL). The modem processor (modem) can exchange information with the telephony through the RIL.
[0225] The modem can include the NAS (Non-Access Stratum) layer, the RRC (Radio Resource Control) layer, the Packet Data Convergence Protocol (PDCP) layer, the Radio Link Control (RLC) layer, the Medium Access Control (MAC) layer, and the Physical (PHY) layer. Each of these layers can be a software module. The modem interacts with the base station through an antenna.
[0226] It is understandable that the modem can interact with the antenna through the first chip, and further interact with the base station through the antenna.
[0227] In addition, some embodiments of the present application provide a terminal, which includes: one or more processors and a memory; the memory is used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the terminal executes the above-mentioned paging message processing method.
[0228] Some embodiments of the present application provide a chip system, applied to a terminal, comprising at least one processor and an interface, the interface being configured to receive instructions and transmit them to the at least one processor; the at least one processor executing the instructions causes the terminal to execute the paging message processing method described above. The chip system may be a modem, or a system on chip (SoC) including a modem, and the method described above may be implemented by a modem.
[0229] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.
[0230] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0231] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0232] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0233] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for example, the division of the units is merely a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection of some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0234] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0235] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0236] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. An antenna selection method, characterized in that: The method is applied to a terminal device, and the method includes: When the terminal device switches from the second state to the first state, the terminal device uses the second antenna as the working antenna in the first state. When the terminal device is in the first state, the terminal device only receives signals but does not transmit signals. When the terminal device is in the second state, the terminal device receives and transmits signals. When the terminal device is in the first state, determining the first antenna according to the received signal quality of each antenna on the terminal device; The working antenna in the first state is switched from the second antenna to the first antenna.
2. The method according to claim 1, characterized in that The determining the first antenna according to the received signal quality of each antenna on the terminal device includes: periodically determining the quality of received signals of each antenna on the terminal device according to a preset period; The first antenna is determined according to the received signal quality of each antenna on the terminal device.
3. The method according to claim 1 or 2, characterized in that The number of the second antenna is at least one, and when the terminal device is in the first state, determining the first antenna according to the received signal quality of each antenna on the terminal device includes: When the terminal device is in the first state, obtaining a received signal quality of the second antenna; If the received signal qualities of the second antennas are all less than a first preset threshold, the first antenna is determined according to the received signal qualities of each antenna on the terminal device.
4. The method according to any one of claims 1 to 3, characterized in that When the terminal device is a 5G terminal device, the terminal device includes a first antenna combination and a second antenna combination, the first antenna combination includes a first main antenna and a first diversity antenna, the second antenna combination includes a PM antenna and a DM antenna, and determining the first antenna according to the received signal quality of each antenna includes: determining whether a difference between a received signal quality of the fourth antenna and a received signal quality of the third antenna is greater than a second preset threshold, wherein the third antenna is the antenna with the best received information quality in the first antenna combination, and the fourth antenna is the antenna with the best received signal quality in the second antenna combination; If the difference between the quality of the received signal of the fourth antenna and the quality of the received signal of the third antenna is greater than the second preset threshold, the PM antenna and the DM antenna in the second antenna combination serve as the first antenna.
5. The method according to claim 4, characterized in that The method further comprises: If the difference between the received signal quality of the fourth antenna and the received signal quality of the third antenna is less than or equal to the second preset threshold, the first main antenna and the first diversity antenna in the first antenna combination are used as the first antenna.
6. The method according to any one of claims 1 to 3, characterized in that The determining the first antenna according to the received signal qualities of the respective antennas includes: The first N antennas in the terminal device that have the highest quality of receiving signals are used as the first antennas.
7. The method according to claim 6, characterized in that The N is 2.
8. The method according to any one of claims 1 to 3, characterized in that When the terminal device is a 4G terminal device, the terminal device includes a second main antenna and other antennas, and determining the first antenna according to the received signal quality of each antenna includes: determining whether a difference between a received signal quality of the fifth antenna and a received signal quality of the second main antenna is greater than a fourth preset threshold, the fifth antenna being the antenna with the best received signal quality among the other antennas; If the difference between the quality of the received signal of the fifth antenna and the quality of the received signal of the second main antenna is greater than the fourth preset threshold, the fifth antenna is used as the first antenna.
9. The method according to claim 8, characterized in that The method further comprises: If the difference between the quality of the received signal of the fifth antenna and the quality of the received signal of the second main antenna is less than or equal to the fourth preset threshold, the second main antenna is used as the first antenna.
10. The method according to any one of claims 2 to 9, characterized in that The preset period includes a first preset sub-period and a second preset sub-period, and periodically determining the received signal quality of each antenna on the terminal device according to the preset period includes: The received signal quality of the first antenna combination in the terminal device is determined according to the first preset sub-period, and the received signal quality of the second antenna combination in the terminal device is determined according to the second preset sub-period, the first antenna combination includes a first main antenna and a first diversity antenna, and the second antenna combination includes a PM antenna and a DM antenna.
11. The method according to claim 10, characterized in that The duration of one cycle in the second preset sub-cycle is N times the duration of one cycle in the first preset sub-cycle, where N is a positive integer greater than 1.
12. The method according to claim 10 or 11, characterized in that The determining the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determining the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period, includes: Determining whether the movement information of the terminal device meets a preset condition, the movement information including the movement distance and movement speed of the terminal device; If the mobility information of the terminal device meets the preset condition, determining the received signal quality of the first antenna combination in the terminal device according to the first preset sub-period, and determining the received signal quality of the second antenna combination in the terminal device according to the second preset sub-period, wherein the preset condition includes at least one of the following: The moving distance of the terminal device is less than a fifth preset threshold; The moving speed of the terminal device is less than a sixth preset threshold.
13. The method according to any one of claims 1 to 12, characterized in that The first state includes an idle state and / or a deactivated state, and the second state includes a connected state.
14. The method according to any one of claims 1 to 13, characterized in that The terminal device includes a modem and a first chip, the modem is used to determine the receiving signal quality of each antenna on the terminal device in the second state, and the first chip is used to determine the first antenna according to the receiving signal quality of each antenna on the terminal device in the first state, and switch the working antenna in the first state from the second antenna to the first antenna.
15. A terminal device, characterized in that: include: one or more processors; Memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, and when the computer programs are executed by the one or more processors, the terminal device performs the method according to any one of claims 1 to 14.
16. The terminal device according to claim 15, characterized in that The one or more processors include a first chip and a modem, the modem is used to determine the receiving signal quality of each antenna on the terminal device in the second state, the first chip is used to determine the first antenna according to the receiving signal quality of each antenna on the terminal device in the first state, and switch the working antenna in the first state from the second antenna to the first antenna. When the terminal device is in the first state, the terminal device only receives signals but does not send signals. When the terminal device is in the second state, the terminal device receives signals and sends signals. When the terminal device switches from the second state to the first state, the terminal device uses the second antenna as the working antenna in the first state.
17. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Electronic device with idle mode antenna switching
CN103503333A
Antenna switching method and terminal equipment
CN116846442A
Antenna switching method and device and storage medium
CN117254825A
Terminal control method and device, electronic equipment and storage medium
CN117255353A
Apparatus and method for serching cell in an wireless terminal
KR1020160131889A