CN107659347B - Antenna switching method, multi-antenna terminal and computer readable storage medium - Google Patents

Antenna switching method, multi-antenna terminal and computer readable storage medium Download PDF

Info

Publication number
CN107659347B
CN107659347B CN201710766581.3A CN201710766581A CN107659347B CN 107659347 B CN107659347 B CN 107659347B CN 201710766581 A CN201710766581 A CN 201710766581A CN 107659347 B CN107659347 B CN 107659347B
Authority
CN
China
Prior art keywords
antenna
antennas
decision
stage
phase
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710766581.3A
Other languages
Chinese (zh)
Other versions
CN107659347A (en
Inventor
何利鹏
罗祖栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710766581.3A priority Critical patent/CN107659347B/en
Publication of CN107659347A publication Critical patent/CN107659347A/en
Application granted granted Critical
Publication of CN107659347B publication Critical patent/CN107659347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0404Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • H04B7/0604Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching with predefined switching scheme

Abstract

The invention discloses an antenna switching method, which carries out graded evaluation on the performance of antennas through a condition step judgment mechanism, thereby realizing the direct antenna switching when the performance difference of two antennas is particularly large, entering the next judgment stage for judging again when the performance difference of two antennas is large, and simultaneously directly judging that the antenna switching is not needed when the performance difference of any two antennas is small. And when the antenna switching is judged to be needed, the communication relation among the antennas, the main transceiving path and the auxiliary receiving path is determined again, so that new main antennas, auxiliary antennas and idle antennas are selected. The invention also discloses a multi-antenna terminal and a computer readable storage medium. Therefore, the overall performance of each antenna in a period of time is evaluated more objectively, the correctness, reliability and stability of the judgment result are ensured, the multi-antenna terminal is further ensured to have stable and reliable radio frequency performance, and the user experience is improved.

Description

Antenna switching method, multi-antenna terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to an antenna switching method, a multi-antenna terminal, and a computer-readable storage medium.
Background
With the development of terminal technology, the functions of the mobile terminal are more and more comprehensive, and the services provided by the mobile terminal to the user are more and more perfect. In the simplest, the mobile terminal has derived services from pure conversation and short message functions in the past, such as photographing, internet surfing, audio/video playing, and the like. However, although the functions of the mobile terminal are diversified, and with the development of technology, more intelligent functions will be developed as the terminal in the future in the spring after rain, the communication function carried by the mobile terminal will still be one of the most basic and important functions, and the performance related to the communication will continue to be the focus of the user.
As is known, when the antenna environment of the mobile terminal is severe, not only the communication quality may be degraded and the user experience may be affected, but also the power consumption of the mobile terminal for communication may be increased rapidly, thereby affecting the standby time. Therefore, if the conventional antenna design scheme is continuously adopted, the development of the mobile terminal industry must face a plurality of challenges in terms of communication quality and communication power consumption. Thus, a "dual antenna terminal" has come to appear gradually in recent years. Two of the dual-antenna terminals are generally disposed at upper and lower sides of the mobile terminal, respectively, one of the two antennas serving as a main antenna for transmitting and receiving signals, and the other antenna serving as an auxiliary antenna for assisting the main antenna in receiving signals.
For example, one antenna provided at the tip of the mobile terminal is used as a main antenna, and the other antenna is used as an auxiliary antenna. When the signal is received, the upper and lower antennas simultaneously carry out multi-path reception, and then the signals received by the two antennas are respectively processed in a receiving diversity way, thereby ensuring the accuracy and reliability of the received signals.
In the actual use process, the main antenna may be shielded due to the holding of the user and the like, so that the transceiving capacity of the mobile terminal is extremely badly affected. Therefore, it is desirable to provide an antenna switching scheme for changing the role of an antenna when the working environment of the antenna changes due to user's holding or other shielding reasons, so that the mobile terminal always has a strong signal transceiving capability, and the communication experience of the user is improved.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the antenna switching scheme is used for changing the working role of each antenna in the terminal under the condition that the working environment of the terminal antenna is unstable, so that the problems that the receiving and sending performance of a mobile terminal is reduced sharply and the user experience is low easily caused when a main antenna is shielded because the working role of the antenna is fixed in the existing scheme are solved. In view of the technical problem, an antenna switching method, a multi-antenna terminal and a computer-readable storage medium are provided.
In order to solve the above technical problem, the present invention provides an antenna switching method, which is applied to a multi-antenna terminal, where the multi-antenna terminal includes a main transceiving path, an auxiliary receiving path, and at least three antennas; the antenna in the at least three antennas is currently a main antenna communicated with the main transceiving passage, the antenna in the at least three antennas is currently an auxiliary antenna communicated with the auxiliary receiving passage, and the rest antennas are idle antennas; the antenna switching method comprises the following steps:
performing conditional step judgment including N judgment stages on uplink communication parameters of each antenna of the multi-antenna terminal, wherein the uplink communication parameters can represent the performance of each antenna of the multi-antenna terminal, N is greater than or equal to 2, and the judgment stages include: acquiring uplink communication parameters of each antenna of the multi-antenna terminal; calculating pairwise differences of communication parameters of the at least three antennas; comparing each pairwise difference value with a stage threshold value of the judgment stage; when the comparison result meets the direct switching condition corresponding to the current judgment stage, directly judging that the antenna switching is needed; otherwise, judging whether to enter the next judging stage; if yes, entering the next judgment stage; if not, judging that antenna switching is not needed; the uplink communication parameters acquired by each judgment stage are the same;
and when the antenna switching is determined to be needed, re-determining the communication relation among the at least three antennas, the main transceiving path and the auxiliary receiving path so as to select a new main antenna, an auxiliary antenna and an idle antenna.
Optionally, after determining that there is a next decision stage, before entering the next decision stage, the method further includes: and entering a waiting period of the current decision stage.
Optionally, the phase thresholds of the N decision phases are equal, and the waiting periods of the decision phases are equal;
or, the phase thresholds of the N decision phases are equal, and the waiting periods of the decision phases are not equal;
or, the phase threshold of the previous decision phase in the N decision phases is greater than the phase threshold of the subsequent decision phase, and the waiting periods of the decision phases are equal;
or, the phase threshold of the preceding decision phase in the N decision phases is greater than the phase threshold of the following decision phase, and the waiting periods of the decision phases are not equal.
Optionally, the judging whether to enter a next judging stage; if yes, entering the next judgment stage; if not, the step of judging that the antenna switching is not needed comprises the following steps: judging whether a next judging stage exists or not; if yes, entering the next judgment stage; if not, the antenna switching is not needed.
Optionally, after determining whether the next decision stage exists, the method further includes:
comparing the pairwise difference value of the uplink communication parameters with a preset switching threshold value corresponding to the current judgment stage;
entering a next judgment stage when the comparison result meets the next judgment stage entering condition corresponding to the current judgment stage; otherwise, directly judging that the antenna switching is not needed.
Optionally, the uplink communication parameter includes at least one of a transmission signal power, a maximum transmission power ratio value, and a channel quality indicator.
Optionally, when the uplink communication parameter includes at least two of the transmission signal power, the maximum transmission power ratio value, and the channel quality indicator:
the calculating pairwise difference values of the communication parameters of the at least three antennas comprises: calculating pairwise difference values of the same uplink communication parameters among the at least three antennas;
the comparing each pairwise difference value with the phase threshold of the decision phase includes:
comparing each pairwise difference value corresponding to the uplink communication parameter with a decision threshold value of the uplink communication parameter in the stage threshold value aiming at a certain uplink communication parameter; when any one of the pairwise difference values of the uplink communication parameters is greater than the judgment threshold value, or the number of the pairwise difference values greater than the judgment threshold value reaches a preset ratio, judging that the uplink communication parameters meet a step condition; judging whether the number of the uplink communication parameters reaching the advanced condition reaches a preset number, if so, determining that the direct switching condition corresponding to the current judgment stage is met;
or, aiming at a certain two antennae, calculating the average difference value between every two difference values; comparing the average difference value between every two antennas with the stage threshold value of the decision stage, and judging that the direct switching condition corresponding to the decision stage is met when any one of the average difference values is larger than the stage threshold value of the decision stage or the ratio of the average difference values larger than the stage threshold value of the decision stage reaches a preset ratio.
Optionally, the re-determining the communication relationship among the at least three antennas, the main transceiving path and the auxiliary receiving path includes:
and selecting one antenna with optimal performance to be communicated with the main receiving and transmitting channel according to the communication parameters of the antennas, and selecting one antenna with suboptimal performance to be communicated with the auxiliary receiving channel.
Further, the invention also provides a multi-antenna terminal, which comprises a main receiving and transmitting path, an auxiliary receiving path and at least three antennas; the antenna in the at least three antennas is currently a main antenna communicated with the main transceiving passage, the antenna in the at least three antennas is currently an auxiliary antenna communicated with the auxiliary receiving passage, and the rest antennas are idle antennas; the multi-antenna terminal also comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the above-described antenna switching method.
Further, the present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the above-described antenna switching method.
Advantageous effects
The present invention provides an antenna switching method, a multi-antenna terminal and a computer-readable storage medium, wherein the method provided by the present invention is applied to a multi-antenna terminal including a main transceiving path, an auxiliary receiving path and at least three antennas, of which the antenna currently communicating with the main transceiving path is the main antenna, the current antenna connected to the auxiliary receiving channel is the auxiliary antenna, the rest is the idle antenna, based on the hardware frame provided by the invention, when the antenna switching condition is monitored to be satisfied, the communication relation between each antenna of the terminal and the main receiving and dispatching channel and the auxiliary receiving channel is re-determined so as to select a new main antenna, an auxiliary antenna and an idle antenna to complete the switching of the antennas, namely the working roles of the antennas can be dynamically changed, the current requirement can be flexibly adjusted, the condition of disconnection or call drop caused by the deterioration of the antenna performance is avoided, and the user experience is improved;
in addition, the invention determines whether the antenna needs to be switched or not by carrying out conditional advanced judgment comprising N (N is more than or equal to 2) judgment stages on the performance of each antenna of the multi-antenna terminal, in each judgment stage, the antenna judges whether the antenna needs to be switched or not in the next stage by acquiring the uplink communication parameters for representing the current performance of each antenna of the multi-antenna terminal and calculating the pairwise difference of the communication parameters of each antenna and comparing the pairwise difference with the stage threshold value of the judgment stage. And when the antenna switching is judged to be needed, the communication relation among the antennas, the main transceiving path and the auxiliary receiving path is determined again, so that new main antennas, auxiliary antennas and idle antennas are selected. According to the invention, before the main antenna and the auxiliary antenna are determined to be required to be reselected, two or more than two judgment stages with time sequence relation are adopted to evaluate the current performance of each antenna, so that the overall performance of each antenna in the condition advance judgment period can be objectively and comprehensively evaluated, the subsequent switching is reliable and effective, each antenna participating in the work after the switching is ensured to have real stable good performance, and the user experience is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional terminal for implementing various embodiments of the present invention;
fig. 2 is a schematic structural diagram of a multi-antenna terminal according to a first embodiment of the present invention;
fig. 3 is a basic flowchart of an antenna switching method according to a first embodiment of the present invention;
fig. 4 is a schematic operation flow diagram of various decision stages according to a first embodiment of the present invention;
fig. 5 is a schematic diagram of a specific antenna switching process according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a multi-antenna terminal according to a third embodiment of the present invention;
fig. 7 is a structural diagram of an antenna configuration of a three-antenna terminal according to a third embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The multi-antenna terminal in the present invention may be implemented in various forms. For example, mobile terminals such as mobile phones, tablet computers, notebook computers, palm top computers, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), navigation devices, wearable devices, smart bands, pedometers, and fixed terminals such as Digital TVs, desktop computers, and the like may be included.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, power supply 111, and antenna 112. The mobile terminal 100 shown in fig. 1 includes at least three antennas 112, where a main antenna currently connected to the main transceiving path of the rf unit 101 in the at least three antennas 112 is a main antenna, an auxiliary antenna currently connected to the auxiliary receiving path of the rf unit 101 is an auxiliary antenna, and the rest antennas are idle antennas, the processor 110 may control on/off of each antenna with the main transceiving path and the auxiliary receiving path, respectively, and when the processor 110 controls one antenna to be connected to the main transceiving path, the rf unit 101 may receive or transmit a signal through the antenna, it should be understood that the at least three antennas 112 may be flexibly disposed at any position of the mobile terminal 100, for example, when the mobile terminal 100 includes three antennas 112, the three antennas 112 may be disposed above, below left, and below right of the back of the mobile terminal 100, respectively. Those skilled in the art will also appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or less components than those shown, or some components in root, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
First embodiment
In order to solve the problem that in the existing scheme, once an antenna in a certain work is blocked, the receiving and sending performance of a terminal on a signal can be seriously influenced, and further the user experience is influenced, the embodiment provides an antenna switching method.
It should be particularly noted that the antenna switching method provided in the present embodiment is mainly applied to a multi-antenna terminal having at least three antennas. In this embodiment, referring to fig. 2, the multi-antenna terminal includes at least three antennas 211, 212, · · · 21m, an antenna gating circuit 22, a radio frequency circuit 23 and a baseband processor 24, where the antenna gating circuit 22 has n first interfaces 2211, 2212, · · · 221n (n is generally a positive integer greater than or equal to m), and two second interfaces 2221, 2222. One second interface 2221 is connected to the primary transceiving paths 231 and 232 (TX and PRX in fig. 2) of the rf circuit, and the other second interface 2222 is connected to the secondary receiving path 233 (DRX in fig. 2) of the rf circuit, at least one switch circuit is connected between each first interface and the two second interfaces, each switch circuit has at least one switch, and each antenna in this embodiment is connected to at least one first interface of the antenna gating circuit. The baseband processor 24 includes a radio frequency transmission digital-to-analog conversion circuit 241 (TX-DAC in fig. 2), a main set reception analog-to-digital conversion circuit 242 (PRX-ADC in fig. 2), a diversity reception analog-to-digital conversion circuit 243 (DRX-ADC in fig. 2), and a modulation/demodulation circuit 244 (MODEM PROC in fig. 2) connected to the radio frequency transmission digital-to-analog conversion circuit 241, the main set reception analog-to-digital conversion circuit 242, and the diversity reception analog-to-digital conversion circuit 243, respectively, the main transceiving paths 231 and 232 of the radio frequency circuit 23 are respectively communicated with the radio frequency transmission digital-to-analog conversion circuit 241 and the main set reception analog-to-digital conversion circuit 242 of the baseband processor, and the auxiliary receiving path 233 is communicated with the diversity reception analog-to-. The baseband processor further includes an antenna switching control module 245 and an HAL interface module 246, the antenna switching control module 245 is in communication with the antenna gating circuit 22 through the HAL interface module 245, and the antenna switching control module 245 can control on/off of each switch circuit in the antenna gating circuit 22 through the HAL interface module 246 (i.e., can control communication between any one of the first interface and the second interface), and select a specific main antenna from multiple antennas based on the on/off control, or select a specific main antenna and an auxiliary antenna to root.
In addition, the antenna switching control module 245 in this embodiment may be integrated in the baseband processor 24, or may be disposed separately from the baseband processor 24, for example, in the application processor, or may be disposed separately.
The following specifically describes specific implementation steps of the antenna switching method provided in this embodiment. Referring to fig. 3, fig. 3 is a basic flowchart of an antenna switching method provided in this embodiment, where the antenna switching method includes:
s301: and carrying out conditional advanced judgment comprising N judgment stages on the uplink communication parameters of each antenna of the multi-antenna terminal.
The uplink communication parameters of the antenna can represent the performance of the antenna. The value of N should be greater than or equal to 2, and the specific value can be set by the designer of the multi-antenna terminal or by the user according to the requirements of the user on power consumption, performance and the like or the preference and the like. In this embodiment, the conditional step decisions of N decision stages are performed on the uplink communication parameters of each antenna, so that whether antenna switching is required or not can be effectively determined. Referring to fig. 4, the following describes a single decision phase in the conditional step decision mechanism, and the operation manner adopted by each decision phase includes:
s401: acquiring uplink communication parameters of each antenna of the multi-antenna terminal;
in this embodiment, the antenna performance of each antenna is characterized by an uplink communication parameter. The uplink communication parameter includes, but is not limited to, at least one of a transmission signal power, a maximum transmission power ratio value, and a channel quality indicator. It is understood that the uplink communication parameters listed herein are only common ones, and the uplink communication parameters may also increase or decrease according to different communication systems. Meanwhile, it should be understood that the transmission signal power, the Maximum Transmit Power Level (MTPL), the Channel Quality Indication (CQI), and the like are all described by the substantial action of parameters, and do not limit specific names thereof in different scenarios. For example, the power of the transmission signal may be characterized by the actual power obtained when the antenna transmits the signal or the actual energy generated by the transmission signal within a fixed time period, or may be characterized by an automatic gain control (Tx-AGC) parameter. Correspondingly, any parameter, whether or not its name is the same as that listed above, is within the scope of the present embodiment as long as its essence is corresponding meaning.
It is particularly noted that, in each example of the present embodiment, the uplink communication parameters acquired in each decision phase are the same. For example, in a certain conditional step decision, the uplink communication parameter obtained in the first decision stage is MTPL. Then in each of the other decision stages, the obtained uplink communication parameter is also MTPL. It should be understood that, the number of the uplink communication parameters acquired in each decision phase is not specifically limited in this embodiment, and may be one, or two or more. For example, in a certain conditional step decision, the uplink communication parameters obtained in each decision stage are the transmission signal power and the MTPL.
S402: calculating pairwise difference values of communication parameters of the at least three antennas in the multi-antenna terminal;
it should be understood that the pairwise difference described in this embodiment refers to a difference between two antennas for a certain uplink communication parameter. Assuming that a multi-antenna terminal X includes 3 antennas, which are a1, a2 and A3, respectively, only one uplink communication parameter X is obtained in the current decision stage, and values of the correspondingly obtained uplink communication parameter X are X1, X2 and X3, respectively, there are 3 pairwise differences calculated for the uplink communication parameter X, that is, the pairwise difference between the antennas a1 and a2 | _ X1-X2 |; the difference between antennas a1 and A3 | x1-x3 |; the difference between antennas a2 and A3 | x2-x3 |; if the multi-antenna terminal includes m antennas, the calculated pairwise difference will be
Figure BDA0001394224360000101
And (4) respectively. It should be understood thatThe above-mentioned pairwise difference is characterized by the absolute value of the difference between certain uplink communication parameters of the two antennas, and when the above-mentioned pairwise difference is characterized by the absolute value, the performance between the two antennas cannot be directly obtained. Therefore, when the pairwise difference is calculated, the pairwise difference can be represented directly through the actual parameter difference obtained through calculation instead of representing the pairwise difference through an absolute value, and therefore the performance between the two antennas can be directly obtained according to the pairwise difference. Still taking the above example as an example, there would be 6 pairwise differences calculated for the uplink communication parameter x, namely pairwise differences x1-x2 between antennas a1 and a 2; the pairwise difference between antennas a2 and a1, x2-x 1; the pairwise difference between antennas a1 and A3, x1-x 3; the pairwise difference between antennas A3 and a1, x3-x 1; the pairwise difference between antennas a2 and A3, x2-x 3; and the pairwise difference between antennas A3 and a2, x3-x 2. At this time, if the multi-antenna terminal includes m antennas, the calculated pairwise difference will be
Figure BDA0001394224360000102
And (4) respectively.
S403: comparing every two difference values with a stage threshold value of a decision stage, and judging whether a direct switching condition corresponding to the current decision stage is met or not according to a comparison result; if yes, go to step S404; otherwise, go to step S405.
In this embodiment, corresponding stage thresholds are set for each of the decision stages, after pairwise differences are obtained through calculation, the pairwise differences may be compared with the stage threshold corresponding to the current decision stage, and whether a direct handover condition corresponding to the current decision stage is satisfied is determined according to a comparison result, that is, whether the current performance of each antenna has reached a large difference is determined. If the direct switching condition is satisfied, it indicates that the performance difference between the antennas is already large, and the antenna switching needs to be performed immediately.
It should be noted that, if in step S401, the current determination stage only obtains one uplink communication parameter that can represent the antenna communication performance for each antenna, when calculating the pairwise difference of the communication parameters of each antenna, only the pairwise difference of the uplink communication parameter will be obtained, so when determining whether the calculation result satisfies the determination condition corresponding to the determination stage based on the stage threshold of the determination stage, only the pairwise difference needs to be compared with the stage threshold of the determination stage, and a conclusion can be reached. However, for the case that the obtained uplink communication parameters are two or more in the decision phase (for example, the obtained uplink communication parameters include at least two of the transmission signal power, MTPL, and channel quality indication), how to make a decision based on the phase threshold is proposed as follows:
first, the phase threshold is set to include two or more decision thresholds. Specifically, different decision thresholds are set for different uplink communication parameters, and when a pairwise difference is determined, different decision thresholds are adopted for comparison for pairwise differences of different uplink communication parameters. For example, in a decision phase, x and y uplink communication parameters are obtained for antennas a1 and a2, a decision threshold is set for x and y, respectively, and the two decision thresholds are included in the phase threshold. It should be understood that, in this case, when calculating the pairwise difference between the antennas a1 and a2, it should be ensured that the pairwise difference between the same uplink communication parameters is calculated, i.e., the pairwise difference between the antennas a1 and a2 in the x parameter and the pairwise difference in the y parameter are calculated, respectively. When the calculation result of the two-two difference is judged, the two-two threshold aiming at the uplink communication parameter x is compared with the judgment threshold of the uplink communication parameter x, and the two-two threshold aiming at the uplink communication parameter y is compared with the judgment threshold of the uplink communication parameter y.
And if any one of the pairwise difference values of a certain uplink communication parameter is greater than a judgment threshold value, judging that the uplink communication parameter meets the advanced condition. If none of the uplink communication parameters is satisfied, the uplink communication parameters can be directly judged not to satisfy the advanced condition. Of course, other conditions may be used to determine whether an uplink communication parameter satisfies the advanced condition. If so, determining whether the number of difference values of the uplink communication parameters, which are greater than the judgment threshold value, reaches a preset number. For example, in the multi-antenna terminal X, it is required that 2 pairwise differences of a certain uplink communication parameter reach the determination threshold to determine that the communication parameter satisfies the advanced condition, and if there are 3 antennas in the multi-antenna terminal X, two pairwise differences are greater than or equal to the determination threshold. The same is true for whether the other uplink communication parameters satisfy the advanced condition, and the description is omitted here.
After the judgment of whether each uplink communication parameter meets the advanced condition is completed, whether the number of the uplink communication parameters meeting the advanced condition reaches the preset number needs to be further judged, if yes, the judgment condition corresponding to the judgment stage is determined to be met, and if not, the judgment condition of the current judgment stage is determined not to be met. Assuming that the preset number is 1 and 3 uplink communication parameters are adopted to measure the performance of each antenna, when any one of the 3 uplink communication parameters meets the advanced condition, it can be determined that the antenna performance meets the decision condition of the current decision stage.
Second, only one dimensionless phase threshold is set. Here, two antennas are taken as an example for explanation: optionally, the dimensionless processing is performed on each two difference values of the two antennas to obtain corresponding standard difference values, and then an average difference value of each standard difference value of the two antennas is calculated.
And then, when comparing, comparing the average difference value between every two antennas with the stage threshold value of the decision stage, and when any one of the average difference values is greater than the stage threshold value of the decision stage or the proportion of the average difference values greater than the stage threshold value of the decision stage reaches a preset proportion, judging that the corresponding decision condition of the decision stage is met.
The de-dimensioning process is briefly described here with the example of the transmitted signal power and CQI: determining the maximum value P of the transmitted signal power in practical application of the antennaMAX. Likewise, for the signal quality, the maximum value C it is possible to reach is determinedMAX. Assuming that the pairwise difference of the current transmitting signal powers of a certain two antennas A1 and A2 obtained by calculation is P and the pairwise difference of CQI is C, dimension removing processing is carried out on the two communication parameters to obtain the two communication parametersRespectively has a standard deviation of P/PMAXAnd C/CMAX. Therefore, the average difference between the two antenna standard values is (P/P)MAX+C/CMAX)/2. It should be understood that the calculation of the average difference value can also be performed in the following manner: assuming that the current transmission signal powers of two acquired antennas A1 and A2 are P1 and P2 respectively, and the CQI is C1 and C2 respectively, the standard value P1/P of the transmission signal power of the antenna A1 obtained by carrying out de-dimension processing on the two communication parameters isMAXStandard value of CQI C1/CMAX(ii) a Standard value P2/P of transmitting signal power of antenna A2MAXStandard value of CQI C2/CMAX. The average difference between the standard values of the two antennas is | P1/PMAX-P2/PMAX∣+∣C1/CMAX-C2/CMAX∣)/2。
Of course, in some other examples of the embodiment, the average difference value may be calculated by using a weighted average or an arithmetic average. Alternatively, the average difference may not be calculated, for example, when the phase threshold is set for the sum of the standard differences, (P/P) may be directly setMAX+C/CMAX) And comparing with the phase threshold.
It should be understood that there are many methods for the dimensionless processing, and the dimensionless processing may be performed by using a "relativistic processing method", a "functional processing method", an "extremizing method", a "normalization method", and the like, in addition to the above-described exemplary methods. In fact, the above process is a simple way to normalize the dimension removal.
It should be understood that, when the de-dimension processing is performed, some uplink communication parameters belong to a "positive index", and the higher the value of the uplink communication parameter is, the better the antenna performance is characterized, such as the transmission signal power. However, some uplink communication parameters belong to "negative indicators", such as MTPL, and the smaller the value, the better the antenna performance is. For the case of simultaneous existence of positive and negative indexes, the communication parameters of the positive index and the negative index need to be comprehensively considered when calculating the average difference. For example, assuming that the standard deviation of the transmission signal powers of two antennas is P11 and the standard deviation of MTPL is M11, the average difference can be obtained by using the formula (P11-M11)/2. In this case, the larger the average difference value is, the better the antenna performance is characterized. It should be understood that the foregoing calculation method is only a simple example that is feasible, and does not represent that the present invention can only adopt the calculation method to process the case where the "positive and negative indexes" exist simultaneously. In fact, it is also possible to perform processing in which "positive and negative indicators" are present simultaneously by using a processing method such as "relative processing method".
It is noted that the MTPL characterizes the number of times the maximum transmit power is reached in a given time period as a proportion of the total number of times, e.g. 10 times the signal is transmitted in a given time period, where the maximum transmit power is reached 8 times, then the MTPL is 80%. Therefore, when the acquired uplink communication parameters include the MTPL, the MTPL can not be processed by adopting a certain dimensionless processing method. It should be understood that the MTPL may also be processed using the same de-dimensionalization method as the rest of the uplink communication parameters, thereby ensuring that the de-dimensionalized parameters of different types are in the same order.
It is needless to say that the phase threshold value of each decision phase should correspond to the uplink communication parameter required to be acquired by the decision phase. In this embodiment, the phase thresholds of the decision stages may be set to be equal, or the phase thresholds of the decision stages may be set to be unequal. When the phase thresholds of the decision phases are set to be unequal, a specific setting mode is as follows: the phase threshold value of each decision phase can be gradually decreased, that is, the phase threshold value of the previous decision phase is greater than the phase threshold value of the next decision phase. For example, among the conditional advanced decisions of a certain multi-antenna terminal, 3 decision stages are included, wherein the stage thresholds of the first to third decision stages are D1, D2 and D3, respectively, and the three stage thresholds satisfy the relationship of D1> D2> D3. Specifically, if the uplink communication parameters acquired in each decision phase are MTPLs, the three phase thresholds D1, D2, and D3 may be set to be 80%, 60%, and 50%, respectively.
S404: it is directly determined that antenna switching is required.
When the antenna switching is determined to be needed, the process of reselecting the main antenna and the auxiliary antenna can be entered.
S405: judging whether a next judging stage is needed to be entered; if yes, go to step S406; otherwise, go to step S407.
In a decision stage, when the comparison result of the two difference values and the stage threshold value does not meet the direct switching condition, it indicates that the terminal can not be judged to need to switch the antenna in the current decision stage. At this time, it is further determined whether or not the next stage is necessary to perform the determination again.
In this embodiment, a specific way of determining whether the next stage needs to be entered is: it is determined whether the current decision phase is the last decision phase, i.e. whether there is a next decision phase. If not, it is stated that the current antenna performance can be evaluated again, and therefore, S406 is entered. If yes, the performance of the antenna is judged to have been judged in N continuous judging stages, and the antenna can not be judged to need to be switched in the judgment of the N continuous judging stages. Therefore, it can be determined that the antenna switching condition is not satisfied at present, and antenna switching is not necessary, and therefore, the process may proceed to S407.
In this embodiment, after determining whether there is a next decision stage, a threshold value switching determination may be further performed on pairwise differences of the uplink communication parameters obtained in the current decision stage, specifically: comparing the pairwise difference of the uplink communication parameters obtained in the current judgment stage with a preset switching threshold value, and entering a next judgment stage if the comparison result meets the entry condition of the next judgment stage corresponding to the current judgment stage; otherwise, directly judging that the antenna switching is not needed. For example, it is assumed that only one uplink communication parameter is obtained in the current decision stage, pairwise differences of the uplink communication parameters obtained in the current decision stage are compared with a preset switching threshold value, if at least one pairwise difference is greater than the preset switching threshold value, it is determined that the next decision stage is entered, and otherwise, it is directly determined that antenna switching is not required. It should be understood that, for the case that only two or more than two communication parameters are obtained in the current decision stage, different switching threshold values may be set for different uplink communication parameters, and then each pairwise difference value corresponding to the different communication parameters is compared with the switching threshold value corresponding to the uplink communication parameter, and when at least one pairwise difference value greater than the corresponding switching threshold value is greater than a preset required number, it is determined to enter the next decision stage; or carrying out dimensionless processing on pairwise difference values of different uplink communication parameters between the two antennas and calculating to obtain average difference values, then comparing each average difference value with a switching threshold value of the corresponding preset average difference value of the current decision stage, and judging to enter the next decision stage when at least one average difference value is larger than the corresponding switching threshold value.
S406: and entering the next decision stage.
It should be understood that the flow of each decision phase in this embodiment is similar, so the specific process can refer to the description of fig. 4, and the processes of other decision phases are not described here.
S407: it is determined that antenna switching is not required.
In this embodiment, when the current decision stage is the last decision stage and does not satisfy the direct handover condition, it is determined that antenna handover is not required. On the other hand, when the switching threshold value is set for comparison, if the difference value of each two uplink communication parameters is smaller than the preset switching threshold value, it indicates that the performance difference between the antennas is not large, and the antennas do not need to be switched, at this time, the switching process is directly exited, and the next decision stage is not entered.
It should be appreciated that in each decision phase, the set handover threshold value should be less than the set phase threshold value. In this embodiment, both the phase threshold and the handover threshold may be preset by an engineer according to the actual application condition of the antenna. It should also be understood that the threshold value for handover may be set differently for different decision stages even for the same uplink communication parameter.
It should be understood that the main purpose of performing conditional step decision on each antenna by using each decision stage in the present embodiment is to perform more objective performance evaluation on each antenna. Specifically, the performance evaluation is performed for a plurality of times under the condition that the antenna performance gap is not particularly large (namely, the condition that the direct switching condition is not met but at least one pairwise difference value of the uplink communication parameters is larger than a preset switching threshold value) through at least two judgment stages with time sequences, so that the evaluation of the real and stable overall performance condition of each antenna is more objective, and the effectiveness and the accuracy of the antenna switching are ensured.
In this embodiment, the purpose of making N decision stages to decide whether the antenna performance satisfies the handover condition is to ensure objective evaluation of the stability performance of the antenna. Therefore, the performance of the antenna in a period of time can be evaluated through a plurality of decision stages with timing relation. It will be appreciated that the larger the time span that elapses when the antenna is evaluated, the more objective the evaluation results are. Therefore, in some examples of the present embodiment, in order to extend the time elapsed for the conditional step decision, a waiting period may be set between two adjacent decision phases, and by the time consumption of the waiting period, the influence of the incidental factor may be excluded by a sufficient time. However, the duration of the waiting period is not as long as possible, since if the waiting period is too long, the whole antenna switching phase is too long, which may affect the user experience in some cases. For example, the performance of the current main antenna of the terminal is very poor, but the performance of the idle antenna can basically meet the user requirement, and the user is in a call under the condition, the antenna switching is urgently needed. However, the waiting period is set to be too long, which may cause the antenna switching determination to take a very long time, and thus the user experience of the call is not good for a long time. The setting of the waiting period should be compatible with consideration of the influence on the evaluation result and the user experience. In this embodiment, the duration of the waiting period may be preset by a terminal designer, or may be customized by a user. In this embodiment, the value of the waiting period may be set to be between 0.1s and 10s, for example, to be 1 s.
Because the decision stages are not completely bound, the waiting periods in the decision stages may be equal or not completely equal. It is also possible, for example, that the waiting period of each decision phase is 3s, or that the waiting period of the first decision phase is 3s, while the waiting period of the second decision phase is only 2 s. In some examples of the present embodiment, the waiting period for each decision phase is gradually decreased. In addition, different waiting periods can be set correspondingly according to different requirements of the user on the radio frequency function of the multi-antenna terminal, for example, in a scene that the user is seriously dependent on the radio frequency function, such as conversation, internet surfing and the like, the waiting period can be set to be shorter, and in other scenes that the user is insensitive to data receiving and sending, the length stage of the waiting period can be increased, and the waiting period does not need to be set. It should be appreciated that the process of antenna selection may be entered directly when it is determined that antenna switching is required.
In summary, in this embodiment, there are 4 setting cases for the phase threshold and the waiting period of each decision phase: namely, the phase thresholds of the N judgment phases are equal, and the waiting periods of the judgment phases are equal; the phase thresholds of the N judgment phases are equal, and the waiting periods of the judgment phases are not equal; the stage thresholds of the N judgment stages are not equal, and the waiting periods of the judgment stages are equal; the stage thresholds of the N judgment stages are not equal, and the waiting periods of the judgment stages are not equal;
s302: and when the antenna switching is determined to be needed, the communication relations among the at least three antennas, the main transceiving path and the auxiliary receiving path are determined again, so that new main antennas, auxiliary antennas and idle antennas are selected.
When the main antenna and the auxiliary antenna are reselected, the main antenna and the auxiliary antenna can be selected according to the uplink communication parameters obtained in the advanced judgment based on the conditions, the current uplink communication parameters can also be reacquired, then one antenna with the optimal performance is selected as the main antenna according to the performance ranking of each antenna under the uplink communication parameters and is communicated with the main receiving and transmitting channel of the multi-antenna terminal, the other antenna with the suboptimal performance is selected as the auxiliary antenna and is communicated with the auxiliary receiving channel of the multi-antenna terminal, and the rest antennas are used as idle antennas.
It should be understood that, the steps of the antenna switching method in this embodiment may be implemented independently by the terminal 100 shown in fig. 1, specifically, by storing a processing program that can implement the steps of the antenna switching method in the memory 109 of the terminal 100, and executing the processing program by the processor 110 to implement a conditional step decision including N decision stages on an antenna to determine whether to perform antenna switching; meanwhile, after the processor 110 executes the processing program, it is also realized that one antenna with the optimal control performance is communicated with the main transceiving channel and one antenna with the suboptimal control performance is communicated with the auxiliary receiving channel when it is determined that antenna switching is required.
Meanwhile, in this embodiment, a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a usb disk, a CF card, an SD card, an MMC card, etc., is also provided, in which one or more programs for implementing the above steps are stored, and the one or more programs can be executed by one or more processors, so as to implement the steps of the above antenna switching method.
The antenna switching method and the computer-readable storage medium provided in this embodiment evaluate the performance of the antennas in a hierarchical manner through a conditional access decision mechanism, so as to implement direct antenna switching when the difference between the performance of two antennas is particularly large, enter the next decision stage to perform re-decision when the difference between the performance of two antennas is relatively large, and directly decide that antenna switching is not required when the difference between the performance of any two antennas is relatively small. Therefore, the overall performance of each antenna in a period of time is evaluated more objectively, the correctness, reliability and stability of the judgment result are ensured, the multi-antenna terminal is further ensured to have stable and reliable radio frequency performance, and the user experience is improved.
Furthermore, in this embodiment, in a decision stage, it is determined that the performance of each antenna satisfies the decision condition of this decision stage, and when it is determined that a next decision stage needs to be entered, a waiting period of the current decision stage is entered first, and after the waiting period is ended, the next decision stage is entered. By the method, the duration of the condition advanced judgment can be further prolonged, so that the performance of each antenna in a longer period is evaluated, a more comprehensive conclusion is obtained, and the accuracy of the condition advanced judgment conclusion is further improved.
Second embodiment
In this embodiment, based on the first embodiment, the present invention is further exemplified by taking a case where each decision stage acquires only one uplink communication parameter as an example.
Referring to fig. 5, fig. 5 is a schematic diagram of a specific antenna switching process provided in a second embodiment of the present invention, and the multi-antenna terminal is a three-antenna terminal. The three antennas in the terminal are respectively recorded as: antenna a1, antenna a2, and antenna A3; setting N equal to 3, and obtaining the uplink communication parameter as MTPL; let the waiting period of the first decision phase be T1 and the waiting period of the second decision phase be T2. The antenna switching process comprises:
s501: acquiring MTPL corresponding to each antenna in the multi-antenna terminal;
at this time, MTPLs corresponding to antenna a1, antenna a2 and antenna A3 are obtained, and are denoted as M11, M12 and M13, respectively.
S502: calculating to obtain the difference value of MTPL of each antenna in the multi-antenna terminal;
that is, the difference | M11-M12 | between the antenna a1 and the antenna a2, the difference | M11-M13 | between the antenna a1 and the antenna A3, and the difference | M12-M13 | between the antenna a2 and the antenna A3 are calculated.
S503: comparing every two difference values with a stage threshold value of a decision stage; judging whether the direct switching condition corresponding to the current judgment stage is met or not according to the comparison result; if yes, go to step S513; otherwise, go to step S504.
Assuming that the phase threshold of the decision phase is 80%, comparing | M11-M12 |, | M11-M13 |, and | M12-M13 | with 80%, respectively, determining whether there is at least one difference between two and two greater than the phase threshold 80%, if yes, determining that antenna switching is required, and going to step S513, otherwise, going to step S504.
It should be understood that, in this embodiment, each pair of difference values may be compared first to obtain a maximum value of each pair of difference values, and then the maximum pair of difference values is compared with the phase threshold, and if the maximum pair of difference values is greater than the phase threshold, it is determined that antenna switching is required. For the above example, the maximum value | M11-M12 | M11-M13 | and | M12-M13 | may be obtained by first comparing it with the phase threshold value 80%.
S504: comparing every two difference values with a preset switching threshold value of a decision stage; judging whether the next judgment stage entering condition corresponding to the current judgment stage is met or not according to the comparison result; if yes, go to step S505; otherwise, go to step S512.
Setting the switching threshold value of the judging stage to be 60%, judging whether at least one pairwise difference value is larger than 60%, if so, entering the next judging stage, if not, judging that antenna switching is not needed, and going to step S512.
S505: after waiting for the duration of T1, acquiring MTPLs corresponding to the antennas again;
at this time, the MTPLs corresponding to antenna a1, antenna a2 and antenna A3 are acquired again, and are denoted as M21, M22 and M23, respectively.
S506: recalculating to obtain the difference value of MTPL of each antenna in the multi-antenna terminal;
that is, the difference | M21-M22 | between the antenna a1 and the antenna a2, the difference | M21-M23 | between the antenna a1 and the antenna A3, and the difference | M22-M23 | between the antenna a2 and the antenna A3 are calculated.
S507: comparing every two difference values with a stage threshold value of a decision stage; judging whether the direct switching condition corresponding to the current judgment stage is met or not according to the comparison result; if yes, go to step S513; otherwise, go to step S508.
Setting the phase threshold value of the decision phase to 60%, at this time comparing | M21-M22 |, | M21-M23 |, and | M22-M23 | with the phase threshold value 60%, determining whether there is at least one difference value between two values greater than 60% of the phase threshold value, if yes, determining that antenna switching is required, and going to step S513, otherwise, going to step S508.
S508: comparing every two difference values with a preset switching threshold value of a decision stage; judging whether the next judgment stage entering condition corresponding to the current judgment stage is met or not according to the comparison result; if yes, go to step S509; otherwise, go to step S512.
If the switching threshold value in the decision stage is set to be 30%, it is determined whether at least one pairwise difference value is greater than 30%, if so, the next decision stage is entered, if not, it is determined that antenna switching is not required, and the process goes to step S512.
S509: after waiting for the duration of T2, acquiring MTPLs corresponding to the antennas again;
at this time, the MTPLs corresponding to antenna a1, antenna a2 and antenna A3 are acquired again, and are denoted as M31, M32 and M33, respectively. It is noted that T1 may be equal to T2 or may not be equal to T2 in the present embodiment.
S510: recalculating to obtain the difference value of MTPL of each antenna in the multi-antenna terminal;
that is, the difference | M31-M32 | between the antenna a1 and the antenna a2, the difference | M31-M33 | between the antenna a1 and the antenna A3, and the difference | M32-M33 | between the antenna a2 and the antenna A3 are calculated.
S511: comparing every two difference values with a stage threshold value of a decision stage; judging whether the direct switching condition corresponding to the current judgment stage is met or not according to the comparison result; if yes, go to step S513; otherwise, go to step S512.
Assuming that the phase threshold of the decision phase is 3, comparing | M31-M32 |, | M31-M33 |, and | M32-M33 | with 50%, respectively, determining whether at least one difference between two is greater than the phase threshold 50%, if yes, determining that antenna switching is required, and going to step S513, otherwise, going to step S512.
S512: and judging that the antenna switching is not needed, and ending the switching process.
S513: sequencing communication parameters acquired at a judgment stage of judging that antenna switching is needed, and taking one antenna with the optimal performance as a main antenna to be communicated with a main transceiving channel of the multi-antenna terminal; and taking one antenna with suboptimal performance as an auxiliary antenna, communicating with the auxiliary receiving channel of the multi-antenna terminal, and taking the rest antennas as idle antennas.
Specifically, when it is determined in step S503 that antenna switching is necessary, M11, M12, and M13 are sorted, and at this time, the antenna corresponding to the minimum value among M11, M12, and M13 is selected as the main antenna to communicate with the main transmission/reception path, the antenna corresponding to the intermediate value is selected as the auxiliary antenna to communicate with the auxiliary reception path, and the antenna corresponding to the maximum value is selected as the idle antenna.
When it is determined in step S507 that antenna switching is necessary, M21, M22, and M23 are sorted, and at this time, the antenna corresponding to the minimum value among M21, M22, and M23 is selected as the main antenna to communicate with the main transmission/reception path, the antenna corresponding to the intermediate value is selected as the auxiliary antenna to communicate with the auxiliary reception path, and the antenna corresponding to the maximum value is selected as the idle antenna.
When it is determined in step S511 that antenna switching is necessary, M31, M32, and M33 are sorted, and at this time, the antenna corresponding to the minimum value among M31, M32, and M33 is selected as the main antenna to communicate with the main transmission/reception path, the antenna corresponding to the intermediate value is selected as the auxiliary antenna to communicate with the auxiliary reception path, and the antenna corresponding to the maximum value is selected as the idle antenna.
According to the antenna switching method provided by the embodiment, the antenna performance is evaluated in a grading manner by setting the plurality of judgment stages, so that the antenna switching is directly carried out when the performance difference of two antennas is particularly large, the next judgment stage is carried out for judging again when the performance difference of the two antennas is large, and the antenna switching is directly judged without being carried out when the performance difference of any two antennas is small. Therefore, the overall performance of each antenna in a period of time is evaluated more objectively, the correctness, reliability and stability of the judgment result are ensured, the multi-antenna terminal is further ensured to have stable and reliable radio frequency performance, and the user experience is improved.
Third embodiment
The present embodiment also provides a multi-antenna terminal, as shown in fig. 6, including a processor 61, a memory 62, a communication bus 63, a communication unit 64, and an antenna 65;
the communication bus 63 is used for realizing connection communication among the processor 61, the memory 62 and the communication unit 64;
the communication unit 64 may be a radio frequency communication unit (radio frequency circuit), or may be another type of communication unit, and includes a main transmitting/receiving path and an auxiliary receiving path (not shown in the path), and the antenna 65 includes at least three antennas, where the antenna currently communicating with the main transmitting/receiving path is a main antenna, the antenna currently communicating with the auxiliary receiving path is an auxiliary antenna, and the rest antennas are idle antennas.
It should be understood that, in the present embodiment, the arrangement of each antenna on the terminal can be flexibly set according to the actual application requirements. For example, referring to the structure diagram of the antenna setting of the three-antenna terminal shown in fig. 7, the position of the dashed box in the diagram is the setting position of the antenna.
The memory 62 is used for executing one or more programs, and the processor 61 is used for executing one or more programs stored in the memory to realize the following steps:
and carrying out conditional advanced judgment comprising N judgment stages on the uplink communication parameters of each antenna of the multi-antenna terminal to determine whether antenna switching is needed. Wherein N is greater than or equal to 2. The uplink communication parameters of the antenna can characterize the performance of the antenna.
And when the antenna switching is determined to be needed, the communication relation among the antennas, the main transceiving path and the auxiliary receiving path is determined again, so that new main antennas, auxiliary antennas and idle antennas are selected.
In this embodiment, the operation mode adopted by the processor 61 in each decision stage specifically includes: acquiring uplink communication parameters of each antenna of the multi-antenna terminal; calculating to obtain the difference of each antenna in the multi-antenna terminal; comparing every two difference values with a stage threshold value of a decision stage, and judging whether a direct switching condition corresponding to the current decision stage is met or not according to a comparison result; if yes, directly judging that antenna switching is needed; otherwise, judging whether to enter the next judging stage; if yes, entering the next judgment stage; otherwise, it is determined that antenna switching is not required.
In this embodiment, the antenna performance of each antenna is characterized by an uplink communication parameter. The aforementioned uplink communication parameters include, but are not limited to, at least one of transmission signal power, MTPL, and CQI. It is understood that the uplink communication parameters listed herein are only common ones, and the uplink communication parameters may also increase or decrease according to different communication systems. It should be understood that the transmission signal power, MTPL, CQI, etc. mentioned herein are all explained by the substantial effect of the parameters, and do not limit the specific names thereof in different scenarios. Correspondingly, any parameter, whether or not its name is the same as that listed above, is within the scope of the present embodiment as long as its essence is corresponding meaning.
It is particularly noted that, in each example of the present embodiment, the uplink communication parameters acquired in each decision phase are the same. It should be understood that, the number of the uplink communication parameters acquired in each decision phase is not specifically limited in this embodiment, and may be one, or two or more.
The pairwise difference described in this embodiment refers to a difference between two antennas for a certain uplink communication parameter.
Meanwhile, in this embodiment, corresponding stage thresholds are set for each decision stage, after pairwise differences are obtained through calculation, the pairwise differences may be compared with the stage threshold corresponding to the current decision stage, and whether a direct handover condition corresponding to the current decision stage is met is determined according to a comparison result, that is, whether the current performance of each antenna has reached a large difference is determined. If the direct switching condition is satisfied, it indicates that the performance difference between the antennas is already large, and the antenna switching needs to be performed immediately.
It should be noted that, if only one uplink communication parameter capable of representing the antenna communication performance is obtained for each antenna in the current determination stage, the processor 61 will only obtain a pairwise difference for the uplink communication parameter when calculating the pairwise difference for the uplink communication parameter of each antenna, so that when determining whether the calculation result satisfies the determination condition corresponding to the determination stage based on the stage threshold of the determination stage, the processor 61 only needs to compare each pairwise difference with the stage threshold of the determination stage, and a conclusion can be reached. However, in the case that the number of the acquired uplink communication parameters is two or more in the decision phase, the processor 61 may perform the following two ways:
first, two or more judgment thresholds are set in the phase threshold. Specifically, different judgment thresholds are set for different uplink communication parameters, and when the processor 61 judges the pairwise difference value, the processor adopts different judgment thresholds for comparing the pairwise difference value of the different uplink communication parameters.
For a certain uplink communication parameter, if any one of the pairwise differences is greater than the decision threshold, the processor 61 may decide that the uplink communication parameter satisfies the advanced condition. If none is satisfied, the processor 61 may directly determine that the uplink communication parameter does not satisfy the advanced condition. Of course, other conditions may be used to determine whether an uplink communication parameter satisfies the advanced condition.
After the determination of whether each uplink communication parameter meets the advanced condition is completed, the processor 61 further needs to determine whether the number of uplink communication parameters meeting the advanced condition reaches a preset number, if yes, it is determined that the judgment condition corresponding to the judgment stage is met, otherwise, it is determined that the judgment condition of the current judgment stage is not met.
Second, only one dimensionless phase threshold is set. Here, two antennas are taken as an example for explanation: optionally, the processor 61 first performs dimensionless processing on each difference value of the two antennas to obtain a corresponding standard difference value, and then calculates an average difference value of each standard difference value of the two antennas.
And then, when comparing, comparing the average difference value between every two antennas with the stage threshold value of the decision stage, and when any one of the average difference values is greater than the stage threshold value of the decision stage or the proportion of the average difference values greater than the stage threshold value of the decision stage reaches a preset proportion, judging that the corresponding decision condition of the decision stage is met.
It should be understood that there are many methods for the dimensionless processing, and the dimensionless processing may be performed by using a "relativistic processing method", a "functional processing method", an "extremizing method", a "normalization method", and the like, in addition to the above-described exemplary methods.
It should be understood that some communication parameters belong to a "positive index" when the de-dimension processing is performed, and the higher the value of the communication parameter is, the better the antenna performance is characterized, such as the transmission signal power. However, some communication parameters belong to "negative indicators", such as MTPL, and the smaller the value, the better the antenna performance is. For the case of simultaneous existence of positive and negative indexes, the communication parameters of the positive index and the negative index need to be comprehensively considered when calculating the average difference. Specifically, the case where the "positive and negative indicators" are present at the same time can be handled by a processing method such as "relative processing method".
It should be noted that the MTPL represents a ratio of the number of times of reaching the maximum transmit power in a specified time duration to the total number of times, and is a dimensionless value, so that when the acquired uplink communication parameters include the MTPL, the MTPL may not be processed by using a dimensionless processing method. It should be understood that the MTPL may also be processed using the same de-dimensionalization method as the rest of the uplink communication parameters, thereby ensuring that the de-dimensionalized parameters of different types are in the same order.
It is needless to say that the phase threshold value of each decision phase should correspond to the uplink communication parameter required to be acquired by the decision phase. In this embodiment, the phase thresholds of the decision stages may be set to be equal, or the phase thresholds of the decision stages may be set to be unequal. When the phase thresholds of the decision phases are set to be unequal, a specific setting mode is as follows: the phase threshold value of each decision phase can be gradually decreased, that is, the phase threshold value of the previous decision phase is greater than the phase threshold value of the next decision phase.
It should be noted that, in a decision stage, when the comparison result of the two differences with the stage threshold does not satisfy the direct handover condition, the processor 61 indicates that it cannot be determined that the terminal needs to perform antenna handover in the current decision stage. At this time, the processor 61 needs to further determine whether or not it needs to proceed to the next stage for re-determination.
In this embodiment, a specific way for the processor 61 to determine whether to enter the next stage is as follows: it is determined whether the current decision phase is the last decision phase, i.e. whether there is a next decision phase. If not, the current antenna performance can be evaluated again, so that the next decision phase needs to be entered. If yes, the performance of the antenna is judged to have been judged in N continuous judging stages, and the antenna can not be judged to need to be switched in the judgment of the N continuous judging stages. Therefore, it can be determined that the antenna switching condition is not satisfied currently, and the processor 61 directly controls to exit the antenna switching procedure without performing antenna switching.
In this embodiment, after determining whether there is a next decision stage, the processor 61 may further determine, by using the threshold value, a pairwise difference value of the uplink communication parameters obtained in the current decision stage, specifically: comparing the pairwise difference of the uplink communication parameters obtained in the current judgment stage with a preset switching threshold value, and entering a next judgment stage if the comparison result meets the entry condition of the next judgment stage corresponding to the current judgment stage; otherwise, directly judging that the antenna switching is not needed.
It should be understood that, for the case that two or more uplink communication parameters are obtained in the current decision stage, different switching threshold values may be set for different uplink communication parameters, the processor 61 compares each pairwise difference value corresponding to the different uplink communication parameters with the switching threshold value corresponding to the uplink communication parameter, and when at least one uplink communication parameter having a pairwise difference value greater than the corresponding switching threshold value is greater than a preset required number, it is determined to enter the next decision stage; or carrying out dimensionless processing on pairwise difference values of different uplink communication parameters between the two antennas and calculating to obtain average difference values, then comparing each average difference value with a switching threshold value of the corresponding preset average difference value of the current decision stage, and judging to enter the next decision stage when at least one average difference value is larger than the corresponding switching threshold value.
In this embodiment, the flow of each decision phase is similar, so the process of other decision phases will not be described here.
In this embodiment, when the current decision stage is the last decision stage and does not satisfy the direct handover condition, it is determined that antenna handover is not required. On the other hand, when the switching threshold value is set for comparison, if the difference value of each two uplink communication parameters is smaller than the preset switching threshold value, it indicates that the performance difference between the antennas is not large, and the antennas do not need to be switched, at this time, the switching process is directly exited, and the next decision stage is not entered.
It should be appreciated that in each decision phase, the set handover threshold value should be less than the set phase threshold value. In this embodiment, both the phase threshold and the handover threshold may be preset by an engineer according to the actual application condition of the antenna. It should also be understood that the threshold value for handover may be set differently for different decision stages even for the same uplink communication parameter.
It should be understood that the main purpose of performing conditional step decision on each antenna by using each decision stage in the present embodiment is to perform more objective performance evaluation on each antenna. Specifically, the performance evaluation is performed for a plurality of times under the condition that the antenna performance gap is not particularly large (namely, the condition that the direct switching condition is not met but at least one pairwise difference value of the uplink communication parameters is larger than a preset switching threshold value) through at least two judgment stages with time sequences, so that the evaluation of the real and stable overall performance condition of each antenna is more objective, and the effectiveness and the accuracy of the antenna switching are ensured.
In this embodiment, the purpose of making N decision stages to decide whether the antenna performance satisfies the handover condition is to ensure objective evaluation of the stability performance of the antenna. Therefore, the performance of the antenna in a period of time can be evaluated through a plurality of decision stages with timing relation. It will be appreciated that the larger the time span that elapses when the antenna is evaluated, the more objective the evaluation results are. Therefore, in some examples of the present embodiment, in order to extend the time elapsed for the conditional step decision, a waiting period may be set between two adjacent decision phases, and by the time consumption of the waiting period, the influence of the incidental factor may be excluded by a sufficient time. However, the duration of the waiting period is not as long as possible, since if the waiting period is too long, the whole antenna switching phase is too long, which may affect the user experience in some cases. The setting of the waiting period should be compatible with consideration of the influence on the evaluation result and the user experience. In this embodiment, the duration of the waiting period may be preset by a terminal designer, or may be customized by a user.
Because the decision stages are not completely bound, the waiting periods in the decision stages may be equal or not completely equal. In some examples of the present embodiment, the waiting period for each decision phase is gradually decreased. In addition, different waiting periods can be correspondingly set according to different requirements of users on the radio frequency function of the multi-antenna terminal. It should be appreciated that the process of antenna selection may be entered directly when it is determined that antenna switching is required.
It should be understood that, when reselecting the main antenna and the auxiliary antenna, the processor 61 may select according to the uplink communication parameters obtained in the advanced decision based on the condition, or may also obtain the current uplink communication parameters again, and then according to the performance ranking of each antenna under the uplink communication parameters, select one with the best performance as the main antenna to communicate with the main transceiving path of the multi-antenna terminal, select one with the suboptimal performance as the auxiliary antenna to communicate with the auxiliary receiving path of the multi-antenna terminal, and use the remaining antennas as idle antennas.
The multi-antenna terminal provided by the embodiment evaluates the antenna performance in a grading manner through a condition advance judgment mechanism, so that the antenna switching is directly performed when the difference between the performances of two antennas is very large, the next judgment stage is performed for judging again when the difference between the performances of two antennas is large, and the antenna switching is not required to be performed when the difference between the performances of any two antennas is small. Therefore, the overall performance of each antenna in a period of time is evaluated more objectively, the correctness, reliability and stability of the judgment result are ensured, the multi-antenna terminal is further ensured to have stable and reliable radio frequency performance, and the user experience is improved.
Fourth embodiment
This embodiment further exemplifies the present invention by taking a case where two types of uplink communication parameters are acquired in each decision phase as an example on the basis of the third embodiment.
Still referring to the terminal shown in fig. 6, the multi-antenna terminal is a three-antenna terminal, and the three antennas are respectively recorded as: antenna a1, antenna a2, and antenna A3. And setting N equal to 3, wherein the uplink communication parameters acquired at each stage are the transmission signal power and MTPL. Let the waiting period of the first decision phase be T1 and the waiting period of the second decision phase be T2. Setting phase thresholds of three decision phases as a1, a2 and a3 in sequence, wherein a1< a2< a 3; the switching threshold values of the first two decision stages are a11 and a21 in sequence, wherein a11 is less than a1, and a21 is less than a 2. One specific processor process at this time is:
the processor 61 obtains the transmission signal powers of a1, a2 and A3, which are respectively marked as G1, G2 and G3; MTPL values for A1, A2 and A3 were also obtained and are denoted as M1, M2 and M3, respectively. Respectively calculating the difference value G1 | -G1-G2 |, G2 | -G1-G3 |, and G3 | -G2-G3 | of the transmission signal power between a1, a2 and A3; and the difference M1 | -M1-M2 |, M2 | -M1-M3 |, and M3 | -M2-M3 |, between the MTPLs. De-dimensionalizing g1, g2, g3, m1, m2 and m3 respectively to obtain a standard deviation g11、g21、g31、m11、m21And m31. Then respectively calculating the average difference value a between A1 and A2A1A2=(g11+m11)/2,aA1A3=(g21+m21)/2,aA2A3=(g31+m31)/2. The three average differences a are calculatedA1A2,aA1A3,aA2A3Respectively comparing with a1, if at least one average difference value is larger than a1, then determining that antenna switching is needed(ii) a Otherwise the difference a will be averagedA1A2,aA1A3,aA2A3Respectively comparing with a11, if at least one average difference value is larger than a11, waiting for the time length of T1, and entering a second decision stage. Otherwise, the antenna switching is not carried out.
After entering the second decision phase, the processor 61 retrieves the transmit signal powers and MTPLs of a1, a2 and A3, and repeats the above process. In the repeated process, the three average difference values are compared with a2 respectively, and when at least one average difference value is larger than a2, the antenna switching is determined to be needed; otherwise, comparing the three average difference values with a21, if at least one average difference value is greater than a21, waiting for the duration of T1, and entering a third decision stage. Otherwise, the antenna switching is not carried out.
After entering the third decision phase, the processor 61 retrieves the transmit signal powers and MTPLs of a1, a2, and A3 and repeats the above process. In the repeated process, the three average difference values are compared with a3 respectively, and when at least one average difference value is larger than a3, the antenna switching is determined to be needed; otherwise, the antenna switching is not carried out.
The multi-antenna terminal provided by the embodiment evaluates the antenna performance in a grading way by setting a plurality of judgment stages, so that the antenna switching is directly carried out when the difference between the performances of two antennas is very large, the next judgment stage is carried out to judge again when the difference between the performances of two antennas is large, and the antenna switching is not required to be directly judged when the difference between the performances of any two antennas is small. Therefore, the overall performance of each antenna in a period of time is evaluated more objectively, the correctness, reliability and stability of the judgment result are ensured, the multi-antenna terminal is further ensured to have stable and reliable radio frequency performance, and the user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An antenna switching method is characterized in that the antenna switching method is applied to a multi-antenna terminal, and the multi-antenna terminal comprises a main transceiving path, an auxiliary receiving path and at least three antennas; the antenna in the at least three antennas is currently a main antenna communicated with the main transceiving passage, the antenna in the at least three antennas is currently an auxiliary antenna communicated with the auxiliary receiving passage, and the rest antennas are idle antennas; the antenna switching method comprises the following steps:
performing conditional step judgment including N judgment stages on uplink communication parameters of each antenna of the multi-antenna terminal, wherein the uplink communication parameters can represent the performance of each antenna of the multi-antenna terminal, N is greater than or equal to 2, and the judgment stages include: acquiring uplink communication parameters of each antenna of the multi-antenna terminal; calculating pairwise differences of communication parameters of the at least three antennas; comparing each pairwise difference value with a stage threshold value of the judgment stage; when the comparison result meets the direct switching condition corresponding to the current judgment stage, directly judging that the antenna switching is needed; otherwise, judging whether to enter the next judging stage; if yes, entering the next judgment stage; if not, judging that antenna switching is not needed; in a decision phase, when two or more uplink communication parameters are acquired, the decision is made by setting two or more decision thresholds or only setting one dimensionless phase threshold in the phase thresholds, wherein the uplink communication parameters acquired in each decision phase are the same;
and when the antenna switching is determined to be needed, re-determining the communication relation among the at least three antennas, the main transceiving path and the auxiliary receiving path so as to select a new main antenna, an auxiliary antenna and an idle antenna.
2. The antenna switching method of claim 1, wherein after determining that there is a next decision phase, before entering the next decision phase, further comprising: and entering a waiting period of the current decision stage.
3. The antenna switching method according to claim 2, wherein the phase thresholds of the N decision phases are equal, and the waiting periods of the decision phases are equal;
or the like, or, alternatively,
the phase thresholds of the N judgment phases are equal, and the waiting periods of the judgment phases are not equal;
or the like, or, alternatively,
the phase threshold value of the previous decision phase in the N decision phases is larger than the phase threshold value of the next decision phase, and the waiting periods of the decision phases are equal;
or the like, or, alternatively,
the phase threshold value of the previous decision phase in the N decision phases is larger than the phase threshold value of the next decision phase, and the waiting periods of the decision phases are not equal.
4. The antenna switching method according to claim 1, wherein said determining whether a next decision phase needs to be entered; if yes, entering the next judgment stage; if not, the step of judging that the antenna switching is not needed comprises the following steps:
judging whether a next judging stage exists or not; if yes, entering the next judgment stage; if not, the antenna switching is not needed.
5. The antenna switching method of claim 4, after determining whether the next decision phase exists, further comprising: judging whether the conditions for entering the next judgment stage are met
Comparing the pairwise difference value of the uplink communication parameters with a preset switching threshold value corresponding to the current judgment stage;
entering a next judgment stage when the comparison result meets the next judgment stage entering condition corresponding to the current judgment stage; otherwise, directly judging that the antenna switching is not needed.
6. The antenna switching method according to any of claims 1-5, wherein the uplink communication parameter comprises at least one of a transmission signal power, a maximum transmission power ratio value, and a channel quality indicator.
7. The antenna switching method of claim 6, wherein the uplink communication parameters include at least two of a transmission signal power, a maximum transmission power ratio value, and a channel quality indicator:
the calculating pairwise difference values of the communication parameters of the at least three antennas comprises: calculating pairwise difference values of the same uplink communication parameters among the at least three antennas;
the comparing each pairwise difference value with the phase threshold of the decision phase includes:
comparing each pairwise difference value corresponding to the uplink communication parameter with a decision threshold value of the uplink communication parameter in the stage threshold value aiming at a certain uplink communication parameter; when any one of the pairwise difference values of the uplink communication parameters is greater than the judgment threshold value, or the number of the pairwise difference values greater than the judgment threshold value reaches a preset ratio, judging that the uplink communication parameters meet a step condition; judging whether the number of the uplink communication parameters reaching the advanced condition reaches a preset number, if so, determining that the direct switching condition corresponding to the current judgment stage is met;
or the like, or, alternatively,
calculating the average difference value between every two difference values aiming at a certain two antennas; comparing the average difference value between every two antennas with the stage threshold value of the decision stage, and judging that the direct switching condition corresponding to the decision stage is met when any one of the average difference values is larger than the stage threshold value of the decision stage or the ratio of the average difference values larger than the stage threshold value of the decision stage reaches a preset ratio.
8. The antenna switching method according to claim 6, wherein the re-determining the connectivity between the at least three antennas and the primary transceiving path and the secondary receiving path comprises:
and selecting one antenna with optimal performance to be communicated with the main receiving and transmitting channel according to the communication parameters of the antennas, and selecting one antenna with suboptimal performance to be communicated with the auxiliary receiving channel.
9. A multi-antenna terminal is characterized in that the multi-antenna terminal comprises a main transceiving path, an auxiliary receiving path and at least three antennas; the antenna in the at least three antennas is currently a main antenna communicated with the main transceiving passage, the antenna in the at least three antennas is currently an auxiliary antenna communicated with the auxiliary receiving passage, and the rest antennas are idle antennas; the multi-antenna terminal also comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the antenna switching method according to claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the antenna switching method according to any one of claims 1-8.
CN201710766581.3A 2017-08-30 2017-08-30 Antenna switching method, multi-antenna terminal and computer readable storage medium Active CN107659347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710766581.3A CN107659347B (en) 2017-08-30 2017-08-30 Antenna switching method, multi-antenna terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710766581.3A CN107659347B (en) 2017-08-30 2017-08-30 Antenna switching method, multi-antenna terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107659347A CN107659347A (en) 2018-02-02
CN107659347B true CN107659347B (en) 2020-11-06

Family

ID=61128013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710766581.3A Active CN107659347B (en) 2017-08-30 2017-08-30 Antenna switching method, multi-antenna terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107659347B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106165310A (en) * 2013-12-31 2016-11-23 华为技术有限公司 There is the radio-based electronic devices of switchable antenna system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6937592B1 (en) * 2000-09-01 2005-08-30 Intel Corporation Wireless communications system that supports multiple modes of operation
JP4548461B2 (en) * 2007-09-04 2010-09-22 ソニー株式会社 Diversity control method
KR102345584B1 (en) * 2015-06-10 2021-12-31 삼성전자주식회사 An electronic device and a method for controlling one or more antennas thereof
CN106129641A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of changing method of antenna structure, mobile terminal and antenna mode
CN106229683A (en) * 2016-09-12 2016-12-14 广东欧珀移动通信有限公司 The changing method of WIFI antenna and device
CN106452550B (en) * 2016-10-14 2019-06-04 珠海市魅族科技有限公司 Antenna switching method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106165310A (en) * 2013-12-31 2016-11-23 华为技术有限公司 There is the radio-based electronic devices of switchable antenna system

Also Published As

Publication number Publication date
CN107659347A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN109905907B (en) Network searching method and mobile terminal
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
CN107734614B (en) Wi-Fi antenna control method, mobile terminal and computer readable storage medium
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107682038B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN108512625B (en) Anti-interference method for camera, mobile terminal and storage medium
CN109195213B (en) Mobile terminal screen control method, mobile terminal and computer readable storage medium
CN108600520B (en) Reception state control method, mobile terminal, and computer-readable storage medium
CN107329572B (en) Control method, mobile terminal and computer-readable storage medium
CN109739300B (en) Antenna control method and terminal
CN109195191B (en) Cell reselection control method and terminal
CN107592132B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN107733508B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
US20220110036A1 (en) Random access method and terminal
CN109309953B (en) Power consumption detection method, device, terminal and readable storage medium
CN108512616B (en) Signal intensity display method, mobile terminal and computer readable storage medium
CN108579081B (en) Event processing method, device and computer storage medium based on game
CN107517487B (en) Call control method and mobile terminal
CN109450508B (en) Antenna determination method and device and mobile terminal
CN109286414B (en) Antenna determination method and terminal
CN107580124B (en) Method for switching antenna, communication terminal and computer readable storage medium
CN111530067A (en) Method for controlling game by multiple keys, mobile terminal and computer readable storage medium
CN108897417B (en) Working mode adjusting method, mobile terminal and computer readable storage medium
CN107517445B (en) WLAN hotspot searching method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant